Android : NullPointerException.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected(ActivityThread.java:1012) - Trying To Connect To A Service
Jul 10, 2009
I am getting a NullPointerException at android.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected(ActivityThread.java:1012). My application is not even in the stack trace, so I have no idea what is going on. I am trying to connect to a service when it happens.
View 1 Replies
May 17, 2010
I am working on the task to search a location which stored in DB. After that i have to drop a pin on the corresponding location. I made a modification on Quick Search Box(QSB) to search the DB which is in my app. for that QSB performance i followed the Search Dictionary example in API Demos. when i click the search suggestion it reloads the current activity and drop the pin on it. when click the back button it shows the below exception in the Logcat. why it happens.
My Log CAT Value:
CODE:..............
What is the Activity Thread Exception in Android? Please Help.
View 1 Replies
View Related
Jul 23, 2010
I find some examples in the web which uses android.app.ActivityThread but I can't find it in my android sdk installation(2.1 and 2.2) neither on the android sdk webpage
Was the ActivityThread removed from current sdk? If so, is there a alternative?
View 1 Replies
View Related
Dec 16, 2009
I'm trying to locate a memory leak in my app (it's client for a mediacenter). So I start it up, go to the screen that lists all movies, go back to my home activity, trigger the GC a few times manually via DDMS, dump the memory heap, pull it, convert it and load it into MIT in Eclipse.
Now the movie list screen is pretty heavy, around 800k of movie objects, which should be freed when I go back to the home screen. However, it stays allocated, with the GC root as a local variable in the main thread at ActivityThread.ContextCleanupInfo (see attached screenshot).
I've tried searching but there is no documentation on this class, not even in the source code. Is there any way to avoid this kind of behavior? Am I doing something wrong or is the problem in Android? My app is open source and can be checked out here[1]. http://code.google.com/p/android-xbmcremote/
View 4 Replies
View Related
Jun 9, 2010
I'm getting an ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord,Intent) error each time I boot up my program in the debugger. The program won't even start up! Any help would be greatly appreciated! I'm very new to this environment. Let me know if you need anymore information/code to help me out.
Here is my logcat:
CODE:......................
View 1 Replies
View Related
Jun 23, 2010
I am trying to save the date of file parsing, so that when next time user, opens the application, the date can be checked against the last parsing date. I am using shared preference to save the data and retrieve it, but getting error. here is the code:
SharedPreferences settings = getPreferences(0);
String today = new Date(System.currentTimeMillis()).toString();
SharedPreferences.Editor edit = settings.edit();
System.out.println("******** Today : " + today);
edit.putString("lastdate", today);
String fetch = settings.getString("lastdate", "0");
System.out.println("******** Fetch : " + fetch);
txtTest.setText(fetch);
but I am getting null pointer error. am I missing something?
View 2 Replies
View Related
Jun 30, 2010
I have looked and looked, and cant seem to get to the bottom of this.
I am getting the error: "java.lang.NullPointerException"
whenever I try to change anything at all within "strings.xml" when using eclipse, does anyone know of a reason behind this? I havnt changed anything else in the project at all, I'm just going straight into strings to try editting a few things.
View 18 Replies
View Related
Jun 28, 2010
it has taken more than i expected to get the dev environment up and running - mostly a PATH issue which was solved using: http://groups.google.com/group/android-developers/browse_thread/threa...
My emulator now works (and i can run it and get the default android screen) however when i try to run the hello world sample code i get this error message:
An internal error occurred during: "Launching HelloAndroid". java.lang.NullPointerException
View 2 Replies
View Related
Oct 20, 2010
I'm getting this crazy error on multiple projects, even when I revert back to prior versions that compiled just fine. Unknown Error - java.lang.NullPointerException Android Packaging Problem Path is blank Location is Unknown. 1 - Project -> Clean -> All 2 - Deleting .metadata folder 3 - reimporting projects into the eclipse 4 - reverting my projects back to prior working versions using git. I just can't get anything to compile now, and I've searched for solutions here and on eclipse forums.
View 3 Replies
View Related
Jul 22, 2009
I have one Activity, that starts one Service and my service will lunch one Activity, i wanna to stop the Activity which one started my my Service after few seconds. Is there any way to achieve. Has anyone experienced this type of scenario.
View 2 Replies
View Related
Oct 6, 2010
I have a Service Receiver and a phone state listener class to determine the status of the phone. When the state is "CALL_STATE_RINGING", I call upon the method stopAllPlayback() in my main Activity. It is at this point that users report "Forced Close" messages. Can you help me determine where the problem might be? I'm new to Java so I'm not 100% sure how to troubleshoot based on a stack trace.
Here's the stack trace:...............
View 1 Replies
View Related
Jul 18, 2010
Im trying to display this listview, but I keep getting a: 07-17 21:14:22.233: ERROR/AndroidRuntime(349): java.lang.NullPointerException
I think I know what the problem is but I dont know how to fix it.
I have a String array which I will be using to be displayed in my list
CODE:.....
Dont worry the parser works great. the only problem I see with it is that the parser doesnt know how many strings the website will have so I am setting the String array in the parser to be very big: String substr[] = new String[250];
But I know that mostly there are only like 11 to 13 values that I will be storing in that array, the problem I think is when i do this:
CODE:..............
Since the String array is set to have up to 250 values in it and I only actually store say 12 then there are a null entries so when I run the code it shows me my list view, but when I get to the bottom of the view it force closes and the log tells me that there was nullpointer. I can tell how many entries I collected while I am parsing, but how do I tell my listview to only show say 12 items in the list so there wont be any null entries. or is there any other solution for my problem.
I tried doing what you said, but now I am getting a:
CODE:......
This is what I did:
CODE:.................
View 2 Replies
View Related
Sep 9, 2010
i am getting this error java.lang.NullPointerException at android.content.ContextWrapper.getPackageManager when am trying to get list of all installed applications on the device. Well let me explain what my program is doing. I have a server that starts when my application is started, and the client pings the server and asks to get a list of installed applications. The Server then asks the getPackageManager() and gets all the installed applications. But the getPackageManager returns the nullpointerexception. The Server is written in a java environment and is started from my android application. Could someone please tell me what am missing and why i am getting this error? hanks alot!!!Please find the code...
View 1 Replies
View Related
Sep 25, 2010
I am trying to connect an Android application with a secured HTTPS remote service that is hosted in Google App Engine for Java (https://applicationname.appspot.com), using the HTTPClient 4 implementation that comes with Android. The certificate is signed and valid form *.appspot.com.
I am using Android 2.1 in a real device (HTC Hero), and I get the following error: SSL23_GET_SERVER_HELLO:unknown protocol.
This is part of my code:
CODE:............................
This is the complete stack trace:
CODE:.........................
View 1 Replies
View Related
Dec 9, 2013
Im trying to connect to a WCF service hosted on one of my websites, this WCF Service returns "Hello World" nothing exciting i've been followinf this Calling a RESTful web service from an Android application | vrsbrazil
Below is my Request task
[HIGH]
package Methods;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import org.apache.http.HttpResponse;
[Code]....
View 13 Replies
View Related
Dec 22, 2009
I am trying to connect to a .NET WCF service in Android using kSOAP2 (v 2.1.2), but I keep getting a fatal exception whenever I try to make the service call. I'm having a bit of difficulty tracking down the error and can't seem to figure out why it's happening. The code....
View 3 Replies
View Related
Jun 18, 2010
In Android, if I want to do some background work, what is the difference between
Creating a Service to do the work, and having the Activity start the Service VS. Creating a standard java class to do the work, and having the Activity create an object of the class and invoke methods, to do the work in separate thread.
View 3 Replies
View Related
Mar 11, 2010
I'm trying to write a basic camera app. The problem that I am facing is that it works fine in emulator but on the phone (Nexus one) it fails.
The point of failure is the very first call, i.e. Camera.open(). It fails on the phone saying "Failed to connect to camera service". Any idea what could be wrong? (BTW, I am calling this from my activity's onCreate funtion itself, could that be an issue?)
For the information, I do have the necessary Camera permissions specified in my manifest xml file.
View 2 Replies
View Related
Nov 16, 2009
I apologize in advance for this long post, but it's necessary to show what is happening.
I've been working on an app that works on the 1.6 emulator, but bombs on my G1.
Here is the Photographer activity:
CODE:..........
And here is where this activity gets called from:
CODE:............
Having trouble pasting the relevant portions of AndroidManifest.xml, but I have permissions for Camera:
CODE:..........
Here's the Photographer part:
CODE:..............
Also set for testing on G1:
android:debuggable="true"
and working off of 1.6:
<uses-sdk android:minSdkVersion="4" />
All this works on a 1.6 emulator, but when I run this on the G1, LogCat shows:
CODE:.............
And /data/anr/traces.txt shows:
CODE:................
It sounds like the problem is a timeout issue, but I am at a loss as to where I should be looking ....
View 6 Replies
View Related
Jul 30, 2010
I had my camera set to this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); and it works fine but if I change it to PORTRAIT instead of LANDSCAPE then it crashes with the following error...
CODE:............
The method it crashes in is..
CODE:.........
It crashes at mCamera = Camera.open();
My Manifest file has <uses-permission android:name="android.permission.CAMERA"></uses-permission>
How do I fix this so I can view my app in Portrait?
View 3 Replies
View Related
Mar 18, 2009
At the moment i have the following problem. I try to establish a connect to a SOAP-service. Therefore i need basicauth via http. I use ksoap2 and HttpTransportBasicAuth. The problem is, I do not know how i can start a call when i use HttpTransportBasicAuth because the function "call" is not available.
View 2 Replies
View Related
Dec 18, 2009
I am writing an android program and I need to connect to the Drupal service to fretch the data or submit data. How can I do that?
View 2 Replies
View Related
Aug 31, 2010
I am running Fresh 3.1.0.2, Netarchy 2.6.32.15, Radio version 1.39.00.05.31 and PRI 1.40_003.When I try to update my profile and prl i get error code 1012.When i flash Stock Odex 2.2 i am able to update no problem, hence the updated PRI version.Does anyone have the same issue, or know of a fix?
View 2 Replies
View Related
Oct 27, 2010
i am trying to send a json string from my android client to my .net Rest service...
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost("http://myURL");
JSONObject json = new JSONObject();
json.put("name", "i am sample");
StringEntity str = new StringEntity(json.toString());
str.setContentType("application/json; charset=utf-8");
str.setContentEncoding(new BasicHeader(HTTP.CONTENT_TYPE,"application/json; charset=utf-8"));
post.setEntity(str);
HttpResponse response = client.execute(post);
Response is bad request. am i sending the json object as string? is this code correct?
View 2 Replies
View Related
Jun 22, 2010
Hi, custom classes which are part of a framework, so nothing graphical. One of those (singleton) classes is a Logging class which send logs to my server. I noticed that even though I can call the classes methods in my service it actually won't be logging anything... In my specific example it's osmething like : Logger.getInstance().log("Whatever I want to Log"); Obviously the getInstance is a static method so it can be accessed from anywhere within my project right away.. I was wondering though why this method for example isn't getting called ? Also how do I debug a Service ? Btw I am using of IPC from one of my Activities which gets bound to the service and can start/stop the music for example...
View 9 Replies
View Related
Jun 2, 2010
My web service should be returning an integer, but every time i run the code i get the NullPointerException error. i think my url string may be the problem, but i've tried using my ip with no luck. Code...
View 1 Replies
View Related
Sep 29, 2013
I'm developing an automatic vulnerability scanner/exploiter for android. I'm adding the cool feature of using the metasploit framework from our android phones.
I can start the MsfRpcd ( the metasploit daemon ) from a su shell an make it bind to the 127.0.0.1 address.
I can connect to the server using busybox netcat ( no Java though here ).
I can't connect to 127.0.0.1 from the android app! i got ECONNREFUSED.
After a bit of google i understood that JavaVM have a separate network and it filter out my connection to localhost/127.0.0.1.
how can i connect to a service bind to 127.0.0.1 on my phone from an android app?
I gave a quick look at iptables -L output, maybe i can make some hack there, but probably i will break the JavaVM network.
Binding on wifi ip is not an answer.
View 1 Replies
View Related
Apr 9, 2010
I just got my Hero two days ago. I was told to make sure there were to firmware or PRL updates. The Firmware said it was up to date. I tried the PRL update this morning and it said it could not be done now to try later. If problem persists contact Sprint. Error code 1012. I am not sure what PRL even is and does this sound like a problem on Sprint's end or my phone? Sorry for the dumb question, I am new to all this technology.
View 10 Replies
View Related
Sep 22, 2010
This error comes up when trying typo update prl...also I'm unable to update most current ota with my unrevoked 3.2...
View 1 Replies
View Related
Jun 4, 2010
I am new too sprint today, my 3G symbol is on but my speeds are super slow (129KBs up 80down). Coming from verizon where speeds are 10 times faster. Does the symbol mean I am in 3G area like it does on other phones or do they not have a 1x symbol. Also keep getting error code 1012 when I update device config. Same with the update prl. I cant pay for 4g when I cant even get 2G.
View 42 Replies
View Related