[android-developers] Re: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.DrawerLayout.closeDrawer(int)' on a null object reference

2020-02-23 Thread Adeel Memon
if you find the solution kindly tell me -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To view this discu

[android-developers] Re: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.DrawerLayout.closeDrawer(int)' on a null object reference

2020-02-23 Thread Adeel Memon
On Saturday, July 30, 2016 at 1:50:46 PM UTC+5, Jitender Sharma wrote: > > Hello, > > I am getting this error after I run app and click on one of the tabs in > Navigation Bar. > java.lang.NullPointerException: Attempt to invoke virtual method 'void > android.support.v4.widget.DrawerLayout.close

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2013-01-08 Thread Tim Bocek
Sorry to resurrect this topic, but I am hitting this and none of the above solutions appear to work: -Already running Eclipse 3.7 (installed as part of the android sdk package, so I assume everything is compatable) -No resource filters in place -I don't have anything in my project regarding progu

[android-developers] Re: java.lang.nullpointerexception in ServerSocket.accept()

2012-07-10 Thread Jonathan S
s is null because you are not assign it. ServiceSocket is NULL because you are assigned it in the background threads. You need to rewrite whole thing again. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-12-19 Thread Dema
Hi, removing all the resource filters from my Android project solved the issue. I had put some filters to exclude old directories inside /res folder. I think the issue is due to ADT ResourceManagerBuilder problems in dealing with resource filters. -- You received this message because you ar

[android-developers] Re: (java.lang.NullPointerException at android.widget.ListView.setupChild(ListView.java:1838))I use listview and BaseAdapter

2011-07-18 Thread zatenoi
Thanks for your reply. I'm working like this. New a Handler in Activity's onCreate(),and after all things init,I send msg to Handler on a non-UI thread.When Handler receive a msg,it update the element or scroll the list by call notifyDataSetChanged and setSelectionFromTop in Handler's handleMessa

[android-developers] Re: java.lang.NullPointerException

2011-04-20 Thread Indicator Veritatis
Oh: and when you "copy-pasted java files", what did you do with AndroidManifest.xml? You can't just copy that from the 2.2 project too. You need to set android:minSDKVersion to 8, not 9 for 2.2. That will also give you better warning/error message to find what else you have to change. On Apr 17, 2

[android-developers] Re: java.lang.NullPointerException

2011-04-20 Thread Indicator Veritatis
Null Pointer exception means exactly that. Somehow, a variable was declared, initialized only to null and the referenced. Take a look at the whole stack trace (use logcat for this) and see a) what method threw the exception and b) which method of yours is in the stack. 99% of the time that is where

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-04-15 Thread Ganesh
The problem is not due to Eclipse version but due to the outdate examples on the internet particularly app-for-android You can fix this by adding In the Manifest.xml file and copying the proguard.cfg file from a blank project to the example project. ~gk On Mar 12, 6:41 am, Xavier Ducrohet w

[android-developers] Re: java.lang.NullPointerException

2011-04-13 Thread lbendlin
E/MyVideoAppView( 1829): \0x09at com.johnwei.android. MyVideoApp.MyVideoAppView.surfaceCreated(MyVideoAppView.java:66) Line 66 maybe? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@

Re: [android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-11 Thread Xavier Ducrohet
As we mention, you need to update to Eclipse 3.5. On Fri, Mar 11, 2011 at 4:06 AM, Dato wrote: > hi, > > I have the same issue. I'm using ADT10.0.0, eclipse3.4 on MacOsx > > > -- > !ENTRY org.eclipse.ui 2 0 2011-03-11 19:59:38.453 > !MESSAGE Build problems > !SUBENTRY 1 org.eclipse.core.resou

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-11 Thread Dato
hi, I have the same issue. I'm using ADT10.0.0, eclipse3.4 on MacOsx -- !ENTRY org.eclipse.ui 2 0 2011-03-11 19:59:38.453 !MESSAGE Build problems !SUBENTRY 1 org.eclipse.core.resources 2 75 2011-03-11 19:59:38.453 !MESSAGE Errors during build. !SUBENTRY 2 com.android.ide.eclipse.adt 2 75 201

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-09 Thread Caféïne
For me this error disappeared (Eclipse 3.6.2) once I used in my preferences.xml a xmlns:app="http://schemas.android.com/apk/res/com.myproject.myname"; in the project himself instead of using the preferences.xml from the library using a xmlns:app="http://schemas.android.com/apk/res/com.myproject.myl

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-09 Thread Caféïne
Kind of same problem here. Log using "android-eclipse-108944.zip " provided by Xavier. !ENTRY org.eclipse.core.resources 4 2 2011-03-09 10:22:03.273 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at com.and

Re: [android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-09 Thread rakishgobi nath
http://rakishcan.blogspot.com/search/label/TIPS http://rakishcan.blogspot.com/search/label/TIPS http://rakishcan.blogspot.com/search/label/TIPS http://rakishcan.blogspot.com/search/label/TIPS http://rakishcan.blogspot.com/search/label/TIPS Monday, 7 March 2011 Customize the Windows 7 log-on scr

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-07 Thread Chopcsu
Yeah this happened to me on upgrading to ADT 10, reinstall eclipse,reinstall android sdk and a policy to never update ADT or android SDK anywhere near milestones fixed it fine. On Mar 8, 4:37 pm, Xavier Ducrohet wrote: > ugh, we'll fix this asap. > > Xav > > > > > > > > > > On Mon, Mar 7, 2011 at

Re: [android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-07 Thread Xavier Ducrohet
ugh, we'll fix this asap. Xav On Mon, Mar 7, 2011 at 9:14 PM, Nathan wrote: > Well, then that would be part of the problem, > > I don't see anywhere that that is documented, though. The installation > page still mentions 3.4. > > Nathan > > On Mar 7, 9:06 pm, Tor Norbye wrote: >> ADT 10 require

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-07 Thread Nathan
Well, then that would be part of the problem, I don't see anywhere that that is documented, though. The installation page still mentions 3.4. Nathan On Mar 7, 9:06 pm, Tor Norbye wrote: > ADT 10 requires Eclipse 3.5 or later. > > -- Tor > On Mar 7, 2011 9:01 PM, "Nathan" wrote: > > > > > > > >

Re: [android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-07 Thread Tor Norbye
ADT 10 requires Eclipse 3.5 or later. -- Tor On Mar 7, 2011 9:01 PM, "Nathan" wrote: > I'd like to try it, but there isn't Help > Install New Software... > menu item on my eclipse. It seems to want only repositories, not zips. > This is on Eclipse 3.4 in Windows. I'll try on on a later eclipse wh

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-07 Thread Nathan
I'd like to try it, but there isn't Help > Install New Software... menu item on my eclipse. It seems to want only repositories, not zips. This is on Eclipse 3.4 in Windows. I'll try on on a later eclipse when I can. On Mar 7, 6:05 pm, Xavier Ducrohet wrote: > Hey all, > > I've filed bug #15312 to

Re: [android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-07 Thread Xavier Ducrohet
Hey all, I've filed bug #15312 to track this issue, and I've just attached to it a version of ADT that enable some logging in the method I suspect is not finishing properly. I've also moved the line that isn't called (which is the cause of the NPE later on) earlier in the method, which will mayb

Re: [android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-07 Thread Xavier Ducrohet
Hey all, I'm still not sure how this is happening. I'm adding logs to the builder and I'm going to make this version available shortly to understand what is going on since I can't reproduce it locally. Stay tuned, I'm looking at pushing this somewhere else than the normal update site asap. Xav

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-07 Thread Nathan
I would like this to start being treated as a real problem. I can't even downgrade my ADT. I use revert configuration in ADT and it has no effect. Putting a proguard.cfg in the project directory only worked temporarily. It's broken again. I'm dead in the water for builds. At this rate, I will ne

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-07 Thread Indicator Veritatis
Now that we have four different group members (Ajay, Copscu, Purple Dev, Nathan) reporting the problem, do you still consider it "extremely strange"? How likely are we to get the same problem if we also upgrade to the latest ADT & SDK? On Feb 24, 2:40 pm, Xavier Ducrohet wrote: > This is extreme

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-05 Thread Nathan
This might be a proguard.cfg that has suddenly become mandatory. On Mar 5, 9:09 pm, Nathan wrote: > OK, what's the deal? > > I'm getting this too and I just installed the updates today. > > I can't even seem to revert my Eclipse, either. > > Nathan -- You received this message because you are s

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-05 Thread Nathan
OK, what's the deal? I'm getting this too and I just installed the updates today. I can't even seem to revert my Eclipse, either. Nathan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develop

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-02 Thread Purple Dev
Here is my log: !ENTRY org.eclipse.core.resources 4 2 2011-02-28 08:36:32.111 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.build(P

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-02 Thread Purple Dev
I'm seeing this as well on two separate machines with ADT 10 SDK3.0. The same project in the same state compiles just fine under ADT 8, SDK 2.3.3. Deleting/adding does not resolve the problem. Another project on both systems have no issues at all. Ive deleted everything from the offending projec

Re: [android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-02-25 Thread Xavier Ducrohet
Is that all there is in the log?I'm more interested in an exception that would have happened in PreCompilerBuilder.startupOnInitialize which would explain the NPE in the build method. On Fri, Feb 25, 2011 at 1:39 AM, Ajay wrote: > > !ENTRY org.eclipse.core.resources 4 2 2011-02-25 15:07:29.445 >

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-02-25 Thread Ajay
deleted project... added again into workspace... repeated 3-4 times and issue resolved.. On Feb 25, 2:39 pm, Ajay wrote: > !ENTRY org.eclipse.core.resources 4 2 2011-02-25 15:07:29.445 > !MESSAGE Problems occurred when invoking code from plug-in: > "org.eclipse.core.resources". > !STACK 0 > java.

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-02-25 Thread Ajay
please any updates.. its critical :(( On Feb 25, 2:39 pm, Ajay wrote: > !ENTRY org.eclipse.core.resources 4 2 2011-02-25 15:07:29.445 > !MESSAGE Problems occurred when invoking code from plug-in: > "org.eclipse.core.resources". > !STACK 0 > java.lang.NullPointerException >         at > com.androi

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-02-25 Thread Ajay
!ENTRY org.eclipse.core.resources 4 2 2011-02-25 15:07:29.445 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.build(PreCompilerBuilder

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-02-24 Thread Ajay
facing the same issue.. On Feb 24, 10:52 am, Chopcsu wrote: > Hi All, > > I have just installed ADT 10 with SDK 3.0. Eclipse has been working > ok, but now all of a sudden my project has broken down with eclipse > either complaining there is something wrong with xml files where there > is nothing

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-09-21 Thread Jesta
Alexandre, Your solution works great! I did notice that if I had gotten the NullPointerException for a file, I had to save the edit, then close and reopen the file before things would go back to normal. On Sep 7, 4:16 am, Alexandre wrote: > I used to have the same problem. > > The solution is to

Re: [android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-09-09 Thread Xavier Ducrohet
The newly released ADT 0.9.8 implements a work around to deal with the Eclipse bug. Xav On Wed, Sep 8, 2010 at 9:00 PM, David wrote: > Cycling Eclipse is the solution to using the uncheck Inferred Grammer > solution.   Works like a charm. > > One betterthe solution from Alexandre is the tic

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-09-09 Thread David
Cycling Eclipse is the solution to using the uncheck Inferred Grammer solution. Works like a charm. One betterthe solution from Alexandre is the ticket!! Cheers all New Android Developer, David On Sep 7, 7:15 pm, Nitin Dahyabhai wrote: > On Tue, Sep 7, 2010 at 12:12 AM, Saied wrote: > >

Re: [android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-09-07 Thread Nitin Dahyabhai
On Tue, Sep 7, 2010 at 12:12 AM, Saied wrote: > Hello Nitin, > > just FYI, your suggestion has not changed the errors a bit! > > Wow! > > is there something simpler than hello world we should try that works? > That's curious. Is there a new stack trace in the Error Log? We're a very short while

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-09-07 Thread Alexandre
I used to have the same problem. The solution is to replace the resources tag with the following: http://schemas.android.com/apk/res/android";> On 7 sep, 06:12, Saied wrote: > Hello Nitin, > > just FYI, your suggestion has not changed the errors a bit! > > Wow! > > is there something simpler tha

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-09-07 Thread viktor
try using eclipse 3.5 it is more stable and faster than 3.6, some times 3.6 is freezes for 3-6 sec. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-09-06 Thread Saied
Hello Nitin, just FYI, your suggestion has not changed the errors a bit! Wow! is there something simpler than hello world we should try that works? On Jul 9, 11:10 am, Nitin Dahyabhai wrote: > On Jul 2, 5:16 pm, Xavier Ducrohet wrote: > > > Hello all, > > > We've tracked down this issue to a

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-08-12 Thread Omkar
Thanks, this helps On Jul 9, 11:10 pm, Nitin Dahyabhai wrote: > On Jul 2, 5:16 pm, Xavier Ducrohet wrote: > > > Hello all, > > > We've tracked down this issue to a bug in the Eclipse Web tools > > plug-ins which provide the XML models and editors that our plug-ins > > use. > > > For reference, E

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-07-23 Thread Josh
Yes, thanks a lot! That helped tremendously! On Jul 9, 11:10 am, Nitin Dahyabhai wrote: > On Jul 2, 5:16 pm, Xavier Ducrohet wrote: > > > Hello all, > > > We've tracked down this issue to a bug in the Eclipse Web tools > > plug-ins which provide the XML models and editors that our plug-ins > > u

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-07-12 Thread Andreas
Thank you. That helped On 9 Juli, 20:10, Nitin Dahyabhai wrote: > On Jul 2, 5:16 pm, Xavier Ducrohet wrote: > > > Hello all, > > > We've tracked down this issue to a bug in the Eclipse Web tools > > plug-ins which provide the XML models and editors that our plug-ins > > use. > > > For reference,

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-07-09 Thread Nitin Dahyabhai
On Jul 2, 5:16 pm, Xavier Ducrohet wrote: > Hello all, > > We've tracked down this issue to a bug in the Eclipse Web tools > plug-ins which provide the XML models and editors that our plug-ins > use. > > For reference, Eclipse already has a bug filed for > this:https://bugs.eclipse.org/bugs/show_

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-07-02 Thread Bob Denny
Same exact problem here. This is so basic! I'm just trying to learn Android dev, using the Hello World example. I thought I had a bad install, so I started from scratch. Same problem again. This appears to be the Android Development Kit. Both the Android Resource Editor and the Android XML Resource

Re: [android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-07-02 Thread Xavier Ducrohet
Hello all, We've tracked down this issue to a bug in the Eclipse Web tools plug-ins which provide the XML models and editors that our plug-ins use. For reference, Eclipse already has a bug filed for this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=318108 We will implement a work around as soo

Re: [android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-07-01 Thread Kwan Cheng
It seems Helios breaks the resource editors, I did not have this issue when using Galileo. I had to resort using the XML editor to work around the null errors. Hopefully the android tool set will have this issue worked out. On Thu, Jul 1, 2010 at 12:46 AM, Bob Kerns wrote: > There may not be;

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-06-30 Thread piyu
Hi, In string.xml change only values of string ,If you want to change "name" of string then you must change in your project where you are using that name. like R.string.example. On Jun 30, 8:25 pm, Chappers wrote: > Hello all, > Firstly my appoogies in advance, I know this is a very newbie >

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-06-30 Thread Bob Kerns
There may not be; he may have the wrong editor. Even if he has the right editor, a workaround may be to use a different one. See my reply here for more detailed suggestions. http://groups.google.com/group/android-developers/browse_frm/thread/c8be17f1927932f0 On Jun 30, 6:31 pm, Frank Weiss wrot

[android-developers] Re: java.lang.NullPointerException

2009-07-22 Thread Richard Schilling
You don't have to do anything special to keep the service in the background when you exit your activity. When you exit your activity, your service is still running in the background until you call stopService, the phone sleeps (which pauses your service), or the phone removes the service. So, ju