[android-developers] bug in developer's guide fragment example?

2013-01-07 Thread Micah Brandon
Can someone explain in the Fragments example here: http://developer.android.com/guide/components/fragments.html inside the TitlesFragment's showDetails() method why ft.replace() references R.id.a_item if index != 0? Here is the block of code or you can check out the link: // Execute a

[android-developers] Re: How to make Text unselectable in EditText

2013-01-07 Thread Micah Brandon
Can you explain what you want to do a little better? Because you need the ability to select in order to edit...otherwise how can you begin the edit? Here's a crazy idea. Make your HelloAndroid view a regular TextView then add a new blank EditText set as a password field (inputType=password).

[android-developers] Re: Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2009-12-11 Thread Micah
The application only needs permission to ask authenticators for access to an account, but when they install they don't have to say which accounts the app will access. Just because an app has permission to access your Facebook account doesn't mean you want the app to have access to your Google

[android-developers] Re: Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2009-12-03 Thread Micah
I would be careful removing your own authentication code just yet. So far Droid is the only phone with 2.0 on it and it's uncertain that once other phones get 2.0 whether or not they will also get the Facebook and Google authenticators. The emulator currently does *not* support Facebook or

[android-developers] Re: AccountManager Authenticator only runs once per emulator restart.

2009-11-27 Thread Micah
it again unless I restart the OS. Should I file a bug on this, since re-installing the authenticator should cause the service's onBind to call again, instead of using the cached one? On Nov 24, 12:43 pm, Micah mi...@zoltu.net wrote: I have written a simple Authenticator service to work

[android-developers] How do I debug another application / service?

2009-11-24 Thread Micah
I am trying to write an Authenticator that works with the new AccountManagement system. When my application runs the system will eventually spawn a process for the authenticator service that I wrote. I would like to be able to debug that service, but since it's not part of the application

[android-developers] AccountManager Authenticator only runs once per emulator restart.

2009-11-24 Thread Micah
I have written a simple Authenticator service to work with the new AccountManager API introduced in 2.0. When I launch a test app that uses the authenticator the authenticator service is launched (as expected) and it's onBind method is called. However, if I run my test application a second time

[android-developers] Re: A good idea for collaborative code development...

2009-11-24 Thread Micah
Good idea, probably the wrong group though. If there is a code.google.com group that would likely be more applicable, or the Google wave group perhaps. On Nov 24, 5:04 pm, Kenneth Adam Miller kennethadammil...@gmail.com wrote: You know how google docs can allow you to share a doc to be edited

[android-developers] Re: SIGSEGV 11 OpenGL - Only on Droid, not 2.0 Emulator

2009-11-20 Thread Micah
I've been playing with the Rokon game development framework (http:// code.google.com/p/rokon/) on my Droid, and the example app is crashing with this same error a lot when I run it on my Droid, just switching between the example activities. On Nov 10, 7:29 am, chrispix chris...@gmail.com wrote:

[android-developers] Re: Another take on anti-piracy

2009-11-16 Thread Micah
The only form of anti-piracy that has any real chance of working for a popular app is SaaS (Software as a Service). If the app can run entirely on the phone then the app can be pirated. Now some may say, Well MyHelloWorld hasn't been pirated! but that's only because it hasn't reached the

[android-developers] Re: Another take on anti-piracy

2009-11-16 Thread Micah
It's possible I don't fully understand your technique, but I think it will likely cost more sales then it will generate. If it gets a significant following of apps it will be cracked (a simple solution I can see would be to simply reroute web requests for the black list to a pirates site which

[android-developers] Re: Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2009-11-14 Thread Micah
I am working on a similar project over at: http://code.google.com/p/google-authenticator-for-android/ The end goal is to simulate the Google Account Authenticator found on the Droid so that developers can use Google Accounts on their AVDs, as well as people with 2.0 phones without Google Accounts

[android-developers] com.google Authenticator for the new android.accounts.AccountManager API.

2009-11-12 Thread Micah
I am working on writing (and eventually releasing on the Android marketplace) a Google authenticator that will authenticate with Google and return a Google Auth Token (see: http://code.google.com/apis/gdata/docs/auth/overview.html). The ultimate goal is to have this authenticator mirror the

[android-developers] Re: Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2009-11-11 Thread Micah
help if I can't add my authenticator first:http://groups.google.com/group/android-developers/browse_thread/threa... Anyone have any ideas? On Nov 8, 9:21 pm, Micah mi...@zoltu.net wrote: In Android 2.0 there is a new android.accounts.AccountManagerclass has a function getAccounts

[android-developers] Re: Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2009-11-11 Thread Micah
authenticator first:http://groups.google.com/group/android-developers/browse_thread/threa... Anyone have any ideas? On Nov 8, 9:21 pm, Micah mi...@zoltu.net wrote: In Android 2.0 there is a new android.accounts.AccountManagerclass has a function getAccounts() see:http://developer.android.com

[android-developers] Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2009-11-08 Thread Micah
In Android 2.0 there is a new android.accounts.AccountManager class has a function getAccounts() see: http://developer.android.com/reference/android/accounts/AccountManager.html#getAccounts() Unfortunately, as most of you know the SDK doesn't come with any of the Google Apps that utilize the

[android-developers] Google Voice Automatic Sign-in

2009-11-03 Thread Micah
I wiped my phone back to factory defaults, then signed into the phone with my Google Account, then download and install Google Voice. When I launched Google Voice for the first time a dialog showed up and asked, Sign in as mygoogleacco...@gmail.com? When I clicked the Yes button Google Voice

[android-developers] Re: How to rotate a drawable programmatically?

2009-09-29 Thread Micah
Bug posted, hopefully this is what you were looking for: http://code.google.com/p/android/issues/detail?id=4061 On Sep 28, 5:59 pm, Romain Guy romain...@google.com wrote: The fact that you cannot set from and toDegrees from code. On Mon, Sep 28, 2009 at 5:56 PM, Micah mi...@zoltu.net

[android-developers] How to rotate a drawable programmatically?

2009-09-28 Thread Micah
In my application I want to be able to rotate a view programmatically rather than via XML. I can easily create a rotate/ drawable that references my Drawable, but I can not figure out how to do the same thing in Java. The problem is that many drawables in my scene can be displayed either

[android-developers] Re: How to rotate a drawable programmatically?

2009-09-28 Thread Micah
. On Mon, Sep 28, 2009 at 5:47 PM, Micah mi...@zoltu.net wrote: In my application I want to be able to rotate a view programmatically rather than via XML.  I can easily create a rotate/ drawable that references my Drawable, but I can not figure out how to do the same thing in Java.  The problem

[android-developers] Re: Protocol Buffers (protobuf)

2009-07-23 Thread Micah
by the OS so my thought is that someone somewhere knows the answer. On Jul 22, 2:05 pm, Micah mi...@ourmailbox.net wrote: Unfortunately, this doesn't seem to fully resolve my issue.  I have created a very simple repro case that causes the stall to occur (let me know if anyone wants the source / APK

[android-developers] Re: Protocol Buffers (protobuf)

2009-07-23 Thread Micah
without a debugger attached to see what the performance is like. On Jul 23, 1:28 pm, fadden fad...@android.com wrote: On Jul 22, 2:05 pm, Micah mi...@ourmailbox.net wrote: Unfortunately, this doesn't seem to fully resolve my issue.  I have created a very simple repro case that causes the stall

[android-developers] Re: Protocol Buffers (protobuf)

2009-07-23 Thread Micah
.) On Thu, Jul 23, 2009 at 2:30 AM, Micah mi...@ourmailbox.net wrote: It takes 20 seconds to load the test case class on an ADP1. :(  If anyone has any ideas I'm open to trying things out or giving out the test case source code to look at. I don't know what Protocol Buffers does

[android-developers] Re: Protocol Buffers (protobuf)

2009-07-23 Thread Micah
of the platform, so you will want to link it into your app in a different namespace.) On Thu, Jul 23, 2009 at 2:30 AM, Micah mi...@ourmailbox.net wrote: It takes 20 seconds to load the test case class on an ADP1. :(  If anyone has any ideas I'm open to trying things out or giving out

[android-developers] Re: Protocol Buffers (protobuf)

2009-07-23 Thread Micah
Buffers over some of the alternatives since half the point was that I could write one .proto file and compile it for multiple platforms. On Jul 23, 8:08 pm, Micah mi...@ourmailbox.net wrote: Is there a way to tell the Protocol Buffers compiler to use my package name when generating .java classes

[android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-22 Thread Micah
Welcome to software development. There is no known way to stop software piracy short of software as a service (and don't worry, many very smart people have tried). If it really bothers you that much then write your software as a service and have the installed application be a dumb terminal.

[android-developers] Re: How to autorun program when Android start running?

2009-07-22 Thread Micah
http://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED On Jul 22, 5:09 am, bluestar bluestar8...@gmail.com wrote: I have one program and I used adb to connect FR to execute it. I hope this program would auto-execute when entering Android OS of FR How to add

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-07-22 Thread Micah
Bump. Star. Tag. Etc. While I imagine this will eventually be fixed in a future release we can only hope that Google gives developers some alternative (ie: better) way to get a UID for a given user so we can save profiles, etc. for our apps online and keep them associated with a user without

[android-developers] Re: running code immediately after activity is displayed

2009-07-22 Thread Micah
If the code you are running takes long enough to noticeably block the UI (ie: more than 200ms) then you should do it in another thread. Allowing the user to see the UI but not interact with it (because your app is doing some heavy lifting in the main thread) is just as bad of a user experience as

[android-developers] Re: How to use Thread with SurfaceView, ie draw in a separate thread?

2009-07-22 Thread Micah
Check out the LunarLander example that comes with the Android SDK. It is a very simple game that runs in it's own thread (separate from the UI thread). While it's not my favorite design (too much locking) for a large game, for most cell phone games (ie: simple) it gets the job done. On Jul 22,

[android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-22 Thread Micah
The pirates will either strip out the licensing requests from the application or they will spoof a licensing server. Meanwhile, your legitimate users can't use your application when they don't have access to the licensing server (it's down, they don't have internet access, etc.). On Jul 22,

[android-developers] Re: Help with GLSurfaceView

2009-07-22 Thread Micah
I'm guessing you want a 3D background behind some other UI? If so check out: http://developer.android.com/reference/android/widget/FrameLayout.html That lets you just stack several views on top of each other. Note: I don't know if it works with GLSurfaceView, but it should be pretty easy to test

[android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-22 Thread Micah
, John Smith deltafoxtrot...@gmail.com wrote: 2009/7/23 Micah mi...@ourmailbox.net The pirates will either strip out the licensing requests from the application or they will spoof a licensing server.  Meanwhile, your legitimate users can't use your application when they don't have access

[android-developers] Re: How to move a ImageView step by step by TranslateAnimation

2009-07-22 Thread Micah
Have you read this? http://developer.android.com/guide/topics/graphics/2d-graphics.html#tween-animation On Jul 22, 1:44 am, henryhuang henr...@gmail.com wrote: there are a board (8 * 8) and a ImageView (A). for example, i want to move A from (0, 0) to (0, 1) to (1, 1) to (1, 2) step by step.

[android-developers] Re: Help with GLSurfaceView

2009-07-22 Thread Micah
Ah, so you want to render your UI to a texture and then apply that texture to a 3D object? If so then I don't know if/how to do that. :P On Jul 22, 8:09 am, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: Hi micah,               thnx for the reply, but my requirement is to rotate

[android-developers] Re: Protocol Buffers (protobuf)

2009-07-22 Thread Micah
Unfortunately, this doesn't seem to fully resolve my issue. I have created a very simple repro case that causes the stall to occur (let me know if anyone wants the source / APK). In the test, it will eventually finish but it takes ~10 seconds just to make the call:

[android-developers] Protocol Buffers (protobuf)

2009-07-21 Thread Micah
When using Protocol Buffers with Android (running in the Windows VM) I'm noticing that the first time I instantiate a protocol buffer based class Android lags for some time. When I step through it looks like it's spending a lot of time dynamically loading the protocol buffer classes. Is there

[android-developers] Re: Protocol Buffers (protobuf)

2009-07-21 Thread Micah
: somebody generated [Lcom/google/protobuf/ Descriptors$FileDescriptor; simultaneously I'm not sure what it means, but it's coming from the VM it seems. On Jul 21, 4:58 pm, fadden fad...@android.com wrote: On Jul 21, 3:57 pm, Micah mi...@ourmailbox.net wrote: I'm not sure if I'm doing something wrong

[android-developers] Re: Protocol Buffers (protobuf)

2009-07-21 Thread Micah
To clarify, the problem keeps coming back after a couple of times through debugging my program. When I shut everything (including adb.exe) down and start it all back up again it works great for 1-2 debug sessions before it stalls again. On Jul 21, 5:52 pm, Micah mi...@ourmailbox.net wrote: OK

[android-developers] Re: Protocol Buffers (protobuf)

2009-07-21 Thread Micah
this thread with the results. On Jul 21, 7:28 pm, Micah mi...@ourmailbox.net wrote: To clarify, the problem keeps coming back after a couple of times through debugging my program. When I shut everything (including adb.exe) down and start it all back up again it works great for 1-2 debug

[android-developers] Looper.LoopOnce?

2009-07-14 Thread Micah
I have a thread that does all my rendering code for a game (including animations). I want to be able to communicate with that thread via Messages instead of locking / synchronization. This means that I need to both support a message queue and *also* support my own rendering loop. Normally I

[android-developers] Re: Looper.LoopOnce?

2009-07-14 Thread Micah
Willats goo...@wardco.com wrote: Messages themselves have a method to remove all messages with id X from the queue, I seem to recall. This may or may not be inconvenient for you though. -- Ward At 2:30 PM -0700 7/14/09, Micah wrote: I have a thread that does all my rendering code

[android-developers] Re: Google Talk Shared Status Messages

2009-05-30 Thread Micah
Just wanted to bump this up to see if anyone on the weekend browsing crew knew an answer. On May 23, 3:18 pm, Micah mi...@ourmailbox.net wrote: I'm interested in creating an Android application that will set the user's Google Talk custom status message to something created by my application

[android-developers] Google Talk Shared Status Messages

2009-05-25 Thread Micah
I'm interested in creating an Android application that will set the user's Google Talk custom status message to something created by my application. Details on doing this can be found at http://code.google.com/apis/talk/jep_extensions/shared_status.html. Since a user running Android (at least

[android-developers] Google Talk Shared Status Messages

2009-05-25 Thread Micah
Sorry if this ends up as a double post, I posted it about 8 hours ago and I'm still not showing it in the group mailing list so I'm giving it another try. I'm interested in creating an Android application that will set the user's Google Talk custom status message to something created by my

[android-developers] VerifyError attempting to use commons-digester

2009-03-16 Thread micah craig
): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 03-16 04:47:44.451: ERROR/AndroidRuntime(628): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 03-16 04:47:44.451: ERROR/AndroidRuntime(628): at dalvik.system.NativeStart.main(Native Method) -micah