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
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
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
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
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
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:
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)
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
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
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
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
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
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);
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
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
Try following code.
if (b1 == null) {
return null;
}
Paint p = new Paint();
p.setAntiAlias(true);
p.setAlpha(150);
byte[] chunk = b1.getNinePatchChunk();
Bitmap b2 =
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 =
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
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
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
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)
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,
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)
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?:
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
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
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
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
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
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
* 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
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
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
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
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
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
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
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?
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
//
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
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
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
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:
...
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.
-
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
What is con?
Sincerely,
Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.comhttp://nocrappyapps.com
http://bistroblurb.com http://forcethetruth.com
http://ihottonight.com
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
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
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
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
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
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
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
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
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);
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 =
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
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
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'
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
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
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~
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
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
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
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
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();
67 matches
Mail list logo