[android-developers] Re: Time to first screen, boot-up time and app-start time?

2009-08-26 Thread Dan Bornstein

On Tue, Aug 25, 2009 at 5:02 PM, Casper Bang casper.b...@gmail.com wrote:
 People who have digged into Dalvik aren't
 overly impressed when compared to similar technologies:
 http://www.koushikdutta.com/2009/01/dalvik-vs-mono.html

Please read the comments on that article, which contained some good
discussion, and please be aware that the original author is pushing a
particular agenda. (Not that I don't have my own biases too, but I
think I am reasonably up-front about them.)

-dan

--~--~-~--~~~---~--~~
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: What is the approx time taken to register as a developer and to be able to publish apps on the Android Market?

2009-08-26 Thread soniya

True.

Here is the answer that i got on the Android Market forums:

Free apps: Typically less than 10mins. (Setup Checkout account to pay,
fill android developer profile data).
Paid apps: May take a couple of days. At times more. (Needs you to
verify merchant account by receiving a few cents into your bank
account).
ADC2: Less than a minute. No need to register as an android developer
in market.

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

On Aug 26, 10:03 am, Michael Leung michaelchi...@gmail.com wrote:
 That is the reason I think Android is more developer friendly.

 On Wed, Aug 26, 2009 at 1:55 PM, Marc Lester Tan mail...@gmail.com wrote:





  Yup it goes live immediately.

  -Marc

  On Wed, Aug 26, 2009 at 11:51 AM, soniya soniy...@gmail.com wrote:

  :)

  1 more questionWhen the App is submitted,Is there no certification
  cycle like Apple? I submit the App and it goes live?

  On Aug 25, 8:39 pm, cadlg carlos@gmail.com wrote:
   On Aug 25, 5:43 am, for android forandr...@gmail.com wrote:

What is the approx time taken to register as a developer and to be
able to publish apps on the Android Market?
        its simple 15 mins max.
Do we need to wait for any approval from google to be able to
  publich
the apps once registered as a developer and a Google checkout
merchant?
No.u just need to agree to the terms and conditions

On Tue, Aug 25, 2009 at 5:11 PM, soniya soniy...@gmail.com wrote:

 Hi All

 What is the approx time taken to register as a developer and to be
 able to publish apps on the Android Market?

 Do we need to wait for any approval from google to be able to
  publich
 the apps once registered as a developer and a Google checkout
 merchant?

 Thanks in advance
 Soniya- Hide quoted text -

- Show quoted text -

   I registered in 1 minute.- Hide quoted text -

   - Show quoted text -

 --
 Regards,
 Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info- 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] Re: ADC 2 Submission Site -- Now live

2009-08-26 Thread RS

This request might sound like one to extend deadline but it is
actually only to extend the window which is shorter than the estimate
announced.
Though our apps are ready, some developers are not immediately
available (not because they are holidaying) and this weekend happens
to be a long weekend in the UK.
Business submissions unfortunately may not happen at weekends. For
contingency another week would be very useful.
Regards,
RS


On Aug 25, 5:06 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 I see no need to extend the deadline, it's been public since May 27th,
 if you're not ready by now, you'll probably never be ready. People
 have to learn that a deadline means something, extending it would only
 punish those who are ready and reward those who can't meet project
 goals on time.

 -John Coryat
--~--~-~--~~~---~--~~
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: Needed reference to source code for adb shell command input that is used to inject keypresses.

2009-08-26 Thread Royston Rodrigues
Hi All,

I was able to find the source of adb shell command input.

Location:
frameworks/base/cmds/input/src/com/android/commands/input/Input.java

Regards,
Royston
QCOM

On Wed, Aug 26, 2009 at 8:54 AM, Royston roystonra...@gmail.com wrote:

 Hi All,

 The use case that I have to emulate is to inject random keypresses. I
 have observed it that it is possible using adb shell command input.
 Can someone point me to the source code in the android build tree, so
 that I can accordingly implement the same in our test app.

 Regards,
 Royston
 QCOM

--~--~-~--~~~---~--~~
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: EMMA Code coverage and JUnit

2009-08-26 Thread santosh kumar

Hi,

After starting the emulator,
i tried adb sync

but i am getting the error like device offline...

can you plz help me in this

Thanks
Santosh

On Aug 26, 6:39 am, santosh kumar santosh.1...@gmail.com wrote:
 Hi All,

 I have few questions about this.. plz clarify me..

 i want to generate code coverage for apidemos only...

 first i changed init.rc then i followed every thing which is mentioned
 in gobor mail..

 one thing i am not understanding... when i start the emulator,
 emulator is getting stucked with the boot up logo,

 i have seen some other artical... we need to run runtest.py?

 is it correct?

 why emulator is getting stucked?

 Thanks
 Santosh

 On Aug 26, 2:28 am, hari uppalapati hari.andr...@gmail.com wrote:



  hi
  i was not facing any issues with emulator.Only thing was my coverage.ec file
  was empty as my sdcard is not recognised.with the following steps the issues
  was resolved.If possible post the logcat o/p and also the steps followed.
  1) edit system/core/rootdir/Android.mk so that the copy_from variable on
  line 6 contains etc/vold.conf.
  copy_from := \
      etc/dbus.conf \
      etc/vold.conf \
      etc/init.goldfish.sh \
      etc/hosts

  2)copy vold.conf from (git://
  android.git.kernel.org/platform/vendor/htc/dream-open.git) to
  system/core/rootdir/etc/
       cp vendor/htc/dream-open/vold.conf system/core/rootdir/etc.
  regards
  Haritha

  On Tue, Aug 25, 2009 at 2:40 AM, santosh kumar 
  santosh.1...@gmail.comwrote:

   Hi All,

   what changes you have been done to vold.conf?

   and i followed the steps of gobor..

   but for me also, emulator is getting stucked..

   can you plz help me..

   On Aug 25, 2:23 am, Haritha hari.andr...@gmail.com wrote:
thanks everyone for posting info on emma coverage.I was also able to
generate coverage reports for custom tests with necessary changes to
vold.conf.
regards
Haritha

On Aug 20, 6:08 am, Gabor gabor.andr...@googlemail.com wrote:

 Hi All,

 Finally, the emma code coverage measurement is working for me (for a
 custom project). So here are the steps what you need to make it work
 (I have tested it, with Java 1.5 on Ubuntu 8.04):

 mkdir android-src
 cd android-src
 repo init -u git://android.git.kernel.org/platform/manifest.git -b
 cupcake
 repo sync

 # Add emma.jar to the system/core/rootdir/init.rc
 sed 's/\/system\/framework\/core.jar:\/system\/framework\/ext.jar:/\/
 system\/framework\/core.jar:\/system\/framework\/ext.jar:\/system\/
 framework\/emma.jar:/' system/core/rootdir/init.rc  system/core/
 rootdir/init.rc.tmp
 mv system/core/rootdir/init.rc.tmp system/core/rootdir/init.rc

 # Rebuild the boot image
 make bootimage

 # To build the full system image
 make -j4

 # Set the PATH:
 export PATH=${PATH}:/_path_/android-src/out/host/linux-x86/bin/

 # Build the emma jar itself
 make emma

 # Setting the environment and additional bash commands. (like
 m,mm,mmm, choosecombo etc) Notice the space after the dot!
 . build/envsetup.sh

 # Set EMMA_INSTRUMENTATION to true
 export EMMA_INSTRUMENT=true

 # Copy your project to development/samples/_projectname_ or
 somewhere..:)
 # Based on the ApiDemo create an Android.mk file for the project
 directory and the project test directory
 # The LOCAL_INSTRUMENTATION_FOR value in test dir Android.mk has to be
 equal with the LOCAL_PACKAGE_NAME defined in the Android.mk in the
 main project dir.
 # Compile the Application would like to instrument
 mmm development/samples/_projectname_

 # Set the ANDROID_PRODUCT_OUT directory for the emulator to know the
 image location
 export ANDROID_PRODUCT_OUT=/_path_/android-src/out/target/product/
 generic

 # Start an emulator with a simulated sdcard:
 emulator -sdcard path to sdcard

 # Remount the drive - it is needed to have a writable drive. without
 that sync wont work
 adb remount

 # Synchronize the local content with the emulator
 adb sync

 adb shell
 # create directory: mkdir /etc/coverageresult

 # Executing tests
 adb shell am instrument -w -e coverage true -e coverageFile /etc/
 coverageresult/coverage.ec hu.agsoftware.sample.tests/
 android.test.InstrumentationTestRunner

 # Dump a runtime coverage data file:
 adb pull /etc/coverageresult/coverage.ec coverage.ec

 # Generate a coverage report
 java -cp external/emma/lib/emma.jar emma report -r html -in
 coverage.ec -sp development/samples/_projectname_/src -in
   out/target/
 common/obj/APPS/_projectname_intermediates/coverage.em

 I hope it helps.

 Gabor- Hide quoted text -

- Show quoted text -- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 

[android-developers] Re: In Java application, how to load native library which depends on the third shared library

2009-08-26 Thread Dianne Hackborn
Hi, you probably want to ask about native development on android-ndk.

2009/8/25 Jiang webs...@yahoo.cn

  Hello, guys.

 I created a jni library which depends the third shared library, I must copy
 the third shared library to /system/lib, otherwise, Java application can't
 load jni library. But you know, on G1 with official OS image, /system/lib is
 readonly. I tried to call System.setProperty to set java.library.path to the
 location stored the thired shared library before load jni library, but the
 issue still exists.

 Is there any one konw how to solve this issue? Thanks a lot.

 BR,
 - Jiang

 --
 好玩贺卡等你发,邮箱贺卡全新上线! 
 http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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: Jdbc driver problem

2009-08-26 Thread Alessio

i'll do that.

Ty



On Aug 24, 7:44 pm, Mark Murphy mmur...@commonsware.com wrote:
  Like object i have some problem with jdbc driver.

 Android does not include JDBC.

  I wanna connect to a database server (postgresql) without write some
  php script server side to comunicate with client (android mobile
  phone)

 Write a Web service in PHP and connect to that Web service from Android
 using HttpURLConnection or HttpClient.

 --
 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] Patching synthesized voice in ongoing call

2009-08-26 Thread VA

I am looking at a usecase related to sharing of a phone number of a
contact during a call. What I expect to happen is that the phone
number is converted to synthesized voice and is spoken into the
ongoing call. Is it possible to patch the synthesized voice in an
ongoing call? Any pointers?
--~--~-~--~~~---~--~~
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 crash problems

2009-08-26 Thread Mika

Hi,
I have started to have strange problems that make the whole OS to
restart. I have this stack trace:

08-21 14:43:15.128: WARN/dalvikvm(11513): threadid=15: thread exiting
with uncaught exception (group=0x4000fe70)
08-21 14:43:15.128: ERROR/AndroidRuntime(11513): Uncaught handler:
thread android.server.ServerThread exiting due to uncaught exception
08-21 14:43:15.128: ERROR/AndroidRuntime(11513): *** EXCEPTION IN
SYSTEM PROCESS.  System will crash.
08-21 14:43:15.228: ERROR/AndroidRuntime(11513):
java.lang.IndexOutOfBoundsException: index=1 count=0
08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
android.view.ViewGroup.addInArray(ViewGroup.java:1890)
08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
android.view.ViewGroup.addViewInner(ViewGroup.java:1834)
08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
android.view.ViewGroup.addView(ViewGroup.java:1711)
08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
android.view.ViewGroup.addView(ViewGroup.java:1668)
08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
com.android.server.status.StatusBarService.addNotificationView
(StatusBarService.java:871)
08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
com.android.server.status.StatusBarService.performAddUpdateIcon
(StatusBarService.java:670)
08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
com.android.server.status.StatusBarService$H.handleMessage
(StatusBarService.java:615)
08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
android.os.Looper.loop(Looper.java:123)
08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
com.android.server.ServerThread.run(SystemServer.java:357)
08-21 14:43:15.438: INFO/Process(11513): Sending signal. PID: 11513
SIG: 9

Any ideas is this a bug in the platform, or is it possible that the
application I'm developing (or some other app in the device) is doing
something that makes the whole system crash. I'm using 1.1 SDK but
the
device has 1.5. Could those compatibility issues be the reason for
the
crash??
-Mika
--~--~-~--~~~---~--~~
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: Error : Unknown URI: content://media/external/images/media

2009-08-26 Thread Dany BREARD

Hi

I change EXTERNAL_CONTENT_URI  to  INTERNAL_CONTENT_URI, and I have an
other error that I can't Fix :


08-26 07:49:39.084: ERROR/DatabaseUtils(648): Writing exception to
parcel
08-26 07:49:39.084: ERROR/DatabaseUtils(648):
java.lang.UnsupportedOperationException: Writing to internal storage
is not supported.
08-26 07:49:39.084: ERROR/DatabaseUtils(648): at
com.android.providers.media.MediaProvider.generateFileName
(MediaProvider.java:1346)
08-26 07:49:39.084: ERROR/DatabaseUtils(648): at
com.android.providers.media.MediaProvider.ensureFile
(MediaProvider.java:1074)
08-26 07:49:39.084: ERROR/DatabaseUtils(648): at
com.android.providers.media.MediaProvider.insertInternal
(MediaProvider.java:1150)
08-26 07:49:39.084: ERROR/DatabaseUtils(648): at
com.android.providers.media.MediaProvider.insert(MediaProvider.java:
1118)
08-26 07:49:39.084: ERROR/DatabaseUtils(648): at
android.content.ContentProvider$Transport.insert(ContentProvider.java:
140)
08-26 07:49:39.084: ERROR/DatabaseUtils(648): at
android.content.ContentProviderNative.onTransact
(ContentProviderNative.java:125)
08-26 07:49:39.084: ERROR/DatabaseUtils(648): at
android.os.Binder.execTransact(Binder.java:287)
08-26 07:49:39.084: ERROR/DatabaseUtils(648): at
dalvik.system.NativeStart.run(Native Method)
08-26 07:49:39.114: DEBUG/AndroidRuntime(779): Shutting down VM
08-26 07:49:39.124: WARN/dalvikvm(779): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
08-26 07:49:39.124: ERROR/AndroidRuntime(779): Uncaught handler:
thread main exiting due to uncaught exception
08-26 07:49:39.154: ERROR/AndroidRuntime(779):
java.lang.RuntimeException: Unable to start activity ComponentInfo
{dany.android.databasejpeg/dany.android.databasejpeg.testjpeg}:
java.lang.UnsupportedOperationException: Writing to internal storage
is not supported.
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2268)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.os.Looper.loop(Looper.java:123)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.app.ActivityThread.main(ActivityThread.java:3948)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
java.lang.reflect.Method.invokeNative(Native Method)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
java.lang.reflect.Method.invoke(Method.java:521)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
dalvik.system.NativeStart.main(Native Method)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): Caused by:
java.lang.UnsupportedOperationException: Writing to internal storage
is not supported.
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.database.DatabaseUtils.readExceptionFromParcel
(DatabaseUtils.java:131)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.database.DatabaseUtils.readExceptionFromParcel
(DatabaseUtils.java:111)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.content.ContentProviderProxy.insert(ContentProviderNative.java:
340)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.content.ContentResolver.insert(ContentResolver.java:476)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
dany.android.databasejpeg.testjpeg.onCreate(testjpeg.java:35)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2231)
08-26 07:49:39.154: ERROR/AndroidRuntime(779): ... 11 more

On Aug 25, 9:17 am, Dany BREARD dany.bre...@gmail.com wrote:
 Hi

 Why I have this error, please ? It' s the same java code than the
 following url:

 http://developer.android.com/intl/fr/guide/topics/providers/content-p...

 /
 /

 package dany.android.databasejpeg;

 import java.io.OutputStream;

 import android.app.Activity;
 import android.content.ContentValues;
 import android.graphics.Bitmap;
 import android.graphics.BitmapFactory;
 import android.net.Uri;
 import android.os.Bundle;
 import android.provider.MediaStore.Images.Media;
 import android.util.Log;

 public 

[android-developers] Re: ADC 2 submission category (?)

2009-08-26 Thread chinchin

Do they not have sport?

On Aug 26, 12:13 am, Ilya Shinkarenko shin...@gmail.com wrote:
 Hi all,
 I am going to commit my application, but I am a bit confused which category
 to choose. The software helps to keep score and statistic of a tennis match,
 and it is also possible to share the scores/stats (seewww.tennis-math.com
 ).

 So, would it be Entertainment OR Lifestyle OR Misc OR
 Productivity/Tools OR Social Networking?

 I tend to Misc, but probably I am wrong? Any help will be very appreciated
 :)

 Thank you,
 Ilya
--~--~-~--~~~---~--~~
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: In Java application, how to load native library which depends on the third shared library

2009-08-26 Thread Jiang
Thanks for your replay.
In fact, I know how to create jni library and how to load jni library in Java 
application, what confusing me is where to install the third shared library.

For example:
If I defeind a jni library libjni-test.so which invokes APIs defined in 
libxxx.so(libxxx.so is not system library), and load the library by invoking 
System.load(jni-test) in Java application, then I copy libjni-test.so to 
My-Project/lib/, after building and installing application, the 
libjni-test.so is installed under /data/data/my-package-name/lib, but what 
place to copy the third library libxxx.so to? 

Thanks.


--- 09年8月26日,周三, Dianne Hackborn hack...@android.com 写道:

发件人: Dianne Hackborn hack...@android.com
主题: [android-developers] Re: In Java application, how to load native  library 
which depends on the third shared library
收件人: android-developers@googlegroups.com
日期: 2009年8月26日,周三,下午3:20

Hi, you probably want to ask about native development on android-ndk.

2009/8/25 Jiang webs...@yahoo.cn




Hello, guys.

I created a jni library which depends the third shared library, I must copy the 
third shared library to /system/lib, otherwise, Java application can't load jni 
library. But you know, on G1 with official OS image, /system/lib is readonly. I 
tried to call System.setProperty to set java.library.path to the location 
stored the thired shared library before load jni library, but the issue still 
exists.



Is there any one konw how to solve this issue? Thanks a lot.

BR,
- Jiang




好玩贺卡等你发,邮箱贺卡全新上线!





-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to 
provide private support, and so won't reply to such e-mails.  All such 
questions should be posted on public forums, where I and others can see and 
answer them.












  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.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: ADC 2 Submission Site -- Now live

2009-08-26 Thread patrick


you're right except that they are people who were unaware of ADC1 and
took polish ADC 2 a bit later, these people may be have very googd
ideas and have worked too hard during the few time they have. they had
especially hope in seeing the site Submitting be delayed a bit, so why
not one or two weeks more it will not do anyone any harm,except that
it will be more interesting ideas, increasing the challenge and all
happy

On 25 août, 17:05, Dan Sherman impact...@gmail.com wrote:
 There's no reason that they would change the deadline.  The deadline has
 been set at the 31st since late May (as stated before).  With that deadline
 posted, your app should be ready to hit the submit button on the 31st or
 sooner.  Nothing changed, they're giving you a full week to hit the Submit
 button.

 - Dan

 On Tue, Aug 25, 2009 at 12:06 PM, Maps.Huge.Info (Maps API Guru) 

 cor...@gmail.com wrote:

  I see no need to extend the deadline, it's been public since May 27th,
  if you're not ready by now, you'll probably never be ready. People
  have to learn that a deadline means something, extending it would only
  punish those who are ready and reward those who can't meet project
  goals on time.

  -John Coryat


--~--~-~--~~~---~--~~
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: Java N00b Test Question

2009-08-26 Thread chinchin

Hello
From the looks of that code it is expecting you to build all your
samples in a file called AllTests.java and then compile it. To me it
looks a little pointless, you would be better off just running your
code normally.

If you are new to both android, java and eclipse I would suggest you
start with the Hello World and Hello Views on the google page:
http://developer.android.com/guide/tutorials/hello-world.html
It will be a lot easier for you and give you a little tutorial on how
to set everything up.
Good luck!

On Aug 26, 12:02 am, budoka blamem...@gmail.com wrote:
 Hi there,

 I am brand new to both Java and Android, but I'm really interested in
 Android development. Anyway, I'm trying to get going with TDD for the
 platform. I found this in the API samples:

 public class AllTests extends TestSuite {

     public static Test suite() {
         return new TestSuiteBuilder(AllTests.class)
                 .includeAllPackagesUnderHere()
                 .build();
     }

 }

 I believe it's supposed to allow me to run all my tests, however, I
 have a separate test file, and it's not being called or run when I run
 the tests in Eclipse. Do I have to set up further config to have the
 project find all my test files?

 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: ADC 2 Submission Site -- Now live

2009-08-26 Thread patrick

you're right except that they are people who were unaware of ADC1 and
took polish ADC 2 a bit later, these people may be have very googd
ideas and have worked too hard during the few time they have. they had
especially hope in seeing the site Submitting be delayed a bit, so why
not one or two weeks more it will not do anyone any harm,except that
it will be more interesting ideas, increasing the challenge and all
happy

On 25 août, 21:29, Dan Sherman impact...@gmail.com wrote:
 No deadline extension + 1On Tue, Aug 25, 2009 at 5:20 PM, CraigsRace 
 craig...@gmail.com wrote:

  No deadline extension + 1

  On Aug 26, 2:06 am, Maps.Huge.Info (Maps API Guru)
  cor...@gmail.com wrote:
   I see no need to extend the deadline, it's been public since May 27th,
   if you're not ready by now, you'll probably never be ready. People
   have to learn that a deadline means something, extending it would only
   punish those who are ready and reward those who can't meet project
   goals on time.

   -John Coryat


--~--~-~--~~~---~--~~
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] Force the height of a view

2009-08-26 Thread Deren

Im currently implementing my own ViewGroup. I send a certain size
(with measurespec mode == EXACTLY) to the children, but they seem to
ignore it. The children are TextViews. I try to force them to have a
height of 30px, but they are 34px instead. Is there any way I can
force them to accept the measurespec that I give them?
--~--~-~--~~~---~--~~
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 activate the flashlight of the Samsung Galaxy

2009-08-26 Thread Nox

Can you help me please!!!


On Aug 11, 11:30 am, Nox v.beh...@googlemail.com wrote:
 Hello everybody,
 I am developing a photo app and I want to add aflashlightfor taking
 better photos.
 The app should know: This is a Samsung Galaxy,I have toactivatetheflashlight.

 Do you know how to realize it?

 Thank you so much in advance

 Viktor
--~--~-~--~~~---~--~~
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: google maps question

2009-08-26 Thread Honest

If I am starting at first time then it is displaying maps aroudn UK
even if i have drawn the point inside australia or any other country.

On Aug 25, 7:35 pm, Honest honestsucc...@gmail.com wrote:
 Hello,

 I am displaying MAP and some point on it. But some how it is not
 displaying directly on particular point. Instead of it is displaying
 screen from which i have left previously. Can some one tell me how can
 i make display of the map on particular point.

 Another thing is i want to display line between two points of map how
 it is possible ?
--~--~-~--~~~---~--~~
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: ADC 2 submission category (?)

2009-08-26 Thread String

On Aug 26, 9:06 am, chinchin nchinn...@googlemail.com wrote:

 Do they not have sport?

Nope, not a category on http://code.google.com/android/adc/.


On Aug 26, 12:13 am, Ilya Shinkarenko shin...@gmail.com wrote:

 I am going to commit my application, but I am a bit confused which category
 to choose. The software helps to keep score and statistic of a tennis match,

It's entirely your call. Personally, I'd say Entertainment if it's for
working with scores when you're a spectator, or Lifestyle if it's for
when you're actually playing. But that's only my opinion, and not to
be taken with any particular weight. :^)

String
--~--~-~--~~~---~--~~
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] MenuItem ID

2009-08-26 Thread Lex

Hi everyone,

I have a simple menu with 2 options:

menu xmlns:android=http://schemas.android.com/apk/res/android;
item android:id=@+id/congestion
  android:title=congestion event
  android:icon=@drawable/sign_congestion_small /


item android:id=@+id/warning
  android:title=warning event
  android:icon=@drawable/sign_warning_small /
/menu

In onOptionItemSelected(), what do I need to compare item.getItemId()
to to figure out which item was selected? I am using getTitle for
niow, but I would prefer to use an id.

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: How to manage service lifecycle when device kills it due to low memory

2009-08-26 Thread cnordvik

Thanks for a very detailed and informative response!

It's a polling alert for football/soccer matches (FotMob
actually), so maybe it is important after all :-) As a user I want
to know what is running in the background and polling frequently but I
have noted that Scoreboard and other apps are not showing that they
are running. To me this is not very friendly since I can't stop them
from polling the server once I have started the program. And I have no
idea if the polling is still active. We decided early on to inform the
user when we poll and allow them to click the notification to stop the
polling, so I guess we can use the setForeground safely :-)

We are using the scheduling of alarm when the phone goes in sleep
mode but as long as the phone is awake we are using a regular timer.

I think I have enough information to keep my service running now,
thanks again.

-Christer
--~--~-~--~~~---~--~~
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] Advice for speeding up my drawing

2009-08-26 Thread CG

Hi, I am creating an app that show some histograms off your traveling
speed in different time periods (histogram for the last minutte,
histogram for the last 2 minuttes etc.)

I would like to have an animation, and have discovered that drawing
everything takes arround 300-400ms. wich is to long for making my
animation smooth, the animation itself is quite simple (2 lines and 2
dots).

What i draw every frame right now is
20 antialised strings, size 14,  in average ~5chars
8 of these strings will change every second.
1 of the string will change with the animation (this will become 5
strings if there is time)

the main part of the screen, the one showing the histogram data,
consist of a lots of squares wich needs to be updated every second.
(450 squares)

the presentation is split into 5 frames in the same view (has to be
same view as arrows in one frame might point into another frame)

invalidating only a part off the screen makes almost no difference (it
does becomas a bit faster, but i still execute all my drawing stuff).
I have tried to add a flag wheter or not the main part is dirty, but
if i don't draw it, it is cleared. I might be missing something
here...

One possibility could be to render all the mostly static stuff to a
bitmap, and then simply draw the bitmap.
that would mean 10 strings only had to rendered on orientation change.

I think it would make sence since the slowest rutine is the one
drawing all the text. (the following is a typical timing for the
drawing rutines, accmulated).

V/HMMULTIBAR(  352): 0 - Drawing time: 0 ms
V/HMMULTIBAR(  352): 1 - Drawing time: 53 ms
V/HMMULTIBAR(  352): 2 - Drawing time: 62 ms
V/HMMULTIBAR(  352): 3 - Drawing time: 85 ms
V/HMMULTIBAR(  352): 4 - Drawing time: 280 ms
V/HMMULTIBAR(  352): 5 - Drawing time: 303 ms

I would really appreciate comments about wheter or not offscreen
rendering is the way to go, or if there is a simpler way.
--~--~-~--~~~---~--~~
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] Activate GPS service

2009-08-26 Thread Anton Pirker

Hey list!

I have written an android app that needs the GPS capabilities of the phone.
If GPS is activated everything works fine, but if it is not i get an error.

So my question: Is it possible to write code that is activating GPS on 
the phone?
I found a forum post that it is not possible because of security 
reasons. Is this true?

Is it possible that i open the phones settings screen for gps so the 
user can activate GPS from within my application?


Thanks in advance,
Anton

-- 
DI(FH) Anton Pirker

---
ignaz software services
burggasse 123/53
a-1070 wien
tel: +43 699 1234 0 456
skype: antonpirker

http://anton-pirker.at
http://shnitzl.org




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Advice for speeding up my drawing

2009-08-26 Thread Andrei Bucur
If you haven't tried already:
1. Replace the strings that get modified with char[]. Strings are immutable
objects so changing one means memory allocation and leaking.
2. Also check the Allocation Tracker for memory leaking.
3. For the constant strings I would use Picture or some bitmap buffer
mechanism to store the drawn text and then just place it on the Canvas
without overhead.

On Wed, Aug 26, 2009 at 12:24 PM, CG christian.glee...@gmail.com wrote:


 Hi, I am creating an app that show some histograms off your traveling
 speed in different time periods (histogram for the last minutte,
 histogram for the last 2 minuttes etc.)

 I would like to have an animation, and have discovered that drawing
 everything takes arround 300-400ms. wich is to long for making my
 animation smooth, the animation itself is quite simple (2 lines and 2
 dots).

 What i draw every frame right now is
 20 antialised strings, size 14,  in average ~5chars
 8 of these strings will change every second.
 1 of the string will change with the animation (this will become 5
 strings if there is time)

 the main part of the screen, the one showing the histogram data,
 consist of a lots of squares wich needs to be updated every second.
 (450 squares)

 the presentation is split into 5 frames in the same view (has to be
 same view as arrows in one frame might point into another frame)

 invalidating only a part off the screen makes almost no difference (it
 does becomas a bit faster, but i still execute all my drawing stuff).
 I have tried to add a flag wheter or not the main part is dirty, but
 if i don't draw it, it is cleared. I might be missing something
 here...

 One possibility could be to render all the mostly static stuff to a
 bitmap, and then simply draw the bitmap.
 that would mean 10 strings only had to rendered on orientation change.

 I think it would make sence since the slowest rutine is the one
 drawing all the text. (the following is a typical timing for the
 drawing rutines, accmulated).

 V/HMMULTIBAR(  352): 0 - Drawing time: 0 ms
 V/HMMULTIBAR(  352): 1 - Drawing time: 53 ms
 V/HMMULTIBAR(  352): 2 - Drawing time: 62 ms
 V/HMMULTIBAR(  352): 3 - Drawing time: 85 ms
 V/HMMULTIBAR(  352): 4 - Drawing time: 280 ms
 V/HMMULTIBAR(  352): 5 - Drawing time: 303 ms

 I would really appreciate comments about wheter or not offscreen
 rendering is the way to go, or if there is a simpler way.
 


--~--~-~--~~~---~--~~
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: Error : Unknown URI: content://media/external/images/media

2009-08-26 Thread Dany BREARD

I try to make everything to fix that but its too complicated !!!

If somebody has a solution, please help me I'm sure its very
simply !!!

On Aug 26, 10:01 am, Dany BREARD dany.bre...@gmail.com wrote:
 Hi

 I change EXTERNAL_CONTENT_URI  to  INTERNAL_CONTENT_URI, and I have an
 other error that I can't Fix :

 08-26 07:49:39.084: ERROR/DatabaseUtils(648): Writing exception to
 parcel
 08-26 07:49:39.084: ERROR/DatabaseUtils(648):
 java.lang.UnsupportedOperationException: Writing to internal storage
 is not supported.
 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
 com.android.providers.media.MediaProvider.generateFileName
 (MediaProvider.java:1346)
 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
 com.android.providers.media.MediaProvider.ensureFile
 (MediaProvider.java:1074)
 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
 com.android.providers.media.MediaProvider.insertInternal
 (MediaProvider.java:1150)
 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
 com.android.providers.media.MediaProvider.insert(MediaProvider.java:
 1118)
 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
 android.content.ContentProvider$Transport.insert(ContentProvider.java:
 140)
 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
 android.content.ContentProviderNative.onTransact
 (ContentProviderNative.java:125)
 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
 android.os.Binder.execTransact(Binder.java:287)
 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
 dalvik.system.NativeStart.run(Native Method)
 08-26 07:49:39.114: DEBUG/AndroidRuntime(779): Shutting down VM
 08-26 07:49:39.124: WARN/dalvikvm(779): threadid=3: thread exiting
 with uncaught exception (group=0x4000fe70)
 08-26 07:49:39.124: ERROR/AndroidRuntime(779): Uncaught handler:
 thread main exiting due to uncaught exception
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):
 java.lang.RuntimeException: Unable to start activity ComponentInfo
 {dany.android.databasejpeg/dany.android.databasejpeg.testjpeg}:
 java.lang.UnsupportedOperationException: Writing to internal storage
 is not supported.
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2268)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 2284)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.app.ActivityThread.access$1800(ActivityThread.java:112)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.os.Handler.dispatchMessage(Handler.java:99)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.os.Looper.loop(Looper.java:123)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.app.ActivityThread.main(ActivityThread.java:3948)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 java.lang.reflect.Method.invoke(Method.java:521)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
 (ZygoteInit.java:782)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 dalvik.system.NativeStart.main(Native Method)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779): Caused by:
 java.lang.UnsupportedOperationException: Writing to internal storage
 is not supported.
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.database.DatabaseUtils.readExceptionFromParcel
 (DatabaseUtils.java:131)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.database.DatabaseUtils.readExceptionFromParcel
 (DatabaseUtils.java:111)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.content.ContentProviderProxy.insert(ContentProviderNative.java:
 340)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.content.ContentResolver.insert(ContentResolver.java:476)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 dany.android.databasejpeg.testjpeg.onCreate(testjpeg.java:35)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1123)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2231)
 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     ... 11 more

 On Aug 25, 9:17 am, Dany BREARD dany.bre...@gmail.com wrote:

  Hi

  Why I have this error, please ? It' s the same java code than the
  following url:

 http://developer.android.com/intl/fr/guide/topics/providers/content-p...

  /
  /

  package dany.android.databasejpeg;

  import 

[android-developers] Re: Activate GPS service

2009-08-26 Thread Mark Murphy

 So my question: Is it possible to write code that is activating GPS on
 the phone?

No. You can send the users to the activity where they can enable GPS, but
you cannot enable GPS yourself.

 I found a forum post that it is not possible because of security
 reasons. Is this true?

Correct.

 Is it possible that i open the phones settings screen for gps so the
 user can activate GPS from within my application?

Yes. Try using Settings.ACTION_LOCATION_SOURCE_SETTINGS as an action for
an Intent used with startActivity(). I think that's the correct action --
if it does not work, check the other actions defined on Settings.

-- 
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: MenuItem ID

2009-08-26 Thread Mark Murphy



 Hi everyone,

 I have a simple menu with 2 options:

 menu xmlns:android=http://schemas.android.com/apk/res/android;
 item android:id=@+id/congestion
   android:title=congestion event
   android:icon=@drawable/sign_congestion_small /


 item android:id=@+id/warning
   android:title=warning event
   android:icon=@drawable/sign_warning_small /
 /menu

 In onOptionItemSelected(), what do I need to compare item.getItemId()
 to to figure out which item was selected? I am using getTitle for
 niow, but I would prefer to use an id.

Menu IDs are like layout widget IDs, named by R.id:

if (R.id.congestion==item.getItemId()) {
  // suggest a cold remedy
}
else if (R.id.warning==item.getItemId()) {
  // warn them about the side effects of the cold remedy
}

-- 
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] color lookup table

2009-08-26 Thread arjun r

Hi,

Does android use a color look up table ? if yes I wanted to see the
entries in color lookup table and access them. Anybodies has any
ideas. I am very new to android sorry if this looks like a silly
question.

Regards,
Ace
--~--~-~--~~~---~--~~
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 with service

2009-08-26 Thread Imran

Hey All,

  I have a service which should download files in background, i am
calling this service form another activity,
  the problem is when i am calling this service form another
Activity the present Activity is getting Freezed( i.e not able to get
control back ) until the all files in service are downloaded.

  once all the files in the service are downloaded the activity is
getting the control back.

what i want is the the service should download all the files in
background with effecting the Activity which called the service.

Help me Guys..!!

Thanks,
Imran
--~--~-~--~~~---~--~~
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 and where to save SecretKey for encryption and decryption

2009-08-26 Thread zeeshan

Hi Dear,

i wrote a small application which encrypt some files using a secret
key.
i need to decrypt files on 2nd run which requires same key again
plz advise where should i store the secret key.



--~--~-~--~~~---~--~~
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 use the RotationMatrix, actually how to get it

2009-08-26 Thread Peli

You confuse me:
I thought a and b are float vectors - that is, vectors containing
actual numbers, not pointers (for example to a Float class). As such,
you can not .clone() them.

Did you use Float (with capital F) instead of float (with lower case
f)?
Floats are classes surrounding float.

If you want to work time-critical, you should use the simple float:
float[] a = new float[3];
float[] b = new float[3];
a[0] = 1.2f;
a[1] = 2.3f;
...

and NOT
Float[] a = new Float[3];
a[0] = new Float(1.2f);
a[1] = new Float(2.3f);
...

Peli

On Aug 26, 2:28 am, Rud rudmerr...@gmail.com wrote:
 System.arraycopy does not do a deep copy. I just tried it. But it is
 very fast. grin

 I setup the timing test. I did 5000 passes over the copy loops;

   522 ms    for (i=0; i3; i++) a[i] = b[i].clone();
   453 ms    for(i=3; i--0;) a[i] = b[i].clone();
   447 ms    int pos = 0; for(type x; b) a[pos++] = x.clone();

 I had written a type.clone() to make the deep copy for each array
 element. I was surprised that the for_each version did so well. I
 won't put much faith in the timing differences between it and the
 subtraction version.

 Rudhttp://mysticlakesoftware.blogspot.com/

 On Aug 25, 8:00 am, Peli peli0...@googlemail.com wrote:

  To deep copy an array, you can use 
  System.arraycopy(..)http://developer.android.com/reference/java/lang/System.html#arraycop...

  System.arraycopy(b, 0, a, 0, 3);

  but for a float array of length 3, you can simply write
  a[0]=b[0];
  a[1]=b[1];
  a[2]=b[2];

  or
  for (i=0; i3; i++) a[i] = b[i];

  I've never tried to profile which of the 3 ways is actually the
  fastest on a real Android device. If someone has the time, please try
  all 3 in a tight loop and report back :-)

  (there is also
  for(i=3; i--0;) a[i] = b[i];
  which may be even faster?)

  Note: all assume that you have initialized a already beforehand,
  a = new float[3];

  Peli

  On Aug 25, 8:24 am, Rud rudmerr...@gmail.com wrote:

   Hi,

   The code is originally from my Blog. The reason for the clone is
   explained there.

   I admit to not having worked with Java enough to have the deep
   understanding of how containers deal with objects. In my application I
   ran into a problem trying to make a copy of an array and had to write
   my own copy.

   I had a set of data that gets consumed while the app runs. I wanted to
   reset that data at times. I put the data in an array and then cloned
   it to the working array. I was surprised when the original data got
   changed when the cloned data was changed. I also realized that the
   sensor code wasn't doing what I thought it was but haven't taken the
   time to adjust it.

   How in Java do you actually make a deep copy of an array?

   Rudhttp://mysticlakesoftware.blogspot.com/

   On Aug 21, 7:07 am, Peli peli0...@googlemail.com wrote:

  = event.values.clone();

Note that this creates new objects constantly that have to be garbage
collected later. Depending on the kind of application, it may be
better to just copy the values into a persisting array.

Peliwww.openintents.org

On Aug 21, 4:06 am, mscwd01 mscw...@gmail.com wrote:

 Heres my code, which works:

 public void onSensorChanged(SensorEvent event) {

         Sensor sensor = event.sensor;
         int type = sensor.getType();
         switch (type) {
                 case Sensor.TYPE_MAGNETIC_FIELD:
                         mags = event.values.clone();
                         isReady = true;
                     break;
                 case Sensor.TYPE_ACCELEROMETER:
                     accels = event.values.clone();
                     break;
                 case Sensor.TYPE_ORIENTATION:
                     orients = event.values.clone();
                     break;
             }

             if (mags != null  accels != null  isReady) {
                 isReady = false;

                     SensorManager.getRotationMatrix(R, I, accels, 
 mags);
                     SensorManager.remapCoordinateSystem(R,
 SensorManager.AXIS_Y, SensorManager.AXIS_MINUS_X, outR);
                     SensorManager.getOrientation(outR, values);

                                 azimuth = 
 getAzimuth(-convert.radToDeg(values[0]));
                                 pitch= convert.radToDeg(values[1]);
                                 roll = -convert.radToDeg(values[2]);

             }

         }

 On Aug 21, 2:39 am, Mike Collins mike.d.coll...@gmail.com wrote:

  I have a sensor event handler that gets fired and I have no problem
  getting and processing acceleration readings. However this code
  always fails.

                  if (event.sensor.getType() == 
  Sensor.TYPE_ACCELEROMETER)
                  {
                          float[] geomagnetic = new float[3];
                          geomagnetic[0] = geomagnetic[1] = 
  

[android-developers] Re: how and where to save SecretKey for encryption and decryption

2009-08-26 Thread Sujay Krishna Suresh
I think its better to ask the user for the secret key rather than storin it
smwhere.

On Wed, Aug 26, 2009 at 4:30 PM, zeeshan genx...@gmail.com wrote:


 Hi Dear,

 i wrote a small application which encrypt some files using a secret
 key.
 i need to decrypt files on 2nd run which requires same key again
 plz advise where should i store the secret key.



 



-- 
Regards,
Sujay
Mike Ditka http://www.brainyquote.com/quotes/authors/m/mike_ditka.html  -
If God had wanted man to play soccer, he wouldn't have given us arms.

--~--~-~--~~~---~--~~
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] Is it possible for a View having more than one Canvas

2009-08-26 Thread Nithin

Hi,

I have a View and that has a canvas. I am rotating the canvas, for
rotating a bitmap. But after that, I need to draw one more bitmap on
the Canvas and, this should not rotate. The second bitmap has to be
static.

I tried with matrix rotation for bitmap. But its not rotating in the
specified co-ordinates.

Open for all suggestions

Thanks
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
-~--~~~~--~~--~--~---



[android-developers] Re: Programmatically setting style attribute

2009-08-26 Thread Nigel

These two links led me to the right way to approach my custom
component:

http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/

http://developer.android.com/guide/topics/ui/custom-components.html

Cheers,

Nigel
--~--~-~--~~~---~--~~
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 and where to save SecretKey for encryption and decryption

2009-08-26 Thread zeeshan

encryption and decryption is the app's internal functionality. user
has nothing to do with this
i encrypt the file on 1st run and on 2nd run i check if file is there
then decrypt and show.
so only thing i understand is to store the key somewhere in the app so
i can access it for decryption.
just wondering if this help
File  keyFile = new File(data/data/package name/key);

i followed this link for encryption and decryption
http://www.java2s.com/Tutorial/Java/0490__Security/UsingCipherInputStream.htm


On Aug 26, 12:11 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
wrote:
 I think its better to ask the user for the secret key rather than storin it
 smwhere.

 On Wed, Aug 26, 2009 at 4:30 PM, zeeshan genx...@gmail.com wrote:

  Hi Dear,

  i wrote a small application which encrypt some files using a secret
  key.
  i need to decrypt files on 2nd run which requires same key again
  plz advise where should i store the secret key.

 --
 Regards,
 Sujay
 Mike Ditka http://www.brainyquote.com/quotes/authors/m/mike_ditka.html  -
 If God had wanted man to play soccer, he wouldn't have given us arms.
--~--~-~--~~~---~--~~
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] detect headphones plugged in

2009-08-26 Thread Nate

Is it possible to detect when/if headphones are plugged in?
--~--~-~--~~~---~--~~
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 and where to save SecretKey for encryption and decryption

2009-08-26 Thread Sujay Krishna Suresh
If it is only used by ur application, jus use a String instance to hold the
key. y store in a file??
ll the key change dynamically???

On Wed, Aug 26, 2009 at 4:55 PM, zeeshan genx...@gmail.com wrote:


 encryption and decryption is the app's internal functionality. user
 has nothing to do with this
 i encrypt the file on 1st run and on 2nd run i check if file is there
 then decrypt and show.
 so only thing i understand is to store the key somewhere in the app so
 i can access it for decryption.
 just wondering if this help
 File  keyFile = new File(data/data/package name/key);

 i followed this link for encryption and decryption

 http://www.java2s.com/Tutorial/Java/0490__Security/UsingCipherInputStream.htm


 On Aug 26, 12:11 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
 wrote:
  I think its better to ask the user for the secret key rather than storin
 it
  smwhere.
 
  On Wed, Aug 26, 2009 at 4:30 PM, zeeshan genx...@gmail.com wrote:
 
   Hi Dear,
 
   i wrote a small application which encrypt some files using a secret
   key.
   i need to decrypt files on 2nd run which requires same key again
   plz advise where should i store the secret key.
 
  --
  Regards,
  Sujay
  Mike Ditka http://www.brainyquote.com/quotes/authors/m/mike_ditka.html
  -
  If God had wanted man to play soccer, he wouldn't have given us arms.
 



-- 
Regards,
Sujay
Pablo Picassohttp://www.brainyquote.com/quotes/authors/p/pablo_picasso.html
- Computers are useless. They can only give you answers.

--~--~-~--~~~---~--~~
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: Ressource Management / Priorization of applications?

2009-08-26 Thread mstu...@googlemail.com

Thanks!

Ok, I can set priority for threads... but threads running in
processes... is it therefore possible to set priority for processes as
well...?



On 26 Aug., 00:04, 3crowntech 3crownt...@gmail.com wrote:
 Hi Matthias,

 You can set thread priority by android.os.Process.setThreadPriority
 method. This is how android controls resource allocation.
 Thanks.

 On Aug 26, 5:45 am, mstu...@googlemail.com mstu...@googlemail.com
 wrote:



  hi all,

  the Android web site indicates that all applications are created
  equal. What is the strategy to ensure that critical applications/
  services have priority?

  Are there any facilities Android does provide to ensure certain
  applications and/or threads to receive a minimum of CPU bandwith (and
  other apps/threads are prevented from consuming all the CPU bandwith)?

  Matthias- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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 and where to save SecretKey for encryption and decryption

2009-08-26 Thread zeeshan

key doesn't change.
can i store keyString  in preferences to retrieve for decryption

SecretKey key = KeyGenerator.getInstance(DES).generateKey();
byte[] keybytes = key.getEncoded();
String keyString = new String(keybytes);

or plz provide any example for the best practice

On Aug 26, 12:28 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
wrote:
 If it is only used by ur application, jus use a String instance to hold the
 key. y store in a file??
 ll the key change dynamically???



 On Wed, Aug 26, 2009 at 4:55 PM, zeeshan genx...@gmail.com wrote:

  encryption and decryption is the app's internal functionality. user
  has nothing to do with this
  i encrypt the file on 1st run and on 2nd run i check if file is there
  then decrypt and show.
  so only thing i understand is to store the key somewhere in the app so
  i can access it for decryption.
  just wondering if this help
  File  keyFile = new File(data/data/package name/key);

  i followed this link for encryption and decryption

 http://www.java2s.com/Tutorial/Java/0490__Security/UsingCipherInputSt...

  On Aug 26, 12:11 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
  wrote:
   I think its better to ask the user for the secret key rather than storin
  it
   smwhere.

   On Wed, Aug 26, 2009 at 4:30 PM, zeeshan genx...@gmail.com wrote:

Hi Dear,

i wrote a small application which encrypt some files using a secret
key.
i need to decrypt files on 2nd run which requires same key again
plz advise where should i store the secret key.

   --
   Regards,
   Sujay
   Mike Ditka http://www.brainyquote.com/quotes/authors/m/mike_ditka.html
   -
   If God had wanted man to play soccer, he wouldn't have given us arms.

 --
 Regards,
 Sujay
 Pablo Picassohttp://www.brainyquote.com/quotes/authors/p/pablo_picasso.html
 - Computers are useless. They can only give you answers.
--~--~-~--~~~---~--~~
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 use the RotationMatrix, actually how to get it

2009-08-26 Thread Rud

Sorry for the confusion. I have another place in the application where
I am copying an array of objects. That is what I used for testing.

Rud


On Aug 26, 6:05 am, Peli peli0...@googlemail.com wrote:
 You confuse me:
 I thought a and b are float vectors - that is, vectors containing
 actual numbers, not pointers (for example to a Float class). As such,
 you can not .clone() them.

 Did you use Float (with capital F) instead of float (with lower case
 f)?
 Floats are classes surrounding float.

 If you want to work time-critical, you should use the simple float:
 float[] a = new float[3];
 float[] b = new float[3];
 a[0] = 1.2f;
 a[1] = 2.3f;
 ...

 and NOT
 Float[] a = new Float[3];
 a[0] = new Float(1.2f);
 a[1] = new Float(2.3f);
 ...

 Peli

 On Aug 26, 2:28 am, Rud rudmerr...@gmail.com wrote:



  System.arraycopy does not do a deep copy. I just tried it. But it is
  very fast. grin

  I setup the timing test. I did 5000 passes over the copy loops;

    522 ms    for (i=0; i3; i++) a[i] = b[i].clone();
    453 ms    for(i=3; i--0;) a[i] = b[i].clone();
    447 ms    int pos = 0; for(type x; b) a[pos++] = x.clone();

  I had written a type.clone() to make the deep copy for each array
  element. I was surprised that the for_each version did so well. I
  won't put much faith in the timing differences between it and the
  subtraction version.

  Rudhttp://mysticlakesoftware.blogspot.com/

  On Aug 25, 8:00 am, Peli peli0...@googlemail.com wrote:

   To deep copy an array, you can use 
   System.arraycopy(..)http://developer.android.com/reference/java/lang/System.html#arraycop...

   System.arraycopy(b, 0, a, 0, 3);

   but for a float array of length 3, you can simply write
   a[0]=b[0];
   a[1]=b[1];
   a[2]=b[2];

   or
   for (i=0; i3; i++) a[i] = b[i];

   I've never tried to profile which of the 3 ways is actually the
   fastest on a real Android device. If someone has the time, please try
   all 3 in a tight loop and report back :-)

   (there is also
   for(i=3; i--0;) a[i] = b[i];
   which may be even faster?)

   Note: all assume that you have initialized a already beforehand,
   a = new float[3];

   Peli

   On Aug 25, 8:24 am, Rud rudmerr...@gmail.com wrote:

Hi,

The code is originally from my Blog. The reason for the clone is
explained there.

I admit to not having worked with Java enough to have the deep
understanding of how containers deal with objects. In my application I
ran into a problem trying to make a copy of an array and had to write
my own copy.

I had a set of data that gets consumed while the app runs. I wanted to
reset that data at times. I put the data in an array and then cloned
it to the working array. I was surprised when the original data got
changed when the cloned data was changed. I also realized that the
sensor code wasn't doing what I thought it was but haven't taken the
time to adjust it.

How in Java do you actually make a deep copy of an array?

Rudhttp://mysticlakesoftware.blogspot.com/

On Aug 21, 7:07 am, Peli peli0...@googlemail.com wrote:

   = event.values.clone();

 Note that this creates new objects constantly that have to be garbage
 collected later. Depending on the kind of application, it may be
 better to just copy the values into a persisting array.

 Peliwww.openintents.org

 On Aug 21, 4:06 am, mscwd01 mscw...@gmail.com wrote:

  Heres my code, which works:

  public void onSensorChanged(SensorEvent event) {

          Sensor sensor = event.sensor;
          int type = sensor.getType();
          switch (type) {
                  case Sensor.TYPE_MAGNETIC_FIELD:
                          mags = event.values.clone();
                          isReady = true;
                      break;
                  case Sensor.TYPE_ACCELEROMETER:
                      accels = event.values.clone();
                      break;
                  case Sensor.TYPE_ORIENTATION:
                      orients = event.values.clone();
                      break;
              }

              if (mags != null  accels != null  isReady) {
                  isReady = false;

                      SensorManager.getRotationMatrix(R, I, accels, 
  mags);
                      SensorManager.remapCoordinateSystem(R,
  SensorManager.AXIS_Y, SensorManager.AXIS_MINUS_X, outR);
                      SensorManager.getOrientation(outR, values);

                                  azimuth = 
  getAzimuth(-convert.radToDeg(values[0]));
                                  pitch= convert.radToDeg(values[1]);
                                  roll = -convert.radToDeg(values[2]);

              }

          }

  On Aug 21, 2:39 am, Mike Collins mike.d.coll...@gmail.com wrote:

   I have a sensor event handler that gets fired and I have no 
   problem
   getting and 

[android-developers] maps display issue

2009-08-26 Thread Honest

Hello,

I am displaying Maps in my application. I am adding some GeoPoint in
it and displaying picture at particular point. Now my problem is my
screen is not directly displaying that point. Instead of it is display
US part first time and when i open maps after first time it displays
the previous screen. So i have to go UP and Down to see my locations
and the picture which i have drawn on that particular point. Can some
one tell me what should i do so user can directly view that points and
picture which i have drawn on that point instead of first searching it
on maps by going up and down.

i am in big problem. I hope some one will help me
--~--~-~--~~~---~--~~
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] Getting setting apk configuration in Activity

2009-08-26 Thread SIDIBE Ali-Broma

Hello

In Java ME we can set  .jad configuration in decrition file and we can
get this values in midlet by getAppProperti();
So in Android we can set apk configuration  ( eclipse) apk
configuration.
But when i set this! my file defaul properties change and my projet
signal some error.

So in activity whe can add System.setProeprty(name,values)

My probleme  I wan to specify the server IP and some code in apk only
for this apk file. Each apk can have his code and server ip.

I need some help

--~--~-~--~~~---~--~~
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 it possible for a View having more than one Canvas

2009-08-26 Thread Andrei Bucur
Use save/restore with MATRIX_SAVE_FLAG flag. Before rotating the canvas you
save the current matrix and after the first bitmap is drawn you restore it.

On Wed, Aug 26, 2009 at 2:09 PM, Nithin nithin.war...@gmail.com wrote:


 Hi,

 I have a View and that has a canvas. I am rotating the canvas, for
 rotating a bitmap. But after that, I need to draw one more bitmap on
 the Canvas and, this should not rotate. The second bitmap has to be
 static.

 I tried with matrix rotation for bitmap. But its not rotating in the
 specified co-ordinates.

 Open for all suggestions

 Thanks
 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
-~--~~~~--~~--~--~---



[android-developers] Re: how and where to save SecretKey for encryption and decryption

2009-08-26 Thread Sujay Krishna Suresh
On Wed, Aug 26, 2009 at 5:41 PM, zeeshan genx...@gmail.com wrote:


 key doesn't change.
 can i store keyString  in preferences to retrieve for decryption

yes that'd be better than storin it in a file. But better to jus have a
constant field in ur class that cointains ur key.



 SecretKey key = KeyGenerator.getInstance(DES).generateKey();
byte[] keybytes = key.getEncoded();
String keyString = new String(keybytes);

If u r gonna execute these set of statements then wont the key change??



 or plz provide any example for the best practice

 On Aug 26, 12:28 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
 wrote:
  If it is only used by ur application, jus use a String instance to hold
 the
  key. y store in a file??
  ll the key change dynamically???
 
 
 
  On Wed, Aug 26, 2009 at 4:55 PM, zeeshan genx...@gmail.com wrote:
 
   encryption and decryption is the app's internal functionality. user
   has nothing to do with this
   i encrypt the file on 1st run and on 2nd run i check if file is there
   then decrypt and show.
   so only thing i understand is to store the key somewhere in the app so
   i can access it for decryption.
   just wondering if this help
   File  keyFile = new File(data/data/package name/key);
 
   i followed this link for encryption and decryption
 
  http://www.java2s.com/Tutorial/Java/0490__Security/UsingCipherInputSt.
 ..
 
   On Aug 26, 12:11 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
   wrote:
I think its better to ask the user for the secret key rather than
 storin
   it
smwhere.
 
On Wed, Aug 26, 2009 at 4:30 PM, zeeshan genx...@gmail.com wrote:
 
 Hi Dear,
 
 i wrote a small application which encrypt some files using a secret
 key.
 i need to decrypt files on 2nd run which requires same key again
 plz advise where should i store the secret key.
 
--
Regards,
Sujay
Mike Ditka 
 http://www.brainyquote.com/quotes/authors/m/mike_ditka.html
-
If God had wanted man to play soccer, he wouldn't have given us
 arms.
 
  --
  Regards,
  Sujay
  Pablo Picasso
 http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html
  - Computers are useless. They can only give you answers.
 



-- 
Regards,
Sujay
Jonathan Swifthttp://www.brainyquote.com/quotes/authors/j/jonathan_swift.html
- May you live every day of your life.

--~--~-~--~~~---~--~~
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: Communication between Android devices over 3G

2009-08-26 Thread Sew

Thanks for the low latency :)

 You can use 3G for communication to another device on 3G. You have
 only to know that the IP address on 3G is NAT'd. You have to make sure
 that you tell the other device how to deal with the NAT traversal. One
 way to solve this is having an external server which is able to
 translate the IP addresses correctly.

By external server, do you mean a server that lies outside the 3G
network itself but is connected to it or a third-party server with
static IP inside the 3G network itself (intuitively I'd go for the
latter but I want to be sure).

Also regarding this NAT issue, does the provider actually break the
whole network into small cluster (like city-centric or something like
that) and NAT is used between those or is it located somewhere else ?
This question is more to see how NAT fits in the bigger picture.


Sy.
--~--~-~--~~~---~--~~
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: ADC 2 Submission Site -- Now live

2009-08-26 Thread androidDeveloper

  So...will ADC2 apps be used by people outside of ADC2 judging?

 No, apps will be removed from the device after the judging period is
 over. If developers want to, they may release their app into the
 standard Market, but that will be the only version they will need to
 support.


Ok, I understood, that apps will be deleted from the devices of the
judging people after the judging period. And no other persons can
download or install the ADC2 apps.

Now I have a question about the Eligibility. In the Eligibility of
ADC2 there is written that:
 If you intend to sell your application after the conclusion of
the contest, you may submit a trial version of the application for
judging.
  We recommend that your trial version include full functionality,
but with a timed expiration

Why do I have to publish a trial version of my app, or include a time
expiration, when the app will be deleted automatically at the end of
the judging period?


Thanks!
Stepmas
--~--~-~--~~~---~--~~
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] NullpointerException

2009-08-26 Thread Small World

The error java.lang.nullpointerexception occurred when I was getting
the value from EditText. The code was like as follows:

EditText et = (EditText) findViewById(R.id.et);
String str =  et.getText().toString();

I have no idea what is wrong with it, can anyone help me ?

Many 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: OpenGL ES confusion

2009-08-26 Thread Geefer

Hi,

I'm not an OpenGL expert but I suspect that the confusion may be that
you are using the fixed point vertex arrays (passing GL_FIXED to
glVertexPointer for instance) to set up your vertex co-ordinates. This
is probably a good thing as it should be faster to use fixed point
rather than floating point on hardware that does not have floating
point acceleration but in the case of fixed point the numbers are
represented as a 32 bit int where the top 16 bits are the integer part
and the bottom 16 bits the fractional part.

Hence to set a value of 1 you actually need to use an integer value of
0x1 (ie 65536) for your vertex value.

Thus the values you need are apparently much larger than you were
expecting.

Take a look at the API demos cube.java to see what I mean.

On Aug 25, 4:54 am, harish android android.har...@gmail.com wrote:
 Hi All,
 I am new to Android andOpenGLworld.

 I've created a new ap usingopenGLES. ( I am not able to find a
 option to send attachment of package to group, so that youi can see my
 code and sugest me wherei made a mistake).

 Android Simulator LCD size is 320 x 455 and i've set same size 
 forOpenGLViewport.

 But For creating visible rectangle i've to use vertices, which are of
 very high value.

 e.g.

 int vertices[] = {
 -2,-2,0,

 -2,2,0,

 2,2,0,

 2,-2,0

 };

 why is it so, when screen size id 320 x 455??
 Please clarify my this doubt that may solve my many other problems.
 Regards,

 Harish Haswani
--~--~-~--~~~---~--~~
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: detect headphones plugged in

2009-08-26 Thread Donn Felker
Yes, a event is broadcast:
http://developer.android.com/reference/android/content/Intent.html#ACTION_HEADSET_PLUG

Set up a broadcast receiver and handle it based upon the state of the data
from the intent.

Enjoy

Donn

On Wed, Aug 26, 2009 at 6:27 AM, Nate nathan.sw...@gmail.com wrote:


 Is it possible to detect when/if headphones are plugged in?
 



-- 
Donn
http://blog.donnfelker.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: how and where to save SecretKey for encryption and decryption

2009-08-26 Thread zeeshan

key never change once its been created.

as i know SecretKey generates by a funtion as above, how can i set it
as constant
can you plz provide example?

On Aug 26, 1:39 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
wrote:
 On Wed, Aug 26, 2009 at 5:41 PM, zeeshan genx...@gmail.com wrote:

  key doesn't change.
  can i store keyString  in preferences to retrieve for decryption

 yes that'd be better than storin it in a file. But better to jus have a
 constant field in ur class that cointains ur key.



  SecretKey key = KeyGenerator.getInstance(DES).generateKey();
             byte[] keybytes = key.getEncoded();
             String keyString = new String(keybytes);

 If u r gonna execute these set of statements then wont the key change??





  or plz provide any example for the best practice

  On Aug 26, 12:28 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
  wrote:
   If it is only used by ur application, jus use a String instance to hold
  the
   key. y store in a file??
   ll the key change dynamically???

   On Wed, Aug 26, 2009 at 4:55 PM, zeeshan genx...@gmail.com wrote:

encryption and decryption is the app's internal functionality. user
has nothing to do with this
i encrypt the file on 1st run and on 2nd run i check if file is there
then decrypt and show.
so only thing i understand is to store the key somewhere in the app so
i can access it for decryption.
just wondering if this help
File  keyFile = new File(data/data/package name/key);

i followed this link for encryption and decryption

   http://www.java2s.com/Tutorial/Java/0490__Security/UsingCipherInputSt.
  ..

On Aug 26, 12:11 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
wrote:
 I think its better to ask the user for the secret key rather than
  storin
it
 smwhere.

 On Wed, Aug 26, 2009 at 4:30 PM, zeeshan genx...@gmail.com wrote:

  Hi Dear,

  i wrote a small application which encrypt some files using a secret
  key.
  i need to decrypt files on 2nd run which requires same key again
  plz advise where should i store the secret key.

 --
 Regards,
 Sujay
 Mike Ditka 
 http://www.brainyquote.com/quotes/authors/m/mike_ditka.html
 -
 If God had wanted man to play soccer, he wouldn't have given us
  arms.

   --
   Regards,
   Sujay
   Pablo Picasso
 http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html
   - Computers are useless. They can only give you answers.

 --
 Regards,
 Sujay
 Jonathan 
 Swifthttp://www.brainyquote.com/quotes/authors/j/jonathan_swift.html
 - May you live every day of your life.
--~--~-~--~~~---~--~~
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: problem with service

2009-08-26 Thread Donn Felker
This should point you in the right direction:
http://developerlife.com/tutorials/?p=290

On Wed, Aug 26, 2009 at 5:57 AM, Imran imran...@gmail.com wrote:


 Hey All,

  I have a service which should download files in background, i am
 calling this service form another activity,
  the problem is when i am calling this service form another
 Activity the present Activity is getting Freezed( i.e not able to get
 control back ) until the all files in service are downloaded.

  once all the files in the service are downloaded the activity is
 getting the control back.

 what i want is the the service should download all the files in
 background with effecting the Activity which called the service.

 Help me Guys..!!

 Thanks,
 Imran
 



-- 
Donn
http://blog.donnfelker.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: color lookup table

2009-08-26 Thread xu haojie

As i known, there isn't a color lookup table. But you can find one
example(com.example.android.apis.graphics.FingerPaint 
com.example.android.apis.graphics.ColorPickerDialog) in API Demo
($sdk_home/platforms/android-1.5/samples/ApiDemos), which provides a
view showing the different colors. I hope it will help you.

On Aug 26, 6:11 pm, arjun r zimbly.math...@gmail.com wrote:
 Hi,

 Does android use a color look up table ? if yes I wanted to see the
 entries in color lookup table and access them. Anybodies has any
 ideas. I am very new to android sorry if this looks like a silly
 question.

 Regards,
 Ace
--~--~-~--~~~---~--~~
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 display issue

2009-08-26 Thread Sujay Krishna Suresh
use mapview.pan*

On Wed, Aug 26, 2009 at 6:23 PM, Honest honestsucc...@gmail.com wrote:


 Hello,

 I am displaying Maps in my application. I am adding some GeoPoint in
 it and displaying picture at particular point. Now my problem is my
 screen is not directly displaying that point. Instead of it is display
 US part first time and when i open maps after first time it displays
 the previous screen. So i have to go UP and Down to see my locations
 and the picture which i have drawn on that particular point. Can some
 one tell me what should i do so user can directly view that points and
 picture which i have drawn on that point instead of first searching it
 on maps by going up and down.

 i am in big problem. I hope some one will help me
 



-- 
Regards,
Sujay
Samuel Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html
- I'm willing to admit that I may not always be right, but I am never
wrong.

--~--~-~--~~~---~--~~
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 and where to save SecretKey for encryption and decryption

2009-08-26 Thread Sujay Krishna Suresh
On Wed, Aug 26, 2009 at 7:16 PM, zeeshan genx...@gmail.com wrote:


 key never change once its been created.

 as i know SecretKey generates by a funtion as above, how can i set it
 as constant
 can you plz provide example?



 On Aug 26, 1:39 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
 wrote:
  On Wed, Aug 26, 2009 at 5:41 PM, zeeshan genx...@gmail.com wrote:
 
   key doesn't change.
   can i store keyString  in preferences to retrieve for decryption
 
  yes that'd be better than storin it in a file. But better to jus have a
  constant field in ur class that cointains ur key.
 
 
 

class UrClass{
 public static final String KEY_STRING;
static{


   SecretKey key = KeyGenerator.getInstance(DES).generateKey();
  byte[] keybytes = key.getEncoded();
  KEY_STRING = new String(keybytes);

}
   /*
* Rest of the class
*/
}


 
  If u r gonna execute these set of statements then wont the key change??
 
 
 
 
 
   or plz provide any example for the best practice
 
   On Aug 26, 12:28 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
   wrote:
If it is only used by ur application, jus use a String instance to
 hold
   the
key. y store in a file??
ll the key change dynamically???
 
On Wed, Aug 26, 2009 at 4:55 PM, zeeshan genx...@gmail.com wrote:
 
 encryption and decryption is the app's internal functionality. user
 has nothing to do with this
 i encrypt the file on 1st run and on 2nd run i check if file is
 there
 then decrypt and show.
 so only thing i understand is to store the key somewhere in the app
 so
 i can access it for decryption.
 just wondering if this help
 File  keyFile = new File(data/data/package name/key);
 
 i followed this link for encryption and decryption
 

 http://www.java2s.com/Tutorial/Java/0490__Security/UsingCipherInputSt.
   ..
 
 On Aug 26, 12:11 pm, Sujay Krishna Suresh 
 sujay.coold...@gmail.com
 wrote:
  I think its better to ask the user for the secret key rather than
   storin
 it
  smwhere.
 
  On Wed, Aug 26, 2009 at 4:30 PM, zeeshan genx...@gmail.com
 wrote:
 
   Hi Dear,
 
   i wrote a small application which encrypt some files using a
 secret
   key.
   i need to decrypt files on 2nd run which requires same key
 again
   plz advise where should i store the secret key.
 
  --
  Regards,
  Sujay
  Mike Ditka 
  http://www.brainyquote.com/quotes/authors/m/mike_ditka.html
  -
  If God had wanted man to play soccer, he wouldn't have given us
   arms.
 
--
Regards,
Sujay
Pablo Picasso
  http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html
- Computers are useless. They can only give you answers.
 
  --
  Regards,
  Sujay
  Jonathan Swift
 http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html
  - May you live every day of your life.
 



-- 
Regards,
Sujay
Joan Crawfordhttp://www.brainyquote.com/quotes/authors/j/joan_crawford.html
- I, Joan Crawford, I believe in the dollar. Everything I earn, I
spend.

--~--~-~--~~~---~--~~
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: NullpointerException

2009-08-26 Thread Donn Felker
Check to see if your et variable is null. I bet you that is the problem.



On Wed, Aug 26, 2009 at 8:46 AM, Small World keamou...@gmail.com wrote:


 The error java.lang.nullpointerexception occurred when I was getting
 the value from EditText. The code was like as follows:

 EditText et = (EditText) findViewById(R.id.et);
 String str =  et.getText().toString();

 I have no idea what is wrong with it, can anyone help me ?

 Many thanks~
 



-- 
Donn
http://blog.donnfelker.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] Move focus to top of activity on create

2009-08-26 Thread jsdf

Hi all,
I have an activity that begins with almost a page of text, then has a
few form controls.
When the activity launches, the first form control takes focus and the
screen scrolls down to make it fully visible.  When this happens, the
text at the top is off the top edge of the screen.

When the screen comes into view, I want the text at the top to be
visible.

So, onCreate, I tried sending a message to the Activity's overridden
handler to do the following:

ScrollView main = (ScrollView) findViewById(R.id.main);
main.pageScroll(ScrollView.FOCUS_UP);

This did nothing.
I then tried
main.scrollTo(0,0);
This also did nothing.

I then tried sending the message from onResume instead of onCreate.
This also did nothing.

Does anyone have suggestions as to how to force the scrollview to
actually scroll?
Thanks,
jsdf
--~--~-~--~~~---~--~~
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] ProgressDialog on Oncreate method

2009-08-26 Thread AntoniMG

Hi,

We are having some problems showing a ProgressDialog on a onCreate
method (for example, when the app calculates some operations before
starts).

This is a example of what is our problem:

public class dialog extends Activity {
 /** Called when the activity is first created. */
 int res;
 @Override
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);

  TextView tv = (TextView) findViewByID(R.layout.textv);

  final ProgressDialog pd = ProgressDialog.show(this, Title,
Message,
true, false);

  new Thread(new Runnable() {
   public void run() {
try {
 res = 2+2;
 Thread.sleep(1000);
} catch (InterruptedException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
}
pd.dismiss();
   }
  }).start();


  tv.setText(res);
 }
}



We cant do the tv.setText in the thread because it throws an
Exception. The problem is the dialog doenst appear until the Thread is
finished,

Any help?
--~--~-~--~~~---~--~~
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: ProgressDialog on Oncreate method

2009-08-26 Thread Sujay Krishna Suresh
On Wed, Aug 26, 2009 at 7:43 PM, AntoniMG tonio...@gmail.com wrote:


 Hi,

 We are having some problems showing a ProgressDialog on a onCreate
 method (for example, when the app calculates some operations before
 starts).

 This is a example of what is our problem:

 public class dialog extends Activity {
  /** Called when the activity is first created. */
  int res;
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);

  TextView tv = (TextView) findViewByID(R.layout.textv);


  final ProgressDialog pd = ProgressDialog.show(this, Title,
 Message,
true, false);

Instead try using
final ProgressDialog pd = new ProgressDialog(this);
pd.set*();
pd.show();



  new Thread(new Runnable() {
   public void run() {
try {
 res = 2+2;
 Thread.sleep(1000);
} catch (InterruptedException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
}

//msg to handler to dismiss the dialog


pd.dismiss();
   }
  }).start();


  tv.setText(res);

U'll hv to make use of a handler for this purpose.


  }
 }



 We cant do the tv.setText in the thread because it throws an
 Exception. The problem is the dialog doenst appear until the Thread is
 finished,

 Any help?
 



-- 
Regards,
Sujay
Ogden Nash http://www.brainyquote.com/quotes/authors/o/ogden_nash.html  -
The trouble with a kitten is that when it grows up, it's always a cat.

--~--~-~--~~~---~--~~
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: ProgressDialog on Oncreate method

2009-08-26 Thread AntoniMG

I must sat that the dialog doenst appear until the Thread is finished
because onCreate is not terminated, if we eliminate tv.setText(res)
the dialog appears during 1 second, because is the last instruction of
the metod():

On 26 ago, 16:13, AntoniMG tonio...@gmail.com wrote:
 Hi,

 We are having some problems showing a ProgressDialog on a onCreate
 method (for example, when the app calculates some operations before
 starts).

 This is a example of what is our problem:

 public class dialog extends Activity {
  /** Called when the activity is first created. */
  int res;
 �...@override
  public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);

   TextView tv = (TextView) findViewByID(R.layout.textv);

   final ProgressDialog pd = ProgressDialog.show(this, Title,
 Message,
     true, false);

   new Thread(new Runnable() {
    public void run() {
     try {
      res = 2+2;
      Thread.sleep(1000);
     } catch (InterruptedException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
     }
     pd.dismiss();
    }
   }).start();

   tv.setText(res);
  }

 }

 We cant do the tv.setText in the thread because it throws an
 Exception. The problem is the dialog doenst appear until the Thread is
 finished,

 Any help?
--~--~-~--~~~---~--~~
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: NullpointerException

2009-08-26 Thread Mark Murphy



 The error java.lang.nullpointerexception occurred when I was getting
 the value from EditText. The code was like as follows:

 EditText et = (EditText) findViewById(R.id.et);
 String str =  et.getText().toString();

 I have no idea what is wrong with it, can anyone help me ?

Most likely, your et variable is null. You may not have a widget with
android:id=@+id/et in your activity.

-- 
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] unable to hide window title using a theme.

2009-08-26 Thread sdphil

yes, I know how to do it in the java code (requestWindowFeature
(Window.FEATURE_NO_TITLE)) -- but I would like to create a style that
does that.

style name=myStyle
item name=android:windowNoTitletrue/item
item name=android:background@drawable/myBackground/item
item name=android:layout_widthfill_parent/item
item name=android:layout_heightfill_parent/item
item name=android:orientationvertical/item
/style

Then I would expect to be able to do this in my layout xml file --

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android style=@style/myStyle
...
...
...
/LinearLayout

I get the background and the vertical orientation and the layout width/
height, but I still get a title!

tia.

--~--~-~--~~~---~--~~
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] Error Publishing Upgrade of an Application

2009-08-26 Thread nah0y

Hello,

I'm a french student working on an android game called : MemoGame.

I've successfully published my first version on the android market
using my keystore
But now i have a problem when i want to upgrade my application, here
the error :

The apk must be signed with at least one certificate in common with
the previous version.

But i'm using the exact same keystore.

What should i do ?

Thank you and have a nice day.
--~--~-~--~~~---~--~~
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: EMMA Code coverage and JUnit

2009-08-26 Thread hari uppalapati
Santosh

After starting the emualtor...do
#adb shell  Once you can get to the console(it may take few secondsyou
will get device offline initially),
  exit from adb shell;do adb remount and then  adb sync

regards
Haritha

On Wed, Aug 26, 2009 at 12:07 AM, santosh kumar santosh.1...@gmail.comwrote:


 Hi,

 After starting the emulator,
 i tried adb sync

 but i am getting the error like device offline...

 can you plz help me in this

 Thanks
 Santosh

 On Aug 26, 6:39 am, santosh kumar santosh.1...@gmail.com wrote:
  Hi All,
 
  I have few questions about this.. plz clarify me..
 
  i want to generate code coverage for apidemos only...
 
  first i changed init.rc then i followed every thing which is mentioned
  in gobor mail..
 
  one thing i am not understanding... when i start the emulator,
  emulator is getting stucked with the boot up logo,
 
  i have seen some other artical... we need to run runtest.py?
 
  is it correct?
 
  why emulator is getting stucked?
 
  Thanks
  Santosh
 
  On Aug 26, 2:28 am, hari uppalapati hari.andr...@gmail.com wrote:
 
 
 
   hi
   i was not facing any issues with emulator.Only thing was my
 coverage.ec file
   was empty as my sdcard is not recognised.with the following steps the
 issues
   was resolved.If possible post the logcat o/p and also the steps
 followed.
   1) edit system/core/rootdir/Android.mk so that the copy_from variable
 on
   line 6 contains etc/vold.conf.
   copy_from := \
   etc/dbus.conf \
   etc/vold.conf \
   etc/init.goldfish.sh \
   etc/hosts
 
   2)copy vold.conf from (git://
   android.git.kernel.org/platform/vendor/htc/dream-open.git) to
   system/core/rootdir/etc/
cp vendor/htc/dream-open/vold.conf system/core/rootdir/etc.
   regards
   Haritha
 
   On Tue, Aug 25, 2009 at 2:40 AM, santosh kumar santosh.1...@gmail.com
 wrote:
 
Hi All,
 
what changes you have been done to vold.conf?
 
and i followed the steps of gobor..
 
but for me also, emulator is getting stucked..
 
can you plz help me..
 
On Aug 25, 2:23 am, Haritha hari.andr...@gmail.com wrote:
 thanks everyone for posting info on emma coverage.I was also able
 to
 generate coverage reports for custom tests with necessary changes
 to
 vold.conf.
 regards
 Haritha
 
 On Aug 20, 6:08 am, Gabor gabor.andr...@googlemail.com wrote:
 
  Hi All,
 
  Finally, the emma code coverage measurement is working for me
 (for a
  custom project). So here are the steps what you need to make it
 work
  (I have tested it, with Java 1.5 on Ubuntu 8.04):
 
  mkdir android-src
  cd android-src
  repo init -u git://android.git.kernel.org/platform/manifest.git-b
  cupcake
  repo sync
 
  # Add emma.jar to the system/core/rootdir/init.rc
  sed
 's/\/system\/framework\/core.jar:\/system\/framework\/ext.jar:/\/
 
 system\/framework\/core.jar:\/system\/framework\/ext.jar:\/system\/
  framework\/emma.jar:/' system/core/rootdir/init.rc  system/core/
  rootdir/init.rc.tmp
  mv system/core/rootdir/init.rc.tmp system/core/rootdir/init.rc
 
  # Rebuild the boot image
  make bootimage
 
  # To build the full system image
  make -j4
 
  # Set the PATH:
  export PATH=${PATH}:/_path_/android-src/out/host/linux-x86/bin/
 
  # Build the emma jar itself
  make emma
 
  # Setting the environment and additional bash commands. (like
  m,mm,mmm, choosecombo etc) Notice the space after the dot!
  . build/envsetup.sh
 
  # Set EMMA_INSTRUMENTATION to true
  export EMMA_INSTRUMENT=true
 
  # Copy your project to development/samples/_projectname_ or
  somewhere..:)
  # Based on the ApiDemo create an Android.mk file for the project
  directory and the project test directory
  # The LOCAL_INSTRUMENTATION_FOR value in test dir Android.mk has
 to be
  equal with the LOCAL_PACKAGE_NAME defined in the Android.mk in
 the
  main project dir.
  # Compile the Application would like to instrument
  mmm development/samples/_projectname_
 
  # Set the ANDROID_PRODUCT_OUT directory for the emulator to know
 the
  image location
  export
 ANDROID_PRODUCT_OUT=/_path_/android-src/out/target/product/
  generic
 
  # Start an emulator with a simulated sdcard:
  emulator -sdcard path to sdcard
 
  # Remount the drive - it is needed to have a writable drive.
 without
  that sync wont work
  adb remount
 
  # Synchronize the local content with the emulator
  adb sync
 
  adb shell
  # create directory: mkdir /etc/coverageresult
 
  # Executing tests
  adb shell am instrument -w -e coverage true -e coverageFile /etc/
  coverageresult/coverage.ec hu.agsoftware.sample.tests/
  android.test.InstrumentationTestRunner
 
  # Dump a runtime coverage data file:
  adb pull /etc/coverageresult/coverage.ec coverage.ec
 
  # Generate a coverage report
  java -cp 

[android-developers] Re: NullpointerException

2009-08-26 Thread Jack Ha

It could also be that setContentView() is not being called before
findViewById().

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Aug 26, 6:46 am, Small World keamou...@gmail.com wrote:
 The error java.lang.nullpointerexception occurred when I was getting
 the value from EditText. The code was like as follows:

 EditText et = (EditText) findViewById(R.id.et);
 String str =  et.getText().toString();

 I have no idea what is wrong with it, can anyone help me ?

 Many 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] LocationManager always returns null ... ?

2009-08-26 Thread Emre A. Yavuz

 

Hi,

 

Below is a short script I wrote to obtain the location of the phone using the 
embedded GPS device.

 

...

 

LocationManager locationManager;

locationManager = 
(LocationManager)getSystemService(Context.LOCATION_SERVICE);

Location location = 
locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

 

updateWithNewLocation(location);

}

 

private void updateWithNewLocation(Location location)

{

   TextView myLocation; 

   myLocation = (TextView)findViewById(R.id.myLocation);

   if (location != null)

   {

   double lat = location.getLatitude();

   double lng = location.getLongitude();

   myLocation.setText(My Current Position is \n Lat: +lat+\n Long:+lng 
);  

   } else

   {

   myLocation.setText(My Location Could NOT Be Found);

   }

}

 

...

 

I have all the permits in the Manifest file at the right places:

 

uses-permission android:name=android.permission.ACCESS_FINE_LOCATION /

uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION /

uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION /

uses-permission android:name=android.permission.INTERNET /

 

(PS. I know that I don't need COARSE_LOCATION and INTERNET access in this 
particular case)

 

Anyway, the code seems to work fine, but locationManager always returns null 
even though I tried to send mock location data to the Android Emulator via the 
DDMS application using the Manual Location tab. Whatever I send seems to be 
ignored. I also tried establishing a telnet connecton to the emulator and using 
the command geo fix lat long. I did get an OK message yet, the emulator still 
returns null to my request.

 

Any ideas about what might be the problem ?

 

Cheers,

 

Emre


_
Attention all humans. We are your photos. Free us.
http://go.microsoft.com/?linkid=9666047
--~--~-~--~~~---~--~~
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: unable to hide window title using a theme.

2009-08-26 Thread Dianne Hackborn
Er...  the window title is not associated with a linear layout.  That is
associated with the activity (ideally set with android:theme in the
manifest).

On Wed, Aug 26, 2009 at 8:13 AM, sdphil phil.pellouch...@gmail.com wrote:


 yes, I know how to do it in the java code (requestWindowFeature
 (Window.FEATURE_NO_TITLE)) -- but I would like to create a style that
 does that.

style name=myStyle
item name=android:windowNoTitletrue/item
item name=android:background@drawable/myBackground/item
item name=android:layout_widthfill_parent/item
item name=android:layout_heightfill_parent/item
item name=android:orientationvertical/item
/style

 Then I would expect to be able to do this in my layout xml file --

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android style=@style/myStyle
...
...
...
 /LinearLayout

 I get the background and the vertical orientation and the layout width/
 height, but I still get a title!

 tia.

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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: Getting setting apk configuration in Activity

2009-08-26 Thread Dianne Hackborn
In Android I would recommend storing these as resources that are different
in the different .apks.

On Wed, Aug 26, 2009 at 5:23 AM, SIDIBE Ali-Broma jahbr...@gmail.comwrote:


 Hello

 In Java ME we can set  .jad configuration in decrition file and we can
 get this values in midlet by getAppProperti();
 So in Android we can set apk configuration  ( eclipse) apk
 configuration.
 But when i set this! my file defaul properties change and my projet
 signal some error.

 So in activity whe can add System.setProeprty(name,values)

 My probleme  I wan to specify the server IP and some code in apk only
 for this apk file. Each apk can have his code and server ip.

 I need some help

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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: Ressource Management / Priorization of applications?

2009-08-26 Thread Dianne Hackborn
Linux doesn't really associate priorities with processes...  or more
accurately, in Linux a process is a unit of execution, so each thread is
also actually a process (running in the same address space), with their own
independent priorities.

On Wed, Aug 26, 2009 at 4:29 AM, mstu...@googlemail.com 
mstu...@googlemail.com wrote:


 Thanks!

 Ok, I can set priority for threads... but threads running in
 processes... is it therefore possible to set priority for processes as
 well...?



 On 26 Aug., 00:04, 3crowntech 3crownt...@gmail.com wrote:
  Hi Matthias,
 
  You can set thread priority by android.os.Process.setThreadPriority
  method. This is how android controls resource allocation.
  Thanks.
 
  On Aug 26, 5:45 am, mstu...@googlemail.com mstu...@googlemail.com
  wrote:
 
 
 
   hi all,
 
   the Android web site indicates that all applications are created
   equal. What is the strategy to ensure that critical applications/
   services have priority?
 
   Are there any facilities Android does provide to ensure certain
   applications and/or threads to receive a minimum of CPU bandwith (and
   other apps/threads are prevented from consuming all the CPU bandwith)?
 
   Matthias- Zitierten Text ausblenden -
 
  - Zitierten Text anzeigen -
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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 manage service lifecycle when device kills it due to low memory

2009-08-26 Thread Dianne Hackborn
You really should be using an alarm to start your service and then stop it
when done.  If you are polling often enough (like less than every 5 minute
or so) that this doesn't make sense, then you are going to kill the user's
battery.

On Wed, Aug 26, 2009 at 2:10 AM, cnordvik cnord...@gmail.com wrote:


 Thanks for a very detailed and informative response!

 It's a polling alert for football/soccer matches (FotMob
 actually), so maybe it is important after all :-) As a user I want
 to know what is running in the background and polling frequently but I
 have noted that Scoreboard and other apps are not showing that they
 are running. To me this is not very friendly since I can't stop them
 from polling the server once I have started the program. And I have no
 idea if the polling is still active. We decided early on to inform the
 user when we poll and allow them to click the notification to stop the
 polling, so I guess we can use the setForeground safely :-)

 We are using the scheduling of alarm when the phone goes in sleep
 mode but as long as the phone is awake we are using a regular timer.

 I think I have enough information to keep my service running now,
 thanks again.

 -Christer
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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: System crash problems

2009-08-26 Thread Dianne Hackborn
A crash of the system process is by definition a bug on the platform.  If
you have code to reproduce this, please consider filing a bug report with
the code so an engineer can look at it.

On Wed, Aug 26, 2009 at 12:58 AM, Mika mika.ristim...@tkk.fi wrote:


 Hi,
 I have started to have strange problems that make the whole OS to
 restart. I have this stack trace:

 08-21 14:43:15.128: WARN/dalvikvm(11513): threadid=15: thread exiting
 with uncaught exception (group=0x4000fe70)
 08-21 14:43:15.128: ERROR/AndroidRuntime(11513): Uncaught handler:
 thread android.server.ServerThread exiting due to uncaught exception
 08-21 14:43:15.128: ERROR/AndroidRuntime(11513): *** EXCEPTION IN
 SYSTEM PROCESS.  System will crash.
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):
 java.lang.IndexOutOfBoundsException: index=1 count=0
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
 android.view.ViewGroup.addInArray(ViewGroup.java:1890)
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
 android.view.ViewGroup.addViewInner(ViewGroup.java:1834)
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
 android.view.ViewGroup.addView(ViewGroup.java:1711)
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
 android.view.ViewGroup.addView(ViewGroup.java:1668)
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
 com.android.server.status.StatusBarService.addNotificationView
 (StatusBarService.java:871)
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
 com.android.server.status.StatusBarService.performAddUpdateIcon
 (StatusBarService.java:670)
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
 com.android.server.status.StatusBarService$H.handleMessage
 (StatusBarService.java:615)
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
 android.os.Looper.loop(Looper.java:123)
 08-21 14:43:15.228: ERROR/AndroidRuntime(11513): at
 com.android.server.ServerThread.run(SystemServer.java:357)
 08-21 14:43:15.438: INFO/Process(11513): Sending signal. PID: 11513
 SIG: 9

 Any ideas is this a bug in the platform, or is it possible that the
 application I'm developing (or some other app in the device) is doing
 something that makes the whole system crash. I'm using 1.1 SDK but
 the
 device has 1.5. Could those compatibility issues be the reason for
 the
 crash??
 -Mika
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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: Communication between Android devices over 3G

2009-08-26 Thread Roman ( T-Mobile USA)

With external server I refer to a server which is public reachable
somewhere in the internet.
For example for doing some Voip stuff you would place a public
reachable PBx in the internet. This server would know how to translate
addresses correctly (see Asterisk PBx which has built in functionality
to handle NAT).

On Aug 26, 5:41 am, Sew seweryn.dynerow...@gmail.com wrote:
 Thanks for the low latency :)

  You can use 3G for communication to another device on 3G. You have
  only to know that the IP address on 3G is NAT'd. You have to make sure
  that you tell the other device how to deal with the NAT traversal. One
  way to solve this is having an external server which is able to
  translate the IP addresses correctly.

 By external server, do you mean a server that lies outside the 3G
 network itself but is connected to it or a third-party server with
 static IP inside the 3G network itself (intuitively I'd go for the
 latter but I want to be sure).

 Also regarding this NAT issue, does the provider actually break the
 whole network into small cluster (like city-centric or something like
 that) and NAT is used between those or is it located somewhere else ?
 This question is more to see how NAT fits in the bigger picture.

When you are connected to the 2G/3G network you will get a IP address
on your device which is NOT public reachable. This IP address is
mapped to a public reachable IP address. Reason for doing this is
because IP addresses are limited resources. You can find out about
your public IP address when you start the browser and go to the web
page http://www.whatismyip.com/. Normally the 2g/3g covers a big area
which goes over the boundaries of cells. When your drive in the car
the chances are very slim that you get a new IP address assigned
because you are roaming.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




 Sy.
--~--~-~--~~~---~--~~
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] SettingsTosActivity @@ com.google.android.googleapps

2009-08-26 Thread Deepak

How can I view this file?

Can someone paste the contents of this... want to see how this
implemented..

--~--~-~--~~~---~--~~
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] invalid apk file

2009-08-26 Thread sawyer zhu

 I use Eclipse android wizard build a simple HelloWorld program,  When
I install the HelloWorld,apk file, one error occur, the console print
out that Installation failed due to the invalid apk file, I also use
the winrar to open the HelloWorld.apk file, It also show a error
message Unknow end, It also verify that file is invalid.

My Dev Env:
Windows + Eclipse 3.5 + ADT 0.9.1 + Android win SDK 1.5r3 + JDK 1.5

Please help! Thanks very much!

--~--~-~--~~~---~--~~
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] Cursor position at the end of text

2009-08-26 Thread Sudeep

Hi,
  When i try to edit and already stored notepad , i see the cursor
at the end of first line. I want to make it appear to the end of the
text.

Please help me in this.

Thanks for your support !!


--~--~-~--~~~---~--~~
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] Changing a color in a Drawable

2009-08-26 Thread Matt McMinn

I tried asking on the android-beginners list and had no luck, so I thought I'd 
try here.

I'm working on an android application, and I have a drawable that I'm loading 
up from a source image. On this image, I'd like to convert all of the white 
pixels to a different color, say blue, and then cache the resultant Drawable 
object so I can use it later.

So for example say I have a 20x20 PNG file that has a white circle in the 
middle, and that everything outside the circle is transparent. What's the best 
way to turn that white circle blue and cache the results? Does the answer 
change if I want to use that source image to create several new Drawables (say 
blue, red, green, orange, etc)?

I'm guessing that I'll want to use a ColorMatrix in some way, but I'm not sure 
how.

Thanks

Matt

--~--~-~--~~~---~--~~
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]

2009-08-26 Thread Grant, Stephanie (Matrix)
I have tried to be removed from this email group 5 times!  Please remove
me!

 

Stephanie Grant

Revenue Guest Technology

stephanie.gr...@ihg.com mailto:stephanie.gr...@ihg.com 

770-689-4289

You cannot do a kind act too soon, for you never know how soon it will
be too late..

 


--~--~-~--~~~---~--~~
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] Getting the Share menu to work correctly / Registering Intents correctly

2009-08-26 Thread Phil

We want to make our application integrate correctly with the Share
features on applications like Gallery and the Browser.

Following the advice the appears elsewhere on this list we've added
the entry in our manifest:

intent-filter android:icon=@drawable/icon android:label=@string/
app_name
category android:name=android.intent.category.DEFAULT /
action android:name=android.intent.action.CHOOSER/
action android:name=android.intent.action.SEND /
category android:name=android.intent.category.ALTERNATIVE /
category android:name=android.intent.category.SELECTED_ALTERNATIVE/

category android:name=android.intent.category.DEFAULT/
data mimeType=image/*/
data mimeType=text/plain/
/intent-filter

The problem is, instead of having our application listed next to GMail
and other standard Apps under the heading Share picture via. A new
dialog box appears which lists our application under the heading
Complete action using along with Android System Clicking on our
application name works fine. Clicking on Android System presents the
standard list of intents.

I've downloaded other non-standard apps and they also appear correctly
in the Share picture via list.

Is there a trick to getting the application to appear under the
standard menu?

--~--~-~--~~~---~--~~
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:To Arvind

2009-08-26 Thread Raghav


Hi Arvind this is an example for u...

ItemizedOverlay Example:
---




package samp.sam11;

//import mapv.mapapi.R;

import java.io.IOException;
import java.util.List;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.OverlayItem;

//import de.michaelhuebl.android.R;
//import de.michaelhuebl.android.simpleGoogleMaps;
import android.view.View;
import android.view.View.OnClickListener;

import android.app.AlertDialog;
import android.app.Dialog;
import android.graphics.drawable.Drawable;
import android.location.Address;
import android.location.Geocoder;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;

public class sam1 extends MapActivity {


protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
/** Called when the activity is first created. */


MapView mapView;
EditText edt;
Button bttn;
Geocoder gc;
double lat;
double lon;
ListOverlay mapOverlays;
Drawable drawable;
HelloItemizedOverlay itemizedOverlay;



@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mapView = (MapView) findViewById(R.id.mapview);
edt=(EditText)findViewById(R.id.edt);
bttn=(Button)findViewById(R.id.bttn);


gc=new Geocoder(this);
bttn.setOnClickListener(new OnClickListener(){


public void onClick(View v)
{
String str=edt.getText().toString();



try {
ListAddress 
loc=gc.getFromLocationName(str,7);

if(loc.size()!=0)
{
for(int i=0;iloc.size();++i){

Address x=loc.get(i);
lat=x.getLatitude();
lon=x.getLongitude();
}

gotolocation((lat*100),(lon*100),mapView);
}
else
{
Dialog locationError = new 
AlertDialog.Builder(

sam1.this).setIcon(0).setTitle(

Error).setPositiveButton(R.string.ok, null)
.setMessage(

Sorry, your address doesn't exist.)
.create();
locationError.show();
}

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}



}

});


}

public void gotolocation(double latitude,double longitude,MapView
mymap)
{
GeoPoint p=new GeoPoint((int) latitude,(int) longitude);
mapOverlays = mapView.getOverlays();
drawable = this.getResources().getDrawable
(R.drawable.androidmarker);
itemizedOverlay = new HelloItemizedOverlay(drawable);
mapView.displayZoomControls(true);
OverlayItem overlayitem = new OverlayItem(p, , );
itemizedOverlay.addOverlay(overlayitem);
mapOverlays.add(itemizedOverlay);

MapController mc=mapView.getController();
mc.animateTo(p);
int zoomlevel=mapView.getMaxZoomLevel();
mc.setZoom(zoomlevel - 1);
mapView.setSatellite(false);


}




}




HelloItemizedOverlay Class file:
-




package samp.sam11;

import java.util.ArrayList;

import android.graphics.drawable.Drawable;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class HelloItemizedOverlay extends ItemizedOverlay {

private ArrayListOverlayItem mOverlays = new ArrayListOverlayItem
();


public HelloItemizedOverlay(Drawable defaultMarker) {
super(boundCenterBottom(defaultMarker));



// TODO Auto-generated constructor stub
}
public void addOverlay(OverlayItem overlay) {
mOverlays.add(overlay);
populate();
}

@Override

[android-developers] API to write a device unlock application?

2009-08-26 Thread Voice Identity

Hi,

Wondering if anyone can refer me to the API to write an unlock
application, similar to the pattern unlock shown here:

http://androideka.com/tag/android-unlock-pattern/

What hooks / api would I use to tie-in or substitute my own unlock
application?

Regards,
KG

--~--~-~--~~~---~--~~
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] Android web application submission.

2009-08-26 Thread adam

Hi Friends,

I have developed an application which contains an icon in the
emulator, by clicking the icon it will redirect to the application
webpage.
There we can perform the manipulations and submitting the requests
etc.

Is this kind of application is eligible to submit to the Android
Market or not?
Please let me know ASAP.


Any help regarding this will be helpful to me.


Thanks  Regards
Adamthulla.K
adamthu...@infobraintech.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] Releasing application updates

2009-08-26 Thread Georgy

this might sound as a really silly question but I published my
application and would like to release some updates:

1- how can I do it?
2- should I version my app as 1.1 now?

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: MyTouch Lag Problems

2009-08-26 Thread Mike

Thanks for taking the time to download the game and try it out on your
hardware.  I appreciate that!

I'm concerned about the game missing letters once in a while, but I'm
much more concerned with the issue of the Force Close with wait option
dialog being displayed every once in a while when they are playing.
And, just to be clear, this the version of the force close that is
shown when an app hasn't been responsive, not the one where an app
throws an unchecked exception.

Dianne - your post seems to line up with my knowledge of the MyTouch
hardware too.  If anything, I would think the MyTouch would be
slightly more responsive than the G1.  This just doesn't seem to match
what I'm hearing from my users.  :(

For those of you who have been nice enough to try the game on your
MyTouch - can you tell me how often you see the force close with wait
option dialog?  If you have seen this - do you notice the same thing
happening with other apps your using?  How many apps do you have
running in the background when it occurs?

Regards,

- Mike

On Aug 25, 2:04 pm, Sekhar sek...@allurefx.com wrote:
 I havemyTouch, and I just downloaded your game to check out what
 you're saying, and yes - it does miss letters if I move my finger
 quickly. Edges are also a problem, but not that much.

 On Aug 24, 10:04 pm, Mike michaeldouglaskra...@gmail.com wrote:

  Hi, I am the creator of WordUp!  This game has done well, and I have
  had next to no complaints related to performance on the G1.  Around
  July of this year, which, coincidentally, is when theMyTouchhit the
  market, I noticed people leaving feedback mentioning that my game was
  laggy.  One of my users was kind enough to email me and confirm that
  he is using theMyTouchand that my game is very laggy (will sometimes
  display the Force Close dialog with the Wait option) while he is
  playing it.

  Since I don't have the benefit of being able to go out and buy every
  hardware device that runs Android, I must rely on the feedback of my
  users and hopefully others on here that may provide some insight.

  I did some research, and what I am finding is that there are a lot of
  people on the Tmobile forums complaining about theMyTouchas it
  relates to performance.  See this thread as an 
  example:http://forums.tmonews.com/index.php?topic=10263.0

  I'm a little surprised that I haven't been able to find much on this
  subject here in the android google groups.  Can anyone at Google speak
  to this problem?

  Regards,

  - 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: [android-developers]

2009-08-26 Thread Dan Sherman
Have you tried following the instructions at the bottom?

- Dan

On Wed, Aug 26, 2009 at 12:43 PM, Grant, Stephanie (Matrix) 
stephanie.gr...@ihg.com wrote:

  I have tried to be removed from this email group 5 times!  Please remove
 me!



 *Stephanie Grant*

 Revenue Guest Technology

 *stephanie.gra...@ihg.com stephanie.gr...@ihg.com

 770-689-4289

 *You cannot do a kind act too soon, for you never know how soon it will
 be too late..*



 


--~--~-~--~~~---~--~~
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 and where to save SecretKey for encryption and decryption

2009-08-26 Thread sdphil

why can't you store it in a SharedPreferences ?

On Aug 26, 7:33 am, Sujay Krishna Suresh sujay.coold...@gmail.com
wrote:
 On Wed, Aug 26, 2009 at 7:16 PM, zeeshan genx...@gmail.com wrote:

  key never change once its been created.

  as i know SecretKey generates by a funtion as above, how can i set it
  as constant
  can you plz provide example?

  On Aug 26, 1:39 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
  wrote:
   On Wed, Aug 26, 2009 at 5:41 PM, zeeshan genx...@gmail.com wrote:

key doesn't change.
can i store keyString  in preferences to retrieve for decryption

   yes that'd be better than storin it in a file. But better to jus have a
   constant field in ur class that cointains ur key.

 class UrClass{
          public static final String KEY_STRING;
         static{



SecretKey key = KeyGenerator.getInstance(DES).generateKey();
           byte[] keybytes = key.getEncoded();
           KEY_STRING = new String(keybytes);

         }
        /*
         * Rest of the class
         */



 }

   If u r gonna execute these set of statements then wont the key change??

or plz provide any example for the best practice

On Aug 26, 12:28 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
wrote:
 If it is only used by ur application, jus use a String instance to
  hold
the
 key. y store in a file??
 ll the key change dynamically???

 On Wed, Aug 26, 2009 at 4:55 PM, zeeshan genx...@gmail.com wrote:

  encryption and decryption is the app's internal functionality. user
  has nothing to do with this
  i encrypt the file on 1st run and on 2nd run i check if file is
  there
  then decrypt and show.
  so only thing i understand is to store the key somewhere in the app
  so
  i can access it for decryption.
  just wondering if this help
  File  keyFile = new File(data/data/package name/key);

  i followed this link for encryption and decryption

 http://www.java2s.com/Tutorial/Java/0490__Security/UsingCipherInputSt.
..

  On Aug 26, 12:11 pm, Sujay Krishna Suresh 
  sujay.coold...@gmail.com
  wrote:
   I think its better to ask the user for the secret key rather than
storin
  it
   smwhere.

   On Wed, Aug 26, 2009 at 4:30 PM, zeeshan genx...@gmail.com
  wrote:

Hi Dear,

i wrote a small application which encrypt some files using a
  secret
key.
i need to decrypt files on 2nd run which requires same key
  again
plz advise where should i store the secret key.

   --
   Regards,
   Sujay
   Mike Ditka 
   http://www.brainyquote.com/quotes/authors/m/mike_ditka.html
   -
   If God had wanted man to play soccer, he wouldn't have given us
arms.

 --
 Regards,
 Sujay
 Pablo Picasso
   http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html
 - Computers are useless. They can only give you answers.

   --
   Regards,
   Sujay
   Jonathan Swift
 http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html
   - May you live every day of your life.

 --
 Regards,
 Sujay
 Joan Crawfordhttp://www.brainyquote.com/quotes/authors/j/joan_crawford.html
 - I, Joan Crawford, I believe in the dollar. Everything I earn, I
 spend.
--~--~-~--~~~---~--~~
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 REST XML implementation

2009-08-26 Thread Mike Wolfson

Excellent, concise example.  This is something lots of people will
use.  Thanks.

On Aug 25, 8:31 pm, smnirven smnir...@gmail.com wrote:
 Hey folks,

 I're recently implemented REST XML communication using apache's http
 libraries in my android app.  During the process I found examples on
 the web to be quite lacking, so I put together a post on blog with
 some example code - check it out if you want

 http://www.smnirven.com/?p=15
--~--~-~--~~~---~--~~
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: Patching synthesized voice in ongoing call

2009-08-26 Thread Roman ( T-Mobile USA)

During an active phone call you have no control on SDK level of the
audio channel. In Android this is controlled from lower level.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 26, 12:50 am, VA vinay.avas...@gmail.com wrote:
 I am looking at a usecase related to sharing of a phone number of a
 contact during a call. What I expect to happen is that the phone
 number is converted to synthesized voice and is spoken into the
 ongoing call. Is it possible to patch the synthesized voice in an
 ongoing call? Any pointers?
--~--~-~--~~~---~--~~
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 make WebView do a Vertical Scroll ?

2009-08-26 Thread Kumaravel Kandasami
Hi,

Any idea on how to make the WebView automatically(default behavior or
problematically) do a vertically  scroll if the DIV tag height increases ?
Thank You.
*
HTML Structure:
* Mone Now

   - meta name=viewport content=width=320; initial-scale=1.0;
   maximum-scale = 1.0; user-scalable=0
   - bodydiv id=content
   1br/
   2br/
   .
   .
   700br/
   /div/body

Mone Now Mone Now
*Android Activity WenView code:*


   - Layout:

   RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android
   
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   
   WebView android:id=@+id/saiskBrowser
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   android:layout_weight=1
   /
ProgressBarView android:id=@+id/saiskBrowserStatus
   android:layout_width=125px
   android:layout_height=25px
   android:background=#22FF
   /
   /RelativeLayout



   - Code:
   lBrowser.setVerticalFadingEdgeEnabled(true);
   lBrowser.setVerticalScrollbarOverlay(true);
   lBrowser.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);




Kumar_/|\_
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...

--~--~-~--~~~---~--~~
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: MyTouch Lag Problems

2009-08-26 Thread Dianne Hackborn
Getting the output of adb bugreport is very valuable for diagnosing an ANR
-- it will have all stacks of all apps running (including the main thread of
the foreground app that had the ANR), in the log there will be cpu
information at the time of the ANR, etc.  Of course the output of this
command is something like 1MB; if you want something smaller, these are
probably the key things to get:

adb logcat
adb cat /data/anr/traces.txt
adb procrank
adb shell dumpsys activity

On Wed, Aug 26, 2009 at 8:59 AM, Mike michaeldouglaskra...@gmail.comwrote:


 Thanks for taking the time to download the game and try it out on your
 hardware.  I appreciate that!

 I'm concerned about the game missing letters once in a while, but I'm
 much more concerned with the issue of the Force Close with wait option
 dialog being displayed every once in a while when they are playing.
 And, just to be clear, this the version of the force close that is
 shown when an app hasn't been responsive, not the one where an app
 throws an unchecked exception.

 Dianne - your post seems to line up with my knowledge of the MyTouch
 hardware too.  If anything, I would think the MyTouch would be
 slightly more responsive than the G1.  This just doesn't seem to match
 what I'm hearing from my users.  :(

 For those of you who have been nice enough to try the game on your
 MyTouch - can you tell me how often you see the force close with wait
 option dialog?  If you have seen this - do you notice the same thing
 happening with other apps your using?  How many apps do you have
 running in the background when it occurs?

 Regards,

 - Mike

 On Aug 25, 2:04 pm, Sekhar sek...@allurefx.com wrote:
  I havemyTouch, and I just downloaded your game to check out what
  you're saying, and yes - it does miss letters if I move my finger
  quickly. Edges are also a problem, but not that much.
 
  On Aug 24, 10:04 pm, Mike michaeldouglaskra...@gmail.com wrote:
 
   Hi, I am the creator of WordUp!  This game has done well, and I have
   had next to no complaints related to performance on the G1.  Around
   July of this year, which, coincidentally, is when theMyTouchhit the
   market, I noticed people leaving feedback mentioning that my game was
   laggy.  One of my users was kind enough to email me and confirm that
   he is using theMyTouchand that my game is very laggy (will sometimes
   display the Force Close dialog with the Wait option) while he is
   playing it.
 
   Since I don't have the benefit of being able to go out and buy every
   hardware device that runs Android, I must rely on the feedback of my
   users and hopefully others on here that may provide some insight.
 
   I did some research, and what I am finding is that there are a lot of
   people on the Tmobile forums complaining about theMyTouchas it
   relates to performance.  See this thread as an example:
 http://forums.tmonews.com/index.php?topic=10263.0
 
   I'm a little surprised that I haven't been able to find much on this
   subject here in the android google groups.  Can anyone at Google speak
   to this problem?
 
   Regards,
 
   - Mike
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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: Error Publishing Upgrade of an Application

2009-08-26 Thread Balwinder Kaur (T-Mobile USA)

Besides the same keystore, you also need the same alias name for your
key.

Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Aug 26, 8:01 am, nah0y hadjedjyo...@gmail.com wrote:
 Hello,

 I'm a french student working on an android game called : MemoGame.

 I've successfully published my first version on the android market
 using my keystore
 But now i have a problem when i want to upgrade my application, here
 the error :

 The apk must be signed with at least one certificate in common with
 the previous version.

 But i'm using the exact same keystore.

 What should i do ?

 Thank you and have a nice day.
--~--~-~--~~~---~--~~
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 make device to sleep?

2009-08-26 Thread Yusuf Saib (T-Mobile USA)

AlarmManager: http://d.android.com/reference/android/app/AlarmManager.html


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Aug 25, 9:07 pm, GodsMoon godsm...@gmail.com wrote:
 I would like to know how to put the device to sleep and how to wake it
 up as well.
 Anybody?

 On Jul 20, 9:45 pm, Sansiro wangjiangfeng0...@gmail.com wrote:



  Now  I use the code follow:

  IPowerManager.Stub.asInterface(ServiceManager.getService
  (Context.POWER_SERVICE)).goToSleep(6)

  But it still does not work.

  On Jul 21, 9:07 am, Sansiro wangjiangfeng0...@gmail.com wrote:

   I know that there is a PowerManager class and a goToSleep method in
   SDK
   But the code follow does not work.Anybody can tell me why?

   PowerManager pm=(PowerManager)ServiceManager.getService
   (Context.POWER_SERVICE);
   pm.goToSleep(6);

   BRs!
--~--~-~--~~~---~--~~
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: LocationManager always returns null ... ?

2009-08-26 Thread Mark Murphy

 Anyway, the code seems to work fine, but locationManager always returns
 null even though I tried to send mock location data to the Android
 Emulator via the DDMS application using the Manual Location tab.
 Whatever I send seems to be ignored. I also tried establishing a telnet
 connecton to the emulator and using the command geo fix lat long. I did
 get an OK message yet, the emulator still returns null to my request.

 Any ideas about what might be the problem ?

Use requestLocationUpdates().

Unless your timing is perfect, you will not be able to send the fix at the
right time for getLastKnownLocation() to work as you expect.

Moreover, on a production device, getLastKnownLocation() will *never* work
as you expect, because it takes GPS several seconds, at best, to get a
fix, and it will only *try* get a fix because you have called
requestLocationUpdates().

-- 
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: Broken OpenGL texture output after resuming the app

2009-08-26 Thread Jack Palevich

I work on the Android graphics team. I'll try to look at this issue
this week and let you know what I find.

On Aug 25, 7:28 am, Ed Burnette ed.burne...@gmail.com wrote:
 Could someone on the Android graphics team comment on whether people
 should code around this or if people should ignore it because it has a
 good chance of being changed in a 1.5 update? I'm asking because I
 need to know what to tell developers in the next edition of Hello,
 Android. The 1.5 version of the OpenGL example 
 athttp://www.pragprog.com/titles/eband/source_codeexhibits this issue,
 but I hate to put in hacks for short-term problems because they cloud
 the examples and may be inefficient or even stop working in the
 future.

 Thanks,
 --Ed

 On Aug 21, 4:58 pm, Ed Burnette ed.burne...@gmail.com wrote:



  I have opened Issue 3623 for this 
  problem.http://code.google.com/p/android/issues/detail?id=3623
--~--~-~--~~~---~--~~
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: Error : Unknown URI: content://media/external/images/media

2009-08-26 Thread Streets Of Boston

I think this is the problem:

Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
values);

The first parameter of 'insert' must either be a bitmap or the path to
an actual image-file. Right now, you provide the value
Media.EXTERNAL_CONTENT_URI, which is a directory, not a file.

E.g., i think this would work ok:

Bitmap sourceBitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.test);
Uri uri = getContentResolver().insert(sourceBitmap, values);

Or

First create an empty file in the directory Media.EXTERNAL_CONTENT_URI
and provide the full path of this file for the insert method.

On Aug 26, 5:58 am, Dany BREARD dany.bre...@gmail.com wrote:
 I try to make everything to fix that but its too complicated !!!

 If somebody has a solution, please help me I'm sure its very
 simply !!!

 On Aug 26, 10:01 am, Dany BREARD dany.bre...@gmail.com wrote:



  Hi

  I change EXTERNAL_CONTENT_URI  to  INTERNAL_CONTENT_URI, and I have an
  other error that I can't Fix :

  08-26 07:49:39.084: ERROR/DatabaseUtils(648): Writing exception to
  parcel
  08-26 07:49:39.084: ERROR/DatabaseUtils(648):
  java.lang.UnsupportedOperationException: Writing to internal storage
  is not supported.
  08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
  com.android.providers.media.MediaProvider.generateFileName
  (MediaProvider.java:1346)
  08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
  com.android.providers.media.MediaProvider.ensureFile
  (MediaProvider.java:1074)
  08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
  com.android.providers.media.MediaProvider.insertInternal
  (MediaProvider.java:1150)
  08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
  com.android.providers.media.MediaProvider.insert(MediaProvider.java:
  1118)
  08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
  android.content.ContentProvider$Transport.insert(ContentProvider.java:
  140)
  08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
  android.content.ContentProviderNative.onTransact
  (ContentProviderNative.java:125)
  08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
  android.os.Binder.execTransact(Binder.java:287)
  08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
  dalvik.system.NativeStart.run(Native Method)
  08-26 07:49:39.114: DEBUG/AndroidRuntime(779): Shutting down VM
  08-26 07:49:39.124: WARN/dalvikvm(779): threadid=3: thread exiting
  with uncaught exception (group=0x4000fe70)
  08-26 07:49:39.124: ERROR/AndroidRuntime(779): Uncaught handler:
  thread main exiting due to uncaught exception
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):
  java.lang.RuntimeException: Unable to start activity ComponentInfo
  {dany.android.databasejpeg/dany.android.databasejpeg.testjpeg}:
  java.lang.UnsupportedOperationException: Writing to internal storage
  is not supported.
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
  2268)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
  2284)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.app.ActivityThread.access$1800(ActivityThread.java:112)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.os.Handler.dispatchMessage(Handler.java:99)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.os.Looper.loop(Looper.java:123)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.app.ActivityThread.main(ActivityThread.java:3948)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  java.lang.reflect.Method.invokeNative(Native Method)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  java.lang.reflect.Method.invoke(Method.java:521)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
  (ZygoteInit.java:782)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  dalvik.system.NativeStart.main(Native Method)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779): Caused by:
  java.lang.UnsupportedOperationException: Writing to internal storage
  is not supported.
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.database.DatabaseUtils.readExceptionFromParcel
  (DatabaseUtils.java:131)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.database.DatabaseUtils.readExceptionFromParcel
  (DatabaseUtils.java:111)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.content.ContentProviderProxy.insert(ContentProviderNative.java:
  340)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
  android.content.ContentResolver.insert(ContentResolver.java:476)
  08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at

[android-developers] MediaRecorder setVideoFrameRate

2009-08-26 Thread Maarten Wijnants

Hello Android developers,

I am experimenting with video capture/encoding using the MediaRecorder
class. One thing I noticed during testing is that it seems like the
setVideoFrameRate method of the MediaRecorder class has no effect. In
other words, the MediaRecorder does not seem to adhere to the frame
rate I set for it. Using a target frame rate of 5 FPS results in a
video fragment that is equally fluid/smooth as one created at 15 FPS.

I am using a HTC Magic device. My MediaRecorder code is as follows
(excluding exception handling):

MediaRecorder mMediaRecorder = new MediaRecorder();
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mMediaRecorder.setVideoSize(176, 144); // QCIF
mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
mMediaRecorder.setVideoFrameRate(5);
mMediaRecorder.setOutputFile(/sdcard/maarten.3gpp);
mMediaRecorder.setPreviewDisplay(previewSurface);
mMediaRecorder.prepare();
mMediaRecorder.start();

...

mMediaRecorder.stop();
mMediaRecorder.release();

Pretty straightforward code. Has anyone experienced something similar?
Has any of you been able to successfully enforce an actual frame rate
on the MediaRecorder?

Best regards,
Maarten Wijnants

--~--~-~--~~~---~--~~
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] Tab2 scroll view showing up in tab1

2009-08-26 Thread Siri Appaneni

Hi All,
I have an application where i have a TabHost with 3 tabs.I have a
ScrollView in tab2 and also another ScrollView in tab1. The problem is
my ScrollView in tab2 shows up in tab1 too (the scroll bar is showing
up).

Can anyone tell me where i am going wrong.

My main.xml is given below.
Name of tab1 scrollview : @+id/ScrollViewOuputText
Name of tab2 scrollview : @+id/ScrollViewtablayout2


---
?xml version=1.0 encoding=utf-8?


TabHost xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@android:id/tabhost
style=@style/TabStyle
android:layout_width=fill_parent
android:layout_height=wrap_content
LinearLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=wrap_content
TabWidget
android:id=@android:id/tabs
android:layout_width=fill_parent
android:layout_height=wrap_content /
FrameLayout
android:id=@android:id/tabcontent
android:layout_width=fill_parent
android:layout_height=wrap_content


   RelativeLayout android:id=@+id/tablayout1
xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content

TextView
style=@style/LabelText
android:id=@+id/tab1langlabel1
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Language 1:/

 Spinner
style=@style/SpinnerStyle
android:id=@+id/tab1spinner1
android:layout_width=fill_parent
android:drawSelectorOnTop=true
android:prompt=@string/language_prompt
android:layout_below=@id/tab1langlabel1/

   TextView
style=@style/LabelText
android:id=@+id/tab1langlabel2
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Language 2:
android:layout_below=@id/tab1spinner1/



Spinner
style=@style/SpinnerStyle
android:id=@+id/tab1spinner2
android:layout_width=fill_parent
android:drawSelectorOnTop=true
android:prompt=@string/language_prompt
android:layout_below=@id/tab1langlabel2/


 Button
android:id=@+id/tab1WebButton
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@id/tab1spinner2
android:layout_alignParentRight=true
android:text=Web /

Button
android:id=@+id/tab1cancelButton
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_toLeftOf=@+id/tab1WebButton
android:layout_alignTop=@+id/tab1WebButton
android:text=Clear /

Button
android:id=@+id/tab1okbutton
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_toLeftOf=@id/tab1cancelButton
android:layout_alignTop=@id/tab1cancelButton
android:text=Go /

 ScrollView
 android:id=@+id/ScrollViewOuputText
 android:layout_width=wrap_content
 android:layout_height=400px
 android:layout_below=@id/tab1cancelButton
TextView
style=@style/OuputText
android:id=@+id/tab1outputtext
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=

android:layout_below=@id/tab1cancelButton/

/ScrollView
/RelativeLayout

!-- TAB 2  --
ScrollView
 android:id=@+id/ScrollViewtablayout2
 android:layout_width=fill_parent
 android:layout_height=400px 

TableLayout 

[android-developers] resizable framelayouts possible?

2009-08-26 Thread Jay-andro

I want to do a framelayout where the bottom frame is short by default,
like only the top tip of it shows above the fold, but when the user
touches that frame, it slides up into full view reducing the frame
above it in size.

Is something on these lines possible?  What api's should I look at for
this, or is there is some open-source project out there that provides
something similar?

TIA

Jay
--~--~-~--~~~---~--~~
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: Move focus to top of activity on create

2009-08-26 Thread Balwinder Kaur (T-Mobile USA)

For a XML file that looks like this, it does what you are looking for.
If this is not what you want, then how about you paste your XML file ?

?xml version=1.0 encoding=utf-8?
ScrollView xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent
android:scrollbars=none
android:id=@+id/sv

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/tv
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
/
Button android:text=Button01 android:id=@+id/Button01
android:layout_width=wrap_content
android:layout_height=wrap_content/Button
Button android:text=Button02 android:id=@+id/Button02
android:layout_width=wrap_content
android:layout_height=wrap_content/Button
/LinearLayout
/ScrollView

Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 26, 6:57 am, jsdf jasons...@gmail.com wrote:
 Hi all,
 I have an activity that begins with almost a page of text, then has a
 few form controls.
 When the activity launches, the first form control takes focus and the
 screen scrolls down to make it fully visible.  When this happens, the
 text at the top is off the top edge of the screen.

 When the screen comes into view, I want the text at the top to be
 visible.

 So, onCreate, I tried sending a message to the Activity's overridden
 handler to do the following:

         ScrollView main = (ScrollView) findViewById(R.id.main);
         main.pageScroll(ScrollView.FOCUS_UP);

 This did nothing.
 I then tried
         main.scrollTo(0,0);
 This also did nothing.

 I then tried sending the message from onResume instead of onCreate.
 This also did nothing.

 Does anyone have suggestions as to how to force the scrollview to
 actually scroll?
 Thanks,
 jsdf
--~--~-~--~~~---~--~~
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] ontouch slideout buttons

2009-08-26 Thread Jay-andro

I want to provide buttons in my app that appear/disappear near the
bottom of the screen on touch near the bottom  similar to how the
browser zoom magnifying glasses appear and disappear.

Is there an api to do this?

TIA
Jay
--~--~-~--~~~---~--~~
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 and where to save SecretKey for encryption and decryption

2009-08-26 Thread Haravikk

The more important question I think is why are you doing this, what
information are you trying to protect?
It seems like you're adding encryption for the sake of it, but in fact
your solution won't be much more secure against someone determined to
get at the file's contents. If the key is static, then it is easier to
break, but if it changes then it would need to be stored, making it
easier to access.

One alternative is to generate the secret-key using a sufficiently
hard to guess algorithm, using some information about the device, so
that the key used is very different for every user, reducing the
change of simple comparisons being able to break your encryption.
However, someone clever could still probably figure out how your
encryption works by examining the Java byte-code, as while it's tough
to get your head around it's not impossible to understand.

Perhaps in your case the effort required to break the encryption might
be more than it's worth to get into the file, but if you let us know
what kind of information you're hoping to store, then perhaps we can
give you some better solutions? If it's something dangerous, like
payment details or something, then you need the most rock-solid
solution possible, but if it's something minor then encryption may be
a waste of time entirely.

On Aug 26, 2:46 pm, zeeshan genx...@gmail.com wrote:
 key never change once its been created.

 as i know SecretKey generates by a funtion as above, how can i set it
 as constant
 can you plz provide example?

 On Aug 26, 1:39 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
 wrote:



  On Wed, Aug 26, 2009 at 5:41 PM, zeeshan genx...@gmail.com wrote:

   key doesn't change.
   can i store keyString  in preferences to retrieve for decryption

  yes that'd be better than storin it in a file. But better to jus have a
  constant field in ur class that cointains ur key.

   SecretKey key = KeyGenerator.getInstance(DES).generateKey();
              byte[] keybytes = key.getEncoded();
              String keyString = new String(keybytes);

  If u r gonna execute these set of statements then wont the key change??

   or plz provide any example for the best practice

   On Aug 26, 12:28 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
   wrote:
If it is only used by ur application, jus use a String instance to hold
   the
key. y store in a file??
ll the key change dynamically???

On Wed, Aug 26, 2009 at 4:55 PM, zeeshan genx...@gmail.com wrote:

 encryption and decryption is the app's internal functionality. user
 has nothing to do with this
 i encrypt the file on 1st run and on 2nd run i check if file is there
 then decrypt and show.
 so only thing i understand is to store the key somewhere in the app so
 i can access it for decryption.
 just wondering if this help
 File  keyFile = new File(data/data/package name/key);

 i followed this link for encryption and decryption

http://www.java2s.com/Tutorial/Java/0490__Security/UsingCipherInputSt.
   ..

 On Aug 26, 12:11 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
 wrote:
  I think its better to ask the user for the secret key rather than
   storin
 it
  smwhere.

  On Wed, Aug 26, 2009 at 4:30 PM, zeeshan genx...@gmail.com wrote:

   Hi Dear,

   i wrote a small application which encrypt some files using a 
   secret
   key.
   i need to decrypt files on 2nd run which requires same key again
   plz advise where should i store the secret key.

  --
  Regards,
  Sujay
  Mike Ditka 
  http://www.brainyquote.com/quotes/authors/m/mike_ditka.html
  -
  If God had wanted man to play soccer, he wouldn't have given us
   arms.

--
Regards,
Sujay
Pablo Picasso
  http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html
- Computers are useless. They can only give you answers.

  --
  Regards,
  Sujay
  Jonathan 
  Swifthttp://www.brainyquote.com/quotes/authors/j/jonathan_swift.html
  - May you live every day of your life.

--~--~-~--~~~---~--~~
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: java question

2009-08-26 Thread Yusuf Saib (T-Mobile USA)

I think this is a valid Android question, as Android might handle this
differently than standard JavaSE. Specifically, JavaSE lets you do
this and (to the best of my knowledge) Android does not.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Aug 25, 10:45 pm, efan e...@efansoftware.com wrote:
 use java.lang.Process

 Maybe it's better to ask pure Java questions in sun Java forum?

 Good luck!

 On Aug 23, 10:03 am, srinivasarao srinivasara...@gmail.com wrote:



  hi Sir,
            Take Class name as input (command line) and loads that class
  Dynamically and calls the main method in that class..how will we do
  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
-~--~~~~--~~--~--~---



  1   2   >