[android-developers] Re: Getting the Manifest Version Code

2010-01-24 Thread dapaintballer331
();} System.out.println(pInfo.versionCode); Kumar Bibek On Jan 24, 8:48 am, dapaintballer331 dapaintballer...@gmail.com wrote: How do you retrieve the current version code of an app's manifest? I don't need to access another application, I'm talking about My app accessing its own

[android-developers] Getting the Manifest Version Code

2010-01-23 Thread dapaintballer331
How do you retrieve the current version code of an app's manifest? I don't need to access another application, I'm talking about My app accessing its own version code. Thanks -Brandon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Getting the Manifest Version Code

2010-01-23 Thread dapaintballer331
) {                 e.printStackTrace();} System.out.println(pInfo.versionCode); Kumar Bibek On Jan 24, 8:48 am, dapaintballer331 dapaintballer...@gmail.com wrote: How do you retrieve the current version code of an app's manifest? I don't need to access another application, I'm talking about My app

[android-developers] Re: ($25 reward) GPS not triggering onLocationChanged

2009-12-22 Thread dapaintballer331
the stupid bugs in the 1.5 OS. On Dec 19, 11:17 pm, Ipsemet worldsflir...@gmail.com wrote: To my knowledge, the emulator doesn't emulate sensors. On Dec 19, 9:46 pm, dapaintballer331 dapaintballer...@gmail.com wrote: If somebody can get this to work for me, using an emulator on the 1.5 sdk

[android-developers] Re: ($25 reward) GPS not triggering onLocationChanged

2009-12-21 Thread dapaintballer331
a regular service, GPS was never activated, and i therefore never got that block in the logcat again... I wonder why my phone is having trouble activating GPS via a regular android service... On Dec 21, 8:24 am, Mark Murphy mmur...@commonsware.com wrote: dapaintballer331 wrote: Seems I'm having

[android-developers] Re: ($25 reward) GPS not triggering onLocationChanged

2009-12-20 Thread dapaintballer331
to you underground issue, it's a not a problem. The service that starts this service will call the stopSelf method after 20 seconds, which is more than the 13 seconds it waits for a location. On Dec 20, 7:42 am, Mark Murphy mmur...@commonsware.com wrote: dapaintballer331 wrote: If somebody can

[android-developers] Re: ($25 reward) GPS not triggering onLocationChanged

2009-12-20 Thread dapaintballer331
Using a service or wakefulintent service, I still get this. I had aquireStaticWakeLock called before my WakefulIntentService was started... On Dec 20, 1:47 pm, dapaintballer331 dapaintballer...@gmail.com wrote: I'll try the time zone problem. The reason I used your WakefulIntentService was just

[android-developers] ($25 reward) GPS not triggering onLocationChanged

2009-12-19 Thread dapaintballer331
If somebody can get this to work for me, using an emulator on the 1.5 sdk, I will send them $25 via paypal if you need it. I am using the android 1.5 emulator. Problem: I see the satilite icon on the top of the phone, but when I send the device multiple coordinates, is never runs the

[android-developers] Cant react to home button...

2009-11-27 Thread dapaintballer331
How can I get my app to react when the Home button is pushed in the emulator? The back button works fine. I tried logging something every time onPause or onStop is called, but the button isn't triggering anything. How can I react to this action? I did research and know that onKeyDown won't work

[android-developers] Re: Cant react to home button...

2009-11-27 Thread dapaintballer331
So do activities receive anything when the button is pressed? I thought activities are paused when they become hidden... On Nov 27, 6:09 am, Mark Murphy mmur...@commonsware.com wrote: dapaintballer331 wrote: How can I get my app to react when the Home button is pushed in the emulator? You

[android-developers] Re: Cant react to home button...

2009-11-27 Thread dapaintballer331
Thanks, I guess my cupcake/1.5 emulator is broken. The home key doesn't call onPause nor onStop On Nov 27, 3:29 pm, Mark Murphy mmur...@commonsware.com wrote: dapaintballer331 wrote: So do activities receive anything when the button is pressed? I thought activities are paused when

[android-developers] Re: Cant react to home button...

2009-11-27 Thread dapaintballer331
Nevermind, they are being called, however when the onStop/onPause is called because of the home button, it won't let me launch an activity. It only lets me if the back key is pressed. On Nov 27, 3:29 pm, Mark Murphy mmur...@commonsware.com wrote: dapaintballer331 wrote: So do activities

[android-developers] Re: Cant react to home button...

2009-11-27 Thread dapaintballer331
The logcat says its launching the activity, however it only is displayed if the back key triggered this. On Nov 27, 3:29 pm, Mark Murphy mmur...@commonsware.com wrote: dapaintballer331 wrote: So do activities receive anything when the button is pressed? I thought activities are paused when

[android-developers] Re: Cant react to home button...

2009-11-27 Thread dapaintballer331
I figured out how to get it to work! For the record: I'm unsure of why onPause / onStop won't start an activity in the emulator, if the home button is pressed (SDK 1.5), however a solution is to have onPause create an alarm to do the work for you :) -Brandon On Nov 27, 3:42 pm, dapaintballer331

[android-developers] Never getting onLocationChanged (in emulator)

2009-08-31 Thread dapaintballer331
I have yet to test this on a real phone. My problem is this service is supposed to send output to a log, when the location is changed. It isn't working, I don't know why. AndroidManifest has permission for fine, coarse, and mock locations. I sent locations using (telnet localhost (port), geo fix

[android-developers] Re: WHY is there a NULL POINTER EXCEPTION? Been confusing me for a while.

2009-08-15 Thread dapaintballer331
Jason, you're right, thats exactly what I've been doing. And mark, you're also right, I've been passing this to the constructor... On Aug 11, 6:53 pm, Jason Proctor jason.android.li...@gmail.com wrote: i have this problem quite a lot -- how to get context when off in some callback somewhere.

[android-developers] Re: WHY is there a NULL POINTER EXCEPTION? Been confusing me for a while.

2009-08-15 Thread dapaintballer331
I really don't understand the problem. IN the wakefulIntentService, it tells me it's casting itself correctly. if(!(this instanceof android.content.Context)) Log.e(fmi,fmi the daemon is NOT a real context!); else Log.e(fmi,fmi the daemon is a real

[android-developers] Re: Unable to debug on HTC MyTouch

2009-08-15 Thread dapaintballer331
Also, check notifications. It may ask for permission to connect and debug It did that for me Also make sure debugging is enabled in preferences On Aug 15, 9:07 pm, Mark Murphy mmur...@commonsware.com wrote: droidin.net wrote: All right - I admit my defeat. Can anyone walk me trough

[android-developers] WHY is there a NULL POINTER EXCEPTION? Been confusing me for a while.

2009-08-11 Thread dapaintballer331
I have two methods, one reads files and one writes the given string to a file. For some reason, the first time the write method works fine, but after it writes the first file, any files after that makes it throw a nullpointerexception. No idea why. The problem is in the writeData method for

[android-developers] Re: WHY is there a NULL POINTER EXCEPTION? Been confusing me for a while.

2009-08-11 Thread dapaintballer331
I commented out a lot of code above what I pasted if comments count as lines, line 39 is FileOutputStream fOut = context.openFileOutput(filename, Context.MODE_PRIVATE); Never heard of a finally block... it sounds like it isn't getting called, i'll look into adding this. I'm positive

[android-developers] Re: WHY is there a NULL POINTER EXCEPTION? Been confusing me for a while.

2009-08-11 Thread dapaintballer331
Jason, thanks a lot, it turns out the context is null... See if you can help me... An Alarm starts a WakefulIntentService( made by me, which is used to keep a wakelock). That extends an IntentService (made by android). This WakefulIntentService then writes data, passing itself as an argument for

[android-developers] Wow. Why isn't the 1.5 emulator working...

2009-07-14 Thread dapaintballer331
After weeks of trying to get my service to run on boot an interval via AlarmManager I finally found out the problem. Can anybody help me? If my workspace is for sdk 1.5, the service NEVER RUNS ONCE. If my workspace is for sdk 1.0, USING THE 1.0 EMULATOR, NOT THE 1.5 EMULATOR, it works

[android-developers] Re: AlarmManager nothing happening

2009-07-06 Thread dapaintballer331
didn't help... is there any example files? Maybe i shouldn't start the alarm here, does it need to be started by a service that stays running? idk... I'd pay someone to help me if its allowed... I really need help. On Jul 3, 6:46 pm, Mark Murphy mmur...@commonsware.com wrote:

[android-developers] AlarmManager nothing happening

2009-07-03 Thread dapaintballer331
I've been modifying things ALL DAY trying to get this to work, please help. I have a broadcast receiver that recieves a boot completed signal. the onReceive method works!... well at least it sends output to the log. THE PROBLEM is that that method is responsible for creating a AlarmService, to

[android-developers] Get a unique string / serial number?

2009-06-23 Thread dapaintballer331
Is there any way to get some type of serial number or unique string, that no other android device should have? It can't be relative to the sim card, I'm looking for some type of hardware identification number... --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Cover phone's screen not quit

2009-06-18 Thread dapaintballer331
prompt the thief to remove the battery and throw the phone in the garbage so that it can't be traced anymore? On Wed, Jun 17, 2009 at 2:36 PM, dapaintballer331 dapaintballer...@gmail.com wrote: Is there any way known to create an about style dialog box, that covers the whole screen

[android-developers] Cover phone's screen not quit

2009-06-17 Thread dapaintballer331
Is there any way known to create an about style dialog box, that covers the whole screen, regardless of what (if any) application is open? It must cover the screen, and prevent touch-screen usage of anything it covers. It will be used to disable the phone send a message to a phone thief

[android-developers] Starting services on Android Boot

2009-05-28 Thread dapaintballer331
If I create a no-gui application that extends and android.app.Service class, how do I get it to register itself so that the application starts when the phone boots up? I need some way to have it always launch when the phone is turned on, how can I do this? I know how to get a service to start

[android-developers] Creating a daemon

2009-05-28 Thread dapaintballer331
How do you create a java program that runs on startup, in the background? I need to create this, or some type of java/c service. I've created this for an iPhone, and I'm porting my app to the android. Thanks Brandon --~--~-~--~~~---~--~~ You received this