Closed GoogleCodeExporter closed 8 years ago
Have you exported your application as a "signed application package" (Android
Tools/Export Signed Application Package)? This is usually required to have the
app working properly on a device.
Are you able to plug your device on your ADT (with USB), and get the logcat
stacktrace?
Original comment by mathieu....@gmail.com
on 9 Jan 2014 at 8:51
i don't export my application as a "signed application package" . The app works
when read from url but when i changed the code to read from file has stopped
with this error : fatal exception .(pluged my device on myADT (with USB)and get
the logcat stacktrace)
boolean ok = kmlDocument.parseUrl(url);---->(it works on my device and show the kml)
//------------
File file = kmlDocument.getDefaultPathForAndroid("my_routes.kml");
boolean ok = kmlDocument.parseFile(file);---->(it is force closed on device)
//------------
File path = new File(Environment.getExternalStorageDirectory(), "kml");
path.mkdir();
File file = new File(path.getAbsolutePath(), "my_routes.kml");
boolean ok = kmlDocument.parseFile(file);----->(it is force closed on device)
Original comment by arabi.gh...@gmail.com
on 10 Jan 2014 at 10:31
Attachments:
Interesting :
Your stacktrace doesn't show a force close in parseFile, but in buildOverlays.
It is a ResourceNotFoundException, apparently when inflating the bubble layout.
=> Are you sure to have in your project ALL resources needed for the bubble?
(Refer to the Tutorial_1)
Note that I always have troubles on the device when I don't install a signed
application package. It could also be the cause.
Original comment by mathieu....@gmail.com
on 10 Jan 2014 at 11:33
you are right i have not added the resources in the project . thank you so
much. it shows my_routes.kml now.
Thank you.
Original comment by arabi.gh...@gmail.com
on 10 Jan 2014 at 1:30
Fine!
Don't hesitate to drop a comment in ApplicationsUsingOSMBonusPack wiki page, to
speak about your project and its usage of OSMBonusPack: this is the method to
"retribute" the developer...
Original comment by mathieu....@gmail.com
on 10 Jan 2014 at 9:01
sure, many thanks for your help and guidance . the tutorials were perfect
from the first step to the last that i got your final comment . I hope be
able to learn more from your lessons.
thanks and best regards
Original comment by arabi.gh...@gmail.com
on 11 Jan 2014 at 7:53
Original issue reported on code.google.com by
arabi.gh...@gmail.com
on 9 Jan 2014 at 6:53