[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)

The problem is nativeTracing (started by F9 or startNativeTracing()
method) generates some files I don't know how to use:
qtrace.bb
qtrace.exc
qtrace.pid
qtrace.method
qtrace.inst
qtrace.static

Does anyone know how can I view the contents of these files ?(they are
binaries, not ascii)

Thanks!

--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 and the other application is the one the user is 
working with.

The closest thing I know of in Android that fits the bill assumes that 
each file is actually a Uri to some piece of content.

In that case, if the other application happens to populate its options 
menu using addIntentOptions() using something like this:

Intent intent = new Intent(null, myContentUri);

intent.addCategory(Intent.ALTERNATIVE_CATEGORY);
menu.addIntentOptions(Menu.ALTERNATIVE, 0, new ComponentName(this,
MyActivity.class),
null, intent, 0, null);

Then, if you have an activity or intent receiver that matches the 
Intent, a menu choice will appear in the other application's options 
menu that, when clicked, will trigger your application with the supplied 
Uri. You would then, in your application, do something useful with the 
Uri (e.g., flag it for sharing).

However:

1. You can't force developers to use addIntentOptions() in their menus, 
so your menu choice may or may not appear in any given activity's 
options menu where you might expect it

2. If you set your intent filter too broadly, you might get the menu 
option for a whole bunch of Uri types that you can't do anything with.

3. I think this only works for intent filters declared in the manifest 
(vs. any intent receivers you register on the fly using 
registerReceiver()), though I'm not sure about that.

Hope this helps!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ -- Available Now!

--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 my keyboard-less hardware...

 Any ideas?
 Thanks for help.

 Regards!
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 J2SE classes, but not all.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ -- Available Now!

--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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:
 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 J2SE classes, but not all.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ -- Available Now!
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 currently not available.

 On Mon, Jun 16, 2008 at 4:03 PM, redhatab [EMAIL PROTECTED] wrote:

  Hi, Can anyone tell me how I can download a file from the internet
  onto the SD card if I have just a link to the file!

--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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]at
com.google.util.ExceptionWithContext.withContext(ExceptionWithContext.java:
46)
[2008-06-18 09:18:18 - gmvv]at
com.google.dex.cf.CfTranslator.processMethods(CfTranslator.java:395)
[2008-06-18 09:18:18 - gmvv]at
com.google.dex.cf.CfTranslator.translate0(CfTranslator.java:183)
[2008-06-18 09:18:18 - gmvv]at
com.google.dex.cf.CfTranslator.translate(CfTranslator.java:142)
[2008-06-18 09:18:18 - gmvv]at
com.google.command.dexer.Main.processClass(Main.java:362)
[2008-06-18 09:18:18 - gmvv]at
com.google.command.dexer.Main.processFileBytes(Main.java:346)
[2008-06-18 09:18:18 - gmvv]at
com.google.command.dexer.Main.processArchive(Main.java:311)
[2008-06-18 09:18:18 - gmvv]at
com.google.command.dexer.Main.processOne(Main.java:233)
[2008-06-18 09:18:18 - gmvv]at
com.google.command.dexer.Main.processAllFiles(Main.java:169)
[2008-06-18 09:18:18 - gmvv]at
com.google.command.dexer.Main.run(Main.java:126)
[2008-06-18 09:18:18 - gmvv]at
com.android.ide.eclipse.adt.build.ApkBuilder.executeDx(ApkBuilder.java:
569)
[2008-06-18 09:18:18 - gmvv]at
com.android.ide.eclipse.adt.build.ApkBuilder.build(ApkBuilder.java:
380)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
624)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
166)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
197)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:
246)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
249)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:
302)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
334)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
137)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
235)
[2008-06-18 09:18:18 - gmvv]at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
[2008-06-18 09:18:18 - gmvv] Caused by:
java.lang.IllegalArgumentException: no such label 0104
[2008-06-18 09:18:18 - gmvv]at
com.google.cf.code.Ropper.labelToBlock(Ropper.java:477)
[2008-06-18 09:18:18 - gmvv]at com.google.cf.code.Ropper.access
$200(Ropper.java:54)
[2008-06-18 09:18:18 - gmvv]at com.google.cf.code.Ropper
$SubroutineInliner.copyBlock(Ropper.java:1365)
[2008-06-18 09:18:18 - gmvv]at com.google.cf.code.Ropper
$SubroutineInliner.inlineSubroutineCalledFrom(Ropper.java:1339)
[2008-06-18 09:18:18 - gmvv]at
com.google.cf.code.Ropper.inlineSubroutines(Ropper.java:1229)
[2008-06-18 09:18:18 - gmvv]at
com.google.cf.code.Ropper.doit(Ropper.java:645)
[2008-06-18 09:18:18 - gmvv]at
com.google.cf.code.Ropper.convert(Ropper.java:255)
[2008-06-18 09:18:18 - gmvv]at
com.google.dex.cf.CfTranslator.processMethods(CfTranslator.java:331)
[2008-06-18 09:18:18 - gmvv]... 22 more
...while processing open (I)V
...while processing com/sun/mail/imap/IMAPFolder.class

[2008-06-18 09:18:18 - gmvv] 1 error; aborting
[2008-06-18 09:18:18 - gmvv] Conversion to Dalvik format failed with
error 1

Thanks a lot !
Karys

--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

---

UNEXPECTED TOP-LEVEL EXCEPTION:
com.google.util.ExceptionWithContext: no such label 0104
at
com.google.util.ExceptionWithContext.withContext(ExceptionWithContext.java:
46)
...
...etc
...
at com.google.cf.code.Ropper.convert(Ropper.java:255)
at com.google.dex.cf.CfTranslator.processMethods(CfTranslator.java:
331)
... 22 more
...while processing open (I)V
...while processing com/sun/mail/imap/IMAPFolder.class

1 error; aborting
Conversion to Dalvik format failed with error 1



I suppose it can't convert IMAPFolder.class with dx tool
Does someone have a solution ?

Thanks a lot
Karys



--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 PROTECTED] wrote:
 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 to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
are welcome to use others.

Full documentation on that API is at the HttpClient Web site:

http://hc.apache.org/httpclient-3.x/

If this isn't what you needed to know, write back with more specifics!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ -- Available Now!


--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 library classes will look familiar to Java developers,
but Android is definitely not Java.

JBQ

On Jun 18, 8:21 am, Justin (Google Employee) [EMAIL PROTECTED]
wrote:
 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:

  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 J2SE classes, but not all.

  --
  Mark Murphy (a Commons Guy)http://commonsware.com
  _The Busy Coder's Guide to Android Development_ -- Available Now!
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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)
findViewById(R.id.search_auto_compl);
textHint.setAdapter(adapter);
textHint.setThreshold(1);
textHint.setOnItemClickListener(new
AdapterView.OnItemClickListener(){
public void onItemClick(AdapterView av, View v, int i, long l)
{
textHint.performCompletion();
}
});

--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Wed, Jun 18, 2008 at 9:31 AM, Julka [EMAIL PROTECTED] wrote:

  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)
  findViewById(R.id.search_auto_compl);
         textHint.setAdapter(adapter);
         textHint.setThreshold(1);
         textHint.setOnItemClickListener(new
  AdapterView.OnItemClickListener(){
                 public void onItemClick(AdapterView av, View v, int i, long 
  l)
  {
                         textHint.performCompletion();
                 }
         });

 --
 Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 - 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 Wed, Jun 18, 2008 at 9:31 AM, Julka [EMAIL PROTECTED] wrote:

  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)
  findViewById(R.id.search_auto_compl);
 textHint.setAdapter(adapter);
 textHint.setThreshold(1);
 textHint.setOnItemClickListener(new
  AdapterView.OnItemClickListener(){
 public void onItemClick(AdapterView av, View v, int i, long 
  l)
  {
 textHint.performCompletion();
 }
 });

 --
 Romain Guywww.curious-creature.org
 




-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 simplest solution for this scenario.
Hope that Google's stuff will support this issue soon.


On Jun 9, 2:32 pm, David Given [EMAIL PROTECTED] wrote:
 Mark Murphy wrote:
  David Given wrote:
  Simplest solution is probably to use a custom ViewBinder on your
  SimpleCursorAdapter that adds a '(no selection)' row to the spinner.

  Can a ViewBinder add rows? I don't see how given the API.

 Yeah, if you're mapping the Spinner's data directly onto the database, I
 don't think you can do that.

 I'd assumed that he was mapping the database onto a ListView and the
 Spinner was just another widget in the list item hierarchy, which now I
 think about it probably isn't the case.

 --
 David Given
 [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Team @ Google

On Jun 14, 6:05 am, Digit [EMAIL PROTECTED] wrote:
 can't you use the filesystem instead to act as a cache between your app and
 the server ?
 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...

 On Fri, Jun 13, 2008 at 12:48 AM, Shawn McMurdo [EMAIL PROTECTED]
 wrote:

  This is disappointing.

  I have speech synthesis and streaming media analytics applications that
  would benefit from having access to more local memory.

  With a 16M limit, it forces me to restructure applications to be more
  server dependent in ways that are less efficient and would not be necessary
  as mobile devices with more memory become available.

  Perhaps an application descriptor could be added that would allow an
  application to use more memory.

  That way the default would still be a 16M mmap for all other apps.

  Any chance of incorporating something like this into 1.0?

  Thanks.

  Shawn

  --==--==--
  Shawn McMurdo
  See my Low Vision Guide at
 http://lowvisionguide.org

  - Original Message 
  From: hackbod [EMAIL PROTECTED]
  To: Android Developers android-developers@googlegroups.com
  Sent: Thursday, June 12, 2008 2:02:27 PM
  Subject: [android-developers] Re: 16M Memory Limit

  The 16MB is not a hard limit built in to the APIs, it is a current
  limit based on the hardware we are actually running on.  It is also a
  little tricky to raise the limit, because it would require making the
  VM's garbage collector smarter in how it manages memory: right now it
  mmaps a memory region that is this maximum size, so if we make that
  maximum larger we can start running out of address space.  This is
  something that can be fixed relatively easy (again it is not baked
  into the APIs), but won't be done for 1.0.

  On Jun 12, 1:22 am, whitemice [EMAIL PROTECTED] wrote:
   ...On top of this, by the time Android is fully loaded on a 64MB device
  only 10-20MB of RAM will probably remain.* So, essentially your application
  would use all system resources...

   640K ought to be enough for anybody
   - Bill Gates (apparently)
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 emulator) would not
 work.





 On Wed, Jun 18, 2008 at 10:00 AM, Julka [EMAIL PROTECTED] wrote:

  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 Wed, Jun 18, 2008 at 9:31 AM, Julka [EMAIL PROTECTED] wrote:

   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)
   findViewById(R.id.search_auto_compl);
          textHint.setAdapter(adapter);
          textHint.setThreshold(1);
          textHint.setOnItemClickListener(new
   AdapterView.OnItemClickListener(){
                  public void onItemClick(AdapterView av, View v, int i, 
   long l)
   {
                          textHint.performCompletion();
                  }
          });

  --
  Romain Guywww.curious-creature.org

 --
 Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 receiver either.

There is a common misunderstanding that a broadcast receiver sees all
intents going through the system, but they actually only operate on
intents sent as a broadcast.  For this reasons, in an upcoming SDK the
APIs have been changed a bit to use the word broadcast instead of
intent -- i.e., BroadcastReceiver, Context.sendBroadcast(), etc.

On Jun 18, 3:46 am, Mark Murphy [EMAIL PROTECTED] wrote:
 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 and the other application is the one the user is
 working with.

 The closest thing I know of in Android that fits the bill assumes that
 each file is actually a Uri to some piece of content.

 In that case, if the other application happens to populate its options
 menu using addIntentOptions() using something like this:

 Intent intent = new Intent(null, myContentUri);

 intent.addCategory(Intent.ALTERNATIVE_CATEGORY);
 menu.addIntentOptions(Menu.ALTERNATIVE, 0, new ComponentName(this,
                         MyActivity.class),
                         null, intent, 0, null);

 Then, if you have an activity or intent receiver that matches the
 Intent, a menu choice will appear in the other application's options
 menu that, when clicked, will trigger your application with the supplied
 Uri. You would then, in your application, do something useful with the
 Uri (e.g., flag it for sharing).

 However:

 1. You can't force developers to use addIntentOptions() in their menus,
 so your menu choice may or may not appear in any given activity's
 options menu where you might expect it

 2. If you set your intent filter too broadly, you might get the menu
 option for a whole bunch of Uri types that you can't do anything with.

 3. I think this only works for intent filters declared in the manifest
 (vs. any intent receivers you register on the fly using
 registerReceiver()), though I'm not sure about that.

 Hope this helps!

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ -- Available Now!
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 bit rate of streaming, the Type(Audio Only,
 Video Only, Video + Audio), Codec(The audio and video codec for
 streaming ), Dimension, and Title(if exist).

 It seems the Duration can be gotten from MediaPlayer.getDuration(),
 the Dimension can be gotten from MediaPlayer.getVideoHeight() and
 MediaPlayer.getVideoWidth()

 but how to get else information?

 


--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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)

 The problem is nativeTracing (started by F9 or startNativeTracing()
 method) generates some files I don't know how to use:
 qtrace.bb
 qtrace.exc
 qtrace.pid
 qtrace.method
 qtrace.inst
 qtrace.static

 Does anyone know how can I view the contents of these files ?(they are
 binaries, not ascii)

 Thanks!

 


--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 might find
this useful.

Unfortunately I cannot open the TUSCANY wiki at the moment but it looks like
 the contents of retrotranslator-android-1.2.6.jar hasn't been included
 into the dex file. Try to explicitly refer to it in your code, for instance,
 call
 net.sf.retrotranslator.android.main.java.lang._Class.cast(String.class,
 test);

 And you needn't use the 1.4 target - only using the 1.5 one makes sense for
 Android.



I forgot to mention that you can use the embed option making inclusion
 of retrotranslator-android-1.2.6.jar into the compile path redundant.

 So you can add -embed a single dot or any package name:

 java -jar
 ../Retrotranslator-1.2.6-bin/retrotranslator-transformer-1.2.6.jar
 -srcdir ../workspace -target 1.5 -reflection safe -stripannot -embed .
 -classpath ../Retrotranslator-1.2.6-bin/retrotranslator-android-1.2.6.jar
 -verbose


After following your suggestion and adding retrotranslator-android-1.2.6.jar
as an external library (as opposed to an external _user_ library) the
retrotranslator related errors disappeared. I'm now receiving errors about
java.rmi.Remote [1], which from what I could find is not supported in
Android. I just thought I'd mention it in case you have any suggestions :-)



On Tue, Jun 17, 2008 at 8:16 PM, Oscar Castaneda 
[EMAIL PROTECTED] wrote:

 Hi Taras,

 Thank you so much for the detailed response.

 I think you're right that when I run the Android project from Eclipse it
 both compiles the sources into classes and the classes into a dex file. I
 also agree that the most elegant way would be to add the translation step to
 the ADT plugin source code, thus enabling users to run Retrotranslator on
 the sources from within Eclipse. In some cases, such as mine, this is
 preferred over manually translating libraries that contain annotations and
 then adding them to the the main project (for instance, to simplify
 debugging).

 There is a workaround to prevent classes that have already been translated
 by Retrotranslator to be recompiled from source. The workaround is to
 disable the Java Builders from within each project's properties. I tried
 this and no longer receive the Annotation error:

 java.lang.Class.isAnnotationPresent(Class.java:1131)

 However, I'm getting the error shown below (and listed on the full stack
 trace in [1]). I took care to include retrotranslator-android-1.2.6.jar as
 an external library to all Tuscany projects, including calculator-android,
 as you pointed out. Additionally, I confirmed through the timestamps on
 class files and dex file that retrotranslated classes are not being
 recompiled and that the dex file was generated a few minutes after running
 retrotranslator.

 java.lang.NoClassDefFoundError:
 net.sf.retrotranslator.android.main.java.lang._Class

 I've tried this running retrotranslator as shown below, setting the target
 to java 1.5 at first and then to 1.4.

 $ java -jar
 /../Retrotranslator-1.2.6-bin/retrotranslator-transformer-1.2.6.jar -srcdir
 /../workspace -target 1.5 -reflection safe -stripannot -classpath
 /../Retrotranslator-1.2.6-bin/retrotranslator-android-1.2.6.jar -verbose

 What could be going wrong? Any suggestions would be greatly appreciated.

 [1] http://cwiki.apache.org/confluence/display/TUSCANYWIKI/14Jun2008



 On Wed, Jun 4, 2008 at 6:44 PM, Taras Puchko [EMAIL PROTECTED]
 wrote:

 Hi Oscar,

 Retrotranslator does it's job by modifying compiled classes in the
 following way:
 1. Embedding into each class its metadata (including annotations) as one
 big character string.
 2. Replacing some method invocations, so java.lang.Class.isAnnotationPresent 
 is being replaced with
 net.sf.retrotranslator.android.main.java.lang.Class.isAnnotationPresent etc.

 So when you call getAnnotations() on a particular class the code from
 retrotranslator-android-1.2.6.jar will parse the corresponding metadata and
 return the result.

 AFAIK when you run your Android project from Eclipse it both compiles your
 sources into classes and the classes into a dex file. So Retrotranslator has
 no chance to modify classes in between unless you fix the ADT plugin. The
 workaround is not to put your sources into Eclipse and to process it with
 javac, Retrotranslator and jar manually. After that you may add the jar to
 Eclipse.

 If you execute the following line you should obtain mytuscany-android.jar
 that is one-third bigger then the original mytuscany.jar and does not
 contain references to Java 5 reflection methods.

 java -jar retrotranslator-transformer-1.2.6.jar -srcjar mytuscany.jar
 -destjar mytuscany-android.jar  -target 1.5 -reflection safe -stripannot
 -classpath retrotranslator-android-1.2.6.jar

 So the line 

[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 to write
a Service Calls and call it from the onReceiveIntent method of the
IntentReceiver I wrote. Now, onStart method of the Service Class, I will
create a thread that updates and then sleep for time t and keep running.

Is this a recommended way to approach this problem?

Thanks
J

-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Damien
Sent: Wednesday, June 18, 2008 8:51 AM
To: Android Developers
Subject: [android-developers] Re: Running a program when emulator start


Android broadcasts a message on boot. See

http://code.google.com/android/reference/android/content/Intent.html#BOOT_CO
MPLETED_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 PROTECTED] wrote:
 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 to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 libraries in the Android runtime
 (3rd Layer)?
 Or where do I have to see them in the architecture model?

 Thx
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 bit rate of streaming, the Type(Audio Only,
  Video Only, Video + Audio), Codec(The audio and video codec for
  streaming ), Dimension, and Title(if exist).

  It seems the Duration can be gotten from MediaPlayer.getDuration(),
  the Dimension can be gotten from MediaPlayer.getVideoHeight() and
  MediaPlayer.getVideoWidth()

  but how to get else information?
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 solution, haven't tried it but it sounds
 interesting:

 http://www.netmite.com/android

 These guys are working on a ME - Android porting tool:

 http://www.mobile-distillery.com

 I've also heard rumours that these guys are working on a tool for
 Android:

 http://www.innaworks.com/
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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
 are welcome to use others.

 Full documentation on that API is at the HttpClient Web site:

 http://hc.apache.org/httpclient-3.x/

 If this isn't what you needed to know, write back with more specifics!

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ -- Available Now!
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 they have lost functionality?  Perhaps disabling tabs
makes more sense for your UI, or designing separate activities
entirely.

On Jun 15, 9:04 pm, Ahmy [EMAIL PROTECTED] wrote:
 Hello all

 I'm successfully create a tab using TabHost and TabHost.TabSpec.
 i found an addTab method but not removeTab.
 there is also clearAllTabs(boolean).  but that will remove all the
 tab;
 is there any way to remove tab by its tag name ?

 oh and i created the tab programatically or by code.

 thanx b4,
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 output it to the speaker, bypassing the software stack entirely.

On Jun 13, 1:18 pm, Shawn McMurdo [EMAIL PROTECTED] wrote:
 Will the 1.0 release provide application access to the call audio stream?
 Thanks.
 Shawn
  --==--==--
 Shawn McMurdo
 See my Low Vision Guide athttp://lowvisionguide.org
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Message-
From: Josh Guilfoyle [EMAIL PROTECTED]

Date: Wed, 18 Jun 2008 19:09:23 
To:Android Developers android-developers@googlegroups.com
Subject: [android-developers] Re: Access to Call Audio?



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 output it to the speaker, bypassing the software stack entirely.

On Jun 13, 1:18 pm, Shawn McMurdo [EMAIL PROTECTED] wrote:
 Will the 1.0 release provide application access to the call audio stream?
 Thanks.
 Shawn
  --==--==--
 Shawn McMurdo
 See my Low Vision Guide athttp://lowvisionguide.org


--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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

-- 

Zach Hobbs
HelloAndroid.com
Android OS news, tutorials, downloads 



On Wednesday 18 June 2008 16:00:38 Jaikishan Jalan wrote:
 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 to
 write a Service Calls and call it from the onReceiveIntent method of the
 IntentReceiver I wrote. Now, onStart method of the Service Class, I will
 create a thread that updates and then sleep for time t and keep running.

 Is this a recommended way to approach this problem?

 Thanks
 J

 -Original Message-
 From: android-developers@googlegroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Damien
 Sent: Wednesday, June 18, 2008 8:51 AM
 To: Android Developers
 Subject: [android-developers] Re: Running a program when emulator start


 Android broadcasts a message on boot. See

 http://code.google.com/android/reference/android/content/Intent.html#BOOT_C
O MPLETED_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 PROTECTED] wrote:
  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 to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 libraries ? I mean could I still use them and
 they'll  be ported on Android ?

Not sure but you could try decompiling the external libraries.
--~--~-~--~~~---~--~~
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, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---