[android-developers] How to support Single Listener And Multiple Date-picker Dialog

2012-01-18 Thread Mohit sharma
Hi , I have 4 DatePicker Dialog in my Activity Class which are shown on click of 4 buttons . Now for these datePickerDialog i want to use same listener . DatePickerDialog taxPickerDialog = new DatePickerDialog(getCurrentContext(),dateSetListener,calendar.get(Calendar.YEAR),

[android-developers] Re: How to support Single Listener And Multiple Date-picker Dialog

2012-01-18 Thread skink
Mohit sharma wrote: Hi , I have 4 DatePicker Dialog in my Activity Class which are shown on click of 4 buttons . Now for these datePickerDialog i want to use same listener . DatePickerDialog taxPickerDialog = new

Re: [android-developers] How to support Single Listener And Multiple Date-picker Dialog

2012-01-18 Thread Manoj Bawane
Hi mohit, I am new in android can you give me some guideline about android. I want to create an application which takes backup of phone details.. plz give mi some hints how can I achieve this On Wed, Jan 18, 2012 at 12:18 AM, Mohit sharma mohit7...@gmail.com wrote: Hi , I have 4

[android-developers] Re: Power harvesting in Accessory mode

2012-01-18 Thread Alex O.
Daniel, Pankaj, Thank you both for your answers. Yes, it seems that we will have to stick to using the USB Host on the Android device. It seems there are a couple of phones supporting USB Host as well (Samsung Galaxy S2 and HTC Desire HD). Maybe more will come out. If they have Android 4.0 they

[android-developers] APK info

2012-01-18 Thread Peeyush Varshney
Dear all, How can we know the total number of library(static, dynamic etc ) included in am particular .apk file. -- Thank Regards Peeyush Varshney -- 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: How to get pressed Unicode characters

2012-01-18 Thread Felipe Monteiro de Carvalho
Answering my own question: I had to change the architecture of my key events to implement a BaseInputConnection and then I still had the problem of when long pressing a key I would get a char which should be deleted after selecting the final value, and I fixed this issue with this commit:

[android-developers] How does Chronometer work??

2012-01-18 Thread rachana govilkar
Hello All, Using MediaRecorder I could capture Video.But I want to show timer to the user exactly same as it shown in built-in Camera app. So i implemented Chronometer logic private Chronometer chrono; chrono = (Chronometer)findViewById(R.id.chronometer1);

[android-developers] About image

2012-01-18 Thread Plabon Modak
Hi all, 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). Is that possible? Please help.. Thanks Plabon Modakj -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Crash when opening Option Menu

2012-01-18 Thread ravi ranjan
this code is giving horizontal menu in bottom of screen in 2.2, but same is giving vertical menu in 4.0. how to get same display in 4.0 On Dec 20 2011, 8:18 pm, Warlock michal.havry...@gmail.com wrote: I have ordinary activity with OptionMenu, which I created by this code: @Override public

[android-developers] Re: How does Chronometer work??

2012-01-18 Thread skink
rachana govilkar wrote: Hello All, Using MediaRecorder I could capture Video.But I want to show timer to the user exactly same as it shown in built-in Camera app. So i implemented Chronometer logic private Chronometer chrono; chrono = (Chronometer)findViewById(R.id.chronometer1);

[android-developers] Re : onclick button

2012-01-18 Thread vivek elangovan
Hi members, i want to develop an application where list of images are in display and on clicking the image the image i want to display the details of the corresponding image.I tried some and when i created one application and installed but application crashes, Is there any

Re: [android-developers] Re : onclick button

2012-01-18 Thread Ratheesh Valamchuzhy
while clicking one image , start a new activity and pass the image to that activity and display the image on that activity..include the activity name in manifest also... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

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

2012-01-18 Thread Mark Murphy
On Wed, Jan 18, 2012 at 2:45 AM, rperi...@yahoo.com rperi...@yahoo.com wrote: Thanks again for the reply. I actually subscribed to your books - they are well written. Thanks! I downloaded the video sample and tried to run it but the screen remains blank. However I suspect it is becuase it

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

2012-01-18 Thread mark2011
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 me? Thanks. BR, Mark -- You received this message because you are subscribed to the Google Groups

[android-developers] Re:Hello

2012-01-18 Thread Tim Panton
Hello I have Order china 6 Products Apple iPhone 4S 64GB - Black this website: www.Geouo0.com I've received the item today I believe you will find what you want there and have an good experience on shopping from them. Regards! -- You received this message because you are subscribed to the Google

[android-developers] autostart of application on restart of device

2012-01-18 Thread Narendra Bagade
Hi all, How to auto start application on device start up. -- Regards, Narendra . -- 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

Re: [android-developers] Re : onclick button

2012-01-18 Thread unicus unicus
Vivek, Pls. share you log-cat. -- More info, http://androidbasic-answer.blogspot.com/ On Wed, Jan 18, 2012 at 5:04 PM, Ratheesh Valamchuzhy android...@gmail.comwrote: while clicking one image , start a new activity and pass the image to that activity and display the image on that

Re: [android-developers] autostart of application on restart of device

2012-01-18 Thread unicus unicus
Hi Narendra, Please check the link for you question. http://androidbasic-answer.blogspot.com/2012/01/broadcast-receiver-launch-application.html -- More info, http://androidbasic-answer.blogspot.com/ On Wed, Jan 18, 2012 at 5:55 PM, Narendra Bagade bagadenaren...@gmail.comwrote: Hi all,

Re: [android-developers] remove logs after market

2012-01-18 Thread unicus unicus
Create static method which will print log and before release of application just comment that method. -- More info, http://androidbasic-answer.blogspot.com/ On Tue, Jan 17, 2012 at 11:41 PM, TreKing treking...@gmail.com wrote: On Tue, Jan 17, 2012 at 6:29 AM, bo

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

2012-01-18 Thread skink
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 me? Thanks. BR, Mark use

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

2012-01-18 Thread Dusk Jockeys Android Apps
This is a a backend SDK framework question. Say I have an ImageView that is set to, say, 100*100px, and I set it to show a 50 * 50px Bitmap which I have first loaded, so that it stretches the bitmap to fit its larger size. (Note I mean px rather than dip, I am trying to keep things simple to

Re: [android-developers] About image

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 5:13 AM, Plabon Modak plabonmo...@gmail.com wrote: Is that possible? Yes. Please help.. With what? - TreKing

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

2012-01-18 Thread TreKing
On Tue, Jan 17, 2012 at 11:55 PM, Peter Webb r.peter.w...@gmail.com wrote: Three days ago, I had 4 Cancelled by Google - Payment declined messages generated by a single person. I got 4 of those on the 13th by one person. On the 14th it went through. Checkout bug perhaps?

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

2012-01-18 Thread Kostya Vasilyev
I've also been getting a fair number of these over the last three weeks. Is it Market 3.4.4, the Checkout / Wallet merge, is it something else like a blown out router? Those who know won't tell, and those who tell (support) don't know. Interestingly enough, these errors used to trigger a cancel

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

2012-01-18 Thread John Goche
On Wed, Jan 18, 2012 at 2:21 AM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Wed, Jan 18, 2012 at 7:00 AM, John Goche johngoch...@googlemail.com wrote: In AccountsActivity.java we have methods getAuthToken() and getAuthCookie(). Basically the AccountManager takes care of storing

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

2012-01-18 Thread Kostya Vasilyev
Almost forgot... I love it how, when this happens, the customer gets an email saying that the order was cancelled by the seller (developer). Then I get emails asking Why did you cancel my order?. That's priceless. 18 января 2012 г. 9:55 пользователь Peter Webb r.peter.w...@gmail.comнаписал:

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

2012-01-18 Thread tatebn
I'm trying to evaluate javascript with a semaphore lock. I need to query some web content about which context menus to show and need it to be synchronous. When I try to acquire the semaphore the thread locks without the javascript being evaluated and my javascript interface method being called.

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

2012-01-18 Thread tatebn
By the way, this code is located in a subclassed WebView. On Jan 18, 9:53 am, tatebn brandonnt...@gmail.com wrote: I'm trying to evaluate javascript with a semaphore lock.  I need to query some web content about which context menus to show and need it to be synchronous.  When I try to acquire

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

2012-01-18 Thread Daniel Drozdzewski
Your semaphore allows ZERO passes through, in which case you have to release first. Either change the parameter to Semaphore constructor or release before calling Semaphore.acquire() Daniel On 18 January 2012 15:00, tatebn brandonnt...@gmail.com wrote: By the way, this code is located in a

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

2012-01-18 Thread tatebn
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 background? On Jan 18, 10:05 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Your semaphore

[android-developers] Play url in MediaPlayer with cookie

2012-01-18 Thread Sito-ito
Hello I have a server where my application login and give me a cookie, after i want to reproduce a url with mediaplayer but i need insert the cookie in the call it´s possible? how? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

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 johngoch...@googlemail.com wrote: On Wed, Jan 18, 2012 at 2:21 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Jan 18, 2012 at 7:00 AM, John Goche johngoch...@googlemail.com wrote: We generate the cookie from the token somehow.

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

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 brandonnt...@gmail.com 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

[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

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 cor...@gmail.com 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 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,

[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 {

[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 androidmark2...@gmail.com 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

[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 unsubscribe

[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 flyingdutc...@gmail.com wrote: We use a countdown latch instead: String returnValue; private CountDownLatch latch = null; public String

[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

[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

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 body 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 brandonnt...@gmail.com wrote: I'm getting the same issue

[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

[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] 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-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

[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

[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

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,

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

[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,

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

[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

[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 flyingdutc...@gmail.com wrote: It's from a separate class (runJS does something like mWebView.loadUrl(javaScriptUrl);)

[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.

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 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

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

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 flyingdutc...@gmail.com wrote: Your Application.onCreate is called only once for each process it runs in. (if you have multiple processes for your app, the

[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 m...@mobicartel.com wrote: While this waveform you referenced in particular is closed source since it is a Google application, there are plenty of ways to

[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 this

[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: Called

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. Up to

[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 flyingdutc...@gmail.com wrote: Very

[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 brandonnt...@gmail.com wrote: The javascript is actually generated in the getJSValue method.  For this test I'm using 2 + 2 as my expression.  

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 krismicin...@gmail.com 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

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] 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 treking...@gmail.com wrote: On Wed, Jan 18, 2012 at 5:13 AM, Plabon Modak plabonmo...@gmail.comwrote: Is

[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

Re: [android-developers] About image

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 1:28 PM, Plabon Modak plabonmo...@gmail.com 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

[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.

[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

[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

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 mmur...@commonsware.com wrote: On Wed, Jan 18, 2012 at 1:26 PM, Kristopher Micinski krismicin...@gmail.com wrote: Right..., but you shouldn't spawn a new process for each onReceieve... It is

[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

[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

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

[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:

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

[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 it

[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] 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] 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] 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

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 michaeldh...@gmail.com 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

[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 ashuwon...@gmail.com wrote: Any idea guys?? On Jan 12, 12:11 pm, Ashutosh ashuwon...@gmail.com wrote: Hi

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: 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 zvasv...@gmail.com 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.

[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 mmur...@commonsware.com wrote: Replace startActivityForResult() with startActivity(), and try it again. On Wed, Jan 18, 2012 at 6:54 PM, Michael michaeldh...@gmail.com

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

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 4:41 PM, Kookamonga site...@yahoo.ca 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

Re: [android-developers] remove view event

2012-01-18 Thread TreKing
On Wed, Jan 18, 2012 at 5:37 PM, satahippy satahi...@gmail.com wrote: can i set listener to removing view event? Removing from what? - TreKing http://sites.google.com/site/rezmobileapps/treking -

[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

[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

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 treking...@gmail.com wrote: On Wed, Jan 18, 2012 at 4:41 PM, Kookamonga site...@yahoo.ca 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

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 krismicin...@gmail.com 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

[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.

[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 jkg...@googlemail.com 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

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 przemek...@gmail.com 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

  1   2   >