Re: [android-developers] Re: Google Map Error

2011-02-24 Thread Nesim TUNÇ
Hi,

Sorry for the delayed reply :( Today I tried to solve it ... I changed the
api Google Inc 7. I removed all android jar then I add the Google Inc 7 api.
Then worked for me ... Thanks to all you ...

On Tue, Feb 22, 2011 at 10:49 AM, pravin mohol wrote:

> change your workspace or change your plug-in..you will solve it.
>
> On Tue, Feb 22, 2011 at 1:35 PM, Nesim TUNÇ  wrote:
>
>> I tried changed to Google Inc.:Google APIs:7 as my target platform in
>> default.properties file. Same error and plus layot files cannot show the
>> graphical ui, "Missing theme" error appears
>>
>> On Mon, Feb 21, 2011 at 5:27 PM, Spiral123  wrote:
>>
>>> are you using the standard libraries and manually adding the Google
>>> Map jar?
>>>
>>> if so, change the properties of your app to point to the Google APIs
>>> instead.
>>>
>>>
>>>
>>> On Feb 21, 3:31 am, Nesim TUNÇ  wrote:
>>> > Hi Awesome Developers!
>>> >
>>> > I'm trying to use Google Map in my Android App. My SDK version is 2.1
>>> update
>>> > 1 (Level 7), I added the Google Map Lib (maps.jar) - Level 7 but still
>>> > getting this error .. Here is my codes:
>>> >
>>> > Manifest file:
>>> >
>>> >  
>>> > >> > android:required="true"/>   is child node of application tag
>>> > and these permissons are requested:
>>> > >> > android:name="android.permission.INTERNET">
>>> > >> >
>>> android:name="android.permission.ACCESS_FINE_LOCATION">
>>> > >> android:name="android.permission.ACCESS_COARSE_LOCATION" />
>>> > 
>>> > 
>>> > 
>>> >
>>> > layout/mapview.xml
>>> >  >> > android:id="@+id/mapView"
>>> > android:layout_width="fill_parent"
>>> > android:layout_height="fill_parent"
>>> > android:enabled="true"
>>> > android:clickable="true"
>>> > android:apiKey="my key goes here"
>>> > />
>>> >
>>> > and this my activity class
>>> >
>>> > public class GoogleMapActivity extends MapActivity {
>>> >
>>> > @Override
>>> >  protected void onCreate(Bundle savedInstanceState) {
>>> > super.onCreate(savedInstanceState);
>>> >  setContentView(R.layout.mapview);
>>> >
>>> > }
>>> >
>>> > @Override
>>> >  protected boolean isRouteDisplayed() {
>>> > // TODO Auto-generated method stub
>>> >  return false;
>>> >
>>> > }
>>> > }
>>> >
>>> > and here is how I call it from a imagview click
>>> >
>>> > Intent mapIntent = new Intent(v.getContext(),
>>> > x.maps.GoogleMapActivity.class);
>>> > startActivity(mapIntent);
>>> >
>>> > And I get this error:
>>> >
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): FATAL EXCEPTION: main
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):
>>> > java.lang.IllegalStateException: Could not execute method of the
>>> activity
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > android.view.View$1.onClick(View.java:2082)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > android.view.View.performClick(View.java:2461)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > android.view.View$PerformClick.run(View.java:8890)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > android.os.Handler.handleCallback(Handler.java:587)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > android.os.Handler.dispatchMessage(Handler.java:92)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > android.os.Looper.loop(Looper.java:123)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > android.app.ActivityThread.main(ActivityThread.java:4627)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > java.lang.reflect.Method.invokeNative(Native Method)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > java.lang.reflect.Method.invoke(Method.java:521)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> >
>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:
>>> 871)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > dalvik.system.NativeStart.main(Native Method)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
>>> > java.lang.reflect.InvocationTargetException
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> >
>>> mekanist.placedetail.PlaceDetailActivity.showMap(PlaceDetailActivity.java:2
>>> 96)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > java.lang.reflect.Method.invokeNative(Native Method)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > java.lang.reflect.Method.invoke(Method.java:521)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>>> > android.view.View$1.onClick(View.java:2077)
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 11 more
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
>>> > java.lang.NoClassDefFoundError: x.maps.GoogleMapActivity
>>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): 

Re: [android-developers] Re: Google Map Error

2011-02-22 Thread pravin mohol
change your workspace or change your plug-in..you will solve it.

On Tue, Feb 22, 2011 at 1:35 PM, Nesim TUNÇ  wrote:

> I tried changed to Google Inc.:Google APIs:7 as my target platform in
> default.properties file. Same error and plus layot files cannot show the
> graphical ui, "Missing theme" error appears
>
> On Mon, Feb 21, 2011 at 5:27 PM, Spiral123  wrote:
>
>> are you using the standard libraries and manually adding the Google
>> Map jar?
>>
>> if so, change the properties of your app to point to the Google APIs
>> instead.
>>
>>
>>
>> On Feb 21, 3:31 am, Nesim TUNÇ  wrote:
>> > Hi Awesome Developers!
>> >
>> > I'm trying to use Google Map in my Android App. My SDK version is 2.1
>> update
>> > 1 (Level 7), I added the Google Map Lib (maps.jar) - Level 7 but still
>> > getting this error .. Here is my codes:
>> >
>> > Manifest file:
>> >
>> >  
>> > > > android:required="true"/>   is child node of application tag
>> > and these permissons are requested:
>> > > > android:name="android.permission.INTERNET">
>> > > >
>> android:name="android.permission.ACCESS_FINE_LOCATION">
>> > > android:name="android.permission.ACCESS_COARSE_LOCATION" />
>> > 
>> > 
>> > 
>> >
>> > layout/mapview.xml
>> >  > > android:id="@+id/mapView"
>> > android:layout_width="fill_parent"
>> > android:layout_height="fill_parent"
>> > android:enabled="true"
>> > android:clickable="true"
>> > android:apiKey="my key goes here"
>> > />
>> >
>> > and this my activity class
>> >
>> > public class GoogleMapActivity extends MapActivity {
>> >
>> > @Override
>> >  protected void onCreate(Bundle savedInstanceState) {
>> > super.onCreate(savedInstanceState);
>> >  setContentView(R.layout.mapview);
>> >
>> > }
>> >
>> > @Override
>> >  protected boolean isRouteDisplayed() {
>> > // TODO Auto-generated method stub
>> >  return false;
>> >
>> > }
>> > }
>> >
>> > and here is how I call it from a imagview click
>> >
>> > Intent mapIntent = new Intent(v.getContext(),
>> > x.maps.GoogleMapActivity.class);
>> > startActivity(mapIntent);
>> >
>> > And I get this error:
>> >
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): FATAL EXCEPTION: main
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):
>> > java.lang.IllegalStateException: Could not execute method of the
>> activity
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > android.view.View$1.onClick(View.java:2082)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > android.view.View.performClick(View.java:2461)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > android.view.View$PerformClick.run(View.java:8890)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > android.os.Handler.handleCallback(Handler.java:587)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > android.os.Handler.dispatchMessage(Handler.java:92)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > android.os.Looper.loop(Looper.java:123)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > android.app.ActivityThread.main(ActivityThread.java:4627)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > java.lang.reflect.Method.invokeNative(Native Method)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > java.lang.reflect.Method.invoke(Method.java:521)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> >
>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:
>> 871)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > dalvik.system.NativeStart.main(Native Method)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
>> > java.lang.reflect.InvocationTargetException
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> >
>> mekanist.placedetail.PlaceDetailActivity.showMap(PlaceDetailActivity.java:2
>> 96)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > java.lang.reflect.Method.invokeNative(Native Method)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > java.lang.reflect.Method.invoke(Method.java:521)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > android.view.View$1.onClick(View.java:2077)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 11 more
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
>> > java.lang.NoClassDefFoundError: x.maps.GoogleMapActivity
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 15 more
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
>> > java.lang.IllegalAccessError: Class ref in pre-verified class resolved
>> to
>> > unexpected implementation
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > dalvik.system.DexFile.defineClass(Native Method)
>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
>> > dalvik.system.DexF

Re: [android-developers] Re: Google Map Error

2011-02-22 Thread Nesim TUNÇ
I tried changed to Google Inc.:Google APIs:7 as my target platform in
default.properties file. Same error and plus layot files cannot show the
graphical ui, "Missing theme" error appears

On Mon, Feb 21, 2011 at 5:27 PM, Spiral123  wrote:

> are you using the standard libraries and manually adding the Google
> Map jar?
>
> if so, change the properties of your app to point to the Google APIs
> instead.
>
>
>
> On Feb 21, 3:31 am, Nesim TUNÇ  wrote:
> > Hi Awesome Developers!
> >
> > I'm trying to use Google Map in my Android App. My SDK version is 2.1
> update
> > 1 (Level 7), I added the Google Map Lib (maps.jar) - Level 7 but still
> > getting this error .. Here is my codes:
> >
> > Manifest file:
> >
> >  
> >  > android:required="true"/>   is child node of application tag
> > and these permissons are requested:
> >  > android:name="android.permission.INTERNET">
> >  > android:name="android.permission.ACCESS_FINE_LOCATION">
> >  />
> > 
> > 
> > 
> >
> > layout/mapview.xml
> >   > android:id="@+id/mapView"
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent"
> > android:enabled="true"
> > android:clickable="true"
> > android:apiKey="my key goes here"
> > />
> >
> > and this my activity class
> >
> > public class GoogleMapActivity extends MapActivity {
> >
> > @Override
> >  protected void onCreate(Bundle savedInstanceState) {
> > super.onCreate(savedInstanceState);
> >  setContentView(R.layout.mapview);
> >
> > }
> >
> > @Override
> >  protected boolean isRouteDisplayed() {
> > // TODO Auto-generated method stub
> >  return false;
> >
> > }
> > }
> >
> > and here is how I call it from a imagview click
> >
> > Intent mapIntent = new Intent(v.getContext(),
> > x.maps.GoogleMapActivity.class);
> > startActivity(mapIntent);
> >
> > And I get this error:
> >
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): FATAL EXCEPTION: main
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):
> > java.lang.IllegalStateException: Could not execute method of the activity
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > android.view.View$1.onClick(View.java:2082)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > android.view.View.performClick(View.java:2461)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > android.view.View$PerformClick.run(View.java:8890)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > android.os.Handler.handleCallback(Handler.java:587)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > android.os.Handler.dispatchMessage(Handler.java:92)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > android.os.Looper.loop(Looper.java:123)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > android.app.ActivityThread.main(ActivityThread.java:4627)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> >
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:
> 871)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > dalvik.system.NativeStart.main(Native Method)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
> > java.lang.reflect.InvocationTargetException
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> >
> mekanist.placedetail.PlaceDetailActivity.showMap(PlaceDetailActivity.java:2
> 96)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > android.view.View$1.onClick(View.java:2077)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 11 more
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
> > java.lang.NoClassDefFoundError: x.maps.GoogleMapActivity
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 15 more
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
> > java.lang.IllegalAccessError: Class ref in pre-verified class resolved to
> > unexpected implementation
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > dalvik.system.DexFile.defineClass(Native Method)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > dalvik.system.DexFile.loadClassBinaryName(DexFile.java:209)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203)
> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:573)
> > 02-21 10:30:04.645: ERRO

Re: [android-developers] Re: Google Map Error

2010-02-11 Thread Sasikumar.S
Thank U.

I did & the same and i got the answer

Pls see the below link & tell the answer

http://groups.google.com/group/android-developers/browse_thread/thread/9f10a3c2511b4b6d



On Thu, Feb 11, 2010 at 3:44 PM, Vaikunth wrote:

> Use onCreate() method.
> Like
> public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.map_test);
>map=(MapView)findViewById(R.id.map);
>:::
> }
>
> I have no issue by calling again.
>
> Hope you can get.
>
> Regards.
>
>
> On Feb 10, 1:58 pm, Daniel Drozdzewski 
> wrote:
> > ok, the exception you see means that you can set content view only once;
> > Make sure you call setContentView() method only once rather than each
> > time you want to bring the activity to foreground.
> >
> > Daniel
> >
> >
> >
> > On Wed, Feb 10, 2010 at 4:44 AM, Sasikumar.S 
> wrote:
> > > Thank You Daniel.
> > > I'm not calling setContentView() on onCreat().
> > > I'm calling setContentView() on some other method.
> >
> > > According to my program i can't able to set setContentView() in
> onCreat().
> > > How to recreate it , to see one more time.
> > > can you pls give suggestion?...
> >
> > > On Tue, Feb 9, 2010 at 8:14 PM, Daniel Drozdzewski
> > >  wrote:
> >
> > >> ...
> > >> Caused by:
> > >> java.lang.IllegalStateException: You are only allowed to have a single
> > >> MapView in a MapActivity
> > >> ...
> >
> > >> where do you call setContentView() from? It should be called from
> > >> onCreate().
> >
> > >> Daniel
> >
> > >> On 9 Feb, 13:10, "Sasikumar.S"  wrote:
> > >> > Hi,
> >
> > >> > when i'm using Google map, it is showing nice.
> > >> > After i'm coming back & then try to see one more time newly it is
> > >> > showing
> > >> > error.
> >
> > >> > The error is below
> >
> > >> > 02-09 18:36:40.555: ERROR/AndroidRuntime(300): Uncaught handler:
> thread
> > >> > main
> > >> > exiting due to uncaught exception
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):
> > >> > android.view.InflateException: Binary XML file line #14: Error
> inflating
> > >> > class 
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.LayoutInflater.createView(LayoutInflater.java:513)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> >
> android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.LayoutInflater.inflate(LayoutInflater.java:407)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> >
> > >> >
> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.app.Activity.setContentView(Activity.java:1622)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > pack.sample.find.mapview(find.java:253)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > pack.sample.find.onClick(find.java:337)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.View.performClick(View.java:2364)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.View.onTouchEvent(View.java:4179)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.widget.TextView.onTouchEvent(TextView.java:6540)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.View.dispatchTouchEvent(View.java:3709)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > >> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> >
> > >> >
> com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
> > >> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> >
> > >> >
> com.android.in

Re: [android-developers] Re: Google Map Error

2010-02-10 Thread Daniel Drozdzewski
ok, the exception you see means that you can set content view only once;
Make sure you call setContentView() method only once rather than each
time you want to bring the activity to foreground.

Daniel



On Wed, Feb 10, 2010 at 4:44 AM, Sasikumar.S  wrote:
> Thank You Daniel.
> I'm not calling setContentView() on onCreat().
> I'm calling setContentView() on some other method.
>
> According to my program i can't able to set setContentView() in onCreat().
> How to recreate it , to see one more time.
> can you pls give suggestion?...
>
> On Tue, Feb 9, 2010 at 8:14 PM, Daniel Drozdzewski
>  wrote:
>>
>> ...
>> Caused by:
>> java.lang.IllegalStateException: You are only allowed to have a single
>> MapView in a MapActivity
>> ...
>>
>> where do you call setContentView() from? It should be called from
>> onCreate().
>>
>> Daniel
>>
>>
>>
>> On 9 Feb, 13:10, "Sasikumar.S"  wrote:
>> > Hi,
>> >
>> > when i'm using Google map, it is showing nice.
>> > After i'm coming back & then try to see one more time newly it is
>> > showing
>> > error.
>> >
>> > The error is below
>> >
>> > 02-09 18:36:40.555: ERROR/AndroidRuntime(300): Uncaught handler: thread
>> > main
>> > exiting due to uncaught exception
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):
>> > android.view.InflateException: Binary XML file line #14: Error inflating
>> > class 
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.LayoutInflater.createView(LayoutInflater.java:513)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.LayoutInflater.inflate(LayoutInflater.java:407)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.LayoutInflater.inflate(LayoutInflater.java:320)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.LayoutInflater.inflate(LayoutInflater.java:276)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> >
>> > com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.app.Activity.setContentView(Activity.java:1622)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > pack.sample.find.mapview(find.java:253)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > pack.sample.find.onClick(find.java:337)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.View.performClick(View.java:2364)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.View.onTouchEvent(View.java:4179)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.widget.TextView.onTouchEvent(TextView.java:6540)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.View.dispatchTouchEvent(View.java:3709)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> >
>> > com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> >
>> > com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.app.Activity.dispatchTouchEvent(Activity.java:2061)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> >
>> > com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.os.Handler.dispatchMessage(Handler.java:99)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.os.Looper.loop(Looper.java:123)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > android.app.ActivityThread.main(ActivityThread.java:4363)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > java.lang.reflect.Method.invokeNative(Native Method)
>> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):     at
>> > java.lang.reflect.Method.invoke(Method.java:521)
>

Re: [android-developers] Re: Google Map Error

2010-02-09 Thread Sasikumar.S
Thank You Daniel.

I'm not calling setContentView() on onCreat().
I'm calling setContentView() on some other method.


According to my program i can't able to set setContentView() in onCreat().
How to recreate it , to see one more time.

can you pls give suggestion?...

On Tue, Feb 9, 2010 at 8:14 PM, Daniel Drozdzewski <
daniel.drozdzew...@gmail.com> wrote:

> ...
> Caused by:
> java.lang.IllegalStateException: You are only allowed to have a single
> MapView in a MapActivity
> ...
>
> where do you call setContentView() from? It should be called from
> onCreate().
>
> Daniel
>
>
>
> On 9 Feb, 13:10, "Sasikumar.S"  wrote:
> > Hi,
> >
> > when i'm using Google map, it is showing nice.
> > After i'm coming back & then try to see one more time newly it is showing
> > error.
> >
> > The error is below
> >
> > 02-09 18:36:40.555: ERROR/AndroidRuntime(300): Uncaught handler: thread
> main
> > exiting due to uncaught exception
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300):
> > android.view.InflateException: Binary XML file line #14: Error inflating
> > class 
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.LayoutInflater.createView(LayoutInflater.java:513)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:407)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> >
> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.app.Activity.setContentView(Activity.java:1622)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > pack.sample.find.mapview(find.java:253)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > pack.sample.find.onClick(find.java:337)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.View.performClick(View.java:2364)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.View.onTouchEvent(View.java:4179)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.widget.TextView.onTouchEvent(TextView.java:6540)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.View.dispatchTouchEvent(View.java:3709)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> >
> com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> >
> com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.app.Activity.dispatchTouchEvent(Activity.java:2061)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> >
> com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.os.Looper.loop(Looper.java:123)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > android.app.ActivityThread.main(ActivityThread.java:4363)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> >
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
> > 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
> > dalvik.system.NativeS