[android-developers] Re: getting CPU usage and memory usage of a particular process

2010-01-05 Thread Christophe Paoutoff
Hi

As far as I know there is no api to get cpu usage in android. I
suggest you to lookup that by invoking linux 'top' command based on
the pid process number. Be aware on memory charge then launch external
cmd within apps.
BR
Chris

On 23 déc 2009, 07:20, Raghu Kiran arkiran...@gmail.com wrote:
 Hi All,

 I need to retrieve the CPU usage and memory usage of a particular running
 process in android.

 1. Can i retrieve the above mentioned information in android.
 2. If yes how to do that.
 3. If not what is the alternative for this.

 Thanking you...

 BR,
 Raghu Kiran A

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] System Calls in Android

2010-01-05 Thread perumal316
Hi,

Is there any way I can find out the system calls invoked by Android
for specific tasks?

For example, for writing/deleting contacts or writing/deleting SMS
what are the Linux system calls invoked by Android for these tasks?

I can't find any links explaining on this.

Thanks in Advance,
Perumal

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2010-01-05 Thread Mariano Kamp
Rory,

where did you get the ah information from? Is there any
documentation on the actual Google service behind this?

I checked the Android 2.0 Calendar and Contacts app and they only seem
to use a homegrown mechanism. Maybe better luck with Android 2.1?

Cheers,
Mariano

On Dec 3 2009, 9:59 pm, RoryD rory1doug...@gmail.com wrote:
 On Nov 9, 5:00 pm, Nerdrow troybe...@gmail.com wrote:

  I don't know the authTokenType to pass as an input parameter.

 It looks like ah does the trick for authTokenType!

 If you specify true for notifyAuthFail, you'll get a notification
 posted saying Permission Requested that takes you to a screen where
 Android says The listed applications are requesting permission to
 access the Google App Engine login credentials for account
 x...@gmail.com.  Do you wish to grant this permission?  then Allow/
 Deny buttons and the name of your app.

 I was usingblockingGetAuthToken it returns null for the token in
 this first case, presumably because there's no way to proceed without
 user interaction.  After you authorize the app, 
 subsequentblockingGetAuthTokencalls succeed.  I suspect non-blocking
 getAuthToken calls will properly handle this asynchronous behavior.

 Sweet, now I can remove all my homegrown AppEngine auth stuff :-)

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to simulate low memory condition on the device or emulator.

2010-01-05 Thread cht
for the developer, we must to deal with the low memory exception.
when other applications run forground, sometimes our application will
be killed for low memory reason .

so we have to test our application's performance under this condition.
but it is not easy to case a low memory condition. is there a good way
to  set up condition?

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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Start and Stop music on application launch and stop

2010-01-05 Thread tobias429
Hi Hassan,

You can use the onPause() and onResume() functions for this. Just
override the original functions and place the code to start your sound
in onResume() and the code to stop your sound in onPause().

In case you have several activities that can be independently started
and stopped, I'd use a static class with a counter of how many
activities are active right now. Every time an activity executes
onResume(), increase the counter by one, every time onPause() is
called, decrease it by one. You can then stop your sounds in onPause()
in case the counter is set to zero. Ditto for onResume(), where you
only need to start your sound in case that static counter was zero
beforehand.

Haven't tried this though, just an idea.

Best regards,

Tobias

On Jan 5, 7:14 am, Hassan Imtiaz hassan.imt...@cprods.com wrote:
 Hi,
     In my application i have several activities and i want to start
 background music whenever my *Application* is launched and stop music
 whenever *Application* is paused or stopped.
     Any help?.

 Regards,
 Hassan Imtiaz

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] File creation problem in Android source build

2010-01-05 Thread Arun
Hi ,

I am trying to create a file in android framework using the following
snippet of code :-

public void CreateMyFile()
{
try {
String destination = /data/hellothere.txt;

File fileCon= new File(destination);
if( ! fileCon.exists() ){
fileCon.createNewFile();
}
}
catch (IOException ioe) {
ioe.printStackTrace();
}
  //FilePermission fp=new FilePermission(destination,write);
}


When i compile this on sdk and execute it, everythng works fine and
file got created in the /data path with the hellothere.txt name.
But when i compile it in the source code and execute this on a android
filesystem on emulator and real hardware, the file is not getting
created and I am getting teh following error in logcat :-

I/ActivityManager(   54): Start proc file.app for activity
file.app/.fileop: pid=632 uid=10043 gids={1015}
W/System.err(  632): java.io.IOException: Parent directory of file is
not writable: /data/hellothere.txt
W/System.err(  632): at java.io.File.createNewFile(File.java:1263)
W/System.err(  632): at file.app.fileop.onCreate(fileop.java:44)
W/System.err(  632): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
W/System.err(  632): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2431)
W/System.err(  632): at android.app.ActivityThread.handleLaunchActivity
(ActivityThread.java:2484)
W/System.err(  632): at android.app.ActivityThread.access$2200
(ActivityThread.java:119)
W/System.err(  632): at android.app.ActivityThread$H.handleMessage
(ActivityThread.java:1835)
W/System.err(  632): at android.os.Handler.dispatchMessage
(Handler.java:99)
W/System.err(  632): at android.os.Looper.loop(Looper.java:123)
W/System.err(  632): at android.app.ActivityThread.main
(ActivityThread.java:4325)
W/System.err(  632): at java.lang.reflect.Method.invokeNative(Native
Method)
W/System.err(  632): at java.lang.reflect.Method.invoke(Method.java:
521)
W/System.err(  632): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
W/System.err(  632): at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:618)
W/System.err(  632): at dalvik.system.NativeStart.main(Native Method)
I/ActivityManager(   54): Displayed activity file.app/.fileop: 5196 ms
(total 5196 ms)


Please someone help me in this regard

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: File creation problem in Android source build

2010-01-05 Thread Derek
does the below permission help?
android.permission.WRITE_EXTERNAL_STORAGE

On Jan 5, 9:54 am, Arun achoudhary2...@gmail.com wrote:
 Hi ,

 I am trying to create a file in android framework using the following
 snippet of code :-

 public void CreateMyFile()
     {
 try {
 String destination = /data/hellothere.txt;

 File fileCon= new File(destination);
 if( ! fileCon.exists() ){
         fileCon.createNewFile();
     }}

 catch (IOException ioe) {
 ioe.printStackTrace();}

   //FilePermission fp=new FilePermission(destination,write);
     }

 When i compile this on sdk and execute it, everythng works fine and
 file got created in the /data path with the hellothere.txt name.
 But when i compile it in the source code and execute this on a android
 filesystem on emulator and real hardware, the file is not getting
 created and I am getting teh following error in logcat :-

 I/ActivityManager(   54): Start proc file.app for activity
 file.app/.fileop: pid=632 uid=10043 gids={1015}
 W/System.err(  632): java.io.IOException: Parent directory of file is
 not writable: /data/hellothere.txt
 W/System.err(  632): at java.io.File.createNewFile(File.java:1263)
 W/System.err(  632): at file.app.fileop.onCreate(fileop.java:44)
 W/System.err(  632): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1047)
 W/System.err(  632): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2431)
 W/System.err(  632): at android.app.ActivityThread.handleLaunchActivity
 (ActivityThread.java:2484)
 W/System.err(  632): at android.app.ActivityThread.access$2200
 (ActivityThread.java:119)
 W/System.err(  632): at android.app.ActivityThread$H.handleMessage
 (ActivityThread.java:1835)
 W/System.err(  632): at android.os.Handler.dispatchMessage
 (Handler.java:99)
 W/System.err(  632): at android.os.Looper.loop(Looper.java:123)
 W/System.err(  632): at android.app.ActivityThread.main
 (ActivityThread.java:4325)
 W/System.err(  632): at java.lang.reflect.Method.invokeNative(Native
 Method)
 W/System.err(  632): at java.lang.reflect.Method.invoke(Method.java:
 521)
 W/System.err(  632): at com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:860)
 W/System.err(  632): at com.android.internal.os.ZygoteInit.main
 (ZygoteInit.java:618)
 W/System.err(  632): at dalvik.system.NativeStart.main(Native Method)
 I/ActivityManager(   54): Displayed activity file.app/.fileop: 5196 ms
 (total 5196 ms)

 Please someone help me in this regard

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Platform Eclair is a preview and requires appication manifests to set minSdkVersion to 'Eclair'

2010-01-05 Thread skan95
Dear All.

I will try to modify native Camera package in Eclipse.
So, I make Camera project in Eclipse and try to compile it.
But, Platform Eclair is a preview and requires appication manifests
to set minSdkVersion to 'Eclair' error message is shown.
Does it mean minSdkVersion information should be inclused in Camera
manifests.xml file as Eclair?

If there are anyone know this, please share your valuable information.

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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Start and Stop music on application launch and stop

2010-01-05 Thread Hassan Imtiaz
Thanks Tobias,

Actually in my activities there is an activity that i am using through jar
file and when i press home button of device at that particular activity,
application is paused but there is no way i can override the onpause()
function of that activity to stop music.So how can i stop music in this
case?

Best Regards,
Hassan Imtiaz


On Tue, Jan 5, 2010 at 2:38 PM, tobias429 ecker...@gmx.de wrote:

 Hi Hassan,

 You can use the onPause() and onResume() functions for this. Just
 override the original functions and place the code to start your sound
 in onResume() and the code to stop your sound in onPause().

 In case you have several activities that can be independently started
 and stopped, I'd use a static class with a counter of how many
 activities are active right now. Every time an activity executes
 onResume(), increase the counter by one, every time onPause() is
 called, decrease it by one. You can then stop your sounds in onPause()
 in case the counter is set to zero. Ditto for onResume(), where you
 only need to start your sound in case that static counter was zero
 beforehand.

 Haven't tried this though, just an idea.

 Best regards,

 Tobias

 On Jan 5, 7:14 am, Hassan Imtiaz hassan.imt...@cprods.com wrote:
  Hi,
  In my application i have several activities and i want to start
  background music whenever my *Application* is launched and stop music
  whenever *Application* is paused or stopped.
  Any help?.
 
  Regards,
  Hassan Imtiaz

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Telephony.SECRET_CODE

2010-01-05 Thread Master_Ne0
Hi, been looking at the android code and wanted to know if it was
possible to use the secret code for SDK applications or was it only
reserved for system apps?

System settings has this in the manifest

receiver android:name=TestingSettingsBroadcastReceiver
intent-filter
 action
android:name=android.provider.Telephony.SECRET_CODE /
 data android:scheme=android_secret_code
android:host=4636 /
/intent-filter
/receiver

So when you dial *#*#4636#*#* it launches the testing settings
activity. It would be very handy if we could use this.

Ne0

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] MapView Overlay problem

2010-01-05 Thread Stefan
hello,

i have an activity with a MapView ad overlays. If i start a new
activity and go back to my Activity with the map, i only see the map
without my overlays. How can i save my overlays?? The
mapView.onSaveInstanceState() does not save the overlays, does it? Or
have i implement something wrong and the overlays should be visible
after i come back to my MapActivity?

Thanks in advance.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: File creation problem in Android source build

2010-01-05 Thread Master_Ne0
You can't write an app that can create a file in the Data directory,
unless your device is rooted. You might be better off posting in the
platform group if your trying to modify the framework, as this group
is for Android developers, not contributes.

Ne0

On Jan 5, 10:15 am, Derek xianguan...@gmail.com wrote:
 does the below permission help?
 android.permission.WRITE_EXTERNAL_STORAGE

 On Jan 5, 9:54 am, Arun achoudhary2...@gmail.com wrote:

  Hi ,

  I am trying to create a file in android framework using the following
  snippet of code :-

  public void CreateMyFile()
      {
  try {
  String destination = /data/hellothere.txt;

  File fileCon= new File(destination);
  if( ! fileCon.exists() ){
          fileCon.createNewFile();
      }}

  catch (IOException ioe) {
  ioe.printStackTrace();}

    //FilePermission fp=new FilePermission(destination,write);
      }

  When i compile this on sdk and execute it, everythng works fine and
  file got created in the /data path with the hellothere.txt name.
  But when i compile it in the source code and execute this on a android
  filesystem on emulator and real hardware, the file is not getting
  created and I am getting teh following error in logcat :-

  I/ActivityManager(   54): Start proc file.app for activity
  file.app/.fileop: pid=632 uid=10043 gids={1015}
  W/System.err(  632): java.io.IOException: Parent directory of file is
  not writable: /data/hellothere.txt
  W/System.err(  632): at java.io.File.createNewFile(File.java:1263)
  W/System.err(  632): at file.app.fileop.onCreate(fileop.java:44)
  W/System.err(  632): at
  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
  1047)
  W/System.err(  632): at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
  2431)
  W/System.err(  632): at android.app.ActivityThread.handleLaunchActivity
  (ActivityThread.java:2484)
  W/System.err(  632): at android.app.ActivityThread.access$2200
  (ActivityThread.java:119)
  W/System.err(  632): at android.app.ActivityThread$H.handleMessage
  (ActivityThread.java:1835)
  W/System.err(  632): at android.os.Handler.dispatchMessage
  (Handler.java:99)
  W/System.err(  632): at android.os.Looper.loop(Looper.java:123)
  W/System.err(  632): at android.app.ActivityThread.main
  (ActivityThread.java:4325)
  W/System.err(  632): at java.lang.reflect.Method.invokeNative(Native
  Method)
  W/System.err(  632): at java.lang.reflect.Method.invoke(Method.java:
  521)
  W/System.err(  632): at com.android.internal.os.ZygoteInit
  $MethodAndArgsCaller.run(ZygoteInit.java:860)
  W/System.err(  632): at com.android.internal.os.ZygoteInit.main
  (ZygoteInit.java:618)
  W/System.err(  632): at dalvik.system.NativeStart.main(Native Method)
  I/ActivityManager(   54): Displayed activity file.app/.fileop: 5196 ms
  (total 5196 ms)

  Please someone help me in this regard



-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ListActivity not updating on Database update.

2010-01-05 Thread mac-systems
I tried it, but i get a empty cursor doing it because my Listactivity
show the empty message.
I already wondering about that. Anyone else ?

Thx,
Jens



On 5 Jan., 08:27, Hjcheon hjch...@gmail.com wrote:
 -Original Message-
 From: Lance Nanek lna...@gmail.com
 Sent: Tuesday, January 05, 2010 1:31 PM
 To: Android Developers android-developers@googlegroups.com
 Subject: [android-developers] Re: ListActivity not updating on Database 
 update.

 Have you tried calling requery on the underlying Cursor?

 On Jan 4, 8:00 pm, mac-systems jens.h...@gmx.de wrote:
  Hello,

  i update a value in my Database in a Listview using a Context Menu.
  The code so far seems to be ok. But everything i try to make the
  update visible in the View failed. Anyone can point me whats wrong
  there ? I use a ViewBinder to map the Layout for each row.

  Row Layout:

  ?xml version=1.0 encoding=UTF-8?
  LinearLayout
          xmlns:android=http://schemas.android.com/apk/res/android;
          android:orientation=vertical
          android:layout_width=fill_parent
          android:layout_height=fill_parent

          TextView
                  android:id=@+id/custom_spotoverview_name
                  android:text=text
                  android:layout_width=wrap_content
                  android:layout_height=wrap_content
                  android:textSize=20sp /

          LinearLayout
                  xmlns:android=http://schemas.android.com/apk/res/android;
                  android:orientation=horizontal
                  android:layout_width=fill_parent
                  android:layout_height=fill_parent

                  ImageView
                          android:id=@+id/custom_spotoverview_activ
                          android:layout_width=wrap_content
                          android:layout_height=wrap_content /

                  View
                          android:layout_width=5dp
                          android:layout_height=5dp /

            =

 [The entire original message is not included]

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to downgrade T-Mobile G1 from Donut to Cupcake?

2010-01-05 Thread Stefan Klumpp
Most likely you will find the information you need on: http://theunlockr.com/

On Dec 18 2009, 5:03 pm, Greivin Lopez greivin.lo...@gmail.com
wrote:
 Hi,

 I need to supportAndroid1.5 (Cupcake) for my application but I don't
 have any 1.5 device.  I currently have a Motorola Droid with 2.0.1 and
 the T-Mobile G1 (HTC Dream) with 1.6 (Donut).

 What I want to do is todowngrademy G1 to the previous official OTA
 release of Cupcake.  I have no experience in rooting anAndroid
 device, so I would appreciate if someone could give me a step-by-step
 guide on how to accomplish this?

 Thank you in advance.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Led notification on Motorola Milestone

2010-01-05 Thread Pablo Szyrko
Hi all,
I'm dealing with an issue related with notifications.
My application shows led notification for some events, but it isn't
working in the Motorola Milestone (i'm not sure if it doesn't work in
the Motorola DROID also). Led notifications are shown in HTC Hero,
Magic and G1

This is my code:

Notification notif = new Notification();
notif.flags |= Notification.FLAG_SHOW_LIGHTS;
notif.ledOnMS = 200;
notif.ledOffMS = 200;
notificationManager.notify(LED_NOTIFICATION, notif);

Do you know if this code is OK? i don't know if i'm missing something.
Thanks, Pablo

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Master_Ne0
I also had this problem, i had to save the overlay locations to the
outstate bundle then add them again onResume. Couldn't figure a way to
save my overlay class to bundle. Let me know if you find a better
workaround.

Ne0

On Jan 5, 11:59 am, Stefan ebay-dah...@web.de wrote:
 hello,

 i have an activity with a MapView ad overlays. If i start a new
 activity and go back to my Activity with the map, i only see the map
 without my overlays. How can i save my overlays?? The
 mapView.onSaveInstanceState() does not save the overlays, does it? Or
 have i implement something wrong and the overlays should be visible
 after i come back to my MapActivity?

 Thanks in advance.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to downgrade T-Mobile G1 from Donut to Cupcake?

2010-01-05 Thread Master_Ne0
I would get it from here http://developer.htc.com/adp.html. Though you
will need to root your G1 first, xda-developers will help you do that.

Ne0

On Jan 5, 12:05 pm, Stefan Klumpp stefan.klu...@gmail.com wrote:
 Most likely you will find the information you need on:http://theunlockr.com/

 On Dec 18 2009, 5:03 pm, Greivin Lopez greivin.lo...@gmail.com
 wrote:

  Hi,

  I need to supportAndroid1.5 (Cupcake) for my application but I don't
  have any 1.5 device.  I currently have a Motorola Droid with 2.0.1 and
  the T-Mobile G1 (HTC Dream) with 1.6 (Donut).

  What I want to do is todowngrademy G1 to the previous official OTA
  release of Cupcake.  I have no experience in rooting anAndroid
  device, so I would appreciate if someone could give me a step-by-step
  guide on how to accomplish this?

  Thank you in advance.



-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Sending market link in mail

2010-01-05 Thread sheik
hello developers , help me on this issue ..  thanks..

On Jan 5, 11:36 am, sheik sheik...@gmail.com wrote:
 Hi ,
 i wanna know is it possible to send market link(market://details?
 id=packge_name) in the mail , that would direct user to the
 application(in android market). i was not able to send using href --
 tag as we do in html . Kindly guide on this issue . kindly let me know
 if the Q is not clear .

 Below is the code am using ...

 Intent sendIntent = new Intent(Intent.ACTION_SEND);
                     sendIntent.putExtra(Intent.EXTRA_SUBJECT, Mail
 subject ... . .here);

                     sendIntent.putExtra(Intent.EXTRA_TEXT,Chk this app 
 (market://
 details?id=package_name) );
                     sendIntent.setType(text/plain);
                     startActivity(Intent.createChooser(sendIntent, Fwd app 
 link));

 thank you ..
 regards
 Sheik

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] System Calls in Android

2010-01-05 Thread Mark Murphy

 Hi,

 Is there any way I can find out the system calls invoked by Android
 for specific tasks?

 For example, for writing/deleting contacts or writing/deleting SMS
 what are the Linux system calls invoked by Android for these tasks?

 I can't find any links explaining on this.

You would have to rummage through the source code at
http://source.android.com.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Menu Item Name

2010-01-05 Thread tobias429
Hi,

menu.add() returns the menu item that was created. You can create a
global variable, assign the returned menu to this global variable, and
then access this any time you like.

E.g.:

In your global variable definitions, add:
MenuItem startMenu;

in onCreateOptionsMenu() you add:

startMenu=menu.add(0, 1, 0, Start);

In you onOptionsItemSelected, you then just have to state:

startMenu.setTitle(Pause);

Cheers,

Tobias

On Jan 4, 1:19 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote:
 Hi,

 I added 2 menus.

         menu.add(0, 1, 0, Start);
         menu.add(0, 2, 0, Stop);

 public boolean onOptionsItemSelected(MenuItem item)
     {
         switch (item.getItemId()) {
         case 1:
             if(item.getTitle().equals(Start))
             {
                 item.setTitle(Pause);
             }
             return true;
         case 2:

             return true;
         }
         return false;
     }

 when i click the stop menu, the start menu name should be changed.

 How to change that?...

 --
 Thanks  Regards
 Sasikumar.S

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ListActivity not updating on Database update.

2010-01-05 Thread mac-systems
I just figured out that if i write the setActive Method like this i
see a update, but i have duplicated Code:

private void setActive(final boolean _state)
{
final ISelectedDAO dao = DAOFactory.getSelectedDAO(this);
dao.setActiv(getSelectedItemId(), _state);
c = dao.fetchAll();
startManagingCursor(c);

final String[] from = new String[]
{ ISelectedDAO.COLUMN_ACTIV, ISelectedDAO.COLUMN_NAME,
ISelectedDAO.COLUMN_ID, ISelectedDAO.COLUMN_STARTING,
ISelectedDAO.COLUMN_TILL };
final int[] to = new int[]
{ R.id.custom_spotoverview_activ, R.id.custom_spotoverview_name,
R.id.custom_spotoverview_detail,
R.id.custom_spotoverview_wind_from,
R.id.custom_spotoverview_wind_to };
shows = new SimpleCursorAdapter(this,
R.layout.custom_listview_spotoverview, c, from, to);
shows.setViewBinder(new SpotOverviewViewBinder());
setListAdapter(shows);
Log.d(LOG_TAG, Updating View);
}

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Stefan
On Jan 5, 1:16 pm, Master_Ne0 master.ne0s.soluti...@googlemail.com
wrote:
 I also had this problem, i had to save the overlay locations to the
 outstate bundle then add them again onResume. Couldn't figure a way to
 save my overlay class to bundle. Let me know if you find a better
 workaround.

 Ne0


Thanks for your fast answer. Because this is the best idea until know,
i will test your solution and if i find a better way, i will let you
know.

Thanks again,
Stefan

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Get supported media types ( programatically)

2010-01-05 Thread Dilli
Hi all

how to get the supported media types of a device

because all android devices not support all media formats

i behave my app based on supported media types

how can i get that information

Any ideas

Thank you

Dilli

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Pass key events through transparent activity

2010-01-05 Thread abarinoff
My application has transparent activity which is shown over the
Incoming Call activity when the call is received. In HTC Hero the
Incoming Call screen has two buttons Accept and Decline but when
my transparent activity is displayed user can see those buttons bu
can't press them as all key events are sent ti transparent activity
for processing.

Probably there is some possibility to pass key events to the
underlying activity ? Or probably it is possible to add some view to
the screen without creating new activity ?

Any help on this issue will be very much appreciated !

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Pass key events through transparent activity

2010-01-05 Thread Mark Murphy
 Probably there is some possibility to pass key events to the
 underlying activity ?

I do not believe so, other than by eliminating your activity.

 Or probably it is possible to add some view to
 the screen without creating new activity ?

No, except perhaps by firmware modifications.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Null pointer exception

2010-01-05 Thread JasonMP
Ok, I tried gino's idea with initializing my arrays differently.  I
also changed there names so that they did not share a name with any
other arrays in my app:  Did not work.

I also tried calling to static variables instead of passing variables
between classes with intents:  This also did not work.

I can't determine which line of code causes the error.  The logcat
does not give me a pointer to anything in my app at all.  I tried to
narrow it down with breakpoints and logging and what I found is that
it runs through all of my code without a hitch, and then once its done
it throws the exception.

And again the exception only happens when I call the intent from a
contextMenu.

On Jan 1, 2:56 am, Wiebbe wie...@gmail.com wrote:
 Shouldnt you check if the bundle is null or not? Try to loop through
 it when you get there from a onContextItemSelected event. I'm guessing
 some value somewhere is null when it should be instantiated. Perhaps
 the intent is started quicker or without the bundle somehow so you get
 a nullpointer exception?

 On 31 dec 2009, 15:57, JasonMP hyperje...@gmail.com wrote:



  yes, Select.class is another one of my files.  throughout my app there
  are a few different calls to it, all done the same way i.e. Intent i
  = new Intent(this, Select.class); startActivity(i);

  No where in Select.class do I make a call to start Select.class or
  Sheet.class.  When its done it calls finish();

  in the onCreate() of Select.class I grab the extras from the invoking
  class with this line of code:

  public class Select extends ListActivity{

          DBAdapter db = new DBAdapter(this);
          String slotName = null;

          @Override
          public void onCreate(Bundle savedInstanceState) {
                    super.onCreate(savedInstanceState);

                    db.open();

                    ListView list = getListView();

                    View v = View.inflate(this, R.layout.list_header, null);
                    list.addHeaderView(v, null, false);

                    name = 
  this.getIntent().getStringExtra(DBAdapter.KEY_NAME);
          }

  Could it be something in the .getIntent() method?  or
  the .getStringExtra()?

  On Dec 30, 7:19 pm, Stephen @ gmail.com sdickey2...@gmail.com
  wrote:

   Now that I understand your intent creation a little better, and I see that
   the intent you are creating is unique from the class in which the code
   exists, I am not quite sure how it could be an infinite loop in the
   (immediate) way I was thinking.

   Reading this code

   Intent i = new Intent(this, Select.class);

   I have to start thinking there's something wrong with this.  I tried to 
   look
   up the Select class on the android developers site, and couldn't find 
   it.
   Is that a class from another of your files?  I guess I would wonder if the
   code being invoked there, is somehow causing this class to be invoked, 
   thus
   causing some kind of loop.  I would grep for any reference to your Sheet
   class, from anywhere else in your code, and that would likely be suspect.

   In general, the below is kind of a side topic, to maybe help you with
   generic debugging.

   All the Best, Steve.

   *Ok... the only thing I can think to really help you is to start taking
   advantage of logging.  In your import list, I see you don't include the
   logger code, so maybe you can give this a shot.

   1) in the import list

   import android.util.Log;

   2) and throughout your code

   Log.d( TAG, DebugText );

   where TAG is a string that is unique to you, and DebugText is something
   useful to identify the part of the program you're interested in.

   *

   On Wed, Dec 30, 2009 at 11:32 AM, JasonMP hyperje...@gmail.com wrote:
Ok, I'm suddenly very curious by your previous statement stephen about
the possibility of creating an infinite loop.  Upon a little more
investigation I'm now getting errors all over the place...same
errorjust at different points in the app where I try to
startActivity(intent);  As soon as the new activity receives focus is
crashes.

On Dec 30, 1:58 pm, JasonMP hyperje...@gmail.com wrote:
 package com.mallet.dtool;

 import android.app.AlertDialog;
 import android.app.TabActivity;
 import android.app.AlertDialog.Builder;
 import android.content.DialogInterface;
 import android.content.Intent;
 import android.content.DialogInterface.OnClickListener;
 import android.content.res.Configuration;
 import android.database.Cursor;
 import android.graphics.Color;
 import android.os.Bundle;
 import android.view.ContextMenu;
 import android.view.KeyEvent;
 import android.view.Menu;
 import android.view.MenuItem;
 import android.view.View;
 import android.view.ContextMenu.ContextMenuInfo;
 import android.widget.AdapterView;
 import android.widget.ImageView;
 import android.widget.LinearLayout;
 import android.widget.ListView;
 import 

[android-developers] Re: Where can I get adds for my application?

2010-01-05 Thread Michael Chips
Vladimir
Some info and statistic about Quattro Wireless you can read here:
http://habrahabr.ru/blogs/android/76267/ (russian)

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ServiceConnectionLeaked warning

2010-01-05 Thread Pawel Kapala
Hello!

It seems you're leaking the service connection in some way.
Try doing some logging after you bind and before you unbind to the
service, to see if you have unbound where needed (i.e.
Activity.onDestroy). I guess, in your case, when you restart the
activity 1, without previous unbind, the service connection is leaked.
Do you call unbind in onDestroy method in your activities?

Also try isolating the code, maybe you'll find the solution this way.
Maybe, this also could be helpful in your case:
http://groups.google.com/group/android-developers/browse_thread/thread/b8a7fbd42df6c421/7b76aa66363abd22?hl=enlnk=gstq=+ServiceConnectionLeaked+warning+#7b76aa66363abd22

--
Best regards,
Pawel

On Jan 5, 2:11 am, Mike Collins mike.d.coll...@gmail.com wrote:
 I'm getting aServiceConnectionLeakedmessage that I don't understand.

 There are 3 activities and a remote service, all the activities use
 the same
 remote service.  The main window, activity 1, starts up, auto-starts
 the
 service and binds to it.  The user then starts activity 2 to do
 something.
 The user now wants activity 3, so the code in activity 2 puts some
 data in
 an intent and starts activity 1 via startActivity ().  When activity 1
 is started,
 it reads the data in the intent and starts activity 3.

 This all works as expected except that while activity 3 is starting I
 get theServiceConnectionLeakedwarning.  This is odd because the code that
 unbinds from the service has never been called and the service
 connection
 continues to operate just fine.  If the user backs out of the main
 window
 the service is unbound and everything shuts down correctly.

 Because the UI design doesn't want activity 2 to stack on top of 3, or
 3 on top of 2 I use a FLAG_ACTIVITY_CLEAR_TOP flag when starting
 activity 1.  (I tested with this flag removed and the leakwarning
 goes away but
 I wind up with extra activities/windows in the stack).

 To make it even a bit weirder, if I run through the same scenario
 again,
 e.g. close activity 3 to get back to activity 1, open 2, switch to 3
 there is no
 leakage the second and successive times, only the first time (near as
 I
 can tell).

 any hints, thoughts?

 tia,
   mike

 I could pare it all down to an example if that is required/helpful.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Menu always Displayable

2010-01-05 Thread Nithin
Hi,

I want options menu should always display, when  I open my
application, for that I put openOptionsMenu(), in onCreate() of the
launcher activity.  But its showing exception.

--android.view.WindowManager$BadTokenException: Unable to add window
-- token n
ull is not valid; is your activity running?

Then I put openOptionsMenu() in onResume(), still its throwing
exception.

Any idea how to make menu displayable always.

Nithin

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Maps API in paid App

2010-01-05 Thread TreKing
I think you're reading the wrong TOS.

When you sign up for a developer API key for Android
(http://code.google.com/android/add-ons/google-apis/maps-api-signup.html)
there is a a different TOS, which states:

5.4. Subject to these Terms, you may develop, display and/or distribute your
 Maps API Implementation as part of a commercial or non-commercial
 enterprise.


-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Tue, Jan 5, 2010 at 12:00 AM, mikek mik...@gmail.com wrote:

 According to the terms for use of Google Maps API,
 http://code.google.com/apis/maps/terms.html

 Incorporating the Maps API into your application is free as long as
 the app is also free. Otherwise, you need a commercial license. A
 commercial license for $10K is a heck of a lot of $1.99 apps.

 Does anyone have any insight on alternative payment structures for the
 Maps API.

 Excerpt from terms.html:
 9.1 Free, Public Accessibility to Your Maps API Implementation. Your
 Maps API Implementation must be generally accessible to users without
 charge. You may require users to log in to your Maps API
 Implementation if you do not require users to pay a fee. Unless you
 have entered into a separate written agreement with Google or obtained
 Google's written permission, your Maps API Implementation must not:

 (a) require a fee-based subscription or other fee-based restricted
 access; or
 (b) operate only behind a firewall or only on an internal network
 (except during the development and testing phase).

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ServiceConnectionLeaked warning

2010-01-05 Thread Beth
Yep, based on your description it sounds like Activity 1 is already
running and bound to the Service when you call it from Activity 2.
There's your leak.  See if you can put a test in Activity 1 before you
bind to the service.  If it is already running the service and bound,
don't do it again.  You might set a boolean flag in the Activity or
Service when you start and bind to it then check for that before you
call it and start again.
That's my educated guess.
Good luck.

On Jan 5, 10:17 am, Pawel Kapala pawel.kap...@googlemail.com wrote:
 Hello!

 It seems you're leaking the service connection in some way.
 Try doing some logging after you bind and before you unbind to the
 service, to see if you have unbound where needed (i.e.
 Activity.onDestroy). I guess, in your case, when you restart the
 activity 1, without previous unbind, the service connection is leaked.
 Do you call unbind in onDestroy method in your activities?

 Also try isolating the code, maybe you'll find the solution this way.
 Maybe, this also could be helpful in your 
 case:http://groups.google.com/group/android-developers/browse_thread/threa...

 --
 Best regards,
 Pawel

 On Jan 5, 2:11 am, Mike Collins mike.d.coll...@gmail.com wrote:



  I'm getting aServiceConnectionLeakedmessage that I don't understand.

  There are 3 activities and a remote service, all the activities use
  the same
  remote service.  The main window, activity 1, starts up, auto-starts
  the
  service and binds to it.  The user then starts activity 2 to do
  something.
  The user now wants activity 3, so the code in activity 2 puts some
  data in
  an intent and starts activity 1 via startActivity ().  When activity 1
  is started,
  it reads the data in the intent and starts activity 3.

  This all works as expected except that while activity 3 is starting I
  get theServiceConnectionLeakedwarning.  This is odd because the code that
  unbinds from the service has never been called and the service
  connection
  continues to operate just fine.  If the user backs out of the main
  window
  the service is unbound and everything shuts down correctly.

  Because the UI design doesn't want activity 2 to stack on top of 3, or
  3 on top of 2 I use a FLAG_ACTIVITY_CLEAR_TOP flag when starting
  activity 1.  (I tested with this flag removed and the leakwarning
  goes away but
  I wind up with extra activities/windows in the stack).

  To make it even a bit weirder, if I run through the same scenario
  again,
  e.g. close activity 3 to get back to activity 1, open 2, switch to 3
  there is no
  leakage the second and successive times, only the first time (near as
  I
  can tell).

  any hints, thoughts?

  tia,
    mike

  I could pare it all down to an example if that is required/helpful.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Led notification on Motorola Milestone

2010-01-05 Thread Beth
To define your own color and pattern, define a value for the ledARGB
field (for the color)...

from http://developer.android.com/guide/topics/ui/notifiers/notifications.html

Regards,
Beth

On Jan 5, 7:14 am, Pablo Szyrko pablo.szy...@gmail.com wrote:
 Hi all,
 I'm dealing with an issue related with notifications.
 My application shows led notification for some events, but it isn't
 working in the Motorola Milestone (i'm not sure if it doesn't work in
 the Motorola DROID also). Led notifications are shown in HTC Hero,
 Magic and G1

 This is my code:

         Notification notif = new Notification();
         notif.flags |= Notification.FLAG_SHOW_LIGHTS;
         notif.ledOnMS = 200;
         notif.ledOffMS = 200;
         notificationManager.notify(LED_NOTIFICATION, notif);

 Do you know if this code is OK? i don't know if i'm missing something.
 Thanks, Pablo

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ListActivity not updating on Database update.

2010-01-05 Thread Beth
Hmmm - not sure you want to call this method more than once.
setListAdapter(shows);

Set the adapter once, when you create the list.  Requery the list's
cursor as needed.  If you use a cursor adapter you may never have to
requery manually.

Good luck!

On Jan 5, 7:42 am, mac-systems jens.h...@gmx.de wrote:
 I just figured out that if i write the setActive Method like this i
 see a update, but i have duplicated Code:

         private void setActive(final boolean _state)
         {
                 final ISelectedDAO dao = DAOFactory.getSelectedDAO(this);
                 dao.setActiv(getSelectedItemId(), _state);
                 c = dao.fetchAll();
                 startManagingCursor(c);

                 final String[] from = new String[]
                 { ISelectedDAO.COLUMN_ACTIV, ISelectedDAO.COLUMN_NAME,
 ISelectedDAO.COLUMN_ID, ISelectedDAO.COLUMN_STARTING,
                                 ISelectedDAO.COLUMN_TILL };
                 final int[] to = new int[]
                 { R.id.custom_spotoverview_activ, 
 R.id.custom_spotoverview_name,
 R.id.custom_spotoverview_detail,
                                 R.id.custom_spotoverview_wind_from,
 R.id.custom_spotoverview_wind_to };
                 shows = new SimpleCursorAdapter(this,
 R.layout.custom_listview_spotoverview, c, from, to);
                 shows.setViewBinder(new SpotOverviewViewBinder());
                 setListAdapter(shows);
                 Log.d(LOG_TAG, Updating View);
         }

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Earn Unlimited income

2010-01-05 Thread jayakumaran . b
Wanted Internet job workers. 
You can earn $750- $1000 daily. 
These are genuine Internet jobs.
Only serious enquires please.

For more details visit : https://time2rich.com/jayavithya

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Problems with the JavaBinder (!!! FAILED BINDER TRANSACTION!!!)

2010-01-05 Thread Moritzz
I now tried to get some more information but nothing I found helped so
far. I also tried to encircle it some more but it won't work. Does
nobody have an idea or sthg?

Cheers

Moritz

On Jan 4, 9:51 pm, Moritzz moritz...@googlemail.com wrote:
 I forgot to add that after this message, the widget is not updated
 anymore. It stays the way it looks like in the moment the message
 appears and even when I force another update, it's not changed
 anymore. If I remove and add it again, it works for a while, until the
 message appears again.

 On Jan 4, 9:41 pm, Moritzz moritz...@googlemail.com wrote:

  Hello,

  I currently have a lot of problems with this error. I programmed a
  widget and a service that runs in the background. This service is
  updating the widget on different occasions (position changed, screen
  turned on, timer based...) with images and text it's loading from a
  server. After a couple of updates I always get an error from the
  JavaBinder, at least that's what DDMS says. Reproducing the problem
  with my app is quite easy but I just can't figure out what's going on
  there. Can someone please give me some help or hints with that? That'd
  be really cool!

  Cheers

  Moritz

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Redirect in WebView

2010-01-05 Thread nikhil
I am trying to open a URL using a webview. This URL redirects itself
to another page. For some reason the redirect doesnot open up inside
the webview. It just opens up into a new browser. Is there some
setting in the webview control that can prevent this from happening?

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Earn Unlimited income

2010-01-05 Thread jayakumaran . b
Wanted Internet job workers. 
You can earn $750- $1000 daily. 
These are genuine Internet jobs.
Only serious enquires please.

For more details visit : https://time2rich.com/jayavithya

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Keeping Map API keys in sync across a dev team

2010-01-05 Thread Carl Whalley
When an app which uses the Map API is released it must be signed with
the public cert. For individual use the key comes from the local debug
keystore, created each time the Android SDK is installed. In other
words, its different for each developer. When I include a view using
it, then commit, my key goes in the xml, but the next developer to
take an update clobbers his key, which being different to mine results
in no maps being shown for him. Is there a smarter way to prevent this
when a team is using the Maps API please?

Android Academy: http://www.androidacademy.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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Keeping Map API keys in sync across a dev team

2010-01-05 Thread TreKing
Actually, it is possible to get the same debug key. I alternate work between
a PC and laptop and originally had two different debug keys when I first
started.

A while ago I move the SDK folder to lie withing my root project tree (so I
could commit it to revision control, share AVDs across machines, and not
have to do two updates when the SDK is updated).

When I did that my debug keys were invalidated and I had to regenerate the
debug keys for both machines. When I did so the hash from the key-store
ended up being the same on both machines, so I think is determined by the
relative path between the SDK and your project.

If it's feasible, try having your developers move their SDK folders such
that the relative path to the project is the same for them all and see if
that gives you all the same debug key.

Hope that helps.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Tue, Jan 5, 2010 at 10:54 AM, Carl Whalley
carl.whal...@googlemail.comwrote:

 When an app which uses the Map API is released it must be signed with
 the public cert. For individual use the key comes from the local debug
 keystore, created each time the Android SDK is installed. In other
 words, its different for each developer. When I include a view using
 it, then commit, my key goes in the xml, but the next developer to
 take an update clobbers his key, which being different to mine results
 in no maps being shown for him. Is there a smarter way to prevent this
 when a team is using the Maps API please?

 Android Academy: http://www.androidacademy.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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Problems with the JavaBinder (!!! FAILED BINDER TRANSACTION!!!)

2010-01-05 Thread Albert
The problem is probably that the images are too big and android cant
handle it. Try this solution I used when I had the same problem:

http://groups.google.com/group/android-developers/browse_thread/thread/6e9f1d7541871a11/49e961dd26ea544e#49e961dd26ea544e

Hope it helps,

Alberto

On Jan 5, 4:17 pm, Moritzz moritz...@googlemail.com wrote:
 I now tried to get some more information but nothing I found helped so
 far. I also tried to encircle it some more but it won't work. Does
 nobody have an idea or sthg?

 Cheers

 Moritz

 On Jan 4, 9:51 pm, Moritzz moritz...@googlemail.com wrote:



  I forgot to add that after this message, the widget is not updated
  anymore. It stays the way it looks like in the moment the message
  appears and even when I force another update, it's not changed
  anymore. If I remove and add it again, it works for a while, until the
  message appears again.

  On Jan 4, 9:41 pm, Moritzz moritz...@googlemail.com wrote:

   Hello,

   I currently have a lot of problems with this error. I programmed a
   widget and a service that runs in the background. This service is
   updating the widget on different occasions (position changed, screen
   turned on, timer based...) with images and text it's loading from a
   server. After a couple of updates I always get an error from the
   JavaBinder, at least that's what DDMS says. Reproducing the problem
   with my app is quite easy but I just can't figure out what's going on
   there. Can someone please give me some help or hints with that? That'd
   be really cool!

   Cheers

   Moritz- Hide quoted text -

 - Show quoted text -
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

2010-01-05 Thread TreKing
Are you using a build target that has the Google Add Ons?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Tue, Jan 5, 2010 at 12:55 AM, RamaMohan rama.mohan...@gmail.com wrote:

 Hi all,
 I am using HTC Magic (android os 1.5) for my development testing.
 When i try to run any map application it is saying the following
 error.

 
 installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

 -
 and after launch is canceled.

 What is the Problem with this.if any one knows answer please send to
 me.

 Thanks in Advance
 Ram

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: MapView Overlay problem

2010-01-05 Thread TreKing

 Couldn't figure a way to save my overlay class to bundle


Have your Overlay class implement the Parceable interface, which you can
then save to / restore from a Bundle.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Tue, Jan 5, 2010 at 6:48 AM, Stefan ebay-dah...@web.de wrote:

 On Jan 5, 1:16 pm, Master_Ne0 master.ne0s.soluti...@googlemail.com
 wrote:
  I also had this problem, i had to save the overlay locations to the
  outstate bundle then add them again onResume. Couldn't figure a way to
  save my overlay class to bundle. Let me know if you find a better
  workaround.
 
  Ne0
 

 Thanks for your fast answer. Because this is the best idea until know,
 i will test your solution and if i find a better way, i will let you
 know.

 Thanks again,
 Stefan

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ServiceConnectionLeaked warning

2010-01-05 Thread Mike Collins
Well, there is exactly one place where the code binds and exactly one
place where it unbinds.  The binding is shared between the activities
activity 1 does a bind on create and unbind on destroy.

Breakpoints and logging indicate that exactly one bind is called and
no unbinds are called during the sequence that produces the leak.

I am guessing that either it's an incorrect warning or there is some
automatic machinery that I'm not aware of.

  mike
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Maps API in paid App

2010-01-05 Thread jotobjects
Well I know the next reply will be hire an attorney and don't ask us
on this list but here goes anyway. :-)

Doesn't the Android Maps API TOS refer to and incorporate the general
Google Maps API TOS (with the prohibition about charging for the
app)?  That is the way I read it.  However if people are charging for
Android apps with the Maps API then I guess the answer is that Google
does not think there is a prohibition against charging for such an
app.

On Jan 5, 7:52 am, TreKing treking...@gmail.com wrote:
 I think you're reading the wrong TOS.

 When you sign up for a developer API key for Android
 (http://code.google.com/android/add-ons/google-apis/maps-api-signup.html)
 there is a a different TOS, which states:

 5.4. Subject to these Terms, you may develop, display and/or distribute your

  Maps API Implementation as part of a commercial or non-commercial
  enterprise.

 -
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

 On Tue, Jan 5, 2010 at 12:00 AM, mikek mik...@gmail.com wrote:
  According to the terms for use of Google Maps API,
 http://code.google.com/apis/maps/terms.html

  Incorporating the Maps API into your application is free as long as
  the app is also free. Otherwise, you need a commercial license. A
  commercial license for $10K is a heck of a lot of $1.99 apps.

  Does anyone have any insight on alternative payment structures for the
  Maps API.

  Excerpt from terms.html:
  9.1 Free, Public Accessibility to Your Maps API Implementation. Your
  Maps API Implementation must be generally accessible to users without
  charge. You may require users to log in to your Maps API
  Implementation if you do not require users to pay a fee. Unless you
  have entered into a separate written agreement with Google or obtained
  Google's written permission, your Maps API Implementation must not:

  (a) require a fee-based subscription or other fee-based restricted
  access; or
  (b) operate only behind a firewall or only on an internal network
  (except during the development and testing phase).

  --
  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
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Maps API in paid App

2010-01-05 Thread TreKing

 Doesn't the Android Maps API TOS refer to and incorporate the general Google
 Maps API TOS (with the prohibition about charging for the app)?


I don't think so ...

Section 1.2:
1.2. Unless otherwise agreed in writing with Google, the Terms will include
the following: 1) the terms and conditions set forth in this document (the
Maps APIs Terms); 2) the Legal Notices (
http://www.google.com/intl/en-us/help/legalnotices_maps.html); and 3) the
Privacy Policy (http://www.google.com/privacy.html). Before you use the Maps
APIs, you should read each of the documents comprising the Terms, and print
or save a local copy for your records.

As far as I can tell, that doesn't include the general Maps TOS. Does it say
otherwise somewhere else? (I really only skimmed it)

Also, in section 1.3 of the Android Maps TOS:
If there is any contradiction between what any Additional Terms say and what
the Maps APIs Terms say, then the Maps APIs Terms will take precedence only
as it relates to the Maps APIs, and not to any other Services.

To me that means that even if there is a conflict, the Android Maps TOS
takes precedence over the general TOS as it applies to Android Apps.

However if people are charging for Android apps with the Maps API then I
 guess the answer is that Google does not think there is a prohibition
 against charging for such an app.


Agreed. There are TONS of paid apps that use Google maps (including my own)
and they are not being pulled or banned (as far as I know and I, at least,
haven't been issued any warning regarding this use).

Also, IANAL - I love that acronym btw =)

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Tue, Jan 5, 2010 at 12:08 PM, jotobjects jotobje...@gmail.com wrote:

 Doesn't the Android Maps API TOS refer to and incorporate the general
 Google Maps API TOS (with the prohibition about charging for the
 app)?  That is the way I read it.  However if people are charging for
 Android apps with the Maps API then I guess the answer is that Google
 does not think there is a prohibition against charging for such 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] FLAG_CANCEL_CURRENT or FLAG_UPDATE_CURRENT

2010-01-05 Thread Beth Mezias
hello friends...

My app sets a repeating alarm and based on user interaction, it might
need to change the time set for the broadcast with AlarmManager.  It
will repeat on the same interval.  There is not much in the way of
extras.  Is the update or cancel flag better in this case?

Thanks and regards,
Beth
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Reliable GPS location

2010-01-05 Thread Daan
You can use Location.getTime() this returns the UTC time of this fix,
in milliseconds since January 1, 1970. Then you could get the current
time and compare it to see if you find it accurate enough.


On Jan 4, 10:14 pm, Lance Nanek lna...@gmail.com wrote:
 You can call Location#getTime to see when the fix returned by
 LocationManager#getLastKnownLocation was taken. The
 getLastKnownLocation method doesn't start the GPS, so the fix may be
 from a long time ago, and not be a good indicator of the current
 location.

 The accuracy of the fix refers to the accuracy at the time the fix was
 taken. I don't see how it could be easily updated to refer to the
 accuracy with respect to the current location. That would require
 starting the GPS and taking another fix to find the current location,
 in which case the new fix would become the last known location and
 there would be no point.

 If you want current fixes, use the
 LocationManager#requestLocationUpdates methods.

 On Jan 4, 6:07 am, nr1 ti08m...@gmail.com wrote:

  Hi,

  i know how to get the calculated GPS position via getLastKnownLocation
  (). As tests show, this function really always returns the last known
  location, so it doesn't matter if there is a gps fix available.

  How can i check if the returned location is reliable?
  I tried it with getAccurracy(), but this function even returns a
  accurracy although no gps fix is availavle (anymore). Is there a
  possibility to get gps dop values?

  Used SDK is 1.6,
  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android development with PHP

2010-01-05 Thread Daan
I am using something similar. I have a PHP script online, I give my
parameters by using $_GET, then I let my PHP do the work and write my
output to an XML code which I read again on Android.

Small sample:

//Creating URL
URL cUrl = null;
String url = http://www.link.com?paramater=hi;;
try {
cUrl = URI.create(url).toURL();
} catch (MalformedURLException e) {
}
//Creating XML document
DocumentBuilder builder = DocumentBuilderFactory.newInstance
().newDocumentBuilder();
//Read the XML document
Document doc = builder.parse(cUrl.openStream());
//Getting all tags which have TagName as name and get the value of the
first element.
NodeList nodes = doc.getElementsByTagName(TagName);
String value = nodes.item(0).getNodeValue();


On Jan 5, 12:24 am, Miguel Morales therevolti...@gmail.com wrote:
 You can write an applications backend in php, but why would you want to use
 php to write for the phone?  The main language is java though apps can be
 written in c/perl/python/lua, but no php yet afaik.

 On Jan 4, 2010 12:13 PM, androidbeginner sahayamj.m...@gmail.com wrote:

 Is it possible create android applications using PHP? can we port php
 code in to the android applications?

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Ecosnoop, no.. i want SnoopBigbrother

2010-01-05 Thread gremlin
I would like to request an app that is inspired by an app that was
brought to my attention that’s for the i-phone and i-touch. The app
goes by the name of “ecosnoop”, www.ecosnoop.com . What I propose is
an app such as “Bigbrother snoop”. The most uneasy feeling one can
give bigbrother is to identify him, unclothe him, and expose the
robotic works of its control.

From my vantage point this app would likely be a constantly evolving
creature possibly having many copycats. What I mean is that at 1st it
would be a way for people to record audio, video and photos available
for all to see threw a central location (website) and/or threw the app
itself. For example people can record the vast network of cameras
(shout cameras in England) plotted on google maps to keep the
redundancy down to a minimum. The next evolution in programming this
app would defiantly be in the organization/user categorization of the
collected data. Later there could be a audio/video blogs submitted
threw this of what they witness and/or run-ins with the cops. Those
being harassed can document that and when the opportunity presents
itself can be used to correct the problem. Finally maybe a community
for people to network and collect friends (like minded patriots) to
combine efforts to keep the man in check, safety in numbers.

Please please take this into consideration, Ill be pushing this idea
until it comes true because no is the time. Im not a programmer nor
have the resources to make this happen, im only a good idea waiting to
happen.

Thank you for your time.
Gremlin
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Simple Launching of an app with an Intent

2010-01-05 Thread 52x15
Hello,

Thanks in advance for the help. I'm both new and trying to launch the
native music player from my application. I've searched and read all
over the mailing list (and web) for help with this. The best I've
managed is to launch the music player to show a list of songs (that
the selection can only be played once without a background service to
keep running):

/*
This opens up to view all the files, but only plays one at a time,
without playlists or continuing to next track
*/
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType(audio/*);
startActivity(intent);


/* The other option I got working is to specifically call the music
player to play one track.
   although this doesn't seem to work well with the emulator, it does
if you have another media player installed with an actual phone
 */
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
audio/*);
startActivity(intent);


What I would like to do is just start the media player with no data to
send it. Ideally just have it bring the user to the normal main
screen, just like you clicked the music icon to start the app.


Thanks!
-kieran
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Debugging the framework

2010-01-05 Thread Joe Onorato
The KeyInputQueue runs in the system process, and your test app runs
in its own process.  You need to connect two debuggers.  When I debug
this code, I usually use Log.d debugging instead, because while
possible, connecting two debuggers is kind of a pain.

-joe


On Jan 4, 6:46 am, Matan matanshap...@gmail.com wrote:
 Hi,

 I did the following:
 Modified frameworks/base/services/java/com/android/server/
 KeyInputQueue.java and flashed it to my G1.
 Rebuilt
 Deployed to the G1
 Created a demo test app
 Started debugging the demo app from Eclipse with one breakpoint in a
 central location in KeyInputQueue.java and another in my main activity
 in the demo app.

 The debugger stops at the breakpoint located in the activity but
 doesn't stop in KeyInputQueue.java although it's executing this row
 for sure when i touch the touchscreen.

 Did I do anything wrong ?
 How can i debug files in the framework like KeyInputQueue.java ? Is it
 possible ?

 Thanks a lot,
 Matan
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Possible to awake the phone by touching the screen?

2010-01-05 Thread Nazgulled
Hi,

As an heads-up, I'm an amateur developer and a university student in
the area but I have not knowledge at all about Android development. I
haven't yet had the time to start looking at the SDK and
documentation. However, I have an idea for an app that I would like to
try and develop for Android phones but I need to do something that I
don't think it's quite possible.

I own an HTC Hero and the phone can only be awaken by pressing the
menu button or the power off button. Dunno if it's like this for every
Android phone. I'm looking for a way to awake the phone by touching
the screen.

My idea is to replace the KeyGuard with something else but instead of
awaking the phone by pressing one of those buttons, I would like to do
it by touching the screen.

Is this even possible or the Androd framework doesn't provide this
functionality at all?
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Crash in com.android.browser on Cupcake(1.5)

2010-01-05 Thread Vikram
Hi,

I saw a crash in browser on Cupcake(1.5). There is no proper procedure
for reproducing this crash. I was just browsing through different web
pages when suddenly the browser crashed. The last time I saw the crash
I was trying to browse www.alleyinsider.com. The crash doesn't happen
all the time and is very hard to reproduce. Below is the stack trace I
see from the logs. Has anybody faced a similar issue?

pid: 963, tid: 963   com.android.browser 


signal 7 (SIGBUS), fault addr 


 r0 0003  r1 0013  r2 0003  r3 0001


 r4 41aa67c8  r5 4104aeb0  r6 bea5a610  r7 ad00e500


 r8 10f8  r9 0050  10 4104ad70  fp 


 ip 00f8  sp bea5a5d0  lr ad013118  pc ad012324  cpsr 2010

  00012324
dalvik_inst
dalvik/vm/mterp/out/InterpAsm-armv5te.S:7648
  00017934
dvmMterpStd
dalvik/vm/mterp/Mterp.c:100
  00017378
dvmInterpret
dalvik/vm/interp/Interp.c:704
  0004f036
dvmInvokeMethod
dalvik/vm/interp/Stack.c:721
  0005610a
Dalvik_java_lang_reflect_Method_invokeNative
dalvik/vm/native/java_lang_reflect_Method.c:101
  000130d8
dalvik_mterp
dalvik/vm/mterp/out/InterpAsm-armv5te.S:9532
  00017934
dvmMterpStd
dalvik/vm/mterp/Mterp.c:100
  00017378
dvmInterpret
dalvik/vm/interp/Interp.c:704
  0004eecc
dvmCallMethodV
dalvik/vm/interp/Stack.c:513
  0003cbf8
CallStaticVoidMethodV
dalvik/vm/Jni.c:2008
  00029678  _JNIEnv::CallStaticVoidMethod(_jclass*,
_jmethodID*, ...) dalvik/
libnativehelper/include/nativehelper/jni.h:778
  0002a104  android::AndroidRuntime::start(char const*,
bool) frameworks/
base/core/jni/AndroidRuntime.cpp:815
  8bf2
main
frameworks/base/cmds/app_process/app_main.cpp:159
  0001fd7a
__libc_init_common
bionic/libc/bionic/libc_init_common.c:121
  bcd2
__libc_init
bionic/libc/bionic/libc_init_dynamic.c:65
 
b000157e  ??
??:
0


Thanks
Vikram
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] UI design for Board Game

2010-01-05 Thread prakhy
Hi,

I need to design a board UI using android platform. i was planning to
take one image as board and moving the required images over the board.
How do i achieve the same? I need to find the coordinates for image
and need to move the required images to specifies coordinates. Is
there any andorid api for this?

Prakhy
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] CFP: 2nd International Workshop on GCC Research Opportunities (GROW'10)

2010-01-05 Thread John Martin
Apologies if you receive multiple copies of this call.



 CALL FOR PARTICIPATION

 2nd Workshop on
GCC Research Opportunities
   (GROW'10)

http://ctuning.org/workshop-grow10

  January 23, 2010, Pisa, Italy

 (co-located with HiPEAC 2010 Conference)


EARLY REGISTRATION DEADLINE: JAN. 6th, 2010


We invite you to participate in GROW 2010, the Workshop on GCC
Research
opportunities, to be held in Pisa, Italy in January 23, 2010, along
with
the conference on High-Performance Embedded Architectures and
Compilers
(HiPEAC).

The Workshop Program includes:
  * Presentations of 8 selected papers
  * A Keynote talk by Diego Novillo, Google, Canada, on:
  Using GCC as a toolbox for research: GCC plugins and whole-
program
   compilation
  * A panel on plugins and the future of GCC

The Workshop Program is now available:

http://cTuning.org/wiki/index.php/Dissemination:Workshops:GROW10:Program

GROW workshop focuses on current challenges in research and
development of
compiler analyses and optimizations based on the free GNU Compiler
Collection (GCC). The goal of this workshop is to bring together
people
from industry and academia that are interested in conducting research
based
on GCC and enhancing this compiler suite for research needs. The
workshop
will promote and disseminate compiler research (recent, ongoing or
planned)
with GCC, as a robust industrial-strength vehicle that supports free
and
collaborative research. The program will include an invited talk and a
discussion panel on future research and development directions of GCC.

 Topics of interest 

Any issue related to innovative program analysis, optimizations and
run-time adaptation with GCC including but not limited to:

 * Classical compiler analyses, transformations and optimizations
 * Power-aware analyses and optimizations
 * Language/Compiler/HW cooperation
 * Optimizing compilation tools for heterogeneous/reconfigurable/
   multicore systems
 * Tools to improve compiler configurability and retargetability
 * Profiling, program instrumentation and dynamic analysis
 * Iterative and collective feedback-directed optimization
 * Case studies and performance evaluations
 * Techniques and tools to improve usability and quality of GCC
 * Plugins to enhance research capabilities of GCC

 Organizers 

 Dorit Nuzman, IBM, Israel
 Grigori Fursin, INRIA, France

 Program Committee 

 Arutyun I. Avetisyan, ISP RAS, Russia
 Zbigniew Chamski, Infrasoft IT Solutions, Poland
 Albert Cohen, INRIA, France
 David Edelsohn, IBM, USA
 Bjorn Franke, University of Edinburgh, UK
 Grigori Fursin, INRIA, France
 Benedict Gaster, AMD, USA
 Jan Hubicka, SUSE
 Paul H.J. Kelly, Imperial College of London, UK
 Ondrej Lhotak, University of Waterloo, Canada
 Hans-Peter Nilsson, Axis Communications, Sweden
 Diego Novillo, Google, Canada
 Dorit Nuzman, IBM, Israel
 Sebastian Pop, AMD, USA
 Ian Lance Taylor, Google, USA
 Chengyong Wu, ICT, China
 Kenneth Zadeck, NaturalBridge, USA
 Ayal Zaks, IBM, Israel

 Previous Workshops 

 GROW'09: http://www.doc.ic.ac.uk/~phjk/GROW09
 GREPS'07: http://sysrun.haifa.il.ibm.com/hrl/greps2007

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Debugging the framework

2010-01-05 Thread Matan
any idea?

On Jan 4, 4:46 pm, Matan matanshap...@gmail.com wrote:
 Hi,

 I did the following:
 Modified frameworks/base/services/java/com/android/server/
 KeyInputQueue.java and flashed it to my G1.
 Rebuilt
 Deployed to the G1
 Created a demo test app
 Started debugging the demo app from Eclipse with one breakpoint in a
 central location in KeyInputQueue.java and another in my main activity
 in the demo app.

 The debugger stops at the breakpoint located in the activity but
 doesn't stop in KeyInputQueue.java although it's executing this row
 for sure when i touch the touchscreen.

 Did I do anything wrong ?
 How can i debug files in the framework like KeyInputQueue.java ? Is it
 possible ?

 Thanks a lot,
 Matan
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Unable to figure out what WindowManagerservice and PhoneWindowManager difference

2010-01-05 Thread Kunal
Hi,

The PhoneWindowManager  implements WindowManagerPolicy while the
WindowManagerService also implements the WindowState of the
WindowManagerPolicy

Can somebody provide me with the inputs of how PhoneWindowManager and
WindowManagerService be differentiated?

Thanks,
Kunal
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Modify XML Layout using classes

2010-01-05 Thread Daan
I am trying to change the order of views. The views should get into
into a specific order according to the user's preferences. So let's
say I have three text-views in a linear-layout, how can I can I change
the order so Android will show the text-views in a different order
thans declared in the XML file.

I couldn't find anything so I hope you could help me out by sending a
sample code or a page I could use. Thanks in advantage.
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Emulator error after upgrade to win7

2010-01-05 Thread Piotr Buła
I'm having the same problem, I recently updated SDK to the newest
version and I get the same error. I'm using Ubuntu 9.10 (64-bit) and I
get that error for 1.5 sdk. 1.6 and 2.0 work fine. Any ideas?

On 4 Sty, 13:53, Tim Ellison t.p.elli...@gmail.com wrote:
 I have the same issue Mark.  Did you figure out a solution?

 On Dec 9 2009, 8:23 pm, mh haye...@gmail.com wrote:

  After reinstalling Eclipse and the Android development components I am
  getting the following error upon running the emulator on a virtual
  device:

  qemu: fatal: exponent 255 too big

  R00=0002 R01=e118 R02=fe005000 R03=2209
  R04=c594bfa0 R05=c5863e94 R06=c5863e5c R07=c5863e5c
  R08=c5863e94 R09= R10= R11=c5863e0c
  R12=0009 R13=c5863df8 R14=c018786c R15=c0187614
  PSR=6013 -ZC- A svc32

  I suspect that some configuration file in the project is hosed but
  cannot figure out which.  Ideas are ever appreciated.

  Thanks

  Mark
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Designing a UI for Board Game

2010-01-05 Thread prakhy
Hi,

I need to design a board UI using android platform. i was planning to
take one image as board and moving the required images over the board.
How do i achieve the same? I need to find the coordinates for image
and need to move the required images to specifies coordinates. Is
there any andorid api for this?

Prakhy
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Nine patch pre-scaling on Hdpi

2010-01-05 Thread Pixie
Hello everyone,

I have some 9-patch images on my app, and they work great on the
medium density.
When I load the app on a High density emulator/device, these images
look grainy.
It happens only to 9-patch images. The others look great after the pre-
scaling.
Is there a way to make them look good after the scaling, like the
non-9-patch images?

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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Remote phone state notifications on outgoing calls

2010-01-05 Thread monty

hey
 how do i receive a remotes phone state notification when i make an
outgoing call ..so that i know if he has accepted the call or has
rejected it(Basically i m tryin to monitor outgoing calls as it is
made).This is so that i can get the call duration bet the 2 phones.I m
trying to use sdk 1.6 but finding no solution except for receiving
state of idle,off hook and ringing of phone.Could any1 plz post a
solution or give an idea as to if its possible or not?

Also could any1 tell as to does any sdk support
com.android.internal.telephony package.Its not thr in 1.6 but i
checked i found sum java docs but when tried using them it gives
error.Its urgent so plz do post as early as possible.

neil



-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Why is my eclipse up to date with 2.0.1 but no android tools appear in the UI?

2010-01-05 Thread Daan
I am on Windows 7 too, but didn't have any problem installing the
Android SDK. Try watching this video http://www.youtube.com/watch?v=lqPfi6N4iEY
and see if you missed out any steps. It's Windows XP, but it doesn't
matter it works the same as Vista and 7.

On Jan 4, 11:24 pm, ClarkBattle clarkbat...@gmail.com wrote:
 I am installing on Windows 7.

 Window  Preferences... Android is not there, even though the tools
 are installed.  Reinstalling Eclipse does not fix the problem.

 On Jan 4, 1:10 pm, ClarkBattle clarkbat...@gmail.com wrote:

  I was completely set up with android 2.0 and eclipse.  Everything
  worked fine.  Then I tried to upgrade to 2.0.1 and now eclipse wont
  show any of the android plug in stuff.  There is nothing in the IDE
  relating to android anymore.  No AVD, no android projects, nothing.

  If I go to Help - Install New Software, select Android Eclair 
  -https://dl-ssl.google.com/android/eclipse/; for the Work with, and
  look under Developer Tools I get these:

      Android DDMS        0.9.5.v200911191123-20404
      Android Development Tools   0.9.5.v200911191123-20404

  These are the mot current android 2.0.1 tools.  It shows that they are
  already installed (clicking the Hide items that are already
  installed box removes them).  However, eclipse looks like i just
  installed it vanilla with no plugins at all.

  Is there something else I need to do?  Check for Updates says there
  is nothing to update.  Should I blow away eclipse and reinstall it
  from scratch?  Doesnt that defeat the purpose of the automatic
  updater?

  Confused
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Failed resolving Ljavax/activation/DataHandler; interface 172 'Ljava/awt/datatransfer/Transferable;'

2010-01-05 Thread Droidaholic
I'm trying to write a simple app to access my mail inbox, check if
there is any new mail and open that meail. the source code for POP3
mail is from http://forums.sun.com/thread.jspa?threadID=5267916, then
add mail.jar, activation.jar to my project. I managed to compile and
run the app on Google G1, but it crashed and report as below:

Failed resolving Ljavax/activation/DataHandler; interface 172 'Ljava/
awt/datatransfer/Transferable;'
Link of class 'Ljavax/activation/DataHandler;' failed
VFY: unable to find class referenced in signature (Ljavax/activation/
DataHandler;)
Failed resolving Ljavax/activation/DataHandler; interface 172 'Ljava/
awt/datatransfer/Transferable;'
Link of class 'Ljavax/activation/DataHandler;' failed
Could not find method javax.activation.DataHandler.getContent,
referenced from method javax.mail.internet.MimeMessage.getContent
VFY: unable to resolve virtual method 1619: Ljavax/activation/
DataHandler;.getContent ()Ljava/lang/Object;
VFY:  rejecting opcode 0x6e at 0x0004
VFY:  rejected Ljavax/mail/internet/MimeMessage;.getContent ()Ljava/
lang/Object;
Verifier rejected class Ljavax/mail/internet/MimeMessage;
java.lang.VerifyError: javax.mail.internet.MimeMessage
at com.sun.mail.pop3.POP3Folder.createMessage(POP3Folder.java:299)
at com.sun.mail.pop3.POP3Folder.getMessage(POP3Folder.java:280)
at javax.mail.Folder.getUnreadMessageCount(Folder.java:728)
at android.test.mail..MailJar.onCreate(MailJar.java:36)
at android.app.Instrumentation.callActivityOnCreate
(Instrumentation.java:1123)
at android.app.ActivityThread.performLaunchActivity
(ActivityThread.java:2364)
at android.app.ActivityThread.handleLaunchActivity
(ActivityThread.java:2417)
at android.app.ActivityThread.access$2100(ActivityThread.java:116)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
1794)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4203)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:791)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
at dalvik.system.NativeStart.main(Native Method)

i tried to get java.awt.datatransfer package from rt.jar of jre6, but
it failed to compile, and reported

[2010-01-05 17:02:53 - MailJar]
trouble processing java/awt/Image.class:
[2010-01-05 17:02:53 - MailJar]
Attempt to include a core VM class in something other than a core
library.
It is likely that you have attempted to include the core library from
a desktop
virtual machine into an application, which will most assuredly not
work. If
you really intend to build a core library -- which is only appropriate
as
part of creating a full virtual machine binary, as opposed to
compiling an
application -- then use the --core-library option to suppress this
error
message. If you go ahead and use --core-library but are in fact
building
an application, then please be aware that your build will still fail
at some
point; you will simply be denied the pleasure of reading this helpful
error
message.
[2010-01-05 17:02:53 - MailJar] 1 error; aborting
[2010-01-05 17:02:53 - MailJar] Conversion to Dalvik format failed
with error 1

Then i read from somewhere, that java.awt.datatransfer should be
downloaded from Apache Harmony SVN, so i tried to look for it there,
but no hope -.-

can any1 help me to solve this? thanks in advance
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] setActualDefaultRingtoneUri from android.resources

2010-01-05 Thread Olivier Boite
Hi,
I try to set a resource sound as notification ringtone.

I've added the permission WRITE_SETTINGS in the androidmanifest file, then
in my main class I've hadded the following.

Uri mUri = Uri.parse(android.resource:// + mPackageName + /raw/ +
mSoundFileName);
RingtoneManager.setActualDefaultRingtoneUri(getApplicationContext(),
RingtoneManager.TYPE_NOTIFICATION, mUri);

mUri is allright and it seems that I can set the default ringtone because
I've made the following test :
get back the default notification ringtone and play it.
RingtoneManager.getRingtone(getApplicationContext(),
   RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)).play();

It is my resource sound. Great.
However, when new notification arrives, no sound plays.
(In the android settings, default notification sound has no sound checked)
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ADT Plugin for Exlipse installation fails

2010-01-05 Thread Manimal
I added http://download.eclipse.org/releases/galileo/' so the list of
updates sites and i get No repository found at 
http://download.eclipse.org/releases/galileo.;

I'm also not able to install the ADT.

On Dec 7 2009, 5:55 am, Mikael mikaelmoha...@gmail.com wrote:
 Hi,

 I had the same problem and I've solved it by reading this quote :

 http://www.mail-archive.com/android-developers@googlegroups.com/msg69...

 Go to Help/Install New Software...

 Addhttp://download.eclipse.org/releases/galileo/to the update sites
 list (strange it's not installed by default on ubuntu)

 From there, install WST (use the filter box to find the package)

 Restart eclipse

 Go back to Help/Install New Software... and install the Android ADT
 as explained on the android website.

 --
  Vineus

 (thanks Vineus)

 I hope it can help you,

 Regards

 On 6 déc, 05:53, Stefano stefano.me...@gmail.com wrote:

  I just resucitated an old laptop, wiped out the old corrupted XP,
  installed Ubuntu 9.1, installed Eclipse 3.5.1, installed the sun-java6-
  jdk from the Synaptic Manager, then I tried to install the ADT as
  described inhttp://developer.android.com/sdk/eclipse-adt.html, but
  the installation fails with the following message:

  Cannot complete the install because one or more required items could
  not be found.
    Software being installed: Android Development Tools
  0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group
  0.9.5.v200911191123-20404)
    Missing requirement: Android Development Tools
  0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group
  0.9.5.v200911191123-20404) requires 'org.eclipse.wst.xml.ui 0.0.0' but
  it could not be found

  I found another similar message without solution.
  Anybody out there can help me getting started?

  Thanks,
  Stefano
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Problem in Accessing 2.9 MB Database from Apps

2010-01-05 Thread Vish
Hii All,

I am Having 2.9 MB Database given by client. I know that Android don't
Support data more than 1.1 MB So I Spilt DB into 3 Parts of 1.1 MB .
Now when I am going to Read these Database from my Apps then it is
Saying that Database Malformed and the Desired tables are not shown
there.So if Anyone has done work on this issue then please let me
know.Any suggestions will be AppreciatedAnd if there is some other
way, then please suggest me.Thanks


Regards:
Jeet
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Is there a limit in the rtsp redirect

2010-01-05 Thread Mark
-After 1.5 I think the limit was set at 3 redirects, this limit will
be raised in future releases to 8 I believe.
So for a 1.5 device there wouldnt be a problem on pages with
redirects, I have a 1.6 and I am having a ton of problems opening up a
site that has redirects (data connectivity problem; this page has too
many server redirects). However my buddy has a droid (Android 2.0.1),
and he is working fine so I guess this problem has been fixed in that
version?

What can I do with my phone or site to allow this to work on 1.6?

On Nov 23 2009, 8:37 pm, Justin (Google Employee) j...@google.com
wrote:
 Yes, there is a limit in order to preventredirectloops. In 1.5 there
 was no limit. After 1.5 I think the limit was set at 3 redirects, this
 limit will be raised in future releases to 8 I believe.

 Cheers,
 Justin
 Android Team @ Google

 On Nov 4, 10:52 am, mjavadi mike.jav...@napster.com wrote:



  I am seeing an issue when usingrtspbased URLs on a wap site. If the
  rstp link has oneredirect, then it works and default video player
  plays the stream. If thertsplink redirects to anotherrtspserver
  and that server redirects to the final destination, then it does not
  play. Is there a limit in the # ofrtspredirects?- Hide quoted text -

 - Show quoted text -
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Virtual keyboard hiding content

2010-01-05 Thread GreenRob
Hi,

is there a way to somehow move the content from an activity up when
the virtual keyboard slides out? I have seen this functionality in
some apps like eg. chomp sms.

The problem is that an app can be pretty hard to control if the
keyboard hides certain parts of an activities ui.

Thanks
Jannik
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

RE: [android-developers] Menu always Displayable

2010-01-05 Thread Guna
Nithin,

If you want to display Menu always means, just design your own layout same
like menu and use that..


Guna

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Nithin
Sent: 05 January 2010 20:57
To: Android Developers
Subject: [android-developers] Menu always Displayable

Hi,

I want options menu should always display, when  I open my
application, for that I put openOptionsMenu(), in onCreate() of the
launcher activity.  But its showing exception.

--android.view.WindowManager$BadTokenException: Unable to add window
-- token n
ull is not valid; is your activity running?

Then I put openOptionsMenu() in onResume(), still its throwing
exception.

Any idea how to make menu displayable always.

Nithin

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Mixed Language Apps

2010-01-05 Thread 48-New
Would appreciate if anybody can give me some pointers on how to mixed
different language in an android app?  For example, mixing displaying
English along w/ Spanish, or Chinese by using Unicode for the Spanish
or Chinese characters.

I have searched the post in this group but doesn't seem to find any
discussion about this.  Many thnx in advance.
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Call state events for multiple participants

2010-01-05 Thread Darren Hinderer
I'm working on an application where I'm monitoring the Android call
state. I've spent a lot of time working with and researching the
available call state that comes from TelephonyManager. It does not
seem to provide enough information to understand the call state for
multiple callers.

For example, if I wanted to know the duration of both parties in this
situation:
* Answer an incoming call
* Wait 2 minutes
* Answer a second incoming call (first call is put on hold)
* Wait 4 minutes
* Hang up the phone.

The events that Telephony Manager provides for this scenario are:
* Idle to Ringing (with incoming number)
* Ringing to Off hook
* Off hook to Ringing (with incoming number)
* Ringing to Off hook
* Off hook to Idle

Now I can assume that the first call is put on hold when the second
comes in, but there is no new call state if they are later conferenced
together.

Or maybe the second call is answered briefly and then put on hold in
the first calls place. There is no way to know how long either
conversation was.

There is another issue here in that I only ever receive one hang up
event (off hook to idle). So if instead of putting the first caller on
hold, I hung up on them - the call state would look exactly the same.

Hopefully it's becoming obvious that I'm lacking the call state needed
to fully monitor the phone activity.

Is there other call state available or any way to find out when key
presses happen for on hold, conference actions, or hang up?
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Kernel git tree docs

2010-01-05 Thread mcgrof

There are 5 kernel git trees over at:

http://android.git.kernel.org/

kernel/common.git
Common Android Kernel Tree
kernel/experimental.git
Experimental Kernel Projects
kernel/linux-2.6.git
Mirror of git://git.kernel...
kernel/lk.git
(L)ittle (K)ernel bootloader
kernel/msm.git
Kernel Tree for MSM7XXX family...
kernel/omap.git
Someone should add a description to this

I was trying to figure out what kernel is on the Android 2.1 / Android
2.0 release and have rummaged through the new Android 2.0.1 release
notes:

http://developer.android.com/sdk/android-2.0.1.html

I have also dug through:

http://source.android.com/

But nothing really tells me what kernel is for what exactly. I can go
on and guess but I rather not. Was hoping someone could tell me which
kernel is used for the ongoing future Android releases and how to keep
track at which kernel a specific Android release got locked down to
and to easily determine at what kernel release it is on.

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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Contact Picking on Motorola Cliq (1.5)?

2010-01-05 Thread Joe Jack
My phone was doing this and I did Master Reset an I think this has
fixed it. The error message I was getting went as SORRY process
com.motorola.blur.friendfeed will now foreclose, or something
similar! Hope this helps.Reset instructions are as follows. Please
keep in mind I'm not an expert and I don't gaurentee this will work.

Motorola CLIQ Device Information - How to perform a master reset
backup inforamtion press menu tap setting tap sd card  storage tap
data factory reset tap reset phone tap erase everything.

On Dec 29 2009, 6:24 pm, jak. koda...@gmail.com wrote:
 Hello Suzanne,

 I'm glad to hear that there is a fix in the works for this bug.
 Are you aware that there is also a bug when using the create intent?

 Intent(Intent.ACTION_INSERT,Contacts.People.CONTENT_URI);

 This does allow me to create a new contact, but the result it sends
 back to my onActivityResult callback is useless.

   protected void onActivityResult(int requestCode, int resultCode, Intent 
  data) {}

 Whenever the user is done creating a contact, I get a call to my on
 activity result with resultCode set to 0 (AKA: RESULT_CANCELED), and
 data is null;
 Even though the contact creation was successful!

 This is not the default Android behavior.
 When a user uses this intent to create a new contact, the
 onActivityResult should pass a -1 for the result (AKA: RESULT_OK).
 And the Intent data should contain a Uri to the newly created contact,
 accessible via data.getData().

 Since Motorola's implementation of contacts sends back RESULT_CANCELED
 for any contact insert, there's no way for our App that started the
 Intent to know when we have a valid result to act on.

 If Motorola completely re-implements parts of the Android OS, I really
 wish they would be careful not break the programmer interfaces.
 It makes us developers look bad when our Apps don't work on your
 devices when It really isn't even our fault.

 Thanks for your help.

 On Dec 2, 1:19 pm, suzanne.alexandra



 suzanne.alexan...@motorola.com wrote:
  I'm happy to say this bug has been fixed and is expected to be
  released toCLIQusers in an upcoming OTA upgrade. I would anticipate
  early next year for this.

  --
  Suzanne Alexandra
  Motorolahttp://developer.motorola.com- Hide quoted text -

 - Show quoted text -
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Start new activity in TAB

2010-01-05 Thread smyl
i am working on a travelling application and  i am using tabs and each
tab has an activity i.e world clock in one tab ,weather data in
another tab and so on

with in the weather tab i am displaying the users selected cities and
the scenario is that when the user selects a city  that city's
forecast is to be displayed and  later to view details as well which
is in another activity .

so how can i launch this new activity from the already started
activity with in the same tab ?


-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How can I add a button to a linear layout 'right justified'

2010-01-05 Thread n179911
Hi,

I have a linear layout like this:

LinearLayout android:id=@+id/header
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=horizontal
android:gravity=center_vertical
ImageView android:id=@+id/icon
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=top
android:src=@drawable/img1 /
TextView android:id=@+id/atitle
android:singleLine=true
android:layout_width=fill_parent
android:layout_height=wrap_content /
/LinearLayout

And I need to add a button to the above layout programatically which
is right justified? I need to do that in code instead of layout xml
file (this is because i can't modify that layout xml file)

Here is what I am doing:
LinearLayout header = (LinearLayout) findViewById(R.id.header);
 Button buyButton = new Button(this);
 buyButton.setText(R.string.buy_ringtone);
 buyButton.setLayoutParams(new LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
header.addView(buyButton);

But the button does not appear.  Can you please tell me how can i achieve that?
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Clickable hyperlinks in AlertDialog

2010-01-05 Thread Thilo-Alexander Ginkel
On Jan 4, 7:55 am, Tommy Hartz to...@webpro.com wrote:
 you can set the android:autoLink=all or whatever attribute you need in
 place of all

So, to sum things up there is no way around using a custom TextView. I
am currently using the following code successfully, which I am
including for the archive:

-- 8 --
View view = View.inflate(MainActivity.this, R.layout.about, null);
TextView textView = (TextView) view.findViewById(R.id.message);
textView.setMovementMethod(LinkMovementMethod.getInstance());
textView.setText(R.string.Text_About);
new AlertDialog.Builder(MainActivity.this).setTitle
(R.string.Title_About).setView(
view).setIcon(R.drawable.icon).show();
-- 8 --

The corresponding about.xml borrowed as a fragment from the Android
sources looks like this:

-- 8 --
?xml version=1.0 encoding=utf-8?
ScrollView xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/scrollView android:layout_width=fill_parent
android:layout_height=wrap_content android:paddingTop=2dip
android:paddingBottom=12dip android:paddingLeft=14dip
android:paddingRight=10dip
TextView android:id=@+id/message style=?android:attr/
textAppearanceMedium
android:layout_width=fill_parent
android:layout_height=wrap_content
android:padding=5dip android:linksClickable=true /
/ScrollView
-- 8 --

The important parts are setting linksClickable to true and
setMovementMethod(LinkMovementMethod.getInstance()).

Thanks,
Thilo
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Heads up!

2010-01-05 Thread Wayne Wenthin
It’s inaccurate to say Google designed the phone (points to HTC CEO).
[Google] is just merchandising it online. Everybody will get 2.1 when it’s
open source, within a couple of days.

-- 
Writing code is one of few things
that teaches me I don't know everything.

Join the Closed Beta of Call Girl Manager
http://www.fuligin.com/forums
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread Beth
The problem may be that the TextView atitle has
android:layout_width=fill_parent.  Try setting it to wrap_content
and see if you get better results.

Regards,
Beth


On Jan 5, 1:57 pm, n179911 n179...@gmail.com wrote:
 Hi,

 I have a linear layout like this:

 LinearLayout android:id=@+id/header
             android:layout_width=fill_parent
             android:layout_height=wrap_content
             android:orientation=horizontal
             android:gravity=center_vertical
             ImageView android:id=@+id/icon
                 android:layout_width=wrap_content
                 android:layout_height=wrap_content
                 android:layout_gravity=top
                 android:src=@drawable/img1 /
             TextView android:id=@+id/atitle
                 android:singleLine=true
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content /
         /LinearLayout

 And I need to add a button to the above layout programatically which
 is right justified? I need to do that in code instead of layout xml
 file (this is because i can't modify that layout xml file)

 Here is what I am doing:
 LinearLayout header = (LinearLayout) findViewById(R.id.header);
  Button buyButton = new Button(this);
  buyButton.setText(R.string.buy_ringtone);
  buyButton.setLayoutParams(new LayoutParams(
                     ViewGroup.LayoutParams.WRAP_CONTENT,
                     ViewGroup.LayoutParams.WRAP_CONTENT));
 header.addView(buyButton);

 But the button does not appear.  Can you please tell me how can i achieve 
 that?
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] listview borders

2010-01-05 Thread Engin Arslan
Hi,

how can i remove borders in listview. i want a flat listview there
wont be any divider between two listview items. any suggestion??


Best 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] List with image items

2010-01-05 Thread Iroid
Hello all,
I have a list that shows items containing text and image. I have to
download the images from the remote server and show as list item.
things are working fine.
The real problem is my list could have around 100 list items and each
item has image downloaded from remote server.
It is giving me OutofMemory error when I fetch around 70-80 elements.

Could anyone tell me the best way to manage this situation?

I would appreciate your response.

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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Start new activity in TAB

2010-01-05 Thread jotobjects
Unless the Activities that you want to show under the tabs are
activities in the same application you may run into the problem
described here regarding TabWidget -

http://groups.google.com/group/android-beginners/msg/17c95a6881e1dfe4

On Jan 5, 5:50 am, smyl smy...@gmail.com wrote:
 i am working on a travelling application and  i am using tabs and each
 tab has an activity i.e world clock in one tab ,weather data in
 another tab and so on

 with in the weather tab i am displaying the users selected cities and
 the scenario is that when the user selects a city  that city's
 forecast is to be displayed and  later to view details as well which
 is in another activity .

 so how can i launch this new activity from the already started
 activity with in the same tab ?
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread Iroid
set the layout weight of TextView to 1.
TextView android:id=@+id/atitle
android:singleLine=true
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_weight= 1
   /
/LinearLayout



On Jan 5, 2:13 pm, Beth emez...@gmail.com wrote:
 The problem may be that the TextView atitle has
 android:layout_width=fill_parent.  Try setting it to wrap_content
 and see if you get better results.

 Regards,
 Beth

 On Jan 5, 1:57 pm, n179911 n179...@gmail.com wrote:



  Hi,

  I have a linear layout like this:

  LinearLayout android:id=@+id/header
              android:layout_width=fill_parent
              android:layout_height=wrap_content
              android:orientation=horizontal
              android:gravity=center_vertical
              ImageView android:id=@+id/icon
                  android:layout_width=wrap_content
                  android:layout_height=wrap_content
                  android:layout_gravity=top
                  android:src=@drawable/img1 /
              TextView android:id=@+id/atitle
                  android:singleLine=true
                  android:layout_width=fill_parent
                  android:layout_height=wrap_content /
          /LinearLayout

  And I need to add a button to the above layout programatically which
  is right justified? I need to do that in code instead of layout xml
  file (this is because i can't modify that layout xml file)

  Here is what I am doing:
  LinearLayout header = (LinearLayout) findViewById(R.id.header);
   Button buyButton = new Button(this);
   buyButton.setText(R.string.buy_ringtone);
   buyButton.setLayoutParams(new LayoutParams(
                      ViewGroup.LayoutParams.WRAP_CONTENT,
                      ViewGroup.LayoutParams.WRAP_CONTENT));
  header.addView(buyButton);

  But the button does not appear.  Can you please tell me how can i achieve 
  that?- Hide quoted text -

 - Show quoted text -
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Mixed Language Apps

2010-01-05 Thread Frank Weiss
It's not clear what you're asking. Java strings are UCS-16. Are asking about
mixed localization of button labels? Please more details.

On Jan 5, 2010 10:53 AM, 48-New courag...@gmail.com wrote:

Would appreciate if anybody can give me some pointers on how to mixed
different language in an android app?  For example, mixing displaying
English along w/ Spanish, or Chinese by using Unicode for the Spanish
or Chinese characters.

I have searched the post in this group but doesn't seem to find any
discussion about this.  Many thnx in advance.

--
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
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Why is my eclipse up to date with 2.0.1 but no android tools appear in the UI?

2010-01-05 Thread ClarkBattle
Apparently this is a common issue with Windows 7 and eclipse plugins.
Eclipse does not like having more than one plug in at a time on
Windows 7.  Doing so may or may not work depending on how astrological
constellations align with the mating cycle of the Australian Gypsy
Moth.  The solution is to log in as admin and blow away C:\Users\admin
\.eclipse directory.  Eclipse will recreate it when you restart it.
You then have to re-enter the plug-in url for android and update it.
This time android will be the only plug in.  Not even the ones that
came with Eclipse will be there.  This fixed it for me.



On Jan 4, 3:38 pm, Daan daan_v...@hotmail.com wrote:
 I am on Windows 7 too, but didn't have any problem installing the
 Android SDK. Try watching this videohttp://www.youtube.com/watch?v=lqPfi6N4iEY
 and see if you missed out any steps. It's Windows XP, but it doesn't
 matter it works the same as Vista and 7.

 On Jan 4, 11:24 pm, ClarkBattle clarkbat...@gmail.com wrote:

  I am installing on Windows 7.

  Window  Preferences... Android is not there, even though the tools
  are installed.  Reinstalling Eclipse does not fix the problem.

  On Jan 4, 1:10 pm, ClarkBattle clarkbat...@gmail.com wrote:

   I was completely set up with android 2.0 and eclipse.  Everything
   worked fine.  Then I tried to upgrade to 2.0.1 and now eclipse wont
   show any of the android plug in stuff.  There is nothing in the IDE
   relating to android anymore.  No AVD, no android projects, nothing.

   If I go to Help - Install New Software, select Android Eclair 
   -https://dl-ssl.google.com/android/eclipse/; for the Work with, and
   look under Developer Tools I get these:

       Android DDMS        0.9.5.v200911191123-20404
       Android Development Tools   0.9.5.v200911191123-20404

   These are the mot current android 2.0.1 tools.  It shows that they are
   already installed (clicking the Hide items that are already
   installed box removes them).  However, eclipse looks like i just
   installed it vanilla with no plugins at all.

   Is there something else I need to do?  Check for Updates says there
   is nothing to update.  Should I blow away eclipse and reinstall it
   from scratch?  Doesnt that defeat the purpose of the automatic
   updater?

   Confused
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Nexus 2.1 one sale, WHERE is the SDK!

2010-01-05 Thread pcm2a
These phones are on sale with 2.1 Os on them right now.  My friend
just ordered two with overnight shipping.

How is it even remotely acceptable that people will have 2.1 in their
hands before developers even get to touch the SDK?  I already have
users using the Nexis-Droid 2.1 rom saying that my highly used widget
doesn't work.  How am I supposed to test this out in advance without
hacking our phone all up?

All this does is frustrate users when apps don't work and further
degrades the market with 1 stars because developers don't have a
chance to update their code.

Thanks google
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread n179911
On Tue, Jan 5, 2010 at 11:30 AM, Iroid irfan.f.k...@gmail.com wrote:
 set the layout weight of TextView to 1.
 TextView android:id=@+id/atitle
                android:singleLine=true
                android:layout_width=fill_parent
                android:layout_height=wrap_content
                android:layout_weight= 1
               /
        /LinearLayout


I have tried this. But when I view the button in HierachyViewer, the
height is 48, but the width is 0?

Any more idea?

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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Nexus 2.1 one sale, WHERE is the SDK!

2010-01-05 Thread Wayne Wenthin
Welcome to developing on Android.   This is round 2.5   1.6 came out just
days before.  2.0 came out on the droid before developers (well most of us)
got to see it and now this.It's almost like Google doesn't want us to
develop for Android.

On Tue, Jan 5, 2010 at 12:10 PM, pcm2a reeeye...@gmail.com wrote:

 These phones are on sale with 2.1 Os on them right now.  My friend
 just ordered two with overnight shipping.

 How is it even remotely acceptable that people will have 2.1 in their
 hands before developers even get to touch the SDK?  I already have
 users using the Nexis-Droid 2.1 rom saying that my highly used widget
 doesn't work.  How am I supposed to test this out in advance without
 hacking our phone all up?

 All this does is frustrate users when apps don't work and further
 degrades the market with 1 stars because developers don't have a
 chance to update their code.

 Thanks google

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Writing code is one of few things
that teaches me I don't know everything.

Join the Closed Beta of Call Girl Manager
http://www.fuligin.com/forums
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Mixed Language Apps

2010-01-05 Thread 48-New
Sorry for the confusion.  Yes, correct, mixing localization in any
strings, not necessary button labels, any place that text can be
displayed, such as check boxes, text fields, radio buttons, etc.  For
example, I want to display English characters in 1 button label / text
field, and Chinese characters in another button label / text field.

Hope this is clearer.

On Jan 5, 2:50 pm, Frank Weiss fewe...@gmail.com wrote:
 It's not clear what you're asking. Java strings are UCS-16. Are asking about
 mixed localization of button labels? Please more details.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Stefan
On Jan 5, 6:48 pm, TreKing treking...@gmail.com wrote:
  Couldn't figure a way to save my overlay class to bundle

 Have your Overlay class implement the Parceable interface, which you can
 then save to / restore from a Bundle.


hmmm, in my case i have always a new overlay for each line on my map:
in every iteration/run of the onLocationChanged method i call
overlay = new MyOverlay()
before i know the MyLocationOverlay i draw my current location with
the drawOval and for this overlay-object (my_pos = new MyOverlay
(...) ) i use the parcelable.
But i dont know how i can save my other normal overlays, because in
each iteration/run i override my overlay object?
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Mixed Language Apps

2010-01-05 Thread Frank Weiss
I'm assuming that you don't need to be able to switch the application
between languages. Just put the Unicode text you want into the code or the
layout or strings XML resource files.

On Tue, Jan 5, 2010 at 12:22 PM, 48-New courag...@gmail.com wrote:

 Sorry for the confusion.  Yes, correct, mixing localization in any
 strings, not necessary button labels, any place that text can be
 displayed, such as check boxes, text fields, radio buttons, etc.  For
 example, I want to display English characters in 1 button label / text
 field, and Chinese characters in another button label / text field.

 Hope this is clearer.

 On Jan 5, 2:50 pm, Frank Weiss fewe...@gmail.com wrote:
  It's not clear what you're asking. Java strings are UCS-16. Are asking
 about
  mixed localization of button labels? Please more details.
 

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Nexus 2.1 one sale, WHERE is the SDK!

2010-01-05 Thread Dan Sherman
Yep, getting tougher and tougher...

Ensuring compatability of our 6 games, in under a week, while doing this in
our spare time, gets pretty tough...

On Tue, Jan 5, 2010 at 3:16 PM, Wayne Wenthin wa...@fuligin.com wrote:

 Welcome to developing on Android.   This is round 2.5   1.6 came out just
 days before.  2.0 came out on the droid before developers (well most of us)
 got to see it and now this.It's almost like Google doesn't want us to
 develop for Android.

 On Tue, Jan 5, 2010 at 12:10 PM, pcm2a reeeye...@gmail.com wrote:

 These phones are on sale with 2.1 Os on them right now.  My friend
 just ordered two with overnight shipping.

 How is it even remotely acceptable that people will have 2.1 in their
 hands before developers even get to touch the SDK?  I already have
 users using the Nexis-Droid 2.1 rom saying that my highly used widget
 doesn't work.  How am I supposed to test this out in advance without
 hacking our phone all up?

 All this does is frustrate users when apps don't work and further
 degrades the market with 1 stars because developers don't have a
 chance to update their code.

 Thanks google

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Writing code is one of few things
 that teaches me I don't know everything.

 Join the Closed Beta of Call Girl Manager
 http://www.fuligin.com/forums

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Mixed Language Apps

2010-01-05 Thread Frank Weiss
P.S. I don't think you really meant mix localizations. Unicode allows you
to mix characters from any language in a document. However, bidi (direction
of the text) can be tricky.

On Tue, Jan 5, 2010 at 12:36 PM, Frank Weiss fewe...@gmail.com wrote:

 I'm assuming that you don't need to be able to switch the application
 between languages. Just put the Unicode text you want into the code or the
 layout or strings XML resource files.

   On Tue, Jan 5, 2010 at 12:22 PM, 48-New courag...@gmail.com wrote:

  Sorry for the confusion.  Yes, correct, mixing localization in any
 strings, not necessary button labels, any place that text can be
 displayed, such as check boxes, text fields, radio buttons, etc.  For
 example, I want to display English characters in 1 button label / text
 field, and Chinese characters in another button label / text field.

 Hope this is clearer.

 On Jan 5, 2:50 pm, Frank Weiss fewe...@gmail.com wrote:
  It's not clear what you're asking. Java strings are UCS-16. Are asking
 about
  mixed localization of button labels? Please more details.
 

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Nexus 2.1 one sale, WHERE is the SDK!

2010-01-05 Thread Greg Donald
On Tue, Jan 5, 2010 at 2:16 PM, Wayne Wenthin wa...@fuligin.com wrote:
 Welcome to developing on Android.   This is round 2.5   1.6 came out just
 days before.  2.0 came out on the droid before developers (well most of us)
 got to see it and now this.    It's almost like Google doesn't want us to
 develop for Android.

Having all the high IQs in the world doesn't help you when you lack
simple common sense.  Google hasn't a clue how to treat developers.
Look at the Market Place stats loss from three weeks ago that no one
is doing anything about:

http://www.google.com/support/forum/p/Android+Market/thread?tid=4c5752ca3e5af4ffhl=en


-- 
Greg Donald
http://destiney.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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Designing a UI for Board Game

2010-01-05 Thread Lance Nanek
One way to do it is to have the game pieces be Drawable instances.
Those can be positioned using the setBounds method:
http://developer.android.com/intl/zh-TW/reference/android/graphics/drawable/Drawable.html#setBounds%28android.graphics.Rect%29

And drawn to a Canvas using the draw method:
http://developer.android.com/intl/zh-TW/reference/android/graphics/drawable/Drawable.html#draw%28android.graphics.Canvas%29

There are various ways to get a Canvas, such as subclassing View and
overriding the onDraw method:
http://developer.android.com/intl/zh-TW/reference/android/view/View.html#onDraw%28android.graphics.Canvas%29

On Jan 5, 1:11 am, prakhy prakhyathhe...@gmail.com wrote:
 Hi,

 I need to design a board UI using android platform. i was planning to
 take one image as board and moving the required images over the board.
 How do i achieve the same? I need to find the coordinates for image
 and need to move the required images to specifies coordinates. Is
 there any andorid api for this?

 Prakhy
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: List with image items

2010-01-05 Thread Brion Emde
You would have to do memory management on your list, if you plan to
keep all those images in memory. The list view knows which views are
exposed and which aren't. You'd have to re-fetch any views you deleted
to keep within memory limits.

You could cache you images in the local file system or in a database.
Both of those options would get them out of RAM.

On Jan 5, 12:27 pm, Iroid irfan.f.k...@gmail.com wrote:
 Hello all,
 I have a list that shows items containing text and image. I have to
 download the images from the remote server and show as list item.
 things are working fine.
 The real problem is my list could have around 100 list items and each
 item has image downloaded from remote server.
 It is giving me OutofMemory error when I fetch around 70-80 elements.

 Could anyone tell me the best way to manage this situation?

 I would appreciate your response.

 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: MapView Overlay problem

2010-01-05 Thread TreKing
I'm sorry, but I'm not really following or understanding what you're doing.
Could you clarify or post some sample code?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Tue, Jan 5, 2010 at 2:35 PM, Stefan ebay-dah...@web.de wrote:

 On Jan 5, 6:48 pm, TreKing treking...@gmail.com wrote:
   Couldn't figure a way to save my overlay class to bundle
 
  Have your Overlay class implement the Parceable interface, which you can
  then save to / restore from a Bundle.
 

 hmmm, in my case i have always a new overlay for each line on my map:
 in every iteration/run of the onLocationChanged method i call
 overlay = new MyOverlay()
 before i know the MyLocationOverlay i draw my current location with
 the drawOval and for this overlay-object (my_pos = new MyOverlay
 (...) ) i use the parcelable.
 But i dont know how i can save my other normal overlays, because in
 each iteration/run i override my overlay object?

 --
 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
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Possible to awake the phone by touching the screen?

2010-01-05 Thread schwiz
I don't think its possible, plus its a horrible idea cause it would
unlock the phone everytime you put it in your pocket.

On Jan 4, 8:25 pm, Nazgulled mas...@ricardoamaral.net wrote:
 Hi,

 As an heads-up, I'm an amateur developer and a university student in
 the area but I have not knowledge at all about Android development. I
 haven't yet had the time to start looking at the SDK and
 documentation. However, I have an idea for an app that I would like to
 try and develop for Android phones but I need to do something that I
 don't think it's quite possible.

 I own an HTC Hero and the phone can only be awaken by pressing the
 menu button or the power off button. Dunno if it's like this for every
 Android phone. I'm looking for a way to awake the phone by touching
 the screen.

 My idea is to replace the KeyGuard with something else but instead of
 awaking the phone by pressing one of those buttons, I would like to do
 it by touching the screen.

 Is this even possible or the Androd framework doesn't provide this
 functionality at all?
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Resource not found errors for images referred to in a button image selector xml file

2010-01-05 Thread OldSkoolMark
My 1.6 app works fine in both portrait and landscape modes on the
default HVGA device. I'm now trying to support it on QVGA devices and
am encountering build-time errors I don't understand.

In my res/drawable-ldpi directory I have:

startstopin.png
startstopout.png

and a selector file

startstopbuttonimageselector.xml

which contains:

?xml version=1.0 encoding=utf-8?
 selector xmlns:android=http://schemas.android.com/apk/res/android;
 item android:state_pressed=true
   android:drawable=@drawable-ldpi/startstopin / !--
pressed --
 item android:drawable=@drawable-ldpi/startstopout / !--
default --
 /selector

I've 'fixed project properties', and done a 'clean' build, to no
avail. The error I get is:

ERROR Error: No resource found that matches the given name (at
'drawable' with value '@drawable-ldpi/startstopin').
 ERROR Error: No resource found that matches the given name (at
'drawable' with value '@drawable-ldpi/startstopout').

I've tried adding a layout file in res/layout-small that explicitly
references this selector file, but this triggers a similar build error
and fails to address the original problem:

ERROR Error: No resource found that matches the given name (at 'src'
with value '@drawable-ldpi/startstopbuttonimageselector').

Any insight into this problem would be greatly appreciated.
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: UI design for Board Game

2010-01-05 Thread schwiz
yeah should be fairly easy just look into the 2d graphics api, you
might check out a book called 'hello android' it has a pretty good
chapter on the 2d api.

On Jan 5, 12:17 am, prakhy prakhyathhe...@gmail.com wrote:
 Hi,

 I need to design a board UI using android platform. i was planning to
 take one image as board and moving the required images over the board.
 How do i achieve the same? I need to find the coordinates for image
 and need to move the required images to specifies coordinates. Is
 there any andorid api for this?

 Prakhy
-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

  1   2   >