[android-developers] Disable all Android emulator traffic from emulator invocation

2012-11-06 Thread Brandon Amos
Copied on StackOverflow (I can delete one if double posting isn't acceptable - I just wanted to get more eyes on my question) I'm working on scripts to manage large amounts of Android e

[android-developers] Re: How to store questions for quiz type application

2010-08-04 Thread amos
Thanks guys for opinion. I'm already working on SQL based version of the application. -- 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 from this group, s

[android-developers] How to store questions for quiz type application

2010-08-02 Thread amos
Hello, I want to create such application that would show a question to user and possible 3 (or n) answers and user should pick correct answer (some kind of learning quiz). I'm not sure about the storage for those data - questions and possible answers. What would be most natural way for Android. I k

[android-developers] How to handle a "long press" on a mapview/map overlay

2008-11-13 Thread Amos
Hi, I want to be able to handle "long taps" on a mapview (or, preferrably, a map overlay), like LongClick events. tap events are handled by these classes, but I found no way to differentiate regular taps from long taps. I can probably implement this in the onTouchEvent method - but I don't want

[android-developers] Re: HttpClient, URLConnection, settings, etc...

2008-10-10 Thread Amos
m/p/apps-for-android/source/browse/trunk/Translate/src/com/beust/android/translate/Translate.java Good Luck, Amos On Oct 9, 12:54 pm, Jasp182 <[EMAIL PROTECTED]> wrote: > I have tried to call out to the web using both HttpClient and > URLConnection, and I get "unknown erro

[android-developers] Re: PreferenceActivity Refresh Problem

2008-10-04 Thread Amos
I've implemented something similar and will leave it like this for now. My "reset preferences" option is currently not in the main activity screen, but I'll move it there so it'll behave reasonably. Guess this is an example of the limitations of working with a framework rather than rolling your o

[android-developers] PreferenceActivity Refresh Problem

2008-10-02 Thread Amos
I have a PreferenceActivity inflated from xml. One of the preferences launches an intent which opens an activity that clears all the preferences and resets them to the default values. My problem is that when this "restore defaults" activity returns, and I navigate to another preference screen wit

[android-developers] PreferenceActivity Refresh Problem

2008-10-02 Thread Amos
I have a PreferenceActivity inflated from xml. One of the preferences launches an intent which opens an activity that clears all the preferences and resets them to the default values. My problem is that when this "restore defaults" activity returns, the previous preference values still appear on t

[android-developers] Re: How to start the native Camera app in 1.0 SDK?

2008-10-02 Thread Amos
Seems like using the MediaStore.ACTION_IMAGE_CAPTURE hardcoded String value ("android.media.action.IMAGE_CAPTURE") still works in 1.0 and starts the native camera app. Nevertheless, removing this constant might mean there's a better way to do this... Any feedback is welcomed. Furthermore, both in

[android-developers] How to start the native Camera app in 1.0 SDK?

2008-10-02 Thread Amos
Hi, The MediaStore.ACTION_IMAGE_CAPTURE constant, which was used to start the native Camera application to capture an image, has been removed in the 1.0 SDK. Is there an alternative way to start the native Camera app to take a picture and return it to my calling Activity? Thanks, Amos

[android-developers] Re: MapView and Zoom Control in 0.9 SDK

2008-08-26 Thread Amos
I think you're right. It's probably a better idea to add the mapview to the relativelayout. The "layout" is not necessary. On Aug 27, 3:29 am, jokochi <[EMAIL PROTECTED]> wrote: > That's a neat solution. It works! Thank you, Amos. > I really know how to use

[android-developers] Re: MapView and Zoom Control in 0.9 SDK

2008-08-26 Thread Amos
LayoutParams.WRAP_CONTENT)); View zoomView = _map.getZoomControls(); zoom.addView(zoomView, new LinearLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));

[android-developers] Re: Problem with the heap size

2008-05-17 Thread Amos
This (logCat messages not appearing all of a sudden) happens frequently to me. I never managed to isolate the cause, so it's just a bit of annoying behavior I've come to live with :-). Restarting the emulator or eclipse usually helps, not always. On May 17, 1:03 pm, mystic-d <[EMAIL PROTECTED]> w

[android-developers] Re: Starting my application from browser using MIME Type Intent

2008-04-06 Thread Amos
t until this is implemented > your activity isn't going to get launched. > > On Apr 2, 2:37 pm, Amos <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I'm trying to make the browser start my application after a file with > > a specific MIME content type

[android-developers] Starting my application from browser using MIME Type Intent

2008-04-02 Thread Amos
g wrong - or if this feature is fully supported already. My Intent Filter is: Has anyone managed to do something similar in m5-rc15? Thanks! Amos --~--~-~--~~~---~--~---

[android-developers] Re: How to associate my App with a file extension in the Browser

2008-04-01 Thread Amos
good to avoid. Any ideas? Anyone managed to get their activities launched by the browser after downloading a file using a mimeType intent-filter? Thanks! Amos. P.S. I'm using m5-rc15. On Mar 27, 7:15 pm, "Jean-Baptiste Queru" <[EMAIL PROTECTED]> wrote: > To be perfectly

[android-developers] Re: How to associate my App with a file extension in the Browser

2008-03-26 Thread Amos
he browser? Many thanks, Amos On Mar 26, 7:02 pm, hackbod <[EMAIL PROTECTED]> wrote: > All of Android's file mappings are based on MIME types. As long as > your web server is returning the correct MIME type, you can implement > an activity that says it knows how to VIEW t

[android-developers] How to associate my App with a file extension in the Browser

2008-03-26 Thread Amos
this is what I'd like to happen. Any ideas or pointers? Thanks in advance, Amos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] Re: Good example for showing exchanging of data mostly arrays or non premitive data types,objects

2008-03-26 Thread Amos
Here is the sample code for passing Object references between activities: I have a class called ReferencePasser, which wraps a HashMap: import java.util.HashMap; /** * @author Amos * Maps Objects to keys. * The

[android-developers] Re: Good example for showing exchanging of data mostly arrays or non premitive data types,objects

2008-03-26 Thread Amos
from reference passer. It can then remove the object from ReferencePasser to keep its Map small. This approach has been working great for me so far, although obviously it is limited to a single application process. I'll attach sample code in the next thread. Hope this he