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

2012-11-01 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 nikolay.elen...@gmail.comwrote: On Thu, Nov 1, 2012 at 2:21 PM, Kristopher

Re: [android-developers] Audio Play

2012-11-01 Thread TreKing
On Thu, Nov 1, 2012 at 12:23 AM, Sadhna Upadhyay sadhna.braah...@gmail.comwrote: 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

[android-developers] Update Gallery to load all images

2012-11-01 Thread shiva pendem
Hi i am opening Gallery as intent in my application after saving a image in the application here is the code to open the Gallery to intent Intent intent = new Intent(); intent.setType(image/*); intent.setAction(Intent.ACTION_GET_CONTENT);

[android-developers] Re: Audio Play

2012-11-01 Thread shiva pendem
Hi, Even i have faced the issue, The mail problem is that the instance which you press will compulsorily create two instances, They are MotionEvent.ACTION_DOWN and MotionEvent.ACTION_MOVE, So to over come this you add a condition as follows public boolean onTouch(View v, MotionEvent

[android-developers] Re: Barcode Scanner app

2012-11-01 Thread Karl Kristian Markman
You will find all you need here: http://code.google.com/p/zxing/ and here is integration explained http://stackoverflow.com/questions/2050263/using-zxing-to-create-an-android-barcode-scanning-app On Thursday, November 1, 2012 6:30:39 AM UTC+1, askl wrote: Thank you. Can you send me the

Re: [android-developers] Re: Barcode Scanner app

2012-11-01 Thread dEEPESH PPM
Please reffer this link: http://sourceforge.net/projects/zbar/files/AndroidSDK/ Deepesh On Thu, Nov 1, 2012 at 12:50 PM, Karl Kristian Markman karlkristian.mark...@gmail.com wrote: You will find all you need here: http://code.google.com/p/zxing/ and here is integration explained

[android-developers] how to set margin in Dialog

2012-11-01 Thread Dilip Kumar Chaudhary
I have used Dialog for display ad in my Andorid app.But I have to display this Dialog about 50dp top from buttom so i think we should set DialogGravity buttom and set its buttom margine 50dp.But i'm unable to use margin in Dialog.so please can suggest me how to solve this. I have posted this on

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

2012-11-01 Thread Piren
That is funny :-) Glad i could help. On Thursday, November 1, 2012 1:32:19 AM UTC+2, Streets Of Boston wrote: 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*.

Re: [android-developers] Re: Audio Play

2012-11-01 Thread Asheesh Arya
refer this link You can read the full Article Herehttp://clicks.aweber.com/y/ct/?l=4suhEm=3ggiV05UF5ctSL0b=qJm58qxICDVaIOScLTot0Q -- 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] Re: android.intent.action.HEADSET_PLUG Permission

2012-11-01 Thread Anton Kaiser
Can you tell us why you have to send one of those protected broadcast? I can't imagine any scenario. Maybe we will find other ways to achieve your goals. -- 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] Using Service without startService(), bindService()?

2012-11-01 Thread Kostya Vasilyev
Seems like it was just a way to reuse code which sometimes runs inside a proper service, and sometimes is called from an activity. -- K 2012/11/1 Kristopher Micinski krismicin...@gmail.com Ah, good.. I had simply assumed that was a commonish pattern I had never read about, but it makes

[android-developers] Using facebook android sdk from service

2012-11-01 Thread dmtrl...@gmail.com
My application has functionality that send some content on server and (need) post it on facebook. It uses service for sending (for store data I'm use sqlite). Is it possible to handle facebook sessions e.t.c from service? I need it because time when content will be stored in DB and sending

Re: [android-developers] Re: Remote resources

2012-11-01 Thread Francisco Marzoa
That's the approach I was talking about on my first message, but it's not so simple as downloading a file. You must also manage by yourself resource selection on localized apps, for example. And also resource changes among different app versions. It is not very difficult, but if there is

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

2012-11-01 Thread Carlos A. M. dos Santos
On Wed, Oct 31, 2012 at 3:09 AM, Jovish P android.f...@gmail.com wrote: When user clicks on a button i want to open the pdf file stored inside our application(ie which is inside Assets folder of our app). Open means , to view the pdf file using Intent. I don't have any problem in using third

[android-developers] Who calls the lifecycle handlers of Activity components?

2012-11-01 Thread Andrew
Dear friends, I do not know whether this group is a good place to ask this question. But I really wish to know who calls the onCreate()... lifecycle handlers of Activity components. By all means, an Android application is not a complete program: no entry (main) functions, loosely coupled event

[android-developers] Regarding Intents

2012-11-01 Thread krithika rajan
Hi im a newbee to android. im unable to understand android concept.i wnet through many sites but i couldnt understand could u please explain what is Intent,Intent Object and what is the use of Intents with clear example. thanks in advance -- You received this message because you are subscribed

[android-developers] Re: Who calls the lifecycle handlers of Activity components?

2012-11-01 Thread Streets Of Boston
Basically, the 'main' of your Java (DalvikVM) sets up a message-queue and a looper dispatching these messages on the 'main' (UI) thread. Actions by the user or external system events post messages on this queue which are then dispatched by the looper to the appropriate objects (managers,

Re: [android-developers] Are Layouts Reusable?

2012-11-01 Thread Mark Phillips
Thanks, that clears up my confusion. Mark On Wed, Oct 31, 2012 at 2:01 PM, nEx.Software email.nex.softw...@gmail.comwrote: 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.

[android-developers] Re: Regarding Intents

2012-11-01 Thread G. Blake Meike
Hey Krithika, There really are, already, hundreds of these examples out there. You really just need to look around for one. Marko Gargenta's book, Learning Android is slightly out of date, but it certainly explains this concept beautifully. The examples that come with the ADK illustrate the

[android-developers] Re: How does one use fragment dialogs inside compound controls?

2012-11-01 Thread Satya Komatineni
I couldn't find a reasonable way to solve this. So I did the following from the compound view private FragmentManager getFragmentManager() { Context c = getContext(); if (c instanceof Activity) { return ((Activity)c).getFragmentManager(); } throw new

[android-developers] broken breakpoint

2012-11-01 Thread bob
For some reason, when I put a breakpoint on this line: BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); it never gets triggered. Any ideas why? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] broken breakpoint

2012-11-01 Thread TreKing
On Thu, Nov 1, 2012 at 10:53 AM, bob b...@coolfone.comze.com wrote: For some reason, when I put a breakpoint on this line: BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); it never gets triggered. Any ideas why? You've provided no information about your problem

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

2012-11-01 Thread bob
You could always create a 'boot receiver' that deletes the file on next boot: receiver android:name=.Boot_Receiver intent-filter action android:name=android.intent.action.BOOT_COMPLETED /action /intent-filter /receiver

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

2012-11-01 Thread huberte
thanks Anthony, may I have a code example please ? Le mercredi 31 octobre 2012 06:39:24 UTC-4, Anthony Prieur a écrit : 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

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

2012-11-01 Thread Anthony Prieur
Sorry I've no example myself, you would find on the net. On Thu, Nov 1, 2012 at 8:35 PM, huberte svend.wal...@gmail.com wrote: thanks Anthony, may I have a code example please ? Le mercredi 31 octobre 2012 06:39:24 UTC-4, Anthony Prieur a écrit : You might get better results trying to use

[android-developers] Creating OpenGL shaders from an alternate class

2012-11-01 Thread Braindrool
Title pretty much says it all. This would be so much easier if I were to just use a single class for this. But I have been trying to take advantage of Java's class system. To the point I get the Error creating shader. package com.braindrool.game; import android.opengl.GLES20; public class

[android-developers] Re: Audio Play

2012-11-01 Thread bob
Be sure to use this approach: final Button button = (Button) findViewById(R.id.button_id); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Perform action on click } }); On Thursday,

[android-developers] Re: Creating OpenGL shaders from an alternate class

2012-11-01 Thread bob
Sounds like your vertex shader *asset* or fragment shader asset has an error in it. On Thursday, November 1, 2012 4:12:44 PM UTC-5, Braindrool wrote: Title pretty much says it all. This would be so much easier if I were to just use a single class for this. But I have been trying to take

[android-developers] Re: How to get data from Wamp server Database on spinner in android

2012-11-01 Thread bob
I reckon I would subclass View and create a Product_View class. Product_View would override the onDraw method and draw a product thumbnail next to its name. On Thursday, November 1, 2012 10:14:30 AM UTC-5, S Awan wrote: Hi, I have taken spinner and have database in Wamp Server.. I want

[android-developers] Re: Regarding Intents

2012-11-01 Thread bob
Intent intent = new Intent( Intent.ACTION_DIAL, Uri.parse( tel: 555-2368)); startActivity( intent); *Meier, Reto (2012-04-05). Professional Android 4 Application Development (Wrox Professional Guides) (Kindle Locations 4433-4434). John Wiley and Sons. Kindle Edition. * On Thursday, November

[android-developers] Re: Creating OpenGL shaders from an alternate class

2012-11-01 Thread Braindrool
Hmm, I just assumed that it was an API / syntax error. I'll return later. -- 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: can someone answer me a question about webkit android?

2012-11-01 Thread Zhang Jiejing
Hi Fang, I found same issue too. From kernel level, I found the cause of slow is in UPDATE_FRAME_CACHE_IF_LOADING WebViewCore.java called fsync in some place, maybe the sqlite operation in this function, in a slow storage, it maybe cause 3 - 5 seconds longer. Do you find way to remove this

[android-developers] In App Billing: making sense of errors in the logs.

2012-11-01 Thread Bram Stolk
Hi, I am integrating In App Billing, going by the Dungeons example from the SDK. android.test.purchased works for me, but when getting my own products, it fails. I try to make sense of the errors in the logs. There are so many to choose from. Some info on my setup: - I test with proper test

Re: [android-developers] Re: Audio Play

2012-11-01 Thread rahul B
Dear, Forward your code. Can help you out. On Fri, Nov 2, 2012 at 2:46 AM, bob b...@coolfone.comze.com wrote: Be sure to use this approach: final Button button = (Button) findViewById(R.id.button_id); button.setOnClickListener(new View.OnClickListener() { public

Re: [android-developers] single selection listveiw

2012-11-01 Thread rauf qureshi
Thanks for reply me but i did that by check box. following code i have used for that checkProfileItem is object of checkbox and it is declare in ViewHolder class. holder.checkProfileItem.setId(position); holder.checkProfileItem.setOnClickListener(new OnClickListener() {

[android-developers] Is the 'back' button still kosher?

2012-11-01 Thread Keith Wiley
My understanding is that modern Android best practice is to not use the system-level menu button or system-level options menu anymore since such buttons are frequently difficult to access or even absent on some devices. I have gutted all menu access from my app as a result (I admit, it is