Android :: Geocoding Fails - ForwardGeocode - GLS Failed With Status 20

Nov 24, 2010

After I upgraded to Android SDK 8 I started seeing geocoding failures in the emulator. However, everything was fine on a device. Now my app fails to gecode on 1.5 and 1.6 devices as well as in the emulator. I can't test on a 2.2 device. Perhaps it works OK there.

Android :: Geocoding fails - forwardGeocode - GLS failed with status 20


Android :: GeoCoding Fails After SDK Upgrade To 8

Sep 24, 2010

I recently upgraded my SDK from 7 to 8. One of my applications uses Google GeoCoding, specifically the Geocoder object. After the upgrade, when I call the getFromLocation method, it doesn't return any addresses and I see a message in the logcat to the effect that GLS failed with status 20. My Google Maps API key is working fine because I'm seeing the map tiles, but GeoCoding is broken. It works fine if I run a previous (SDK 7) build of my app.

View 6 Replies View Related

Android :: Receiving Status Of Call Failed

Jul 6, 2009

My application is making call. I need to be notified when that call is being picked up by other side. So i used TelephonyManager and PhoneStateListner as below. Basically i wanted to know data activity status.

my code is as below. Code...

View 5 Replies View Related

Android :: MediaPlayer.setDataSource - Fd - Cause IOException: Prepare Failed - Status - 0x1

Aug 6, 2009

What is the preferred way of reusing a MediaPlayer when using resources? My try looks a bit ... too complicated... so maybe I should be happy to see that it didn't work. (I run the Android 1.5 SDK and emulator.)

According to this thread my problem may be a permission problem. http://groups.google.se/group/android-developers/browse_thread/thread...

I get the same error. But in my case it only occurs when I use FileDescriptor!?! The use case differs however, because I use a resource stored in the bundle. I have s0.mp3 safely stored in the project /res/raw and it successfully plays when I use SoundPool or MediaPlayer.create. And the log print tells me I referenced the correct file and stay safely in my package.

I'm sure my way of getting the fd out from a package resource is the problem, I didn't find any other way... But why didn't setDataSource throw the exception instead of a printout? And why on earth is the same resource happily played one way but not the other? Seems like a design flaw rather than a security raise. Should I look in the MediaPlayer.create code to see how they get around the problem or can you help me understand how it works?

This is a test code snippet: (from onCreate of a simple Activity)

CODE:...........

And the error:

CODE;..............

View 2 Replies View Related

General :: Can't Get Rid Of (download Failed - Insufficient Memory) Status

Sep 30, 2013

i've got a droid razr maxx running jb 4.1.2. at one point i had maxed out the storage space on both the SD card and the ~8gb of internal phone memory, so as i went to make a download i got a little error up top that said the download failed due to insufficient memory. i took care of the problem and completed the download, but ever since then that little !-in-triangle status has been up top on my status bar, always popping up atop the list of alerts that come up when i pull the top menu down. clicking on it sends me to my downloads page, so i've sorted out all of the filenames even remotely similar to that one and deleted them from the downloads page....

i can power off the phone, reboot it.... no matter what that status informing me that the download failed due to insufficient memory won't go away.....

View 3 Replies View Related

Android :: Reverse Geocoding In App

Oct 17, 2010

I am trying to Reverse GeoCode current Lat/Long data to just Admin Area and Sub Admin Area using the Geocoder class.

I am using the NETWORK_PROVIDER as the Location provider. Here is the code that I use and it works. The problem is sometimes it does not give me any location sometimes it does.

Android Manifest permissions I am using.

CODE:.............

Here is the rest of the code that does give me correct location from time to time but nothing at other times.

CODE:..............

Are there restrictions with the network providers how frequently you can request location data?

How can I make sure that everytime its run this can give me valid location data.

Thanks in advance for any insight into this.

PS: I have run this code on my real device running Froyo 2.2 (Verizon Wireless). Target API Level 8.

This is what I got from my debugging.

Latitude Longitude is always fetched but the getFromLocation often returns null for the latitude longitude data passed to it. So what should be the workaround? May be pass the Lat/Long info to Google Maps API for reverse geocoding. Will be glad to receive any input.

View 1 Replies View Related

Android :: Emulator 2.1 & 2.2 Reverse Geocoding Not Available

May 30, 2010

I have been unable to get reverse geocoding wokring under either 2.1 or 2.2 on the emulators. Tested on both mac/eclipse & ubuntu/eclipse.

I am sending manual decimal coordinates via DDMS and have ACCESS_FINE_LOCATION & INTERNET permissions in my manifest file.

On an actual phone (HTC Desire) it functions properly.

CODE:............

The following code throws the exception below

CODE:..........

I have been looking for docs on this and can find very little information on the above to confirm whether it should or should not work.

View 12 Replies View Related

Android :: Caching Geocoding Data

Nov 5, 2010

My app makes several calls to getFromLocationName from the android.location.Geocoder; class, this is currently handled in my activity which also displays some data depedant on the results of that call.

This can be quite slow, for example before the activity can load it first has to complete the various calls, and that is reliant on a network connection.

Once I have the results, I don't really need to refresh that (I mean how often do locations and geo coordinates change?)

My question : How can I best avoid having to query for this data each time my app runs. Should I do something with a service that loads them all on startup? (could be quite slow if it has to query 50+ times). OR should I make the call, store results in SQL, then only query next time if I don't currently hold the results?

View 1 Replies View Related

Android :: Geocoding - Accuracy Required In GPS Coordinates

Sep 21, 2010

My question in a nutshell is: Is there a correlation between the number of decimals used in GPS co-ordinates and the accuracy of the location?

Right now I happen to be working with the Android SDK but I'm sure this question can apply to many other geolocation SDKs. Basically, Android returns GPS coordinates with up to 14 digits. That seems like overkill in most situations. Lets say I needed accuracy down to about an area of 10 feet by 10 feet. How many decimals do I really need to worry about? The use-case that I'm looking for is I want to know if a person is north or south of a particular latitude - how many digits would I need to store in the database and how many digits would I need to compare?

View 2 Replies View Related

Android :: Reverse Geocoding Not Working - Google Paltform : 2.2 - Api - 8

Nov 24, 2010

I am getting null pointer exception when I am trying to get lat/long from address using reverse geocoding in Android....

View 2 Replies View Related

Android :: Strategies For Large Volume Of Location Geocoding

Oct 27, 2009

I have an application that uses the Google Maps API to geocode distances between lat/long pairs as a way of displaying people near to you on your phone (currently Android, working on iPhone). The issue is that even with a test group of 40 users, we are taking upwards of 10 seconds to do our calculations and send the results back to the users. While 10 seconds sounds like a long time, it's not really an issue as far as the client app goes because it's not a real-time update of people's locations (the updates occur every few minutes). Obviously this is a problem though since we'd obviously love to ramp up to tens or even hundreds of thousands of users. I'm curious if anyone else has any experience in this arena in regards to using the Google Maps API for calculating distances between points for large volumes of data?

As an aside, we're using Rails on the server, which is where all of the location calculations are occurring. The phone(s) are merely displaying the maps and updating the server with lat/long coordinates.

View 3 Replies View Related

HTC Hero :: Flickr Integration Loses Geocoding

Nov 26, 2009

I have been uploading my photos to Flickr using the built in Flickr integration. However, I notice that the geocoding does not get set in my Flickr account. When I browse the photos on my phone's card, the goecoding is in tact. Is this a limitation of Flickr or my Hero?

View 3 Replies View Related

General :: Add Percentage Of Battery Status On Status Bar?

Jul 9, 2013

how to add percentage of battery status on status bar like xperia z?

Innos i6c (Xperia Style)

View 2 Replies View Related

Android :: Adb Remount Fails On 1.5

May 13, 2009

I have upgraded my phone's images to Android 1.5 images (from http://www.htc.com/www/support/android/adp.html) Now when I try commands like adb remount, chmod, adb push etc I get "Operation not permitted" and "Permission denied" errors

I was able to give this command when I had 1.0 images flashed on my phone.

Has something related to permissions changed with Android 1.5?

View 2 Replies View Related

Android :: App Fails To Launch?

Apr 16, 2010

I'm trying to do is open a very simple application that is supposed to do nothing but display an imageView above a textView. The application worked fine until I added the imageView so I'm assuming my problem has something to do with that.

Here is the code:

CODE:............

Here is my layout -> main.xml

CODE:....................

When I try and run the app in Eclipse through the Emulator the emulator gives me the following error:

The application Application Name (process.com.isi.sa) has stopped unexpectedly. Please try again.


The Console log in Eclipse shows the following messages:

CODE:.......................

View 1 Replies View Related

Android :: SDK Fails To Install ?

Jan 6, 2010

When I try to install the android SDK it fails to install.

My OS is Windows XP. I just downloaded and installed Java JDK 1.6 Java -version from the command line returns: http://stackoverflow.com/questions/ask java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)

My environment vars have: JAVA_HOME=c:progra~1javajdk1.6.0_11. I downloaded android-sdk-r04-windows.zip. I unziped it in V:AndroidInstall

When I go to the V:androindinstallandroid-sdk-windows> and type "SDK Install.exe" nothing happens...If I go this from graph

When I do this from a graphical file viewer I get a quick flash that looks like a command line window and nothing....

When I try to run android list targets from the tool directory I get:

Error: Error parsing the sdk.
Error: V:androindinstallandroid-sdk-windowsplatforms is missing.
Error: Unable to parse SDK content.

So the basic install setup is not happening.

Additional clues:

I have a G1 and Android 1.0 was running on this machine. (Almost a year ago) I've updated my G1 to 1.6 so I thought I'd update my SDK before starting new development.

When I tried to upgrade it tried and then died as the "directory was in use"
So I cleaned out all the android directories, rebooted and redownloaded everythign from scratch.
Now it won't run at all.

I've clearly got something in an unhappy state, but I've cleaned up all the directories and no remanants seem to be running I've rebooted....

View 3 Replies View Related

Android :: SAXParser Fails On Some RSS Feeds

Feb 28, 2009

I'm using the SAX parser to read some RSS feeds and have found a problem. Some feeds, for example CNN Money Top Stories, have embedded some characters in their content, i.e. the copyright symbol. Well, that's not valid XML and the SAX Parser fails with an exception "invalid token". The only help I have seen given is to fix the XML at the source and that's not an option obviously. So, I can think of 2 options and they both stink:

(a) read the content first, scrub it, and then pass it to the parser.
(b) Use DOM instead of SAX.

What I *want* to do is make the parser a little more forgiving and just accept or discard/ignore the bad text. I'm not have any luck with setErrorHandler. My error handler does not get called.

View 7 Replies View Related

Android :: Camera Prepare Fails

Sep 10, 2009

I'm trying to build a simple video recorder for an Android device and I've had limited success and mixed results. It worked once, but now, without changing anything, I'm getting a "Camera is not available" error followed by "prepare failed -2147483648" error.

View 1 Replies View Related

Android :: Market Update Fails

Oct 3, 2010

I want to upload an upgrade in the market. But when I upload the apk and new images and click save or publish everything is lost when I return to the listing (the old apk and images are restored). The only thing that changes is the saved versioncode of the app. Is there something broken?

View 2 Replies View Related

Android :: Mkdir() Fails When Min Sdk Version Is 4

Sep 11, 2010

The following code works when I either have no min sdk version specified in the app manifest or if it's 5 or greater. But if I set the min sdk level to 4 (Android 1.6) , it fails to create a subdirectory in the sdcard.

There is no error. mkdir() or mkdirs() just returns false.

CODE:....

Am I doing something wrong here? Or is this a bug? I'd prefer not to set the target to 2.1 and min version to 1.6. But right now, I have to set it to 2.0 for it to work.

View 8 Replies View Related

Android :: File-creation Fails?

Apr 28, 2010

I use the following code to create a folder "mymir" and a file ".nomedia" (in the mymir-folder) on the sdcard of an android unit. However, somehow it fails with the exception that the folder the ".nomedia"-file is to be placed in dosn't exist.

Here's the code:

CODE:....................

View 1 Replies View Related

Android : ContentProvider Fails On Insert

Jul 30, 2010

I am brand new to developing for android and have hit something of a stumbling block that I cant seem to get around.

Using the NotePad example, I have created my own ContentProvider to serve up data from a database that I will eventually host on a webserver. But that is lightyears away from where I am right now.

Just testing my ContentProvider has caused a bit of a headache that I cant solve. For some reason, when the provider calls SQLiteDatabase db = mOpenHelper.getWritableDatabase(); I get a null pointer exception.

Code Follows:

CODE:............

Stack Trace

CODE:......................

View 1 Replies View Related

Android :: APK Installation Fails / Package Conflict

Mar 24, 2009

I'm testing an app I'm developing and asked a friend to install on their device. I wanted to make it as easy as possible for them to help me out so I put the .apk up on my website for them to download to the phone (rather than making them download the SDK and use adb to install). The install of the downloaded .apk fails, complaining of a package conflict.

I have since gotten my hands on the phone briefly and I verified that:
* they have selected "allow unsigned apps" in settings
* there is no package with the same (or similar) name in data/data * installing via adb works with not a peep
* when I download the .apk to my phone the app installs fine.
It would be really nice to make it as easy as possible to distribute to people who might be willing to do me the favor of testing.

View 3 Replies View Related

Android :: Fails To Connect With AP / Get An Auto IP Address?

Mar 11, 2009

I tried connect to AP(DHCP componet is disabled) with Google dev phone 1. It fails to connect to that AP. Can't get a ip address from AP. I hoped the dev phone successfully connect to the AP, and assign own auto-ip by itself(169.254.xx.xx). But It didn't happened. I think it must be abnormal case. Is there any special way to get an Auto IP address?

View 2 Replies View Related

Android :: Connect Works On Wifi / Fails On 3G

Oct 14, 2009

I am trying to test the availability of a service with a socket. the code is quite simple. Code...

View 5 Replies View Related

Android :: Dex Fails Placing Debug Info

Apr 19, 2010

My build was failing with a dex error. After I turned verbosity up to debug I got the following:

CODE:............

Here is the source of the class where it is failing to place debug info:

CODE:..................

View 4 Replies View Related

Android :: AndroidTestCase Fails With Dependency On Third Project

Aug 4, 2010

I have a and Android project and its test project. I can run tests successfully in the emulator. As the Android project has dependencies on a third library project, I want to use classes of the third project in the test cases too. For this, I need to add a dependency from the test project to the third project as well. Compile-time this works, but when I do a remote run of my AndroidTestCase, all tests fail. For each test, I get a NoClassDefFoundError, but not for third project classes, but for a class in the Android project itself!

View 4 Replies View Related

Android :: Generated Build File Fails?

Apr 15, 2010

Building our Android app from Ant fails with this error:

[apply]
[apply] UNEXPECTED TOP-LEVEL ERROR:
[apply] java.lang.OutOfMemoryError: Java heap space
[apply] at java.util.HashMap.<init>(HashMap.java:209)
[apply] at java.util.HashSet.<init>(HashSet.java:86)
[apply] at com.android.dx.ssa.Dominators.compress(Dominators.java:96)
[apply] at com.android.dx.ssa.Dominators.eval(Dominators.java:132)
[apply] at com.android.dx.ssa.Dominators.run(Dominators.java:213)
[apply] at com.android.dx.ssa.DomFront.run(DomFront.java:84)
[apply] at com.android.dx.ssa.SsaConverter.placePhiFunctions(SsaConverter.java:265)
[apply] at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:51)
[apply] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:100)
[apply] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:74)
[apply] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:269)
[apply] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)
[apply] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
[apply] at com.android.dx.command.dexer.Main.processClass(Main.java:297)
[apply] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
[apply] at com.android.dx.command.dexer.Main.access$100(Main.java:56)
[apply] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
[apply] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
[apply] at com.android.dx.command.dexer.Main.processOne(Main.java:245)
[apply] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
[apply] at com.android.dx.command.dexer.Main.run(Main.java:139)
[apply] at com.android.dx.command.dexer.Main.main(Main.java:120)
[apply] at com.android.dx.command.Main.main(Main.java:87)

BUILD FAILED

Ive tried giving Ant more memory by setting ANT_OPTS="-Xms256m -Xmx512m". (This build machine has 1Gb RAM). Do I just need more memory or is there anything else I can try?

View 4 Replies View Related

Android :: SetContentView Fails / When Creating New Activity

Jan 19, 2010

My code is calling setContentView(R.layout.someLayoutID); from an activities' onCreate method. The activity is launched with the following: Code...

View 4 Replies View Related

Android :: Traceview And Dmtracedump Fails To Start

Apr 3, 2009

Tried to trace for the first time but got the following exception when I started the "traceview" application with my trace file. mane@Labbe:/tmp$ traceview gldraw.trace Exception in thread "main" java.lang.RuntimeException: Method exit (java/lang/BootClassLoader.getInstance ()Ljava/lang/BootClassLoader;) does not match currentmethod (dalvik/system/VMDebug.startClassPrep () V) at com.android.traceview.ThreadData.exit(ThreadData.java:116) at com.android.traceview.ThreadData.handleCall(ThreadData.java: 78).....

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved