[android-developers] Fatal signal 11 (SIGSEGV) at 0x00000008 (code=1), thread 4079 (Thread-567)

2014-04-08 Thread Surabhi Jain
Hi all,

I am creating a blue tooth app.
When socket connection get close at that time I am getting Fatal Exception.

How can I handle Fatal Exception ?
Please help me.

-- 
Thanks  Regards
Surabhi Jain

-- 
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/d/optout.


[android-developers] start or update application from service

2014-04-08 Thread Jia Li
In my app, I need to receive push notification and open the application to 
do things. I have managed to register with the GCM and received message 
with IntentService.

I want to know how to do the things below from the IntentService.

1. How to detect if the application is in foreground, background or not 
running?
2. How to find out the top activity if the app is running (either 
foreground or background)
3. If it is not running, how to launch it.
4. If it is running in background, how to bring it to foreground


Please help. 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/d/optout.


[android-developers] com.samsung.* Android permissions (OEM and proprietary non-android.permission.* permissions)

2014-04-08 Thread smoogli
Hi,
which Samsung  permissions (or other OEM and proprietary - non 
android.permission.* permissions) are built-in and available today on 
Android phones? 
e.g., any such permissions for using Samsung KNOX?
and where\how is it possible to get information on them, either online or 
on-device? 


For example, Samsung Gear Android watch has proprietary Samsung permissions:
1. com.samsung.WATCH_APP_TYPE.Standalone
2. com.samsung.WATCH_APP_TYPE.Linkage_Slave
3. com.samsung.WATCH_APP_TYPE.Integral
These are probably added as built-in permissions into the usual Android 
permission mechanism.

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/d/optout.


[android-developers] Creating public files

2014-04-08 Thread info.sktechnol...@gmail.com
I have been away from developing for a while and have lost track of the 
changes that have been made in file access rules.
It used to be that the WRITE_EXTERNAL_STORAGE permission gave full access 
to create public files.
When my Note 3 was updated to KitKat my app lost the ability to write to 
the external SD card.

My app regularly creates or modifies files to the external storage device. 
 I want these to be public, that is any app can get to them and I can 
modify them when I connect the phone to the computer using USB.

Is there a good reference to describe the new access rules and how I can 
accomplish this?

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/d/optout.


Re: [android-developers] Creating public files

2014-04-08 Thread Enrique López Mañas
The best reference is probably the Android Developers section about the
storage options.

http://developer.android.com/guide/topics/data/data-storage.html


2014-04-08 12:41 GMT+02:00 info.sktechnol...@gmail.com 
info.sktechnol...@gmail.com:

 I have been away from developing for a while and have lost track of the
 changes that have been made in file access rules.
 It used to be that the WRITE_EXTERNAL_STORAGE permission gave full access
 to create public files.
 When my Note 3 was updated to KitKat my app lost the ability to write to
 the external SD card.

 My app regularly creates or modifies files to the external storage device.
  I want these to be public, that is any app can get to them and I can
 modify them when I connect the phone to the computer using USB.

 Is there a good reference to describe the new access rules and how I can
 accomplish this?

 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/d/optout.




-- 
Enrique López Mañas

*Twitter:* http://twitter.com/eenriquelopez
*Google+:* http://goo.gl/1PLi2a
*Phone:* +34 655 155 199(ES)
+49 157 84281461 (DE)
*Site:* http://www.lopez-manas.com

-- 
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/d/optout.


Re: [android-developers] Creating public files

2014-04-08 Thread Kostya Vasilyev
This is a nice unofficial write-up:

http://www.androidpolice.com/2014/02/17/external-blues-google-has-brought-big-changes-to-sd-cards-in-kitkat-and-even-samsung-may-be-implementing-them/

-- K


On Tuesday, April 8, 2014 2:46:47 PM UTC+4, Enrique López Mañas wrote:

 The best reference is probably the Android Developers section about the 
 storage options.

 http://developer.android.com/guide/topics/data/data-storage.html


 2014-04-08 12:41 GMT+02:00 info.skt...@gmail.com javascript: 
 info.skt...@gmail.com javascript::

 I have been away from developing for a while and have lost track of the 
 changes that have been made in file access rules.
 It used to be that the WRITE_EXTERNAL_STORAGE permission gave full access 
 to create public files.
 When my Note 3 was updated to KitKat my app lost the ability to write to 
 the external SD card.

 My app regularly creates or modifies files to the external storage 
 device.  I want these to be public, that is any app can get to them and I 
 can modify them when I connect the phone to the computer using USB.

 Is there a good reference to describe the new access rules and how I can 
 accomplish this?

 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/d/optout.




 -- 
 Enrique López Mañas

 *Twitter:* http://twitter.com/eenriquelopez
 *Google+:* http://goo.gl/1PLi2a
 *Phone:* +34 655 155 199(ES)
 +49 157 84281461 (DE)
 *Site:* http://www.lopez-manas.com
  

-- 
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/d/optout.


Re: [android-developers] com.samsung.* Android permissions (OEM and proprietary non-android.permission.* permissions)

2014-04-08 Thread Nikolay Elenkov
On Tue, Apr 8, 2014 at 7:01 PM, smoogli roy.ben.ha...@gmail.com wrote:
 Hi,
 which Samsung  permissions (or other OEM and proprietary - non
 android.permission.* permissions) are built-in and available today on
 Android phones?
 e.g., any such permissions for using Samsung KNOX?
 and where\how is it possible to get information on them, either online or
 on-device?


You can list available permissions with the pm command:

$ adb shell pm list permissions -f

This won't tell you which permissions are 'built-in', but you will give
you the defining package for each permission. To get permission
defined by the framework pull the /system/framework/framework-res.apk
(there might more than one on some devices) and unpack with something
like apktool. Then check the AndroidManifest.xml file inside.

-- 
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/d/optout.


[android-developers] Strange behavior of wifi state intents when background scanning is enabled.

2014-04-08 Thread Sebouh
When scanning always available is enabled in Android settings, enabling 
airplane mode causes wifi disabled to be broadcast. When airplane mode is 
disabled again, wifi enabled doesn't get broadcast, even though (I'm 
pretty sure) background wifi gets enabled again. Why is this? It should 
either send both broadcasts or none of them.

Thanks in advance.
Sebouh

-- 
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/d/optout.


Re: [android-developers] start or update application from service

2014-04-08 Thread TreKing
On Tue, Apr 8, 2014 at 4:21 AM, Jia Li jarlym...@gmail.com wrote:

 1. How to detect if the application is in foreground, background or not
 running?


Why do you need to do this? You get a GCM message, you respond to it.
Whether the app is foreground or background (not running is not an option
- if you're responding to the message, you're running) is irrelevant.

2. How to find out the top activity if the app is running (either
 foreground or background)


Again, why do you care?


 3. If it is not running, how to launch it.


If you get a GCM message and can handle that message, your app is running.


 4. If it is running in background, how to bring it to foreground


Call startActivity, just like normal.

-
TreKing http://sites.google.com/site/rezmobileapps/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/d/optout.