Re: [android-developers] Audio Play

2012-10-31 Thread TreKing
On Thu, Nov 1, 2012 at 12:23 AM, Sadhna Upadhyay wrote: > Hi everybody i am playing a audio o button click then it is playin twice > on single click why it is happening,i dont know please help me if any one > of you know the reason. Read http://www.catb.org/esr/faqs/smart-questions.html, then tr

Re: [android-developers] Using Service without startService(), bindService()?

2012-10-31 Thread Kristopher Micinski
Ah, good.. I had simply assumed that was a commonish pattern I had never read about, but it makes sense... (I don't actually do much app writing these days..) kris On Thu, Nov 1, 2012 at 1:27 AM, Nikolay Elenkov wrote: > On Thu, Nov 1, 2012 at 2:21 PM, Kristopher Micinski > wrote: > > > > > Sl

[android-developers] Re: Barcode Scanner app

2012-10-31 Thread askl
Thank you. Can you send me the sample project.. On Thursday, November 1, 2012 9:48:59 AM UTC+5:30, askl wrote: > > *Please give me some option.* > *How to develop a barcode scanner app.* > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

Re: [android-developers] Using Service without startService(), bindService()?

2012-10-31 Thread Nikolay Elenkov
On Thu, Nov 1, 2012 at 2:21 PM, Kristopher Micinski wrote: > > Slightly odd and nonstandard use of a Service to organize the app design, > but still useful. > This has been reported ages ago without an answer: http://code.google.com/p/marketbilling/issues/detail?id=8 Last answer is the most us

Re: [android-developers] Barcode Scanner app

2012-10-31 Thread Sachin K Poddar
A lot of examples could be found if you have tried to google it. Integrate ZXingin your project. See http://code.google.com/p/android-quick-response-code/ On 11/1/2012 9:48 AM, askl wrote: *Please give me some option.* *How to develop a barcode scanner app.* -- You received this message be

[android-developers] Audio Play

2012-10-31 Thread Sadhna Upadhyay
Hi everybody i am playing a audio o button click then it is playin twice on single click why it is happening,i dont know please help me if any one of you know the reason. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

Re: [android-developers] Using Service without startService(), bindService()?

2012-10-31 Thread Kristopher Micinski
Generally using something like the `Service()` constructor is a very bad idea. Doing so means that the service, receiver, etc... won't be hooked into the framework (which calls methods as appropriate on the object). `#attachBaseContext` allows you to set the `Context` object through which calls w

[android-developers] Barcode Scanner app

2012-10-31 Thread askl
*Please give me some option.* *How to develop a barcode scanner app.* -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to and

[android-developers] Render pdf file

2012-10-31 Thread Vinicius Jose Grein
Dear all, we need to embed a pdf viewer in our application, do you have any tips or examples related to 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 unsubsc

[android-developers] Using Service without startService(), bindService()?

2012-10-31 Thread NoraBora
I'm looking at the In-app Billing example and found something interesting. (http://developer.android.com/guide/google/play/billing/billing_integrate.html#billing-download) I have known that Service must be started with startService() or bindService(), but in the example BillingService is made by

Re: [android-developers] SSLProtocolException on Droid RAZR MAXX HD using Android 4.0.4

2012-10-31 Thread Nikolay Elenkov
On Thu, Nov 1, 2012 at 5:54 AM, John Lussmyer wrote: > I have a customer that is getting an SSLProtocolException in our app. There > are thousands of other phones working just fine with this version of our > code and server. > > ( 3416): javax.net.ssl.SSLProtocolException: Read error: ssl=0x1020

[android-developers] Re: android.intent.action.HEADSET_PLUG Permission

2012-10-31 Thread Joman Chu
I pointed this question at a friend and he got back to me with an answer. Turns out that broadcast got turned into a protected broadcast a few months ago. Check out this commit: https://github.com/android/platform_frameworks_base/commit/8f014059d3084fcce9e82b4b1f8b8323744ac52d On Thursday, Aug

Re: [android-developers] Buttons in ViewPager pages: Problem swiping/dragging pages when finger starts on top of Button. How can I fix this?

2012-10-31 Thread Streets Of Boston
Update: The weird 0x0010 value is the value of *VERY_WIDE*, which is assigned to the Layout's width if the *TextView*'s *mHorizontallyScrolling *field* *is set to *true*. Calling *setHorizontallyScrolling(false)* or setting the * android:scrollHorizontally="false"* attribute in your XML do

Re: [android-developers] Buttons in ViewPager pages: Problem swiping/dragging pages when finger starts on top of Button. How can I fix this?

2012-10-31 Thread Streets Of Boston
Thanks Piren! Your answer led me into the right direction. This was the problem: The *ViewPager *contains *TextViews *as (grand-grand...) children. Before it actually starts scrolling it asks if the touched child (or one of the child's children) could scroll horizontally. If one of them does,

Re: [android-developers] Empty EditText when turning screen on and Screen lock set to 'None'

2012-10-31 Thread pushbit
As a (hopefully) temporary fix, I have included the following line in onResume() and it appears to do the trick. Initially I tried to only run this when the IME isFullscreenMode(), but this returns false in onResume (after returning true in onPause()). I would guess that this is part of the r

Re: [android-developers] Are Layouts Reusable?

2012-10-31 Thread nEx.Software
You can have many instances of any type of View with the same id without restriction. The id is just an int field on a view, so that the view may be identified in code. Changes to one instance will not change the other instances, regardless of their container (Activity, Fragment, ViewGroup). To

[android-developers] SSLProtocolException on Droid RAZR MAXX HD using Android 4.0.4

2012-10-31 Thread John Lussmyer
I have a customer that is getting an SSLProtocolException in our app. There are thousands of other phones working just fine with this version of our code and server. ( 3416): javax.net.ssl.SSLProtocolException: Read error: ssl=0x10201e8: Failure in SSL library, usually a protocol error ( 341

[android-developers] Re: Where is the location of the OpenSL ES source code implementation for Android?

2012-10-31 Thread RichardC
Try in: {AOSP}\frameworks\native\opengl On Wednesday, October 31, 2012 7:58:53 PM UTC, RichardC wrote: > > Sorry but I have no idea. If you can't find the source it might be > because it is not available (it's a hardware driver and might be closed > source). Even if it was available it might

[android-developers] Re: Where is the location of the OpenSL ES source code implementation for Android?

2012-10-31 Thread RichardC
Sorry but I have no idea. If you can't find the source it might be because it is not available (it's a hardware driver and might be closed source). Even if it was available it might just be a stub on the the hardware implementation. On Wednesday, October 31, 2012 6:52:35 PM UTC, Marty wrote:

[android-developers] Re: Remote resources

2012-10-31 Thread bob
Maybe just have it connect to a web site and download http://www.example.com/resources.zip on the first run. Then unzip that to the SD card. I have seen GLU mobile do some stuff like this, and they are legit. On Wednesday, October 31, 2012 8:35:11 AM UTC-5, Fran wrote: > > Hi there, > >

[android-developers] Re: Where is the location of the OpenSL ES source code implementation for Android?

2012-10-31 Thread Marty
Thanks for the quick reply. I'm familiar where the source code is located and have downloaded the whole tree. What I can't find is the source code for OpenSL ES in that drop though. At best I found the header files but not the source implementation. Which of the groups in the second link would y

[android-developers] Re: GCM Stats in the developer console

2012-10-31 Thread John Coryat
More info: Once the project id is coded into the developer console, the statistics for GCM messages and registration show up in the developer console statistics section. The statistics seem to cover the period from when we started using GCM even though I just initialized the code. The statisti

[android-developers] Re: Where is the location of the OpenSL ES source code implementation for Android?

2012-10-31 Thread RichardC
AOSP is here: http://source.android.com/ AOSP groups are here: http://source.android.com/community/index.html On Wednesday, October 31, 2012 5:49:23 PM UTC, Marty wrote: > > Hi, we're working on a project where we are trying to make Android's > implementation of OpenSL ES compatible with our pla

Re: [android-developers] Are Layouts Reusable?

2012-10-31 Thread lbendlin
I would think that the view IDs are bound to the activity or fragment where they are inflated in. But the best thing for you is to actually try it out and see for yourself. On Tuesday, October 30, 2012 8:12:06 PM UTC-4, Mark Phillips wrote: > > Thanks for your response. > > What happens to the

Re: [android-developers] Re: Handler - Runnable Performance Issues at 40Hz

2012-10-31 Thread Kristopher Micinski
It's not an RTOS thing, it's more of a Java thread scheduler thing, so this happens closer to the framework level. kris On Wed, Oct 31, 2012 at 12:05 PM, marcpolo wrote: > I used java.util.Timer and TimerTask instead of the Runnable and this > resulted in much improved performance, allowing me t

[android-developers] Where is the location of the OpenSL ES source code implementation for Android?

2012-10-31 Thread Marty
Hi, we're working on a project where we are trying to make Android's implementation of OpenSL ES compatible with our platform and need access to the source code in order to help with the porting process. Can someone point us to where we can find the source code for OpenSL ES on Android? Any he

Re: [android-developers] Re: Remote resources

2012-10-31 Thread Francisco Marzoa
Hi, Well, after reading that whole document, I have found that using multiple apks have a lot more inconveniences in addition to managing multiple builds. In the same document they insist a lot on NOT using multiple apks if you can avoid it due these inconveniences. So in the end it does not

Re: [android-developers] Re: Remote resources

2012-10-31 Thread Francisco Marzoa
Hi, You are right. I thought this was just for breaking too big apks into smaller parts, but thats not the case. This solves a great percent of the problem, and although you still have the inconvenience of managing multiple builds, this may be the best approach anyway, having in account the

[android-developers] Re: Handler - Runnable Performance Issues at 40Hz

2012-10-31 Thread marcpolo
I used java.util.Timer and TimerTask instead of the Runnable and this resulted in much improved performance, allowing me to schedule the task at 40Hz (on average). As expected, given this is not a RTOS, the cycles vary +/-1-2ms, however I the the average cycle time is 25ms as desired. So, it

[android-developers] device name change

2012-10-31 Thread bob
Is there any way I can change the names of my devices here? I'm getting confused between my two Nexuses. -- You received this message because you are subscr

[android-developers] Re: Remote resources

2012-10-31 Thread Johan Appelgren
Have you looked at using Multiple APKs? http://developer.android.com/guide/google/play/publishing/multiple-apks.html Wont solve the overhead of managing multiple builds, but at least you wont "disperse social promotion". On Wednesday, October 31, 2012 2:35:11 PM UTC+1, Fran wrote: > > Hi there

[android-developers] Re: FaceBookSDK Problem

2012-10-31 Thread bob
Sounds like it is trying to do networking on the UI thread. On Wednesday, October 31, 2012 3:00:57 AM UTC-5, Abdul Rahman Majeed wrote: > > > > HI > i am using facebook sdk for facebook apps and here i have problem ; when i > use android 2.3 version it awesome but it sucks my code and said

[android-developers] Re: Handler - Runnable Performance Issues at 40Hz

2012-10-31 Thread bob
Why not just use post instead of postDelayed? That's what I use to update display of the battery level every 10 seconds: public class Battery_Level_Thread extends Thread { @Override public void run() { while (true) { MainActivity.handler.post(new Runnable() { @Override public void run() { Mai

Re: [android-developers] Drag and drop list items

2012-10-31 Thread TreKing
On Wed, Oct 31, 2012 at 8:41 AM, vani reddy wrote: > Please post some code snippets. Please review the documentation and use Google to find code snippets on your own. It's not that hard to find information if you put a little effort into it. -

Re: [android-developers] Open PDF file from assets

2012-10-31 Thread TreKing
On Wed, Oct 31, 2012 at 5:00 AM, Latimerius wrote: > FYI apparently you don't need any permissions to access another app's > assets. I was surprised too, but see here: > > > https://groups.google.com/forum/?fromgroups=#!searchin/android-developers/permission$20to$20access$20assets$2F$20directory

[android-developers] Drag and drop list items

2012-10-31 Thread vani reddy
HI friends, I am doing the drag annd drop of list view items., I checked the TouchedInterceptor.java but i dont know how to use it. Please post some code snippets. -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Remote resources

2012-10-31 Thread Francisco Marzoa
Hi there, I have a real problem when providing different resources for different displays, according to their density. Putting all the needed graphics on the same apk file makes it really big, and most of the graphics will not be used by the device where they are installed never. I have seen

[android-developers] GetRooster in xmmpConnection CLient with jabber

2012-10-31 Thread Rahul Kaushik
I am using XMPPConnection with jabber ,am able to connect with the server but connection.getRoster(); method is rturning null i.e no buddies :( Any suggestions or help would be greatfull Thanks RK -- You received this message because you are subscribed to the Google Groups "Android Developers

Re: [android-developers] gallery_widget

2012-10-31 Thread Dinesh kumar
use animation listener and relative layout you will get On Wed, Oct 31, 2012 at 4:34 PM, Parthi K wrote: > use image switcher > > > On Wed, Oct 31, 2012 at 10:54 AM, Sravanthi Dadu > wrote: > >> >> Hi.. Is there any way to create a widget having the images as shown >> in the above pict

Re: [android-developers] gallery_widget

2012-10-31 Thread Parthi K
use image switcher On Wed, Oct 31, 2012 at 10:54 AM, Sravanthi Dadu wrote: > > Hi.. Is there any way to create a widget having the images as shown in > the above picture and How to display the images in that as a slide show > within a minimum time interval one after the other? > > Thanks

[android-developers] GoogleAnalytics v2 and Proguard

2012-10-31 Thread mighter
I use Google Analytics V2 library in my project. When I export signed application package from Eclipse I get following output in Console: Proguard returned with error code 1. See console Warning: com.google.analytics.tracking.android.FutureApis: can't find referenced method 'boolean setRead

[android-developers] Re: How to improve image quality in Android Webkit (comparing with iOS)

2012-10-31 Thread Anthony Prieur
You might get better results trying to use the Javascript 'viewport'. Le mardi 30 octobre 2012 16:24:26 UTC+1, huberte a écrit : > > Trying to load http://www.sciences-physiques.eu/appli/oneimage/ both in > iOS and Android (SGS2). > > Image is 1600*2262 > > The result is a better image on iOS. I

Re: [android-developers] Open PDF file from assets

2012-10-31 Thread Latimerius
On Wed, Oct 31, 2012 at 2:21 AM, TreKing wrote: > As you said, reading PDFs is not a native feature and requires an external > app, which would not have permission to read the PDF from another app's > Assets folder. FYI apparently you don't need any permissions to access another app's assets. I

Re: [android-developers] Re: Advertising opt out

2012-10-31 Thread Francisco Marzoa
That's what others has said before, the problem is that they have not support that claim with ANY proof. You didn't neither, so... Best regards, On 10/31/2012 12:30 AM, Daniel wrote: Admob and others use the CTR when determining what bids to give your app, or to give any at all. If you have a

Re: [android-developers] FaceBookSDK Problem

2012-10-31 Thread Asheesh Arya
may be external jar creating problem!! check it wheather you import external jar in libs folder. -- 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 th

Re: [android-developers] FaceBookSDK Problem

2012-10-31 Thread Michael Banzon
Can you provide some more detailed debug information? Exception/LogCat? On Wed, Oct 31, 2012 at 8:57 AM, Abdul Rahman Majeed wrote: > > > HI > i am using facebook sdk for facebook apps and here i have problem ; when i > use android 2.3 version it awesome but it sucks my code and said > "unfortuna

[android-developers] FaceBookSDK Problem

2012-10-31 Thread Abdul Rahman Majeed
HI i am using facebook sdk for facebook apps and here i have problem ; when i use android 2.3 version it awesome but it sucks my code and said "unfortunately Stopped application" in 4.0.3, please help me... -- You received this message because you are subscribed to the Google Groups "Android Deve