[android-developers] How to custom monkeyrunner plugin?

2013-03-08 Thread lincoln
Hi,all: How to implement my own monkeyrunner plugin? I want to use the plugin's functions in my python scripts.The reason for this is: i want to communicate with device in my python script for other functions except the functions which are supplied by monkeyrunner. My code

[android-developers] My BroadcastReceiver receiver not getting called after phone boots, any ideas?

2013-03-08 Thread Russell Wheeler
I think you're missing the permission in your manifest. uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / The other thing that wasn't working for me was I didn't have an activity, but I presume you do? -- -- You received this message because you are subscribed to the

[android-developers] spinner

2013-03-08 Thread Sadhna Upadhyay
Hi friends, i need a help,can some oe tell me that how to dynamically add a value in spinner in android. -- -- 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

[android-developers] lint: android:versionName=@string/versionName is not valid?

2013-03-08 Thread BoD
Hi! I have just noticed that lint now complains that I use a string reference in my manifest's versionName. I am surprised, because it actually works without a problem. Can anyone comment on that? Thanks! -- BoD -- -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: spinner

2013-03-08 Thread srikanth
Please go through this url http://www.lacherstorfer.at/haris_blog/2008/03/android-howto-create-spinners.html On Friday, March 8, 2013 2:31:40 PM UTC+5:30, Sadhna Upadhyay wrote: Hi friends, i need a help,can some oe tell me that how to dynamically add a value in spinner in android.

Re: [android-developers] Handling SQLiteOpenHelper

2013-03-08 Thread Saurav
Thanks Mark, you have always been a charm! Thanks Larry, that was new info. So, what I take from your answers is that I can open a (Helper) connection at start of the application and close it at the application close, using the same connection for getting Readable and Writable db instances? And

Re: [android-developers] Handling SQLiteOpenHelper

2013-03-08 Thread Larry Meadors
Yes, that sounds right. I generally tie an instance to the lifecycle of the class that uses it. That assures that it is only open as long as it's needed and that it's closed when it isn't. Larry On Fri, Mar 8, 2013 at 4:16 AM, Saurav to.saurav.mukher...@gmail.comwrote: Thanks Mark, you have

[android-developers] Re: how to overlay an image over the camera preview?

2013-03-08 Thread AndroidDev
On Saturday, January 31, 2009 5:18:39 AM UTC+5:30, srajpal wrote: Does someone know how I can overlay an image over the camera preview? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] spinner

2013-03-08 Thread chandur mani
Hi sadhna, It is very easy , You have to add the value in array adapter only. Thanks Mani On Fri, Mar 8, 2013 at 2:31 PM, Sadhna Upadhyay sadhna.braah...@gmail.comwrote: Hi friends, i need a help,can some oe tell me that how to dynamically add a value in spinner in android. -- --

Re: [android-developers] Re: how to overlay an image over the camera preview?

2013-03-08 Thread chandur mani
You have to use your own camera, not device camera. For this you have to use surfaceview class to build your own camera Thanks Mani On Fri, Mar 8, 2013 at 5:48 PM, AndroidDev androidteste...@gmail.comwrote: On Saturday, January 31, 2009 5:18:39 AM UTC+5:30, srajpal wrote: Does someone

[android-developers] Re: std::locale().name() returns C

2013-03-08 Thread bob
Please see this: http://stackoverflow.com/questions/571359/how-do-i-set-the-proper-initial-locale-for-a-c-program-on-windows It says: At program startup, the global locale is the C or *Classic* locale. To set the global locale to the program's environment locale (which I guess is what you're

[android-developers] Re: help needed

2013-03-08 Thread bob
Here is an example of how to use the TimePickerDialog: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); * TimePickerDialog dialog = new TimePickerDialog(this, null, 0, 0, false);* * dialog.show();* }

[android-developers] Re: Can any one please share the code to decryption the string with key(32 bytes)

2013-03-08 Thread bob
What algorithm was used to encrypt it? There are many such as RSA, DES, and AES. On Thursday, March 7, 2013 7:56:15 AM UTC-6, Remo wrote: Hi All, Can any one please share the code to decryp the string with key(32 bytes). Thanks C.Remo -- -- You received this message

[android-developers] Re: Collaboration with Google on creating custom Google Apps

2013-03-08 Thread bob
I would try Reto Meier. He's on that list, and he wrote a book that I have on Android. He has a blog called Radioactive Yak too. On Thursday, March 7, 2013 6:20:24 AM UTC-6, Piren wrote: http://code.google.com/team/ On Thursday, March 7, 2013 1:38:22 PM UTC+2, Jacek Wywrot wrote:

[android-developers] Re: My BroadcastReceiver receiver not getting called after phone boots, any ideas?

2013-03-08 Thread pawpaw17
Here is most of my manifest file. I changed things around so I'm trying to get .MyBootAlarmReceiver to get called both when boot completes and when the SD card is finished loading, but my onReceive() method doesn't seem to be getting called. Any ideas? I suspect some simple goofup: ?xml

[android-developers] Re: How to get device raw width and height or actual screen width and height ?

2013-03-08 Thread Filipe
So it is not possible to get the real size? Or to get the size of the status bar? In my case I want to make some preprocessing and get somethings prepared for future use in the application when the screen rotates. So, if I am in landscape I get the Heigth. I also need to know the width of my

[android-developers] How to access HTTPS

2013-03-08 Thread askl
Hi friends, already i've access HTTP. But i can't access HTTPS protocol base server. How can i access php files on HTTPS protocol server using JSON. *here is the error message* 03-08 21:34:56.804: W/System.err(366): javax.net.ssl.SSLException: Not trusted server certificate 03-08 21:34:56.814:

[android-developers] Android 4.2+: Sharing data between users

2013-03-08 Thread Bryan Ashby
I work for a Parental Controls company and have a product that has been working beautifully on Android up to version 4.2. Until now, we have mostly pushed off fully supporting 4.2 with user switching as the demand has not been high enough. That time has past and it's finally in our radar. Our

Re: [android-developers] Android 4.2+: Sharing data between users

2013-03-08 Thread Vinothkumar Apparao
sorry for posting here, thought use full app. Its looking very cool.. https://play.google.com/store/apps/details?id=com.appz.rootfsinfo On Fri, Mar 8, 2013 at 10:17 PM, Bryan Ashby nuskoo...@gmail.com wrote: I work for a Parental Controls company and have a product that has been working

Re: [android-developers] Re: My BroadcastReceiver receiver not getting called after phone boots, any ideas?

2013-03-08 Thread Mark Murphy
You do not hold the RECEIVE_BOOT_COMPLETED permission. Instead, you are trying to hold the RECEVIE_BOOT_COMPLETED permission, which does not exist. On Fri, Mar 8, 2013 at 11:12 AM, pawpaw17 georgefraz...@yahoo.com wrote: Here is most of my manifest file. I changed things around so I'm trying to

Re: [android-developers] drawBitmapMesh

2013-03-08 Thread A N K ! T
Have you able to do this? On Sun, Feb 20, 2011 at 11:41 AM, loril...@gmail.com loril...@gmail.comwrote: Hi, I want to apply a bulge effect on my image using a circular brush. I found a useful method drawBitmapMesh using which I can define a mesh and apply the warp effect. But I'm not

Re: [android-developers] Re: std::locale().name() returns C

2013-03-08 Thread Shri Borde
I did ask on android-ndk and was told that the NDK does not support locales. Will do locale processing in Java code. On Fri, Mar 8, 2013 at 7:15 AM, bob b...@coolfone.comze.com wrote: Please see this:

[android-developers] Re: Cannot get textAppearance to inherit/cascade from theme

2013-03-08 Thread Walt Armour
Not quite the same but good enough for my stuff: http://stackoverflow.com/questions/8380020/android-how-do-i-set-the-textsize-for-a-layout/8380153 On Thursday, February 18, 2010 10:24:49 PM UTC-8, Walt Armour wrote: I have a simple style like this: style

Re: [android-developers] drawBitmapMesh

2013-03-08 Thread bob
Is this what you want? http://www.java2s.com/Code/Android/2D-Graphics/BitmapMesh.htm Also, you can always use FishEye GLSL code. It's in the HelloEffects sample: https://lh5.googleusercontent.com/-YSthTakwygc/UTo67Gjq1KI/AUA/O8sFQPpKZpg/s1600/fisheye.png On Friday, March 8, 2013

[android-developers] Re: How to access HTTPS

2013-03-08 Thread Jonathan S
Something like http://stackoverflow.com/questions/2012497/accepting-a-certificate-for-https-on-android On Friday, March 8, 2013 11:46:27 AM UTC-5, askl wrote: Hi friends, already i've access HTTP. But i can't access HTTPS protocol base server. How can i access php files on HTTPS protocol

Re: [android-developers] Re: My BroadcastReceiver receiver not getting called after phone boots, any ideas?

2013-03-08 Thread bob
Also, shouldn't the broadcast receiver be for *ACTION_BOOT_COMPLETED* and not BOOT_COMPLETED? On Friday, March 8, 2013 10:58:10 AM UTC-6, Mark Murphy (a Commons Guy) wrote: You do not hold the RECEIVE_BOOT_COMPLETED permission. Instead, you are trying to hold the RECEVIE_BOOT_COMPLETED

Re: [android-developers] Re: My BroadcastReceiver receiver not getting called after phone boots, any ideas?

2013-03-08 Thread Mark Murphy
On Fri, Mar 8, 2013 at 3:11 PM, bob b...@coolfone.comze.com wrote: Also, shouldn't the broadcast receiver be for ACTION_BOOT_COMPLETED and not BOOT_COMPLETED? No. In Java, we refer to it as Intent.ACTION_BOOT_COMPLETED. The string value associated with that public static final data member is

Re: [android-developers] Enumerate sd cards

2013-03-08 Thread Yves Liu
Yes, have read the documentation. But that is not what I am looking for. The getExternalStorage() returns internal sd card (if there are both internal sd card and external sd card). I want to know how to find the external sd card path. On Wed, Mar 6, 2013 at 9:05 PM, TreKing

Re: [android-developers] Enumerate sd cards

2013-03-08 Thread Mark Murphy
On Fri, Mar 8, 2013 at 4:21 PM, Yves Liu yves...@gmail.com wrote: Yes, have read the documentation. But that is not what I am looking for. The getExternalStorage() returns internal sd card (if there are both internal sd card and external sd card). I want to know how to find the external sd

[android-developers] Google Checkout spreadsheets and currency - how to convert all to U.S.?

2013-03-08 Thread niko20
Every since Google did a large switchover to currency, when you download a Google Checkout spreadsheet it shows the prices in all different currencies. This is pain in the ass for my recordkeeping and statistics. Anyone know how you can get it to show all currency values only in U.S. dollars?

[android-developers] Re: How to get device raw width and height or actual screen width and height ?

2013-03-08 Thread Streets Of Boston
For any API-level less than 17, use the snippets of code you are using successfully now. For API-level 17 and higher (your Nexus 7 running 4.2), use this: https://developer.android.com/reference/android/view/Display.html#getRealSize(android.graphics.Point) On Monday, November 19, 2012 6:29:14

[android-developers] Re: Cannot get textAppearance to inherit/cascade from theme

2013-03-08 Thread Walt Armour
I was a hair too hasty in the previous reply. Hours later and I found the real answer: Using textViewStyle will set the properties but will also prevent local override of those values (by setting textAppearance directly on a TextView). The real solution: do not set android:textAppearance on

Re: [android-developers] Enumerate sd cards

2013-03-08 Thread RichardC
The problem we have here is that getExternalStorageDirectory does NOT return the location of the sd card. In fact it has nothing to do with sd cards and never has. From the docs: *Note: don't be confused by the word external here. This directory can better be thought as media/shared storage.

[android-developers] Re: Google Checkout spreadsheets and currency - how to convert all to U.S.?

2013-03-08 Thread al
The payout reports have 2 columns called Merchant Currency and Merchant Receives. The sales reports seem to be preliminary. It should be sufficient to use a simple script to convert the Charged Amount column. Personally, I use this currency converter class for as part of my own script: