[android-developers] MediaCodec API (16) usage, documentation and audio files

2013-01-10 Thread roemer
Hello, my goal is to play/record audio data and de/encode it using the MediaCodec and AAC. I worked my way through the MediaCodec(.*) documentation (which is very poor I think) and am now able to en/decode audio. Currently I'm writing the encoded data into a file. The problem is that there

[android-developers] Need sherlock action tab without viewpager

2013-01-10 Thread ANKUR GOEL
Hi all , can anybody help me with sherlock lib implementation of tabs without viewpager -- 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

[android-developers] Re: Camera takePicture: onPictureTaken() never called?

2013-01-10 Thread Polaris431
I did the same thing. You are releasing the camera BEFORE onPictureTaken has had a chance to be called. You must release it only AFTER onPictureTaken has completed. takePicture is an asynchronous call. On Sunday, May 6, 2012 1:42:39 PM UTC+2, goRGon Development wrote: I figured out that if

Re: [android-developers] Re: why couldn't create webservice using android?

2013-01-10 Thread Bill Michaelson
Google: android thermostatat. Et cetera -- 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] RSA encrypt on android

2013-01-10 Thread Ines
i have some problems when i try to encrypt a string with a public key stored in res/raw thesis the encrypt method code: public static byte[] encryptRSA(Context mContext, byte[] message) throws Exception { // reads the public key stored in a file InputStream is =

[android-developers] Handling different resolutions within the same configuration group

2013-01-10 Thread Dmitriy F
I have a normal-hdpi-480x800 layout, which includes buttons and similar graphics. I mostly use RelativeLayout, since it's recommended for better performance, and position my elements from the upper left bound relatively to each other. According to

Re: [android-developers] RSA encrypt on android

2013-01-10 Thread Belhouchet Ines
anyone can help me ??? 2013/1/10, Ines belhouchet.i...@gmail.com: i have some problems when i try to encrypt a string with a public key stored in res/raw thesis the encrypt method code: public static byte[] encryptRSA(Context mContext, byte[] message) throws Exception { // reads

Re: [android-developers] Public Key to XMLDSIG sign

2013-01-10 Thread mbarbiero
Thanks Nikolay, I think you are right because the publickey that returned from android contains extra HEX code before and after the code generated by my other application. However, i don't understood how to work your code. Can you help me again? Thanks a lot. -- You received this message

[android-developers] Re: Hi bros

2013-01-10 Thread skink
sree android wrote: Please observe the above attachment image. Their i can implement single choice items dialogue,when i click on particular item the value will change automatically. How can update the selected value. Please share snippet of code or any idea. How can update the selected

[android-developers] Re: location updates using network provider

2013-01-10 Thread Jake Colman
KM == Kristopher Micinski krismicin...@gmail.com writes: KM FYI 90 seconds would not really be a good fit for an KM AlarmManager, it's not meant to be used with that kind of KM granularity. That's an interesting comment. I am using an alarm to wake myself every 60 seconds in order to

Re: [android-developers] Re: location updates using network provider

2013-01-10 Thread Mark Murphy
On Thu, Jan 10, 2013 at 8:54 AM, Jake Colman col...@ppllc.com wrote: That's an interesting comment. I am using an alarm to wake myself every 60 seconds in order to check something. Are you saying this is not good practice? For me, 60 seconds is about the threshold where I start to wonder

Re: [android-developers] Public Key to XMLDSIG sign

2013-01-10 Thread Nikolay Elenkov
On Thu, Jan 10, 2013 at 10:03 PM, mbarbiero marco.barbi...@gmail.com wrote: Thanks Nikolay, I think you are right because the publickey that returned from android contains extra HEX code before and after the code generated by my other application. However, i don't understood how to work your

Re: [android-developers] RSA encrypt on android

2013-01-10 Thread Nikolay Elenkov
On Thu, Jan 10, 2013 at 8:31 PM, Ines belhouchet.i...@gmail.com wrote: i have some problems when i try to encrypt a string with a public key stored in res/raw thesis the encrypt method code: // converts the String to a PublicKey instance byte[] keyBytes =

[android-developers] Re: debug blues

2013-01-10 Thread bob
This occurred on the Nexus 7 tablet, and the Android version was 4.2.1. On Wednesday, January 9, 2013 7:46:34 PM UTC-6, RichardC wrote: Emulator or Phone and what was the Android version running on it? On Wednesday, January 9, 2013 10:40:27 PM UTC, bob wrote: I'm stepping thru my source.

[android-developers] Re: MemoryFile - ParcelFileDescriptor

2013-01-10 Thread Peterdk
Why not use reflection to get the PFD? There is a method for that in the MemoryFile class. Op woensdag 4 juli 2012 09:55:32 UTC+2 schreef rtindru het volgende: I have an application that needs to Base64 decode on the fly a bitmap image render it on the ImageView. I am using a custom

[android-developers] Re: debug blues

2013-01-10 Thread bob
It seems to work if I do Edit Source Lookup and change it to android-17. Is it 17 because the Nexus 7 is running 4.2.1? I built targeted for 16. On Wednesday, January 9, 2013 7:46:34 PM UTC-6, RichardC wrote: Emulator or Phone and what was the Android version running on it? On

[android-developers] Re: debug blues

2013-01-10 Thread Streets Of Boston
Yes. The code on the device (Nexus 7) has debug info that tells Eclipse the line-numbers of the source-code. If your source-code (android-16) is out-of-date, these line-number don't match up and Eclipse shows you something wrong (correct line-number, wrong source-version). On Thursday,

[android-developers] Re: Can I decide how bitmaps are compressed via png?

2013-01-10 Thread AndroidCompile
Eventually I figured out the answer myself: in Android it's not possible. I had to make changes to the Android frameworks to enable this feature (skia for that matter: you may look at https://github.com/androidcompile/Android_external_skia_pngCompression), but otherwise, as a developer,

Re: [android-developers] How can I connect my Samsung Galaxy S Blaze to my Computer for testing?

2013-01-10 Thread Fred Niggle
hello, a simple google search will lead you to the many tutorial that will guide you to your answers, best regards, Fred On 7 January 2013 20:09, Taylor Ringo taylorri...@gmail.com wrote: Hi I'm to mobile development(Android is my first platform), and I've been having trouble connecting my

[android-developers] Re: MemoryFile - ParcelFileDescriptor

2013-01-10 Thread Streets Of Boston
Why are you using a MemoryFile? If you need to read the file into memory, you could just use a byte[] and byte-arrays are parcelable. Actually, I'd suggest not reading it into memory a all and just pass the 'Uri uri' from the parcelable producer to the consumer and the consumer can read the

[android-developers] Re: MemoryFile - ParcelFileDescriptor

2013-01-10 Thread Streets Of Boston
Why are you using a MemoryFile? If you need to read the file into memory, you could just use a byte[] and byte-arrays are parcelable. Actually, I'd suggest not reading it into memory a all and just pass the 'Uri uri' from the parcelable producer process to the consumer process and the consumer

[android-developers] Re: location updates using network provider

2013-01-10 Thread Jake Colman
MM == Mark Murphy mmur...@commonsware.com writes: MM On Thu, Jan 10, 2013 at 8:54 AM, Jake Colman col...@ppllc.com wrote: That's an interesting comment. I am using an alarm to wake myself every 60 seconds in order to check something. Are you saying this is not good practice?

[android-developers] Install numbers dropped

2013-01-10 Thread niko20
Anyone else notice your install numbers drop? I see a number about 4000 less or so than it was -- 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

[android-developers] Re: Install numbers dropped

2013-01-10 Thread niko20
My numbers used to be 73,000 ish, and today it says 69,000 ish. On Thursday, January 10, 2013 9:34:14 AM UTC-6, niko20 wrote: Anyone else notice your install numbers drop? I see a number about 4000 less or so than it was -- You received this message because you are subscribed to the

[android-developers] Re: Install numbers dropped

2013-01-10 Thread niko20
What I mean is the Total Installs number, which should never go down On Thursday, January 10, 2013 9:35:17 AM UTC-6, niko20 wrote: My numbers used to be 73,000 ish, and today it says 69,000 ish. On Thursday, January 10, 2013 9:34:14 AM UTC-6, niko20 wrote: Anyone else notice your

[android-developers] Re: Can I decide how bitmaps are compressed via png?

2013-01-10 Thread bob
Why would you want to do this? On Sunday, January 6, 2013 3:42:08 AM UTC-6, AndroidCompile wrote: Hi, Is it possible to determine that a bitmap is compressed (programatically, of course) as a png image with an 8 bit color palette? 4 bit? I know there are different types of png

Re: [android-developers] Re: How to perform multiple queries from different tables and show in single list view

2013-01-10 Thread neil odiaz
just use inner join inn your query . maybe it will help you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: How to perform multiple queries from different tables and show in single list view

2013-01-10 Thread bob
It sounds like you want to write your own android.widget.ListAdapter. On Monday, December 24, 2012 1:07:47 AM UTC-6, Vijay Krishnan wrote: Hi all, I have to query from different tables and show in single listview.How to do this? Regards, vijay.k -- You received this message

Re: [android-developers] Re: location updates using network provider

2013-01-10 Thread Mark Murphy
On Thu, Jan 10, 2013 at 10:33 AM, Jake Colman col...@ppllc.com wrote: How does a typical clock widget update itself to display a new time as the minutes go by? Does it do nothing unless the user turns on the screen (when the screen is off you don't need to know what time is) at which time it

Re: [android-developers] Re: location updates using network provider

2013-01-10 Thread Kristopher Micinski
How does a typical clock widget update itself to display a new time as the minutes go by? Does it do nothing unless the user turns on the screen (when the screen is off you don't need to know what time is) at which time it triggers an event and updates itself? A cursory look at most of them

Re: [android-developers] Re: New OpenGL ES 2.0 Game Engine Option

2013-01-10 Thread bob
Thanks. I'll try to take a look at them when I get a chance. BTW, do you pretty much need the NDK to use your engine? On Thursday, January 3, 2013 12:20:09 PM UTC-6, Robert Green wrote: Hi Bob, There are a number of games already available using BatteryTech Engine that show off

Re: [android-developers] Re: why couldn't create webservice using android?

2013-01-10 Thread Kevin Duffey
Lew..I apologize whole heartedly for whatever it is I might have said to upset you so much. I retract all my statements and hope we can get past this and be friends. Perhaps I was too assertive in my initial claim that today's phones could be decent servers. I didn't have the time to look up the

[android-developers] currency symbol to iso code on Android

2013-01-10 Thread adrian del campo
Is there any way to convert a currency symbol to the corresponding ISO code in Java/Android? I have seen that Google Play in-app billing APIv3 can send us the item price including the currency symbol, but then we are storing the price and currency in different fields, so we can validate if

[android-developers] WCF service over SSL

2013-01-10 Thread sandeep_c24
I have been trying to get WCF over SSL to work with ANdroid and I have used HttpsURLConnection. But no luck. I have tried searching on google but so far no luck. I am a bit frustrated right now and would like someone to point me to a working example with source if possible. Kind Regards

Re: [android-developers] Re: New OpenGL ES 2.0 Game Engine Option

2013-01-10 Thread Robert Green
If you don't want to modify the engine itself you can just copy the .so files and you don't need NDK. If you want to change any of the C/C++ code in the engine, you'll need NDK to rebuild it for Android. When you're just developing your game, before device testing, you don't need anything for

Re: [android-developers] OpenGL 1.0 or 1.1?

2013-01-10 Thread bob
I guess the BasicGLSurfaceView sample pretty much shows the correct way to allocate memory for OpenGL: mTriangleVertices = ByteBuffer.allocateDirect(mTriangleVerticesData.length * FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer(); I wouldn't mind seeing something a

[android-developers] How to call startactivityforresult from a non-activity class to get the resuts

2013-01-10 Thread Monty Jain
** is it possible to call startactivityforresult from a non-activity class to get the results. Scenario is something like this I have a class Class NonActivity(it doesn't derive from Activity as its not a UI). This class will have bunch of functions(steps basically) to run. One of the

Re: [android-developers] RSA encrypt on android

2013-01-10 Thread Belhouchet Ines
ok thanks Nikolay ,i'll try the HTTPS ,but don't have a great idea about this approach HTTPS,can you please give me some examples or tutorials. thanks a lot. 2013/1/10, Nikolay Elenkov nikolay.elen...@gmail.com: On Thu, Jan 10, 2013 at 8:31 PM, Ines belhouchet.i...@gmail.com wrote: i have some

Re: [android-developers] How to call startactivityforresult from a non-activity class to get the resuts

2013-01-10 Thread Mark Murphy
On Thu, Jan 10, 2013 at 3:15 PM, Monty Jain montyj...@gmail.com wrote: is it possible to call startactivityforresult from a non-activity class to get the results. No, sorry. I have a class Class NonActivity(it doesn't derive from Activity as its not a UI). This class will have bunch of

Re: [android-developers] Re: New OpenGL ES 2.0 Game Engine Option

2013-01-10 Thread bob
Thanks. Can you tell me where to find the .so file? I don't see it in your two zip files. On Thursday, January 10, 2013 1:20:31 PM UTC-6, Robert Green wrote: If you don't want to modify the engine itself you can just copy the .so files and you don't need NDK. If you want to change

Re: [android-developers] How to call startactivityforresult from a non-activity class to get the resuts

2013-01-10 Thread Monty Jain
hey Thanks Mark for your reply IMHO, such a library absolutely, positively should NOT be starting an activity. The developer using the library needs to have control over that behavior. Wanted to check if I have understood it correctly or not. Basically I want to develop a library which

[android-developers] Re: Hi bros

2013-01-10 Thread Lew
sree wrote: Please observe the above attachment image. Their i [sic] can implement single choice items dialogue,when i [sic] click on particular item the value will change automatically. How can update the selected value. Please share snippet of code or any idea. Who is bros and what does

[android-developers] Re: Backup Manager not working on HTC Desire running Android 2.2

2013-01-10 Thread Amy Phillips
Anyone? Is there a better place to ask for help? On Friday, January 4, 2013 10:11:28 PM UTC, Amy Phillips wrote: I'm developing an Android app and would like to use BackupAgentHelper to backup my application data. I have followed the instructions at

Re: [android-developers] RSA encrypt on android

2013-01-10 Thread Lew
Ines wrote: ok thanks Nikolay ,i'll [sic] try the HTTPS ,but don't have a great idea about this approach HTTPS,can you please give me some examples or tutorials. http://lmgtfy.com/?q=Android+communicate+securely+with+your+server+use+standard+HTTPS+SSL -- Lew -- You received this

Re: [android-developers] How to call startactivityforresult from a non-activity class to get the resuts

2013-01-10 Thread Mark Murphy
On Thu, Jan 10, 2013 at 4:12 PM, Monty Jain montyj...@gmail.com wrote: Basically I want to develop a library which perform certain task which involves running certain series of steps. one of the steps can be involve starting an activity(UI to get input) and use that data to finish that step.

[android-developers] Basic GL Surface View example

2013-01-10 Thread bob
Why does the Basic GL Surface View example make a call like this? GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST); Doesn't the f in glTexParameterf imply that the last parameter is a float? But, it is an int: public static final int GL_NEAREST =

Re: [android-developers] How to call startactivityforresult from a non-activity class to get the resuts

2013-01-10 Thread Kevin Duffey
Couldn't someone using this library call it from within an Activity, passing this to that code and using this create the activity at that point when it's needed? On Thu, Jan 10, 2013 at 1:19 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Jan 10, 2013 at 4:12 PM, Monty Jain

Re: [android-developers] Re: New OpenGL ES 2.0 Game Engine Option

2013-01-10 Thread Robert Green
The mobile builds and projects are only available in the purchased version. The free dev kit is just Windows and OSX. If it works in your desktop build, it'll work on the device with the exception of non power-of-two images. On mobile you're just testing performance and multitouch input before

Re: [android-developers] How to call startactivityforresult from a non-activity class to get the resuts

2013-01-10 Thread Mark Murphy
On Thu, Jan 10, 2013 at 5:09 PM, Kevin Duffey andjar...@gmail.com wrote: Couldn't someone using this library call it from within an Activity, passing this to that code and using this create the activity at that point when it's needed? Yes, but that does not handle the onActivityResult()

Re: [android-developers] How to call startactivityforresult from a non-activity class to get the resuts

2013-01-10 Thread Marina Cuello
Perhaps you could create an interface for your Activity-clients to implement. You then pass to your library class a reference to this (now a YourLibraryInterface). Marina On Jan 10, 2013 7:10 p.m., Kevin Duffey andjar...@gmail.com wrote: Couldn't someone using this library call it from within

[android-developers] Re: How to call startactivityforresult from a non-activity class to get the resuts

2013-01-10 Thread jason_gates
Hi, I would recommend reviewing the following pages in the Android Developer's guide: - Intents and Intent Filtershttp://developer.android.com/guide/components/intents-filters.htmlhttps://developer.android.com/guide/components/intents-filters.html - Intent (details)

Re: [android-developers] Public Key to XMLDSIG sign

2013-01-10 Thread mbarbiero
I finally discovered what kind of public key I need: is a PEM format like below. How I do this? Thanks code-BEGIN CERTIFICATE- MIIDuDCCAqACCQDxZX5jygcxvzANBgkqhkiG9w0BAQUFADCBnTELMAkGA1UEBhMC VE4xEDAOBgNVBAgMB1RVTklTSUUxDTALBgNVBAcMBFNGQVgxFTATBgNVBAoMDElu

Re: [android-developers] Public Key to XMLDSIG sign

2013-01-10 Thread mbarbiero
Em quinta-feira, 10 de janeiro de 2013 21h21min36s UTC-2, mbarbiero escreveu: I finally discovered what kind of public key I need: is a PEM format like below. How I do this? Thanks code-BEGIN CERTIFICATE- MIIDuDCCAqACCQDxZX5jygcxvzANBgkqhkiG9w0BAQUFADCBnTELMAkGA1UEBhMC

[android-developers] Re: Backup Manager not working on HTC Desire running Android 2.2

2013-01-10 Thread jason_gates
Hi, Sorry, I haven't used the BackUp Manager, but I perused the documentation page you referenced. To invoke the Backup Manager from your phone, I would try using the 2 command approach - adb shell bmgr backup *your.package.name* - adb shell bmgr run If you application

[android-developers] Re: currency symbol to iso code on Android

2013-01-10 Thread Lew
adrian del campo wrote: Is there any way to convert a currency symbol to the corresponding ISO code in Java/Android? What locale would you use for $? Brunei Darussalam (ar/BN)? Chile (es-cl/CL)? Colombia (es-co/CO)? Hong Kong (zh-hk/HK)? I have seen that Google Play in-app billing APIv3

[android-developers] Re: Basic GL Surface View example

2013-01-10 Thread Lew
bob wrote: Why does the Basic GL Surface View example make a call like this? GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST); Doesn't the f in glTexParameterf imply that the last parameter is a float? Gee, I don't know. Let's look it up.

[android-developers] Re: Basic GL Surface View example

2013-01-10 Thread Lew
Lew wrote: bob wrote: Why does the Basic GL Surface View example make a call like this? GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST); Doesn't the f in glTexParameterf imply that the last parameter is a float? Gee, I don't know. Let's

[android-developers] Cursor and text selection is not proper in Jelly bean in HTML page

2013-01-10 Thread Amit Sinha
Hi, I am creating an app with HTML/Javascript in Jelly bean. I have created a contenteditable tag in div tag where i can type text.This app I created with webview instance. I observe that some times cursor is not appearing properly. also the selection is not proper. Has any body tried this

Re: [android-developers] Re: Hi bros

2013-01-10 Thread sree android
thank you for you good suggession. -- 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] Re: How to add AdMob

2013-01-10 Thread askl
Hi friends, Thankx for all comments. And ads displaying perfectly now. Please give me a perfect answer for these, *01. here is the my XML code* com.google.ads.AdView android:id=@+id/ad android:layout_width=wrap_content

[android-developers] Re: How to add AdMob

2013-01-10 Thread William Ferguson
You can leave testDevices in there, it won't hurt. And yes you can use it for all your Activities. NB you may be better off asking Admob questions on the Admob newsgroup. Though you have received some pretty good responses here. William On Friday, January 11, 2013 3:26:28 PM UTC+10, askl

[android-developers] Re: How to add AdMob

2013-01-10 Thread askl
wow thank very much for your fast respond. can u send me the admod newsgroup link. And just tell me what should i do for this option in AdMob Sites and Apps. https://lh6.googleusercontent.com/-yftJakdKDco/UO-ofwazLgI/EGU/dsN_TMZ83bE/s1600/AdMob+++Sites+and+Apps.png As well as if you can

[android-developers] Re: how to implement tween animation with AppWidget using RemoteViews?

2013-01-10 Thread mitchell_lra
Hi! I can't answer your question but I found a way to have my animation working! *widget_layout.xml* ViewFlipper xmlns:android=http://schemas.android.com/apk/res/android; xmlns:tools=http://schemas.android.com/tools; android:layout_width=match_parent

[android-developers] Re: How to add AdMob

2013-01-10 Thread askl
And just tell me what should i do for this option in AdMob Sites and Apps. https://lh6.googleusercontent.com/-yftJakdKDco/UO-ofwazLgI/EGU/dsN_TMZ83bE/s1600/AdMob+++Sites+and+Apps.png On Tuesday, January 8, 2013 10:48:53 AM UTC+5:30, askl wrote: Hello Friends, I've many times try to

[android-developers] Set alarm in the device

2013-01-10 Thread avinash shyam
Hi, I am trying to set an alarm for a specified time on click of a button and at that time, the alarm should ring. I tried several codes on the net and stackoverflow, but strangely none of them are practically working . I set the pending intent, and the receiver and required changes in manifest.

[android-developers] ListFragment and actionbar

2013-01-10 Thread Summer
Hi, I am developing an application which I will have multiple tabs and in one of the tab I will have listview. --So if I use actionBar and Fragment, setListAdapter() in the Fragment won't work. --if I use actionBar and ListFragment, ActionBar.TabListener can't accept listFragment. Any