[android-developers] Android tracing and profiling

2008-06-18 Thread Horia
Hello, The emulator and API provides a couple of ways of tracing and profiling your applications: 1. the android.os.Debug provides some methods like: startMethodTracing(), startNativeTracing() 2. the emulator could be run with -trace option in order to later accept the start tracing command (F9)

[android-developers] Re: getting the information of selected file from another application for my application use

2008-06-18 Thread Mark Murphy
Kevin Tan wrote: Ideally, I would like to write some independent code that would recognize that the ctrl (or any key) was clicked when a 'file-like' selection was made in another application by the user. For the purposes of this response, your application is the one with the intent receiver

[android-developers] Re: Dispatch keyboard event to other activity

2008-06-18 Thread [EMAIL PROTECTED]
I use the coordinates from the paint demos to simulate accelerometer and compass inputs... On Jun 17, 5:57 am, renegade [EMAIL PROTECTED] wrote: Hey, Does anyone know how to send key event to some other activity (known by package name, class name or task id). I have to simulate keyboard on

[android-developers] J2ME or J2SE?

2008-06-18 Thread MobileBen
Hi, can anybody tell me on which Java platform Android is based or which Java platform Android uses. Is it the J2ME platform or the J2SE? Do Android uses the all of the classes of these platforms? Thank you --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: J2ME or J2SE?

2008-06-18 Thread Mark Murphy
MobileBen wrote: can anybody tell me on which Java platform Android is based or which Java platform Android uses. Is it the J2ME platform or the J2SE? It is neither. The Dalvik VM is, at present, unique to Android. Do Android uses the all of the classes of these platforms? No. It has many

[android-developers] Re: J2ME or J2SE?

2008-06-18 Thread Justin (Google Employee)
Mark is quite correct. To expand a little on his answer, Android applications are written in Java, but Android does not execute Java bytecode. A subset of J2SE classes are supported by the Dalvik VM. Cheers, Justin Android Team @ Google On Jun 18, 7:07 am, Mark Murphy [EMAIL PROTECTED] wrote:

[android-developers] Re: Download files onto SD Card

2008-06-18 Thread redhatab
No its not from the browser. I am getting the link of a file from the server and would like to download that onto the emulator. Is it possible!! On Jun 17, 3:07 am, Megha Joshi [EMAIL PROTECTED] wrote: If you are trying to download a file from browser inside a emulator, that feature is

[android-developers] Running a program when emulator start

2008-06-18 Thread Jaikishan
Hi, I was wondering if its possible to start a program automatically in the background as soon as the emulator gets started? The idea is to show some message on the status bar. Thanks -J --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Javamail no such label 0104

2008-06-18 Thread Karys
Hi everybody, I'd like to know if it was normal to get this kind of error when I add the javamail librairy and when my application is built. I'm using the eclipse's plugin. UNEXPECTED TOP-LEVEL EXCEPTION: com.google.util.ExceptionWithContext: no such label 0104 [2008-06-18 09:18:18 - gmvv]

[android-developers] Javamail no such label 0104

2008-06-18 Thread Karys
Hi everybody ! I'm working with the eclipse's plugin and I'd like to know if it is normal to get this kind of error when I just add the javamail librairy (mail.jar) into my eclipse project and when the compilator build it. I don't write any code using mail.jar and I get the following error :

[android-developers] Re: Running a program when emulator start

2008-06-18 Thread Damien
Android broadcasts a message on boot. See http://code.google.com/android/reference/android/content/Intent.html#BOOT_COMPLETED_ACTION If you have something listening for this broadcast then it will start as soon as the boot has completed. Regards D. On Jun 18, 11:18 am, Jaikishan [EMAIL

[android-developers] Re: Download files onto SD Card

2008-06-18 Thread Mark Murphy
No its not from the browser. I am getting the link of a file from the server and would like to download that onto the emulator. Is it possible!! There are APIs for making HTTP requests in Android. My personal favorite is the Apache Jakarta Commons HttpClient (org.apache.http.client), but you

[android-developers] Re: J2ME or J2SE?

2008-06-18 Thread JBQ
Or, to be pedantic, the applications are written in the Java programming language (but are indeed not executed as Java bytecode on Android, they're converted into Dalvik bytecode during the development process). Besides that, some of the Android development tools are written in Java, and some

[android-developers] autocomplete list view - problem

2008-06-18 Thread Julka
hi, I am using the AutoCompleteListView - it's displaying the hints but once the hint is selected the text from the TextView vanishes along with the popup menu... Please help me quickly :) Kisses, Julia P.S. This is the code I use: textHint = (AutoCompleteTextView)

[android-developers] Re: autocomplete list view - problem

2008-06-18 Thread Julka
No it's not - I've tried without it and when I click on an item it doesn't do anything :/ On Jun 18, 6:43 pm, Romain Guy [EMAIL PROTECTED] wrote: Hi, You need to remove your OnItemClickListener. The AutoCompleteTextView will do that automatically, you are just interfering with it. On

[android-developers] Re: autocomplete list view - problem

2008-06-18 Thread Romain Guy
AutoCompleteTextView does work without doing this. Are you clicking the item with your mouse or pressing enter? I think there was a bug in M5 where the touch clik (== with the mouse on the emulator) would not work. On Wed, Jun 18, 2008 at 10:00 AM, Julka [EMAIL PROTECTED] wrote: No it's not -

[android-developers] Re: Spinner - No selection

2008-06-18 Thread Shaimailit
Hi, Thanks again, Mark and David. The suggested ideas seems too complicated (I was hoping to simplify the solution. and not the other way around...). Therefore, I would probably have to add some fictive records to database tables. It isn't such a legitimate software design, but it is the

[android-developers] Re: 16M Memory Limit

2008-06-18 Thread Justin (Google Employee)
you should be able to mmap files rather easily in Java, and the file size is not accounted for in the heap limit if I remember correctly... I believe this is correct. Since a memory mapped file can be easily unmapped and remapped, its memory is fairly free for reuse. Cheers, Justin Android

[android-developers] Re: autocomplete list view - problem

2008-06-18 Thread Julka
oh - that may be the case :) thank you :) On Jun 18, 7:04 pm, Romain Guy [EMAIL PROTECTED] wrote: AutoCompleteTextView does work without doing this. Are you clicking the item with your mouse or pressing enter? I think there was a bug in M5 where the touch clik (== with the mouse on the

[android-developers] Re: Security Questions

2008-06-18 Thread Beta Mike
Is there a way in which someone could view the androidmanifest.xml and see the uses-permission's tags associated to an app? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: getting the information of selected file from another application for my application use

2008-06-18 Thread hackbod
Yeah, I'll just add a bit more to this, the addIntentOptions() and related mechanisms are operating on activities -- so you must declare the matching intent-filter in an activity. It isn't for use with broadcast receivers, and thus couldn't be used with a dynamically registered broadcast

[android-developers] Re: How to get the information of a streaming video.

2008-06-18 Thread Megha Joshi
There are no APIs in the current SDK to get this information. Is there any particular reason you want this information(Use cases)? On Tue, Jun 17, 2008 at 8:58 PM, dreamania [EMAIL PROTECTED] wrote: Dear all, How to get information of a streaming video during streaming. Such as Duration, the

[android-developers] Re: Android tracing and profiling

2008-06-18 Thread Megha Joshi
The tools to process and view these files are not shipped with the current SDK. So , the native tracing isn't supported in the SDK yet. You can only use the method tracing for now. On Wed, Jun 18, 2008 at 1:56 AM, Horia [EMAIL PROTECTED] wrote: Hello, The emulator and API provides a couple

[android-developers] Re: J2ME or J2SE?

2008-06-18 Thread MobileBen
Do I understand it right, that if I look at the architecture of the Android operating system that the J2SE libraries are the core libraries in the Android runtime (3rd Layer)? Or where do I have to see them in the architecture model? Thx --~--~-~--~~~---~--~~ You

[android-developers] Re: Conversion to Dalvik format failed with error 2

2008-06-18 Thread Oscar Castaneda
Hi Taras, Thanks for your help. I think your suggestions resolved the problem, even though I'm getting other errors now. By mistake I sent the email only to you which I think resulted in me being the only recipient of your response. I include your response and my follow-up below, as someone else

[android-developers] Re: Running a program when emulator start

2008-06-18 Thread Jaikishan Jalan
Hi, Thanks for the reply. I understood what you are saying. I wrote my Intent Receiver which will receive to this broadcast message. Now I want to run a background process which keeps running forever ( which do some update after every sometime t). My approach to this problem is this : I am going

[android-developers] Re: J2ME or J2SE?

2008-06-18 Thread JBQ
Some of the APIs implemented by the core libraries would indeed look familiar to J2SE programmers. JBQ On Jun 18, 12:45 pm, MobileBen [EMAIL PROTECTED] wrote: Do I understand it right, that if I look at the architecture of the Android operating system that the J2SE libraries are the core

[android-developers] Re: How to get the information of a streaming video.

2008-06-18 Thread dreamania
Hi, Megha I'd like to show these information to users as many Media Player in PC. And I think this is an common requirement from many users. thx a lot. dreamania. On Jun 19, 2:39 am, Megha Joshi [EMAIL PROTECTED] wrote: There are no APIs in the current SDK to get this information. Is there

[android-developers] Re: Help on porting with ME4Android

2008-06-18 Thread Lex
Thanks Steve for the links. How sure is the fact that InnaWorks is working on an Android porting ? And what external libraries ? I mean could I still use them and thy'll be ported on Android ? Thanks On Jun 17, 7:57 pm, Steve Oldmeadow [EMAIL PROTECTED] wrote: Not ME4Android but here is a

[android-developers] Re: Download files onto SD Card

2008-06-18 Thread Josh Guilfoyle
If you're interested in specifics on how to store to the SD card, it is not unlike storing files to a desktop machine with J2SE. The path (and other useful information) can be found by using the android.os.Environment class. On Jun 18, 9:06 am, Mark Murphy [EMAIL PROTECTED] wrote: No its not

[android-developers] Re: TabHost remove Tab

2008-06-18 Thread Josh Guilfoyle
You can't currently. I don't believe this is an inherent deficiency in the design of TabHost, but rather that you ought not construct a UI that behaves this way. You are presuming to reveal a tab to the user and then hide it through some event. Will this be extremely clear to your user why

[android-developers] Re: Access to Call Audio?

2008-06-18 Thread Josh Guilfoyle
Unlikely, as this is a contentious topic. For example, in some countries it is illegal to record voice conversations without the other parties consent and knowledge, and in many others it is simply dubious behaviour. Also, the hardware may (and probably does) simply process the signal and

[android-developers] Re: Access to Call Audio?

2008-06-18 Thread mwmarquez
Thas incorrect, there's an image that is loaded that is needed to uninvert the signal coming from the cell site and also manage the WBR. I've asked about this already and it does not seem like anyone knows enough about the WBRs to answer my questions. Sent via BlackBerry -Original

[android-developers] Re: Running a program when emulator start

2008-06-18 Thread Zach Hobbs
If you are doing periodic updates I would think about using the AlarmManager to kick off the process after specified intervals. If you create a service it's possible that it will be killed by the OS to free resources. http://code.google.com/android/reference/android/app/AlarmManager.html --

[android-developers] Re: Help on porting with ME4Android

2008-06-18 Thread Steve Oldmeadow
On Jun 19, 10:03 am, Lex [EMAIL PROTECTED] wrote: Thanks Steve for the links. How sure is the fact that InnaWorks is working on an Android porting ? It is just a rumour but an Android solution should be much simpler to create than their iPhone and BREW products. And what about external