I have a XTrackerMap class that extends
com.google.android.maps.MapActivity. The application runs fine on the
HTC Hero device when connected via USB and uploaded via eclipse. If I
restart the phone and start the same application from the list of apps
on the phone, I get the following error; and subsequent application
crash.
11-24 16:17:12.774: WARN/dalvikvm(515): Unable to resolve superclass
of Lcom/gizmo/tracker/XTrackerMap; (57)
11-24 16:17:12.774: WARN/dalvikvm(515): Link of class 'Lcom/gizmo/
tracker/XTrackerMap;' failed
11-24 16:17:12.774: ERROR/dalvikvm(515): Could not find class
'com.gizmo.tracker.XTrackerMap', referenced from method
com.gizmo.tracker.TrackingActivity.initControls
11-24 16:17:12.774: WARN/dalvikvm(515): VFY: unable to resolve const-
class 89 (Lcom/gizmo/tracker/XTrackerMap;) in Lcom/gizmo/tracker/
TrackingActivity;
11-24 16:17:12.774: WARN/dalvikvm(515): VFY: rejecting opcode 0x1c at
0x0082
11-24 16:17:12.774: WARN/dalvikvm(515): VFY: rejected Lcom/gizmo/
tracker/TrackingActivity;.initControls ()V
11-24 16:17:12.774: WARN/dalvikvm(515): Verifier rejected class Lcom/
gizmo/tracker/TrackingActivity;
11-24 16:17:12.774: WARN/dalvikvm(515): Class init failed in
newInstance call (Lcom/gizmo/tracker/TrackingActivity;)
11-24 16:17:12.774: DEBUG/AndroidRuntime(515): Shutting down VM
And yes, I do have this entry in the manifest file:
<uses-library android:name="com.google.android.maps" />
Why does this work only when launched via eclipse and not in
standalone phone mode? The launch class is TrackingActivity; and the
initControls method of TrackingActiviy has the following line:
trackMapIntent = new Intent(this, XTrackerMap.class);
<manifest xmlns:android="
http://schemas.android.com/apk/res/android"
package="com.gizmo.tracker" android:versionCode="1"
android:versionName="1.1">
<application android:icon="@drawable/icon" android:label="@string/
app_name">
<uses-library android:name="com.google.android.maps" />
...
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-beginners+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
Thread at a glance:
Previous Message by Date:
click to view message preview
[android-beginners] getting my current location
I am trying to produce a mock location provider by using an example
kml file grabbed from somewhere (where I cannot remember now). Anyway
I think I also need a properties file but I'm not sure where this goes
and what it is called.
The code I am using is -
locationManager = (LocationManager)getSystemService
(Context.LOCATION_SERVICE);
Location location = locationManager.getLastKnownLocation("gps");
double lat = location.getLatitude();
double lng = location.getLongitude();
It seems that I am not getting anything back from the kml file, but as
a beginner to Android and Java I am struggling to debug the problem. I
am using eclipse Ganymede.
What I need really is some pointers on the following:
1. How do I debug so that I can see the values of Location.getLatitude
() and location.getLongitude(); ?
2. I am referencing "gps" as my provider and have a kml file located
at C:\Program Files\android-sdk-windows-1.6_r1\tools\data\misc\location
\gps . Is this correct?
3. How do I create the properties file?
4. Any other advice would be greatly appreciated.
I have scoured the net for answers but nothing seems to fit what I am
after. I have also tried to go to URL
http://code.google.com/android/toolbox/apis/lbs.html
but it redirects me to http://developer.android.com/guide/index.html
Thanks in advance,
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-beginners+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
Next Message by Date:
click to view message preview
Re: [android-beginners] Failure [-12]
The list of install failure code is in the PackageManager class.-12 is defined here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/content/pm/PackageManager.java;h=cd48dcbcba3b5886f01a986ef71cb08412505e46;hb=refs/heads/eclair#l358
Basically the minSdkVersion in your app is higher than the device you are trying to install on.I'm guessing this is a relative old device image? More recent device builds properly display most errors as INSTALL_FAILED_OLDER_SDK.
XavOn Mon, Nov 23, 2009 at 8:15 PM, Brian Williamson <brianwilliamson4@xxxxxxxxx> wrote:
Hi All, I tried to load an app onto the Android dev 1 phone and got
the following message: Failure [-12]
Does anyone know what this message means?
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-beginners+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-- Xavier DucrohetAndroid SDK Tech LeadGoogle Inc.Please do not send me questions directly. Thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-beginners+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
Previous Message by Thread:
click to view message preview
[android-beginners] getting my current location
I am trying to produce a mock location provider by using an example
kml file grabbed from somewhere (where I cannot remember now). Anyway
I think I also need a properties file but I'm not sure where this goes
and what it is called.
The code I am using is -
locationManager = (LocationManager)getSystemService
(Context.LOCATION_SERVICE);
Location location = locationManager.getLastKnownLocation("gps");
double lat = location.getLatitude();
double lng = location.getLongitude();
It seems that I am not getting anything back from the kml file, but as
a beginner to Android and Java I am struggling to debug the problem. I
am using eclipse Ganymede.
What I need really is some pointers on the following:
1. How do I debug so that I can see the values of Location.getLatitude
() and location.getLongitude(); ?
2. I am referencing "gps" as my provider and have a kml file located
at C:\Program Files\android-sdk-windows-1.6_r1\tools\data\misc\location
\gps . Is this correct?
3. How do I create the properties file?
4. Any other advice would be greatly appreciated.
I have scoured the net for answers but nothing seems to fit what I am
after. I have also tried to go to URL
http://code.google.com/android/toolbox/apis/lbs.html
but it redirects me to http://developer.android.com/guide/index.html
Thanks in advance,
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-beginners+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
Next Message by Thread:
click to view message preview
[android-beginners] how to add .KML file to my google map app
hi !! I have written a simple app following a tutorial. but when i run
the application these is blank map view. Then i came to know that we
can emulate google map images using .KML files. I am having following
integrating it. I got sample.kml file but i am confused how to load it
with DDMS. further more how to select device in 'my devices' tab.
secondly, i read that i also need to pull gps properties as well but i
dont have any 'location' or 'gps' folder in /data/misc folder.
Thanks in advance.
Regards,
wahib
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-beginners+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en