[android-developers] Re: HttpUrlConnection - Authentication

2009-03-25 Thread John Spurlock
You can use Authenticator with HttpUrlConnection: http://java.sun.com/j2se/1.5.0/docs/api/java/net/Authenticator.html Hope that helps, - John On Mar 24, 9:12 am, nEx.Software justin.shapc...@gmail.com wrote: I am beating my head against a wall trying to figure out why I cannot get

[android-developers] Re: Converting FREE app to PAID app

2009-03-04 Thread John Spurlock
We plan on using a content provider (published by the FREE app) to transfer data between packages - so the import happens automatically the first time the PAID app is launched. http://code.google.com/android/devel/data/contentproviders.html On Mar 4, 4:41 pm, Raymond Rodgers

[android-developers] Re: What determines Android Market popularity ranking

2009-02-01 Thread John Spurlock
The active install % seems to be very highly rated in this magic formula right now. Which means any update you release will, by definition, kill your popularity. Personally, I'd rather focus on improving the app instead of gaming the system, but I agree it would be nice if the rating favored #

[android-developers] Re: local service getting killed

2009-01-31 Thread John Spurlock
http://groups.google.com/group/android-developers/browse_thread/thread/fa2848e31636af70/8d967c32df91a7d1?lnk=gstq=keeping+a+service+alive On Jan 30, 3:09 pm, brs bernhard.r.su...@gmail.com wrote: I have an app loosely based on the LocalService example from the SDK with a controller activity

[android-developers] Re: Common code with Eclipse

2009-01-12 Thread John Spurlock
Why not keep your shared code in a separate eclipse project using the android template, and use a direct project reference in eclipse (projects tab when configuring build path). You can always disable the android builders and remove the xml/dirs in the shared code lib. This is what I've settled

[android-developers] Re: Stumped on launching Market app

2009-01-03 Thread John Spurlock
Try this: startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse (market://search?q=pname: + packageName))); See http://code.google.com/android/devel/sign-publish.html#marketintent On Jan 3, 9:18 pm, Keith Wiley kbwi...@gmail.com wrote: I just can't find a simple bit of sample code online that

[android-developers] Re: Stumped on launching Market app

2009-01-03 Thread John Spurlock
Doh - sorry it's late. Re-reading your question it seems you've done the same things. Fwiw, that's what I use in apps and it works just fine. Perhaps you need uses-permission android:name=android.permission.INTERNET / in the manifest? On Jan 3, 11:12 pm, John Spurlock john.spurl...@gmail.com

[android-developers] Re: Stumped on launching Market app

2009-01-03 Thread John Spurlock
3rd time's the charm. It's probably your action. Replace ACTION_VIEW with Intent.ACTION_VIEW (which is actually android.intent.action.VIEW) On Jan 3, 11:21 pm, John Spurlock john.spurl...@gmail.com wrote: Doh - sorry it's late.  Re-reading your question it seems you've done the same things

[android-developers] Re: What determines Android Market popularity ranking

2008-12-24 Thread John Spurlock
Did you ever get an answer to this? I'm curious as well. Perhaps they are being purposely vague to discourage gaming the system by certain app developers. On Dec 18, 9:44 am, joshv jvanderb...@gmail.com wrote: I've posted this question to the Market technical support forum and received no

[android-developers] Re: Reset to factory settings programatically

2008-12-17 Thread John Spurlock
I'm curious about this myself. Looking at the source code for the Settings app yields a few clues... http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/MasterClear.java;h=38ad6081850061000fd84f9c1febf97a23d51a0d;hb=HEAD Hope that helps, -

[android-developers] Re: Keeping a Service Alive

2008-12-13 Thread John Spurlock
service more efficient is not going to cause it to be a more likely candidate to be killed. Also just for you (don't tell anyone about this, it's our little secret): http://code.google.com/android/reference/android/app/Service.html#set...) On Thu, Dec 11, 2008 at 5:32 PM, John Spurlock

[android-developers] Re: Keeping a Service Alive

2008-12-11 Thread John Spurlock
Any tips on this? Or are we on our own? This is a big issue for us right now. On Dec 9, 10:40 pm, John Spurlock john.spurl...@gmail.com wrote: Would you mind clarifying this a bit?  What are some techniques a legitimate background service hosting a running mediaplayer can employ to ensure

[android-developers] Re: Keeping a Service Alive

2008-12-09 Thread John Spurlock
Would you mind clarifying this a bit? What are some techniques a legitimate background service hosting a running mediaplayer can employ to ensure that it does not get killed by the os? We are running into this right now - our app (hosting a running mediaplayer) is hosted in a service, and we

[android-developers] Re: Loading a bitmap from a byte buffer

2008-12-01 Thread John Spurlock
BitmapFactory.decodeByteArray ? http://code.google.com/android/reference/android/graphics/BitmapFactory.html On Dec 1, 5:58 pm, Koush [EMAIL PROTECTED] wrote: I inspected Bitmap.cpp and found this function: static jboolean Bitmap_writeToParcel(JNIEnv* env, jobject,

[android-developers] Re: Device unique ID, other than getDeviceId()?

2008-10-15 Thread John Spurlock
Re: 2 - Isn't that what MODE_WORLD_READABLE is for? http://code.google.com/android/reference/android/content/Context.html#openFileOutput(java.lang.String,%20int) MODE_WORLD_READABLE = File creation mode: allow all other applications to have read access to the created file. Hope that helps, -

[android-developers] Re: Device unique ID, other than getDeviceId()?

2008-10-15 Thread John Spurlock
: John Spurlock wrote: Re: 2 - Isn't that what MODE_WORLD_READABLE is for? http://code.google.com/android/reference/android/content/Context.html...) MODE_WORLD_READABLE = File creation mode: allow all other applications to have read access to the created file. Yes, but that implies a spot