[android-developers] java.io.FileNotFoundException: (Device or resource busy)

2013-08-11 Thread Rahul Kaushik
>From my webview ,i download the file in particular folder X at
mnt/sdcard/download/X i download the file ,after showing it to the user i
delete the files from folder X while doing this process for 1-2 time i get
the error

"*java.io.FileNotFoundException: (Device or resource busy)*"

Please suggest

Thanks

RK

-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] BlueTooth Low Energy quick question

2013-08-11 Thread darrinps
Anyone know what status 129 means? I can't seem to find much on it via 
Google.

I connect to a BLE device and it says it has services to discover (via 
using BluetoothGatt.discoverServices()). It then hits this method:

@Override
public void onServicesDiscovered(BluetoothGatt gatt, int status)
{
if (status == BluetoothGatt.GATT_SUCCESS)
{
broadcastUpdate(ACTION_GATT_SERVICES_DISCOVERED);
}
else
{
Log.w(TAG, "onServicesDiscovered received: " + status);
}
}

The log message gets written saying that the status is 129, but I have no 
idea what 129 is.

Any help is appreciated!

Thanks.


-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Focus problem with Option menu

2013-08-11 Thread TreKing
On Sun, Aug 11, 2013 at 12:00 PM, Daniele Renda wrote:

> Hi Treking,
> why do you say this?


Oh, sorry, I was thinking about the old-school menu that was hidden and
exposed via the Menu key. I guess you're going for the modern menu with an
item showing in the action bar, yes? In that case, you're fine. And I have
no idea what to suggest about your issue. Have you checked
b.android.comfor potential existing bugs? That's my first destination
when I experience
wonky behavior.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Need to show a dialog on top of all other Apps for a custom hardware.

2013-08-11 Thread Nobu Games
I played around with the Google Play Games Services SDK a bit and it looks 
like they also have such a kind of dialog that is able to be on top of 
everything else (and even survives activity transitions). It's the 
"welcome" log in message that pops up on top of the screen.

I'm not sure where the code for this popup resides. You may want to take a 
look at the SDK code, though I believe you may not be able find it there 
since it could be part of a system component (Play Services system app).

However, it seems to be possible to add a view to the window from within a 
service:

http://stackoverflow.com/questions/4481226/creating-a-system-overlay-always-on-top-button-in-android
and also
http://stackoverflow.com/questions/12650463/getting-window-display-from-service-android

The only problem is listening to onKeyDown from a service: 
http://stackoverflow.com/questions/3454710/onkeydown-in-a-service-global-hot-keys/3455094#3455094

I guess that would be the only thing where you need to implement your 
firmware customization in order to make that possible.

On Thursday, August 8, 2013 5:22:30 AM UTC-5, Tushar wrote:
>
> Hi,
>
> I need to show a dialog (more like a horizontal bar) on press of a custom 
> Key (on my custom device powered by Android).
> This dialog should appear on top of any other application(say "A") that 
> might be running when the Key is pressed. The app "A" should keep on 
> running and its UI should be visibile (i.e the app "A: should not go to 
> "onPause()"). It should work something similar to SystemUI's volume change 
> dialog when Volume Hard Keys are pressed.  I want to make minimum changes 
> in framework.  My understanding is that I need to make changes in 
> PhoneWindowManager.java to handle the press of custom Key, which will then 
> call my app residing in application layer, which will just inflate the 
> dialog. Would this work? If so, is there a better way to implement it? If 
> not, how can I implement 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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Focus problem with Option menu

2013-08-11 Thread Daniele Renda
Hi Treking,
why do you say this? From this link:
http://developer.android.com/guide/topics/ui/menus.html#options-menu I
read: "The options menu is where you should include actions and other
options that are relevant to the current activity context, such as
"Search," "Compose email," and "Settings."" and "To enable quick access to
important actions, you can promote a few items to appear in the action bar
by adding android:showAsAction="ifRoom" to the corresponding
elements (see figure 2).".
I'm developing for Android 4.2 so my option menu is in action bar.

Thanks for your clarification


2013/8/10 TreKing 

>
> On Sat, Aug 10, 2013 at 8:48 AM, drenda  wrote:
>
>> I need that option menu always visibile (there is only one icon).
>
>
> Then this UI element shouldn't be in the options menu. This is not what a
> menu is for. Create your option menu item as a button or something on the
> UI itself.
>
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
> --
> 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 more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/aBOb9bbgkbM/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Daniele Renda

-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Login with Google account in WebView

2013-08-11 Thread Nikolay Elenkov
On Sat, Aug 10, 2013 at 6:23 AM, saran vonteddu  wrote:

>
> Now I'm trying to load a WebView with the AlternateUrl and the page is
> loading but it is asking for Google credentials again. How to avoid the
> webview from asking Google Credential. Programmatically, how to login to
> Google account in webview without explicitly entering Google username and
> password. I want webview to pick account using either AccountManager or
> Google Play Service api.
>
> I referred below links, but not able to get it done what I needed.
>
> http://nelenkov.blogspot.in/2012/11/sso-using-account-manager.html
>

You are not saying what you tried and why it didn't work, so it's kind of
hard to guess what's going on. WebView won't pick an account for you
automatically, you have to do this programatically and then the load
the URL which contains the auth token into the WebView. All the info
you need is in the blog post, but basically you need to get an
'weblogin:' token for the service you are trying to use. For more details
see the Browser app source in AOSP.

-- 
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Need to show a dialog on top of all other Apps for a custom hardware.

2013-08-11 Thread Tushar
Martin,

Its for a custom hardware, which is not a mobile phone. The hardware is 
powered by Android and the use case mentioned is an essential requirement. 
It wont be an app on playstore as what your thinking. 

On Sunday, August 11, 2013 2:45:36 PM UTC+5:30, Martin Krischik wrote:
>
> Somehow that sounds evil to me. Care to tell me which app you are working 
> on to I *don't* install 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 from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Need to show a dialog on top of all other Apps for a custom hardware.

2013-08-11 Thread Martin Krischik
Somehow that sounds evil to me. Care to tell me which app you are working 
on to I *don't* install 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 from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.