[android-developers] Null Pointer Exception In Method Boolean.Org.Json.Jsonobject Do in background async task

2016-06-22 Thread abeer . shlby
I designed app to make order for pizza food restaurant I show userid,menu id ,address,longtiude,latitude then press on button make order Error show after I press button and found in async task doin background It give me fatal exception error An error occurred while executing doInBackground() and

Re: [android-developers] Null Pointer Exception

2012-01-01 Thread Mukesh Srivastav
OMG. Chander you need to read and understand the basics of Android ! There is a way to call or navigate from one activity to other is using Intent. secondly, not sure,why are you using AbsoulteLayout ? Please start reading the Android documentation, to start with below is the link for your refer

[android-developers] Null Pointer Exception

2012-01-01 Thread chander
Hi, Happy new year to all.. I am writing a code for simple navigation between different pages in android application. I created a Button and then on Click event i am setting my ContentView. i have written same code for 2 buttons working fine. but when i am writing click event for 3rd button an

[android-developers] Null pointer exception in sending SMS..

2011-11-28 Thread Ramesh Emandi
Hi, I have just started developing apps in android and am having problem with my application, where i am taking text from a textview into a string and then sending it as SMS. It worked only twice but later on, i am getting null pointer exception.. pls check my code below..: Message sending Method

[android-developers] null pointer exception

2011-07-05 Thread vani reddy
Hi all, I am getting null pointer exception in the second line below . connectivity = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); boolean b = (connectivity.getActiveNetworkInfo() != null && connectivity.getActiveNetworkInfo().isAvailable() &&

Re: [android-developers] Null Pointer Exception on accessing value of EditText

2011-05-20 Thread gaurav gupta
First set any value in edittext then u can get value . 1. EditText IPInput = (EditText) findViewById(R.id.ip); iPinput.setText("Value inserted successfully"); 2. IPInput.getText().toString(); System.out.println(ip); 3. System.out.println(IPInput.

Re: [android-developers] Null Pointer Exception on accessing value of EditText

2011-05-20 Thread TreKing
On Thu, May 19, 2011 at 4:16 PM, Ankur Kumar wrote: > I am getting java.lang.NullPointerException at step 3 in my code. Have not > been able to figure this out. > 1 - Use your debugger. 2 - Figure out what is null. 3 - Make it not null. -

[android-developers] Null Pointer Exception on accessing value of EditText

2011-05-19 Thread Ankur Kumar
Hello Developers, Please help me with this problem. I am getting*java.lang.NullPointerException * at step 3 in my code. Have not been able to figure this out. The value I am entering in the EditText is not empty. 1. EditText IPInput = (EditText) findViewById(R.id.ip);

[android-developers] Null Pointer Exception on accessing value of EditText

2011-05-19 Thread Ankur Kumar
Hello Developers, Please help me with this problem. I am getting java.lang.NullPointerException at step 3 in my code. Have not been able to figure this out. The value I am entering in the EditText is not empty. 1. EditText IPInput = (EditText) findViewById(R.id.ip);

Re: [android-developers] Null Pointer Exception

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 9:44 AM, Kumar Bibek wrote: > Have you declared your second activity in manifest? Better yet, have you used your debugger to figure out what is NULL? - TreKing

Re: [android-developers] Null Pointer Exception

2011-01-14 Thread Kumar Bibek
Have you declared your second activity in manifest? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 7, 2011 at 4:26 PM, sharad kumar wrote: > Hi, > I'm facing a problem with the Intent Null Pointer Exception > firstly i have Started first activity then second activ

[android-developers] Null Pointer Exception

2011-01-14 Thread sharad kumar
Hi, I'm facing a problem with the Intent Null Pointer Exception firstly i have Started first activity then second activity when i want to come back to the second activity it's give the Null Pointer Exception .. My First activity is Intent screenIntent = new Intent(Main.this, TabHome.class); s

Re: [android-developers] Null Pointer exception in Location Manager

2010-09-28 Thread Kostya Vasilyev
Your code doesn't seem to assign any values to redbtn and greenbtn. Then you call methods on these objects - perhaps they are still Null at that point? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.09.2010 0:34 пользователь "Gold" написал: Hi..All, I need to disply

Re: [android-developers] Null Pointer exception in Location Manager

2010-09-28 Thread TreKing
On Tue, Sep 28, 2010 at 3:33 PM, Gold wrote: > I tried but it will show Null pointer exception. Where? What's the stack trace? - TreKing - Chicag

[android-developers] Null Pointer exception in Location Manager

2010-09-28 Thread Gold
Hi..All, I need to disply current Position latitude and logintude .. I tried but it will show Null pointer exception.. here with i attached my code... please help me to solve this problem.. I run this application on android emulator import android.app.Activity; import android

Re: [android-developers] Null Pointer Exception with getIntent().Extras....

2010-01-09 Thread Mark Murphy
Albert wrote: > Hi, > > Can someone see what I am doing wrong here, when I try to get the > extras I sent on my intent it always returns null > > Intent activityIntent = new Intent(context, TopImage.class); > activityIntent.putStringArrayListExtra("com.mobile.dev.LIST", > mStringList); //mString

[android-developers] Null Pointer Exception with getIntent().Extras....

2010-01-09 Thread Albert
Hi, Can someone see what I am doing wrong here, when I try to get the extras I sent on my intent it always returns null Intent activityIntent = new Intent(context, TopImage.class); activityIntent.putStringArrayListExtra("com.mobile.dev.LIST", mStringList); //mStringList is not null for sure

[android-developers] Null pointer exception

2009-12-30 Thread JasonMP
Anyone know what would cause this error? 12-30 10:26:50.858: ERROR/AndroidRuntime(921): Uncaught handler: thread main exiting due to uncaught exception 12-30 10:26:50.928: ERROR/AndroidRuntime(921): java.lang.RuntimeException: Unable to stop activity {com.mallet.dtool/ com.mallet.dtool.Sheet}: ja

[android-developers] Null pointer exception Calling getContentResolver().query for video file URI

2009-10-29 Thread Pablo Szyrko
Sometimes (this happens randomly) my application crashes when it tries to perform a query passing as parameter a video file URI. I have found a similar issue (http://groups.google.com/group/android- developers/msg/0715a5f641ef0757) but it doesn't have any reply. Thanks, Pablo Following is the sta

[android-developers] Null Pointer Exception with Gestures

2009-10-15 Thread Chander Pechetty
I am getting the following NPE with Gestures (20 % of the time). Anyone encountering the same issue ? I am using the code similar to GestureActivityList sample provided at http://android-developers.blogspot.com/2009/10/gestures-on-android-16.html E/AndroidRuntime( 919): java.lang.NullPointerEx

[android-developers] Null pointer exception while receiving at Broadcast receiver

2009-09-03 Thread Asif k
Hi all, I am receiving Text messages from another application sent through broadcast intent. I am displaying these messages to my application's GUI. In my application I had defined in my manifest.xml --

[android-developers] Null Pointer Exception

2009-08-30 Thread Sasi Kumar
when i'm trying to call another class method. It is showing null pointer exception. Plz give some suggestion to get back from this --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] Null pointer exception while using setOnClickListener

2009-04-07 Thread e-satis
Hi, My java code look like this : // right_arrow button ImageButton arrow_button = (ImageButton)findViewById (R.id.arrow); arrow_button.setOnClickListener(new OnClickListener() { public void onClick(View v) { ((View)v.getParent().getParent()).

[android-developers] Null pointer exception in MapActivity

2009-03-13 Thread olko
I am using a procedure described here: http://developer.android.com/guide/tutorials/views/hello-mapview.html http://androidguys.com/?p=1413 http://groups.google.com/group/android-developers/browse_thread/thread/fe23998c189ebcbd/38bab7cdd70598f7?lnk=gst&q=getOverlays#38bab7cdd70598f7 to create am

[android-developers] Null Pointer Exception while creating table

2008-09-29 Thread Pratik Goswami
hi, I have implement this example. but i got an error. I have write the code just for create database, create table, insert values in it. When I run application it displays nothing. But when i tried to open my database from command prompt Like: ls data/data/MyPackageNm

[android-developers] Null Pointer Exception

2008-06-21 Thread redhatab
Hi, Am a total beginner and I was trying out to extrapolate on the Hello Android code, but I've sort of hit a road block with a null pointer exception. The code is as below: public class HelloAndroid extends Activity { @Override public void onCreate(Bundle icicle)

[android-developers] Null pointer Exception while accessing Textfile

2008-05-10 Thread Analdin Judy
Hi, Can anybody please tell me the reason for "null pointer exception" while reading a textfile I use the below code to read the textfile in raw. activity.getResources().openRawResource(R.raw.*judy*); -- Thanks & Regards Analdin Judy.M InfoWave Knowledgeware. Beyond Multimedi

[android-developers] Null Pointer Exception on simple People query

2008-05-06 Thread kingkung
Hey all, Not sure what I"m doing wrong... I have a dbHelper which makes a query for all of the rows in People. When I do this query in my first activity, initializing dbHelper with that activity, I get all the people as I am supposed to. However, when I do the query in my second activity, with

[android-developers] Null pointer exception when finding views by Id

2008-03-25 Thread kaiping
Hi, For one of my Activities All the findViewById() function returns is null. I am really astonished by this behaviour because this same function works fine in other parts of my application. I have posted the code below. If anybody has any ideas that would be great thanks, Josh package com.ji