[android-developers] NullPointerException when building a Notification: Attempt to invoke interface method 'java.util.List android.os.IUserManager.getProfiles(int, boolean)'

2016-12-09 Thread Komal Kashiramka
This happens very infrequently when building notification but it does happen. What's the best way to resolve this? -- 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

Re: [android-developers] NullPointerException in SharedPreferences Android

2012-12-10 Thread Alaeddine MELLITI
As a solution for your problem you can pass application context for the activity that will instantiate your class session as a constroctor argument, and then you can affect the context of your class to the context passed -- You received this message because you are subscribed to the Google

Re: [android-developers] NullPointerException in SharedPreferences Android

2012-12-09 Thread laxman k
thank you kris On Sat, Dec 8, 2012 at 8:35 PM, Kristopher Micinski krismicin...@gmail.comwrote: why should Context be non null? You don't get a context for free. You have to inherit from some object which has a context Kris On Sat, Dec 8, 2012 at 9:39 AM, laxman k

[android-developers] NullPointerException in SharedPreferences Android

2012-12-08 Thread laxman k
if want full code.see in attachments https://lh4.googleusercontent.com/-AdDdpB0vae4/UMMfnnPeOjI/APQ/LxQ1wlyfxb8/s1600/Capture.JPG -- 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] NullPointerException in SharedPreferences Android

2012-12-08 Thread laxman k
https://lh6.googleusercontent.com/-WAHssBbqNq4/UMNRDm7U4kI/APg/3uShQ1iY0kY/s1600/Capture.JPG -- 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

Re: [android-developers] NullPointerException in SharedPreferences Android

2012-12-08 Thread Kristopher Micinski
why should Context be non null? You don't get a context for free. You have to inherit from some object which has a context Kris On Sat, Dec 8, 2012 at 9:39 AM, laxman k laxman.k1...@gmail.com wrote:

[android-developers] NullPointerException from Billing API

2012-11-20 Thread Build Account
As far as you know, The ERROR from Billing API make below error very FREQUENTLY - java.lang.RuntimeException: Unable to start service com..yyy.BillingService@41b15648 with Intent { act=com.android.vending.billing.RESPONSE_CODE(or STATUS_CHANGE thing)

[android-developers] NullPointerException ... arrrggghhh ... newbie LOST!

2012-08-27 Thread KinnMirr
When I run below activity, I get an exception. I've wrapped the exception in an AlertDialog. Here's what the dialog shows. * null null null java.lang.NullPointerException * Where do I even START looking for a problem? I've commented-out everything I can think of and the

Re: [android-developers] NullPointerException ... arrrggghhh ... newbie LOST!

2012-08-27 Thread Fabien R
On 25/08/2012 21:45, KinnMirr wrote: When I run below activity, I get an exception. I've wrapped the exception in an AlertDialog. Here's what the dialog shows. * null null null java.lang.NullPointerException * Where do I even START looking for a problem? You may

[android-developers] NullPointerException launching Android application

2012-08-19 Thread emerald
I tried to build my first application today on eclipse. When I tried to run it, it writes An internal error occurred during: Launching My First App. java.lang.NullPointerException. any solution? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] NullPointerException

2012-08-02 Thread krishnakumar vpillai
I have an xml file in asset folder, i am trying to parse this file by using sax parser ,but an exception found...(NullPointerException, / or could not read the file) AssetManager manager = getAssets(); InputStream is = manager.open(City.xml); // xmlR.parse(new

Re: [android-developers] NullPointerException

2012-08-02 Thread Justin Anderson
Please post your logcat output for the error... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jul 31, 2012 at 1:13 AM, krishnakumar vpillai kkumar@gmail.comwrote: I have an xml file in asset folder, i am trying to parse this file by using

[android-developers] NullPointerException in onResume caused by MapActivity?

2012-06-28 Thread Andrea Costantini
I'm getting this error only the first time i run my app. Why? Any clue? Here is my code: I'm getting user's facebook name and pic in method init() I start a service when a toogle botton is enabled public void onCreate(Bundle savedInstanceState) { Log.i(TAG, [ACTIVITY] onCreate);

Re: [android-developers] NullPointerException in onResume caused by MapActivity?

2012-06-28 Thread TreKing
On Wed, Jun 27, 2012 at 10:42 AM, Andrea Costantini costan...@gmail.comwrote: I'm getting this error only the first time i run my app. Why? Any clue? Here is my code: Comment out as much as you can until you don't crash. Then uncomment little by little until you figure out what changes causes

[android-developers] NullPointerException when using EasyTracker for analytics

2012-06-19 Thread Efi Merdler-Kravitz
Hi Guys, Once in a while an exception is thrown without a real reason from the EasyTracker code when posting events: ava.lang.NullPointerException at com.google.android.apps.analytics.GoogleAnalyticsTracker.createEvent(Unknown Source) at

Re: [android-developers] NullPointerException android.graphics.Bitmap.createBitmap(Bitmap.java:468)

2012-05-15 Thread naseem Rafique
Try following code. if (b1 == null) { return null; } Paint p = new Paint(); p.setAntiAlias(true); p.setAlpha(150); byte[] chunk = b1.getNinePatchChunk(); Bitmap b2 =

[android-developers] NullPointerException android.graphics.Bitmap.createBitmap(Bitmap.java:468)

2012-05-14 Thread viktor
Please help me with exception. I have single resources folder. /res/drawable I create a custom button from one of the resource with some color effect. This works for ldpi, hdpi, xdpi devices, but when I run an app on the mdpi device it crashes. My code: Bitmap b1 =

[android-developers] NullPointerException on setOnClickListener

2012-03-24 Thread Vitor Pacheco
My code is returning this error and do not know how to solve it. E/AndroidRuntime(10863): java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.vitorpacheco.B2SShareFeedReader/br.com.vitorpacheco.B2SShareFeedReader.B2SShareFeedReader}: java.lang.NullPointerException If I

Re: [android-developers] NullPointerException on setOnClickListener

2012-03-24 Thread Mark Murphy
On Sat, Mar 24, 2012 at 12:33 PM, Vitor Pacheco vitorpc...@gmail.com wrote: My code is returning this error and do not know how to solve it. E/AndroidRuntime(10863): java.lang.RuntimeException: Unable to start activity

[android-developers] NullPointerException error

2012-02-03 Thread geo
Hello,i am getting error: Caused by: java.lang.NullPointerException E/AndroidRuntime(329): at ...LineGraph.getIntent(LineGraph.java:109) E/AndroidRuntime(329): at LineGraph.onCreate(LineGraph.java:80) E/AndroidRuntime(329): at

Re: [android-developers] NullPointerException error

2012-02-03 Thread John-Marc Desmarais
On Tue, Jan 31, 2012 at 6:37 AM, geo geoandr...@gmail.com wrote: Hello,i am getting error: Caused by: java.lang.NullPointerException E/AndroidRuntime(329):  at ...LineGraph.getIntent(LineGraph.java:109) E/AndroidRuntime(329):  at LineGraph.onCreate(LineGraph.java:80)

[android-developers] NullPointerException at MyService.onStartCommand ?

2011-12-15 Thread Terry
Occationally users report a NullPointerException Error at MyService.onStartCommand() for some of my apps. I never see this error when I try to debug the apps, and I wonder why this happens. I have studied the code both for the methods onStartCommand() and onCreate() for the services in question,

Re: [android-developers] NullPointerException at MyService.onStartCommand ?

2011-12-15 Thread Kostya Vasilyev
http://developer.android.com/reference/android/app/Service.html#onStartCommand(android.content.Intent, int, int) http://developer.android.com/reference/android/app/Service.html#onStartCommand%28android.content.Intent,%20int,%20int%29 intent The Intent supplied to|startService(Intent)

[android-developers] NullPointerException in WebView [onWindowFocusChanged WebView.java:4177]

2011-10-06 Thread Mark Wyszomierski
Hi, I'm seeing a bug in webview, same as in this thread: https://groups.google.com/group/android-developers/browse_thread/thread/92d6f063682d2ca4/2c56e6e85c51e507 I've found that someone has posted a workaround, wondering if anyone has tried it?:

[android-developers] NullPointerException when trying to write a log into the SDcard

2011-09-17 Thread Pedro Teixeira
Hello there, hope you can help me somehow. I've got this class example which used to work just fine. Basiclly it just writes to the sd card a log file with some of my device information. public class LogToSD { static PrintWriter outFile = null; private static void

Re: [android-developers] NullPointerException when trying to write a log into the SDcard

2011-09-17 Thread androidhub trainer
Hi Pedro, Could you please check if the currentlocation is not NULL. If this is null you will see a null pointer exception when you are trying to get latitude and longitude out of it. Thanks On Sat, Sep 17, 2011 at 8:30 PM, Pedro Teixeira pedroteixeir...@gmail.comwrote: Hello there, hope you

[android-developers] NullPointerException in WindowManagerImpl on Android OS 3.2

2011-09-05 Thread Davis
I got an null pointer exception on Android 3.2 emulator on a simple Android project created by Wizerd with a service in separated process, when I switch between Stretch to fill screen to Zoom to fill screen. This crash will *not* happen if the service is put into the same process with main

[android-developers] NullPointerException on displaying ImageView of a bitmap

2011-08-25 Thread Abhi
Hi I have the following piece of code which is resulting in a NullPointerException and I am not able to understand why. I am able to get the correct size of the bitmap in the Log statement below before displaying the image, so up to that point everything is good. //result is a byte array which

[android-developers] NullPointerException when checking for orientation

2011-07-07 Thread Kim
I am using the recommended method to check orientation when using frames in 3.0 or higher: if(((ViewByRoom.controls CAN_DISPLAY_QUEUE) == CAN_DISPLAY_QUEUE) getActivity() .findViewById(R.id.queueframe)==null) { but sometimes I get a nullpointer exception on the line with

[android-developers] NullpointerException using put method on a LinkedHashMap

2011-06-17 Thread fr4gus
I'm using a LinkedHashMap as cache. I've overridden removeEldestEntry in order to force this cache to have a fixed size. Older values will be removed. This is how my map is initialized: sBackgroundBitmapCache = new LinkedHashMapString, Bitmap(backgroundCacheSize) { private

Re: [android-developers] NullpointerException using put method on a LinkedHashMap

2011-06-17 Thread Justin Anderson
* java.lang.NullPointerException at java.util.LinkedHashMap.postRemove(LinkedHashMap.java:291) at java.util.HashMap.remove(HashMap.java:637) at java.util.LinkedHashMap.addNewEntry(LinkedHashMap.java:186) at java.util.HashMap.put(HashMap.java:411) * Look for a

[android-developers] NullPointerException in java.io.File.fixSlashes?

2011-06-05 Thread Derek
Hi all, We get crash reports with the following error: java.lang.NullPointerException at java.io.File.fixSlashes(File.java:234) It appears on File file = new File(path/subfolder); on some devices only. We cannot reproduce it. Where could this problem from from? Cheers. -- You received this

Re: [android-developers] NullPointerException in java.io.File.fixSlashes?

2011-06-05 Thread Mark Murphy
Well, line 234 of File.java is not in the fixSlashes() method in the latest stuff in the repo, based on what Google Code Search is telling me. What are the models of devices that are giving you this problem? On Sun, Jun 5, 2011 at 10:21 AM, Derek cram.de...@gmail.com wrote: Hi all, We get

Re: [android-developers] NullPointerException in java.io.File.fixSlashes?

2011-06-05 Thread Kostya Vasilyev
I've seen this crash in development, caused by new File(null). Perhaps you could check how your code comes up with the path fed into the constructor? -- Kostya 2011/6/5 Mark Murphy mmur...@commonsware.com Well, line 234 of File.java is not in the fixSlashes() method in the latest stuff in the

[android-developers] NullPointerException related to AutoCompleteTextView

2011-05-17 Thread raukodraug
Hi everyone, I have an app in the market, and in the developer console, I've been receiving many reports that look like this: java.lang.NullPointerException at android.view.WindowManagerImpl.removeViewLocked(WindowManagerImpl.java: 275) at

[android-developers] NullPointerException related to AutoCompleteTextView

2011-05-17 Thread raukodraug
Hi everyone, I have an app in the market, and in the developer console, I've been receiving many reports that look like this: java.lang.NullPointerException at android.view.WindowManagerImpl.removeViewLocked(WindowManagerImpl.java: 275) at

[android-developers] NullPointerException onCreate for a small number of users

2011-03-13 Thread acr
I have a relatively successful app in the android market that a very small amount of users experience force close on start up of the app. It is not happening on a specific device, im not sure if it's something these users have installed that is interfering with the app. I've tried to troubleshoot

Re: [android-developers] NullPointerException onCreate for a small number of users

2011-03-13 Thread Dianne Hackborn
Given this: Caused by: java.lang.NullPointerException at com.myco.myappfree.myapp.onCreate(myapp.java:53) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) What is on line 53 of your app?

[android-developers] NullPointerException in process com.android.inputmethod.latin

2011-02-25 Thread sawyer jim
Hello Everyone, When I ran focus monkey test to com.android.settings, I always got a NullPointerException, the NullPointerException always happended in the process of com.android.inputmethod.latin. The details log is below: //===log begin //

[android-developers] NullPointerException with Strange backtrace not going into my code

2011-02-23 Thread Thierry Legras
Hi, I have got from time to time crash reports with such backtrace: java.lang.NullPointerException at android.widget.PopupWindow$PopupViewContainer.dispatchKeyEvent(PopupWindow.java:1350) at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2368) at

Re: [android-developers] NullPointerException with Strange backtrace not going into my code

2011-02-23 Thread Miguel Morales
Are you sure you're not messing with the UI from another thread? On Wed, Feb 23, 2011 at 2:39 AM, Thierry Legras tleg...@gmail.com wrote: Hi, I have got from time to time crash reports with such backtrace: java.lang.NullPointerException at

Re: [android-developers] NullPointerException with Strange backtrace not going into my code

2011-02-23 Thread Thierry Legras
Hi Miguel, Difficult to be 100% sure, but I don't think so, I have several asynctask which updates my sqlite DB, but I update the GUI (changing cursor, etc.) in onPostExecute. I will definitively do a code rereading anyway about that. What makes me ask question is the PopupWindow in the

[android-developers] NullPointerException when add resource file (styles.xml)

2011-02-22 Thread morrizon
I have a dumb app with ArrayAdapter. All is ok but when I try add styles the app fail in onCreate with NullPointerException. The file added is: ?xml version=1.0 encoding=utf-8? resources style name=juas item name=android:textColor#008/item /style /resources The error log: ...

Re: [android-developers] NullPointerException when add resource file (styles.xml)

2011-02-22 Thread TreKing
On Tue, Feb 22, 2011 at 2:45 PM, morrizon cla...@gmail.com wrote: The error log: That does not appear to be the full log and, more importantly, shows nothing about a null pointer exception. -

[android-developers] NullPointerException

2010-12-23 Thread Tsolmon Narantsogt
Hello list I got a this error . java.lang.NullPointerException W/System.err(10127):at android.app.Activity.setContentView(Activity.java:1622) W/System.err(10127):at android.app.ListActivity.ensureList(ListActivity.java:305) W/System.err(10127):at

Re: [android-developers] NullPointerException

2010-12-23 Thread Brad Gies
What is con? Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.comhttp://nocrappyapps.com http://bistroblurb.com http://forcethetruth.com http://ihottonight.com

[android-developers] NullPointerException when creating an activity.

2010-12-17 Thread cuil yahoo
Hello, I am making an application consisting of 5 views, I get a NullPointerException when trying to call the next activity from the main class. I would appreciate it if someone could please have a look at it. Main class, public class UIPlay extends Activity { /** Called when the activity

Re: [android-developers] NullPointerException when creating an activity.

2010-12-17 Thread TreKing
On Fri, Dec 17, 2010 at 12:36 PM, cuil yahoo cuilya...@gmail.com wrote: I get a null pointer exception on the onCreate method of the second class. And the stack trace is? - TreKing

Re: [android-developers] NullPointerException when creating an activity.

2010-12-17 Thread cuil yahoo
On Sat, Dec 18, 2010 at 12:08 AM, TreKing treking...@gmail.com wrote: On Fri, Dec 17, 2010 at 12:36 PM, cuil yahoo cuilya...@gmail.com wrote: I get a null pointer exception on the onCreate method of the second class. And the stack trace is? These are my logcat contents, 12-18

Re: [android-developers] NullPointerException when creating an activity.

2010-12-17 Thread TreKing
On Fri, Dec 17, 2010 at 1:10 PM, cuil yahoo cuilya...@gmail.com wrote: 12-18 00:38:43.989: ERROR/AndroidRuntime(443): Caused by: java.lang.NullPointerException 12-18 00:38:43.989: ERROR/AndroidRuntime(443): at my.uiplay.GreenActionButton.onCreate(GreenActionButton.java:25) Now step

Re: [android-developers] NullPointerException when creating an activity.

2010-12-17 Thread cuil yahoo
Thanks for the help ,i figured it out. I was actually using the same keynames for various things, colors and layouts. Thanks. :) Cuil On Sat, Dec 18, 2010 at 12:43 AM, TreKing treking...@gmail.com wrote: On Fri, Dec 17, 2010 at 1:10 PM, cuil yahoo cuilya...@gmail.com wrote: 12-18

[android-developers] NullPointerException with OnTouch

2010-08-06 Thread ArcDroid
Hello, I have been getting some NullPointerExceptions ( $7.onTouch() ) and I am not sure how to fix it. I am using the same logic in other programs without an issue. Any help is appreciated. Thanks, Jake -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] NullPointerException with OnTouch

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 9:26 AM, ArcDroid jacobrjohn...@gmail.com wrote: I have been getting some NullPointerExceptions ( $7.onTouch() ) and I am not sure how to fix it. OK. I am using the same logic in other programs without an issue. Which is what? Or should we start guessing? Any

[android-developers] NullPointerException inside SSLEngine

2010-08-05 Thread Kostya Vasilyev
Hello, I am implementing some NIO based code with SSL support, using SSLEngine. Working nicely along, I ran into a NullPointerException inside SSLEngine during SSL handshaking. This bug is described here: http://code.google.com/p/android/issues/detail?id=4914 and is reported as fixed in

[android-developers] nullPointerException with custom ArrayAdapter

2010-05-31 Thread Christophe
hello, I have written a custom ArrayAdapter for a ListActivity : private class StepItemAdapter extends ArrayAdapterStep { public StepItemAdapter(Context context, ListStep objects) { super(context, R.layout.step_list_item, R.id.list_item_sb, objects);

Re: [android-developers] nullPointerException with custom ArrayAdapter

2010-05-31 Thread Brad Gies
You need something like this in the getView to create the view if it hasn't been created already.: if (convertView == null) { LayoutInflater inflater = Groups.this.getLayoutInflater(); convertView =

[android-developers] NullPointerException in ItemizedOverlay.getIndexToDraw

2010-04-02 Thread Brian Hardy
Hello all. I have a relatively simple MapActivity that I'm trying to make display a list of camps within a given map region. I've created a custom subclass of OverlayItem called CampOverlayItem, a custom ItemizedOverlay called CampsOverlay that returns CampOverlayItems, and of course a

[android-developers] NullPointerException in SmsManager.sendTextMessage

2010-02-16 Thread Jorim Jaggi
Hello I got a NullPointerException in SmsManager.java while trying to send an sms. CallStack: 02-15 07:55:22.646 E/smsETH (32500): Error while sending message 02-15 07:55:22.646 E/smsETH (32500): java.lang.NullPointerException 02-15 07:55:22.646 E/smsETH (32500): at

[android-developers] NullPointerException while building android app using ant.

2010-02-11 Thread manu
Hi All, While building the android app using ant am getting the following exception. Couldn't figure out why these exception are thrown!!! Execute:Java13CommandLauncher: Executing 'D:\Android-2.0\android-sdk- windows\platforms\android-1.5\tools\aapt.exe' with arguments: 'package' '-f' '-M'

[android-developers] NullPointerException after stopping/resuming activity repeatedly

2009-10-22 Thread Greg Slagel
I've been working on a little game for some time now. The initial Activity instantiates a Surfaceview (MonsterView) with one thread. I recently added a couple new activities to display high scores and stuff. I haven't been able to duplicate my error on the emulator, but on my phone I can get

[android-developers] NullPointerException in getFromLocation function

2009-09-08 Thread Stefan
Hello, i'm trying to get a location from lat /lon values with the getFromLocation function: adresses = geocoder.getFromLocation(lat, lon, 1); // Search addresses The function should return a empty List, if it don't find an address, but it throws the NullPointerException. What can/must I do to

[android-developers] NullpointerException

2009-08-26 Thread Small World
The error java.lang.nullpointerexception occurred when I was getting the value from EditText. The code was like as follows: EditText et = (EditText) findViewById(R.id.et); String str = et.getText().toString(); I have no idea what is wrong with it, can anyone help me ? Many thanks~

[android-developers] NullPointerException when adding an ExpandableListView

2009-07-11 Thread guishenl...@gmail.com
Hi all, I want to add an ExpandableListView in a LinearLayout defined in main.xml. But I met NullPointerException:null when I added it to the xml file. I don't know what's wrong with it. Could anyone help me to solve this problem? Thank you in advance! Here is the code of main.xml: ?xml

[android-developers] nullPointerException in android.webkit.WebView.onTouchEvent

2009-07-03 Thread HeHe
I override dispatchTouchEvent() like this: public boolean dispatchTouchEvent(MotionEvent ev) { WebView v=findViewById(R.id.detail); return v.dispatchTouchEvent(ev); } I am getting intermittent NullPointerException like this: 07-03

[android-developers] NullPointerException in ViewRoot.draw

2009-05-18 Thread Francois
Hello, I have a fairly complex application that I ported from Java. I am now debugging it. When I launch the code under Eclipse, I get a NullPointerException in ViewRoot.draw / ViewRoot.performTraversals / ViewRoot.handleMessage / ViewRoot(Handler).diwpatchMessage at random times when the code

[android-developers] NullPointerException : String imageFileName = myFile.imageFileName.toString(); when imageFileName is null

2009-05-15 Thread chrispix
if the value of imageFileName is null, why can I not change null into a string? It was working before 1.5. String imageFileName = myFile.imageFileName.toString(); This gives me the a NullPointerException Error. --~--~-~--~~~---~--~~ You received this message

[android-developers] NullPointerException on setBackgroundResource

2009-04-27 Thread steve_macleod
Hi, I am attempting to animate an ImageView using frame-by-frame animation. I am using the following code: ImageView pacImageV = (ImageView) findViewById(R.id.pacAnim); pacImageV.setBackgroundResource(R.anim.pacanim); pacManCharAnim = (AnimationDrawable) pacImageV.getBackground();