[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" wrote: > I am beating my head against a wall trying to figure out why I cannot > get Authenticated on my server whilst

[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: 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 a

[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 wrote: > Would you mind clarifying this a bit?  What are some techniques a > "legitimate" background service hosting a running mediaplayer can > employ to ensure t

[android-developers] Re: Keeping a Service Alive

2008-12-13 Thread John Spurlock
em that result in services being > killed. > > Making your 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/r

[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, - John

[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 wrote: > I've posted this question to the Market technical support forum and > received no answer, so I will try

[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 wrote: > I just can't find a simple bit of sample code online that shows how to >

[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 in the manifest? On Jan 3, 11:12 pm, John Spurlock wrote: > Try this:  startActivity(new Intent(Intent.ACT

[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 wrote: > Doh - sorry it's late.  Re-reading your question it seems you&#x

[android-developers] Re: How to avoid my application to launch a new another instance?

2009-01-12 Thread John Spurlock
Use android:launchMode="singleInstance" on your Activity element in the manifest. http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity_launchMode On Jan 10, 8:22 am, "ocs...@gmail.com" wrote: > I have an application with activity A, B, C. A is MAIN/LAUNCHER

[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: 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
PROTECTED]> wrote: > 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 > > app

[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=gst&q=keeping+a+service+alive On Jan 30, 3:09 pm, brs wrote: > I have an app loosely based on the LocalService example from the SDK > with a controller activity and a long-running, statef

[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: 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 wrote: > Avraham Se