[android-developers] Re: No Video but audio present when using MediaPlayer on the emulator

2012-01-18 Thread rperi...@yahoo.com
Okay I'm still stuck trying to figure out how to use the SD card filesystem on the emulator. I followed the instructions in the documentation and created a sd card image using mksdcard. However, I cannot figure out how to push the test.mp4 file on to the image. The documentation mentions mtools but

[android-developers] I'm starting my first real app questions and sound

2012-01-18 Thread Simon Jackson
So with an example loaded, what needs to be changed to make the icon and all identifying app text be renamed to "myapp"? I need to create audio samples (by algorithm) on the fly to play through the speaker, and need to prevent the screen from dimming and sleeping/locking while plugged in usb, i

Re: [android-developers] Android Screen lock

2012-01-18 Thread Mukesh Srivastav
Great. -Mukesh On Thu, Jan 19, 2012 at 12:39 PM, Chander mourya wrote: > Thanks a lot mukesh, i will try this for my app too. > > On 1/19/12, Mukesh Srivastav wrote: > > I have done this app. if user enters the wrong password, I am able to > send > > an SMS without user notification. > > > > Y

[android-developers] TTS not working

2012-01-18 Thread Prathamesh
Hi all, I am trying to implement Text-to-Speech feature. please refer http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TextToSpeechActivity.html While launching the application, its throwing exception please reply Thanks Prathamesh -- You received this

[android-developers] Re: Configuring global proxy from code

2012-01-18 Thread Arka Sharma
On Jan 9, 11:24 am, kris wrote: > You can set APN proxy using something similar to this. > >  public int InsertAPN(String name, String apn_addr) >     { >         int id = -1; >                 ContentResolver resolver = this.getContentResolver(); >         ContentValues values = new ContentValu

Re: [android-developers] Re: about keyEvent

2012-01-18 Thread 涂涛
thanks ,I solve it referencing the docs,the view must be set enabled and clickable,Thanks for your answer again. On Thu, Jan 19, 2012 at 2:47 PM, James wrote: > You've got the android sdk on hand? Look at the source code of the > sample game called "LunarLander" would help. > > On Jan 18, 3:42 p

Re: [android-developers] Android Screen lock

2012-01-18 Thread Chander mourya
Thanks a lot mukesh, i will try this for my app too. On 1/19/12, Mukesh Srivastav wrote: > I have done this app. if user enters the wrong password, I am able to send > an SMS without user notification. > > You will have to make use of DeviceAdminReceiver api/class. > > Regards, > Mukesh > > On Th

[android-developers] Re: about keyEvent

2012-01-18 Thread James
You've got the android sdk on hand? Look at the source code of the sample game called "LunarLander" would help. On Jan 18, 3:42 pm, 涛 涂 wrote: >   I am a new one to android,and I am trying to do a small game such as > Tetris,I use android graphics 2d api,I have a problem,I want to deal > with the

[android-developers] Shital Suryawanshi wants to chat

2012-01-18 Thread Shital Suryawanshi
--- Shital Suryawanshi wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-637231ab47-d1b9f2cd75-v1PSVpa_qW2u6AlyT-p_qyBfxc8 Yo

[android-developers] Re: How to measure activity load time

2012-01-18 Thread JP
I've used Traceview in the past. http://developer.android.com/guide/developing/debugging/debugging-tracing.html On Jan 18, 8:29 pm, PMS wrote: > I have an application. some activity/screens are taking more time to > load, > > So i am looking for a tool/ some solution to measure each screen/ > ac

Re: [android-developers] Android Screen lock

2012-01-18 Thread Mukesh Srivastav
I have done this app. if user enters the wrong password, I am able to send an SMS without user notification. You will have to make use of DeviceAdminReceiver api/class. Regards, Mukesh On Thu, Jan 19, 2012 at 10:26 AM, chander wrote: > hi all, > > I am making an application in which i have a s

Re: [android-developers] Re: Revoke permissions to access Google Accounts

2012-01-18 Thread Nikolay Elenkov
On Thu, Jan 19, 2012 at 2:07 PM, Kookamonga wrote: > Nikolay: > > Thanks for the explanation. While I was aware about the server/client > sides to AuthToken, I didn't know the specifics of how it worked on > the Android side... Very informative! Much appreciated. Also, I was > aware of that Google

[android-developers] Re: ImageView memory use versus displayed Bitmap size

2012-01-18 Thread Dusk Jockeys Android Apps
Thanks, Romain, much appreciated. On Jan 19, 1:35 am, Romain Guy wrote: > ImageView does not create a 100x100 Bitmap in this case, the memory > usage cost will be 50x50xbit depth of your original Bitmap. This > behavior is the same for View's background property. Note that > stretching Bitmaps at

[android-developers] Re: Revoke permissions to access Google Accounts

2012-01-18 Thread Kookamonga
Nikolay: Thanks for the explanation. While I was aware about the server/client sides to AuthToken, I didn't know the specifics of how it worked on the Android side... Very informative! Much appreciated. Also, I was aware of that Google website, but it didn't have the app that I granted permission

[android-developers] Android Screen lock

2012-01-18 Thread chander
hi all, I am making an application in which i have a scenario like if user enters a wrong passphrase or password more than specified no. of times then Phone should be locked. so what will be the best solution for doing this? I need your suggestions as well as some information regarding Screen loc

[android-developers] How to measure activity load time

2012-01-18 Thread PMS
I have an application. some activity/screens are taking more time to load, So i am looking for a tool/ some solution to measure each screen/ activity to measure load time and response time for any action in the screen like button click etc., -- You received this message because you are subscribe

[android-developers] Re: Application Object, Complex ArrayList's and memory?

2012-01-18 Thread Dancing Fingers
The XML file is 3 Mb, although the data is probably less. This runs a word prediction routine. May be I need to look at what I really need. I'll probably try reading the words as I need them and see how much that slows me down. Chris -- You received this message because you are subscribed to

Re: [android-developers] Re: Revoke permissions to access Google Accounts

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 9:40 PM, Kookamonga wrote: > Uninstalling the app is hardly a solution! > Sure it is! It solves the problem you posed! That's a solution, kinda by definition! > First, I'm not even sure if it will work (because I don't think this > permission to access one's Google Acco

Re: [android-developers] remove view event

2012-01-18 Thread Kristopher Micinski
That didn't really make any sense.. can you explain why this helps you reduce the code you write? kris On Wed, Jan 18, 2012 at 11:03 PM, satahippy wrote: > i am remove views in other parts of programm and i don't whant to rewrite > all this > > -- > You received this message because you are subs

Re: [android-developers] Re: Revoke permissions to access Google Accounts

2012-01-18 Thread Nikolay Elenkov
On Thu, Jan 19, 2012 at 12:40 PM, Kookamonga wrote: > > Oh well, still no satisfactory answer. (To tell you the truth, I don't > understand the "broadcast receiver" answer... ) You only get what you pay for :) There's two sides of the OAuth token story: server side and Android (AccountManager) s

Re: [android-developers] remove view event

2012-01-18 Thread satahippy
i am remove views in other parts of programm and i don't whant to rewrite all this -- 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, sen

Re: [android-developers] Re: Revoke permissions to access Google Accounts

2012-01-18 Thread Kristopher Micinski
Kookamonga, I'm sorry about that! I read that after considering your email, sorry I didn't see it sooner, I've responded to variants of that question a few times over the past month, so this is why I was thinking incorrectly in that mode :-). To your question, I believe the answer is much the sa

Re: [android-developers] Revoke permissions to access Google Accounts

2012-01-18 Thread Nikolay Elenkov
On Thu, Jan 19, 2012 at 11:56 AM, Kristopher Micinski wrote: > One of them is from my end, this is binary rewriting to retrofit apps > with enhanced security policies.. > > http://www.cs.umd.edu/~jfoster/papers/acplib.pdf > > another notable project is CRePE droid, which takes the platform based

[android-developers] Re: Revoke permissions to access Google Accounts

2012-01-18 Thread Kookamonga
Kris: re: your initial reply, I believe we're talking about different permissions. It sounds like you're referring to the permissions that a user must accept when first installing the app. I'm not talking about those. I'm talking about permission the user has to accept that allows the app access t

Re: [android-developers] remove view event

2012-01-18 Thread Kristopher Micinski
http://developer.android.com/reference/android/view/View.html#onDetachedFromWindow() But, the fact you want to do this might indicate that you are doing something somewhat strange, why do you need to use this? On Wed, Jan 18, 2012 at 10:22 PM, satahippy wrote: > remove from parent) > > -- > You

Re: [android-developers] remove view event

2012-01-18 Thread satahippy
remove from parent) -- 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 m

[android-developers] issues with opensource project AndroidGlobalTime

2012-01-18 Thread vijay katta
I'm using Android 4.0.3 , downloaded a open sorce project 'AndroidGlobalTime' , after importing code into my eclipse workbench it's showing error for two classes.. import android.opengl.Object3D; import android.pim.DateUtils; is these packages are available with any android version ? i found Obj

Re: [android-developers] Application Object, Complex ArrayList's and memory?

2012-01-18 Thread Kristopher Micinski
How big is big? Also, this design seems that it might indicate something in your app is simply incorrectly designed. I can't think of too many situations when this would pop up, and you can't do something better, so if you included what the use for these lists was... For example, you could put t

Re: [android-developers] Revoke permissions to access Google Accounts

2012-01-18 Thread Kristopher Micinski
One of them is from my end, this is binary rewriting to retrofit apps with enhanced security policies.. http://www.cs.umd.edu/~jfoster/papers/acplib.pdf another notable project is CRePE droid, which takes the platform based approach http://crepedroid.org/crepedroid.html Though as I said, these

[android-developers] How to decouple a fullscreen transparent Android View draw rate from Views beneath it

2012-01-18 Thread AndroBop
I have a GUI with two views: - A background 3rd party launcher application that is expensive to render (at full speed, it manages 10 fps). - A fullscreen transparent overlay that renders some foreground items (can manage 60fps) For example, see: http://stackoverflow.com/questions/6371432/

Re: [android-developers] Application Object, Complex ArrayList's and memory?

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 7:11 PM, Dancing Fingers wrote: > Three out of the 4 work fine but the forth won't work. > > Free advice is appreciated. > Free advice: when you tell a group of strangers unfamiliar with your problem that something "won't work", expanding on what that actually means usua

Re: [android-developers] eclipse tab ordering for export apk (adt plugin)

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 6:52 PM, greenlion89 wrote: > Can you fix the tab ordering when you are on the export screens for > an apk, i.e. the screens that show the key and password fields, the > tab ordering is messed up > http://tools.android.com/feedback ---

[android-developers] Re: Can't update browser bookmarks

2012-01-18 Thread James G
Anybody? Is this a bug in Android / Android Browser? On Jan 15, 10:32 pm, James G wrote: > I have come across an awkward issue, and I would very much appreciate > your help to find out what I am doing wrong. > > I have an app which among other things allows users to edit bookmarks > in the Androi

[android-developers] Re: Lots of "Cancelled by Google - Payment declined" from one person

2012-01-18 Thread Zsolt Vasvari
A double payment have only caught my eye a few times, but I think it's simply that the user bought the app under two seperate IDs. It's entrirely possible to have the same credit card linked to both. Maybe they have 2 devices where they want to use my app Never had a complaint from anybody.

Re: [android-developers] Revoke permissions to access Google Accounts

2012-01-18 Thread Nikolay Elenkov
On Thu, Jan 19, 2012 at 7:55 AM, Kristopher Micinski wrote: > There are a few active research projects that target this direction, > however I'm guessing that this is not what you are interested in :-). Could you please share those links? -- You received this message because you are subscribed

Re: [android-developers] Revoke permissions to access Google Accounts

2012-01-18 Thread Nikolay Elenkov
On Thu, Jan 19, 2012 at 9:42 AM, TreKing wrote: > On Wed, Jan 18, 2012 at 4:41 PM, Kookamonga wrote: >> >> how a *USER* would be able to revoke access he/she had granted to an app > > > Clear the app's data? Uninstall the app? Those are stored in a system DB, so clearing won't work. Uninstalling

[android-developers] Application Object, Complex ArrayList's and memory?

2012-01-18 Thread Dancing Fingers
Hi guys, My app uses 4 ArrayLists which I want to be accessible to all activities so I decided to load them into an Application object. Three out of the 4 work fine but the forth won't work. It's the largest Arraylist and it also happens to be a complex Arraylist of String, each Arraylist contains

[android-developers] eclipse tab ordering for export apk (adt plugin)

2012-01-18 Thread greenlion89
A minor issue, but an issue nevertheless: Can you fix the tab ordering when you are on the export screens for an apk, i.e. the screens that show the key and password fields, the tab ordering is messed up -- You received this message because you are subscribed to the Google Groups "Android Develo

Re: [android-developers] remove view event

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 5:37 PM, satahippy wrote: > can i set listener to removing view event? Removing from what? - TreKing - Chicago transit tr

Re: [android-developers] Revoke permissions to access Google Accounts

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 4:41 PM, Kookamonga wrote: > how a *USER* would be able to revoke access he/she had granted to an app > Clear the app's data? Uninstall the app? - TreKing

[android-developers] Re: finish on child activity is calling onDestroy on parent

2012-01-18 Thread Michael
Activity A is still getting killed off the stack forcing a full restart. ~Michael On Jan 18, 4:00 pm, Mark Murphy wrote: > Replace startActivityForResult() with startActivity(), and try it again. > > > > > > > > > > On Wed, Jan 18, 2012 at 6:54 PM, Michael wrote: > > Hi, > > > I have a Motorola

[android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-01-18 Thread Ed Burnette
Fps2D does not show any change when you turn on or off the setting on a GN. On Jan 16, 11:09 pm, Zsolt Vasvari wrote: > Holy macaroni > > What a thread. > > Let's take an anology: > > First vehicle: A bicycle. You can go reasonably fast with it by the > power of a single human. > Second vehic

Re: [android-developers] Re: Low Latency Audio is gettting worse not better

2012-01-18 Thread Anton Persson
Doug, the Case in point shows that hardware is not the issue... Using a STANDARD Linux audio engine (Pulse) showed 10 times improved latency figures on the Galaxy Nexus compared the default Android engine... This phone is not using cutting edge audio hardware! With those numbers doing what I want

[android-developers] Re: Intercept and update Javascript resource loading from webview

2012-01-18 Thread William
I dont know the answer but it is an interesting attempt. Did you figure it out yet? I bet digging deep into the webview, while ugly, would do it On Jan 13, 8:45 am, Ashutosh wrote: > Any idea guys?? > > On Jan 12, 12:11 pm, Ashutosh wrote: > > > > > > > > > Hi Guys, > > > I am stuck with a sit

Re: [android-developers] finish on child activity is calling onDestroy on parent

2012-01-18 Thread Mark Murphy
Replace startActivityForResult() with startActivity(), and try it again. On Wed, Jan 18, 2012 at 6:54 PM, Michael wrote: > Hi, > > I have a Motorola Xoom and a Sony S exhibiting this behavior. Both > running Android 3.2. > > I have Activity A and Activity B. Activity A handles UI, Activity B > ha

[android-developers] finish on child activity is calling onDestroy on parent

2012-01-18 Thread Michael
Hi, I have a Motorola Xoom and a Sony S exhibiting this behavior. Both running Android 3.2. I have Activity A and Activity B. Activity A handles UI, Activity B handles the Android MediaPlayer. Activity A launches Activity B with a startActivityForResult. I have a requirement to assume that the p

[android-developers] remove view event

2012-01-18 Thread satahippy
can i set listener to removing view event? -- 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...

[android-developers] Re: Detecting exit and open of an app with multiple activities

2012-01-18 Thread Streets Of Boston
I'm not sure if you can do that, but if your remote service, i.e. your server, needs authentication, consider using Http authentication. You'll send a token in the headers of your HTTP requests and handle non-authorized responses (HTTP Status=401) from your server appropriately. I.e. make your

[android-developers] Re: Detecting exit and open of an app with multiple activities

2012-01-18 Thread TonyD
Hi Mark, Thanks for the quick reply. I am implementing a sort of authentication where the user has to authenticate every time they reenter the app, but not if they are already in the app browsing around to different activities. You mention that each activity should be independent; however, I have

[android-developers] "Run" mode engages "debug" mode!

2012-01-18 Thread Keith Wiley
I have generally run in either "run" mode or "debug" mode depending on my needs, using the former if I want to see the app run considerably faster but still observe the logcat. All of a sudden, out of the blue, run mode starts in debug mode every time. I have to click the "detach" button to get i

Re: [android-developers] Revoke permissions to access Google Accounts

2012-01-18 Thread Kristopher Micinski
The short answer is: On stock android, as it stands today, this is impossible. Apps are written with the idea that the user will accept all the permissions for an app, permissions are not configuration options, or dynamically revokable. There are a few active research projects that target this d

[android-developers] Revoke permissions to access Google Accounts

2012-01-18 Thread Kookamonga
Sorry to resurrect an old thread, but there was never an answer to how a *USER* would be able to revoke access he/she had granted to an app: http://groups.google.com/group/android-developers/browse_thread/thread/80e559d0317b71c8/38ecbc20429fdc76?lnk=gst&q=revoke+permissions+to+access+google+auth+t

Re: [android-developers] Detecting exit and open of an app with multiple activities

2012-01-18 Thread Mark Murphy
You can use onUserLeaveHint() to detect when a user is leaving your activity in a way that might suggest they are leaving the whole app, but it doesn't cover everything (e.g., incoming phone calls). I know of no equivalent for the return path. More importantly, what you are proposing is a code sme

[android-developers] Detecting exit and open of an app with multiple activities

2012-01-18 Thread TonyD
Hi All, Is there a proper way to detect when someone leaves your application (hits the home button or opens a new application from the notifications bar ... basically the app leaves the foreground) or when someone enters your application (after hitting the home button). I have multiple activities

[android-developers] Trouble with banding, dithering

2012-01-18 Thread Anm
First, let me say I am very familiar with Romain Guy's article on banding and dithering from Dec 2010. I'm working with a 2.3 device with a 1080p frame buffer and 16bit / 565 color depth. The visual style involves many dark grey gradients (baked lighting effects, actually). I'm having significan

Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Kristopher Micinski
Ah, right... Thanks for the clarification, Mark! kris On Wed, Jan 18, 2012 at 2:23 PM, Mark Murphy wrote: > On Wed, Jan 18, 2012 at 1:26 PM, Kristopher Micinski > wrote: >> Right..., but you shouldn't spawn a new process for each onReceieve... > > It is eminently possible, perhaps even likely,

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Streets Of Boston
Ah... we've all been there. Any programmer/developer can relate to the situation that one missing silly semicolon messing up your code can be overlooked for a long time, followed by a big forehead-slapping. Anywhose, it's quite amazing what info you can get by just examining your

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread tatebn
Ok. I got it. And I feel a little bit stupid. I have multiple url schemes I'm using within the app to do things like send analytics, etc. One of those schemes is "finishedloading://", which tells me that the page is ready for me to inject javascript. In my shouldOverrideMethod, if (uri.getSchem

[android-developers] ANN: Itoa project lets you rebuild iOS applications for Android

2012-01-18 Thread Dmitry.Skiba
~~~ Well, that's the ultimate goal. Let's achieve it together -- contributors wanted! ~~~ Itoa is a cluster of open-source projects that implement compiler, build scripts and various libraries to allow building Android's apk from Objective-C source files. Two main features of Itoa are: 1. Ito

Re: [android-developers] About image

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 1:28 PM, Plabon Modak wrote: > I have a image of a map. I want to place other images(pin) in a specific > position(x and y) of that map image(Like google map).How to do this? Do the math required to translate from the map's space to the screen's space, then draw your pi

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Streets Of Boston
That looks good. Now enable the latch again (call await) and run your app. When your app hangs, debug it: Press 'pause' on your app that will suspend all your threads. Then open/expand the threads so you see each thread's stack-trace. One should be at the 'await' call. Look at other threads (es

Re: [android-developers] About image

2012-01-18 Thread Plabon Modak
I have a image of a map. I want to place other images(pin) in a specific position(x and y) of that map image(Like google map).How to do this? On Wed, Jan 18, 2012 at 1:54 PM, TreKing wrote: > On Wed, Jan 18, 2012 at 5:13 AM, Plabon Modak wrote: > >> Is that possible? > > > Yes. > > >> Please h

Re: [android-developers] Lots of "Cancelled by Google - Payment declined" from one person

2012-01-18 Thread John Coryat
I see one or two double payments a day. I scan for them and cancel the second one. I don't know if it's a problem with the user, Google Checkout or our app. It shouldn't be possible for the user to do a double payment from our app as the app blocks off the market option if they've already paid

Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Mark Murphy
On Wed, Jan 18, 2012 at 1:26 PM, Kristopher Micinski wrote: > Right..., but you shouldn't spawn a new process for each onReceieve... It is eminently possible, perhaps even likely, that each onReceive() will wind up in a separate process. If there are no other components running, Android will cons

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread tatebn
Nevermind. Looks like loadUrl() is being loaded in the main thread. And setValue() is being called in the WebViewCoreThread. On Jan 18, 2:12 pm, tatebn wrote: > The javascript is actually generated in the getJSValue method.  For > this test I'm using "2 + 2" as my expression.  So I don't think t

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread tatebn
The javascript is actually generated in the getJSValue method. For this test I'm using "2 + 2" as my expression. So I don't think the actual js is the issue. How do I tell which thread which method call is happening in? On Jan 18, 1:20 pm, Streets Of Boston wrote: > Very odd. > > The call to

Re: [android-developers] Lots of "Cancelled by Google - Payment declined" from one person

2012-01-18 Thread b0b
On Wednesday, 18 January 2012 16:30:21 UTC+1, John Coryat wrote: > > I've seen the multiple cancel lots of times. I've also seen many double > payments. > > Has anyone else seen double payments? Those are of greater concern to me > than cancels. > > -John Coryat > Never seen double payments.

[android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Glen Cook
There are parts of the application that are created prior to Application.onCreate being called: notably ContentProviders The Application.onCreate documentation was changed recently: From: "Called when the application is starting, before any other application objects have been created." To: "Call

[android-developers] Re: Low Latency Audio is gettting worse not better

2012-01-18 Thread b0b
Since there has not been much progress in this area for years, I wouldn't expect it to change anytime soon. Which is sad because iOS destroys Android in this domain hands down. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to thi

[android-developers] Re: How to achieve google voice search UI?

2012-01-18 Thread cindy
How to draw progress-circle and wave int the same place? What layout should I use? Thanks! Cindy On Jan 17, 11:19 pm, Matthew Patience wrote: > While this waveform you referenced in particular is closed source > since it is a Google application, there are plenty of ways to show a > waveform for

Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Kristopher Micinski
Right..., but you shouldn't spawn a new process for each onReceieve... kris On Wed, Jan 18, 2012 at 1:21 PM, Streets Of Boston wrote: > Your Application.onCreate is called only once for each process it runs in. > (if you have multiple processes for your app, the Application.onCreate is > called

Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Streets Of Boston
Your Application.onCreate is called only once for each process it runs in. (if you have multiple processes for your app, the Application.onCreate is called multiple times, but still only once per process). -- You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Streets Of Boston
Very odd. The call to loadUrl should just post a message with the Url on the WebViewCore which, in its turn, will run this url (javascript) on its own thread-pool. I would examine your JavaScript as well. Maybe it does something that needs to be run on the same thread on which you call loadUrl

Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Kristopher Micinski
True, do you want to put a log in your Application onCreate and dump us the logs to see what's going on? I don't know the behavior in the broadcast receiver case, but I would think that your App.onCreate should only end up getting called once, not on every onReceive, though I will have to look at

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread tatebn
Thanks, but I have the javascript to java binding working. My issue is that I need to wait and return the value set via that binding from javascript. But it seems that the loadUrl() method in the web view isn't using it's own thread. So any waiting I'm doing stops the javascript from executing.

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread tatebn
Nevermind that. Misread the log. The latch.await times out every time. But the javascript is not evaluated until after the timeout. On Jan 18, 12:21 pm, Streets Of Boston wrote: > It's from a separate class (runJS does something like > mWebView.loadUrl(javaScriptUrl);) > > In my sample code, t

[android-developers] Re: Low Latency Audio is gettting worse not better

2012-01-18 Thread Brad Justice
No one is expecting to run Pro Tools on existing Android devices; however there are pro audio applications that can be addressed. I am not sure why you believe that new hardware would need to be commissioned. In regards to audio I/O, much is being done today using USB audio devices. As far as proce

Re: [android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Daniel Drozdzewski
It should read that you can bind your Java code so it is accessible from JavaScript. Obviously the biding is defined within your Java code, and JavaScript assumes existence of said binding. Reading through the example should clarify... On 18 January 2012 17:41, Daniel Drozdzewski wrote: > You

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread tatebn
My getJSValue() is run on the main thread as well. As far as the latch.await goes, If I run webView.loadUrl() in an asyncTask I get the full time out (10 seconds for testing). If I just run webView.loadUrl() in the current task, there is no time out. The latch.await call instantly comes back, but

Re: [android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Daniel Drozdzewski
You can bind Java code from within your JavaScript by calling *WebView.addJavascriptInterface()*. In other words you could call one method within Java object of your choosing, when user selects A in UI or different method of different object, when user interacts with UI differently. JavaDocs are p

Re: [android-developers] ImageView memory use versus displayed Bitmap size

2012-01-18 Thread Romain Guy
ImageView does not create a 100x100 Bitmap in this case, the memory usage cost will be 50x50xbit depth of your original Bitmap. This behavior is the same for View's background property. Note that stretching Bitmaps at runtime is very expensive when hardware acceleration is off. On Wed, Jan 18, 201

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Streets Of Boston
It's from a separate class (runJS does something like mWebView.loadUrl(javaScriptUrl);) In my sample code, the *run *and *runJS *are usually executed on the main UI thread (that's why there the *await *call has a (short) timeout). The WebView's JavaScript execution's callback to Java (setValue

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread tatebn
I've tried executing the javascript in an async task, which I thought would fix any threading issues. But I get the same issue. How do you have your threads specified when you run yours? Are you running this from a WebView subclass or from a separate class for you javascript interface? I've tri

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread tatebn
I need to put up a context menu in the app when the user selects text in the WebView. The options in that context menu depend on yes or no answers I pull from javascript. The content is local content that is set up to deliver these answers. if(webView.needsOption1()) // Add option1 to conte

[android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Streets Of Boston
That would be very odd. I've not seen this. Your Application's onCreate should have been called before anything else of your app is being called. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Streets Of Boston
... we use it successfully all over the place. For some reason, it seems that the stack-frame of your call to loadUrl in your code needs to finish before the javascript in 'code' is actually executed. The call to 'loadUrl' should cause the javascript to be executed on a separate thread

[android-developers] Amazon hasn't payed me yet for November, paid by paper check "accidentally" instead of EFT, but I haven't received it yet. Anyone else?

2012-01-18 Thread niko20
I am still getting the run around by them, keep sending emails and they respond saying a certain individual is going to get back to me but they still never have. I originally got an email from Amazon stating that my November payout was sent to me as a check rather then electronically (which is how

Re: [android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Daniel Drozdzewski
Why does your JS has to be synchronous? Simply within JS make of your page a throbber and only swap it back to its actual content as a last statement in the JS function that you want to process. On 18 January 2012 16:24, tatebn wrote: > I'm getting the same issue using the CountDownLatch.  Th

[android-developers] Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread alex
In my Android app, I have subclassed Application and have overridden onCreate(). My onCreate() does a few quick things, including reading values from shared prefs and reading information from the manifest, then storing them in static members of my application subclass. When my broadcast receivers

[android-developers] Starting Activites and calling functions in parent from popup?

2012-01-18 Thread Boozel
Hi I have a popup that i am using as a menu so from that popup i need to start an activity and call a function in my main activity that created the popup. When i try start an activity i get android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requir

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread tatebn
I'm getting the same issue using the CountDownLatch. The WebView can't load the url because of the lock. On Jan 18, 11:01 am, Streets Of Boston wrote: > We use a countdown latch instead: > > String returnValue; > private CountDownLatch latch = null; > > public String run(String javaScript, int

[android-developers] MediaController with MediaPlayer

2012-01-18 Thread Giuseppe
I would like to show the mediacontroller for all the playing time of mediaplayer, please how to do it? -- 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 unsubscrib

[android-developers] Re: can I change the images after some minutes period

2012-01-18 Thread JackN
did you invalidate your view after changing the image? On Jan 18, 4:01 am, mark2011 wrote: > Dear All : > >    I want to display some images during a period of time. I use sleep > to delay the time & want to change another image. But It always > displays the last image. Is there anyone can help m

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Streets Of Boston
We use a countdown latch instead: String returnValue; private CountDownLatch latch = null; public String run(String javaScript, int waitInMilliSecs) { latch = new CountDownLatch(1); runJS(javaScript); // this method just runs the given javascript in the WebView. try { latch.await(waitInMilliSecs

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Streets Of Boston
We use a countdown latch instead: private CountDownLatch latch = null; public void run(String javaScript, int waitInMilliSecs) { latch = new CountDownLatch(1); runJS(javaScript); // this method just runs the given javascript in the WebView. try { latch.await(waitInMilliSecs, TimeUnit.MILLISECOND

Re: [android-developers] Lots of "Cancelled by Google - Payment declined" from one person

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 9:30 AM, John Coryat wrote: > Has anyone else seen double payments? Yup, I've seen that quite a few times. I'm not complaining >:) And no one has ever emailed me about it ... ---

[android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread tatebn
WebView doesn't evaluate the JavaScript synchronously. I need an immediate return not a call to a separate interface method. The only method I've found of anyone evaluating javascript synchronously is using this semaphore method, but I can't get the javascript to continue evaluating when the sema

Re: [android-developers] Re: Problem evaluating javascript with a semaphore lock

2012-01-18 Thread Daniel Drozdzewski
Why can't you just let webview evaluate the JavaScript? On 18 January 2012 15:18, tatebn wrote: > I need the semaphore to hold there so that the return doesn't happen > until the value is sent back from javascript.  How do I get the web > view to continue evaluating the javascript in the bac

Re: [android-developers] Lots of "Cancelled by Google - Payment declined" from one person

2012-01-18 Thread John Coryat
I've seen the multiple cancel lots of times. I've also seen many double payments. Has anyone else seen double payments? Those are of greater concern to me than cancels. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

Re: [android-developers] again: App Engine connected *Android* project: someone please help me understand this code

2012-01-18 Thread Nikolay Elenkov
On Wed, Jan 18, 2012 at 11:11 PM, John Goche wrote: > > > On Wed, Jan 18, 2012 at 2:21 AM, Nikolay Elenkov > wrote: >> >> On Wed, Jan 18, 2012 at 7:00 AM, John Goche >> wrote: > >> We generate the cookie from the token somehow. >> > >> The particular algorithm depends on what authentication mec

  1   2   >