[android-developers] Audio record through mobile browser

2013-07-10 Thread news.anand11
Hi, I have tried HTML5 Audio API to record audio, but unfortunately its not
supporting to Mobile Browser. I want to know that is there any way to
implement recording audio through mobile browser ? I am not sure WebRTC can
do this. What is the best way to do that ? I want to make app like
vine(android), which will record the audio from user's mobile and upload it
to server. The same think user can do from PC browser as well. Is there any
generic solution ?


Thanks,
Anand Soni.

-- 
-- 
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] ActivityInstrumentationTestCase2 and Intent detection

2013-07-10 Thread Alexandre Paz Mena
Hi, I'm preparing some unit tests for an activity. I can detect that an 
Intent for a certain activity class is launched, but I have no way of 
getting that Intent parameters for testing.

Using the ActivityUnitTestCase is not possible as it fails when activity 
creates a ProgressDialog.

Has anyone any alternatives?

-- 
-- 
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] Setting height of a custom-view

2013-07-10 Thread dashman
I've got a custom view that's a child of a LinearLayout that's a child of a 
ScrollView.

In layout xml file, the height of the custom view and LinearLayout is set 
as WRAP_CONTENT.

I'd like to set the height of the custom view dynamically.

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
{
setMeasuredDimension( widthMeasureSpec, 800 );
}

this works fine.

but sometimes i'd like to set the height to the height of the scroll-view 
parent.
(it's XML height is MATCH_PARENT - i.e. takes up the full height).

How can I figure out the height of the scroll-view in the above method.



-- 
-- 
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: Large amount of orders not complete over this weekend

2013-07-10 Thread fibercode


 Seems like the issue is fixed now. It caught up with the charges from the 
 previous days. 

-- 
-- 
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] How to use forefround in other no FrameLayout viewgroups

2013-07-10 Thread m3n0R
Hi everybody,

I'm trying to mimic the holo blue effect on the Google Play and Google 
Music list rows.

Till now, I've used selectable background, but this is a different effect 
over the row background. Si suppose they are using a nine patch image with 
1dp grey border.

I posted on StackOverflow, but nobody answered...

http://stackoverflow.com/questions/16787738/how-to-set-foreground-attribute-to-other-non-framelayout-view

Here some images:

http://img189.imageshack.us/img189/1016/0asy.png

http://img191.imageshack.us/img191/7051/zlz8.png

http://img89.imageshack.us/img89/9055/e8nx.png

Thanks in advance!!!


-- 
-- 
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] Record phonecall over Bluetooth

2013-07-10 Thread amey523
I want to record a phone call on Android when a Bluetooth headset is 
connected. I'm able to record a Phone call normally when no headsets are 
connected. When I connect a Bluetooth headset the API records the phone 
call but there is no audio. Do I need to route the call via Bluetooth and 
if yes how could this be done?

-- 
-- 
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] Record phonecall over Bluetooth

2013-07-10 Thread Kristopher Micinski
How do you record a phone call normally when no headsets are
connected?  You shouldn't be able to do this, ...

Kris

On Wed, Jul 10, 2013 at 1:48 PM,  amey...@googlemail.com wrote:
 I want to record a phone call on Android when a Bluetooth headset is
 connected. I'm able to record a Phone call normally when no headsets are
 connected. When I connect a Bluetooth headset the API records the phone call
 but there is no audio. Do I need to route the call via Bluetooth and if yes
 how could this be done?

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



-- 
-- 
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] How i can programatically downlaod our emails from gmail account ?

2013-07-10 Thread Ashish Sharma
Hi,

java mail api is working fine for gmail account. can you please guide, how 
to use it for exchange server?

On Saturday, July 6, 2013 10:27:20 PM UTC-8, Yaron Reinharts wrote:

  http://code.google.com/p/javamail-android/
 On 07/04/2013 12:20 PM, Ashish Sharma wrote:
  
 Hi, 

  I want to downaload mails  from my gmail  account..is there any why?
 -- 
 -- 
 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/groups/opt_out.
  
  



 -- 
 Yaron Reinharts 
 Smart Drive 
 Applicationshttp://www.poncho.co.il/gateaway.phphttps://market.android.com/details?id=com.poncho.gsm.gate.activities

  

-- 
-- 
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: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-10 Thread Palmer Eldritch
I mean nobody knows ??

Do you ever check the intent for being null and if not why ?

On Tuesday, July 9, 2013 3:46:41 PM UTC+3, Palmer Eldritch wrote:

 In other words :

 @Override
 public void onReceive(Context context, Intent intent) {
 final String action = intent.getAction(); // can intent==null here 
 ?
 }

 I need to solve this once and for all so please no ifs and buts. I would 
 check for null but I suspect that it is not needed and therefore it is 
 clumsy and inelegant to check. I had searched in the docs but have not 
 found anything


-- 
-- 
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: Modifying an String of Android Resource File (*.arsc)

2013-07-10 Thread giles ian
Thanks Illyoung Choi for sharing your findings, great help... and dont 
bother narrow minded people like Zsolt Vasvari

On Tuesday, June 21, 2011 8:09:12 PM UTC-7, Illyoung Choi wrote:

 Hi All. 

 Last day, I made a simple application for parsing an Android Resource 
 File (*.arsc) and modifying resource strings. 

 I think this thing might be a help for someone, so I'll share the 
 structure of *.arsc that I understood. 

 Since I could not spend many hours for this, my understanding is not 
 perfect and might be slightly wrong. 


 I patched string resource from *.apk. 
 Simply extracted *.apk with 7zip and got the resources.arsc file. 

 Below are the structure of *.arsc 

 struct ANDROID_RESOURCE_HEADER 
 { 
 int signature; // 0x000c0002, I assume this is a signature 
 int nImageLength; // total ARSC file size (bytes) 
 int nUnknown1[2]; // still unknown (not important for modifying 
 strings) 
 int nStringBlockLength; // total StringBlock(see below) size 
 int nStringCount; // total number of String Resources 
 int nUnknown2[4]; // still unknown  (not important for modifying 
 strings) 
 } 

 struct ANDROID_RESOURCE_HEADER is a header of ARSC file image. 
 So simply you can read this header information from file. 

 After this header, you will meet the StringBlock 

 StringBlock has 2Sections 
 { 
 [String Offset] 
 [String Data] 
 } 

 String Offset Section has Offset Values of Specific Strings from 
 StringBlock Start Address. 

 String Data Section has 2 Part 

 String Data 
 { 
 [Length] 
 [String] 
 } 

 Length part is 2byte. but, in AscII Mode, uses only 1byte. 
 Before reading String, you must check whether it is Unicode or 
 AscII format. 

 in Unicode format, Length part will be used with 2bytes. 
 normally it is 0x??, 0x00 (only if it is not longer than 256 bytes) 

 in AscII format, Length part will be used with 1bytes. but, they also 
 used second byte for mirroring. 
 if string length has a value 7, you will meet 0x07, 0x07 

 So, I checked whether both bytes have same value to check string 
 format. 


 Lastly, actual string data will be after this length part with Zero 
 Terminal 
 in Unicode format, surely, Zero Terminal will be 2 byte of zero. 



 Whenever you change the string of this ARSC file, you should 
 recalculate these. 
 Length Part of String Data 
 String Offset of StringBlock 
 nImageLength of Header 
 nStringBlockLength of Header 


 After doing these all. 
 Simply, remove all JAR Signature (META-INF folder) from package. 
 Re-Archive with Zip and rename with *.apk. 
 Resign with your certificate by using jarsigner of JDK 



 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.




[android-developers] Re: Modifying an String of Android Resource File (*.arsc)

2013-07-10 Thread giles ian
Hi Illyoung Choi,
*
*
*Is it possible for you to share the code for the entire thing. i.e. *
*
*
*1.Parsing*
*2. Modifying
*
On Tuesday, June 21, 2011 8:09:12 PM UTC-7, Illyoung Choi wrote:

 Hi All. 

 Last day, I made a simple application for parsing an Android Resource 
 File (*.arsc) and modifying resource strings. 

 I think this thing might be a help for someone, so I'll share the 
 structure of *.arsc that I understood. 

 Since I could not spend many hours for this, my understanding is not 
 perfect and might be slightly wrong. 


 I patched string resource from *.apk. 
 Simply extracted *.apk with 7zip and got the resources.arsc file. 

 Below are the structure of *.arsc 

 struct ANDROID_RESOURCE_HEADER 
 { 
 int signature; // 0x000c0002, I assume this is a signature 
 int nImageLength; // total ARSC file size (bytes) 
 int nUnknown1[2]; // still unknown (not important for modifying 
 strings) 
 int nStringBlockLength; // total StringBlock(see below) size 
 int nStringCount; // total number of String Resources 
 int nUnknown2[4]; // still unknown  (not important for modifying 
 strings) 
 } 

 struct ANDROID_RESOURCE_HEADER is a header of ARSC file image. 
 So simply you can read this header information from file. 

 After this header, you will meet the StringBlock 

 StringBlock has 2Sections 
 { 
 [String Offset] 
 [String Data] 
 } 

 String Offset Section has Offset Values of Specific Strings from 
 StringBlock Start Address. 

 String Data Section has 2 Part 

 String Data 
 { 
 [Length] 
 [String] 
 } 

 Length part is 2byte. but, in AscII Mode, uses only 1byte. 
 Before reading String, you must check whether it is Unicode or 
 AscII format. 

 in Unicode format, Length part will be used with 2bytes. 
 normally it is 0x??, 0x00 (only if it is not longer than 256 bytes) 

 in AscII format, Length part will be used with 1bytes. but, they also 
 used second byte for mirroring. 
 if string length has a value 7, you will meet 0x07, 0x07 

 So, I checked whether both bytes have same value to check string 
 format. 


 Lastly, actual string data will be after this length part with Zero 
 Terminal 
 in Unicode format, surely, Zero Terminal will be 2 byte of zero. 



 Whenever you change the string of this ARSC file, you should 
 recalculate these. 
 Length Part of String Data 
 String Offset of StringBlock 
 nImageLength of Header 
 nStringBlockLength of Header 


 After doing these all. 
 Simply, remove all JAR Signature (META-INF folder) from package. 
 Re-Archive with Zip and rename with *.apk. 
 Resign with your certificate by using jarsigner of JDK 



 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] How can I identify permanently certain builds of my app (for tracking)?

2013-07-10 Thread TreKing
On Tue, Jul 9, 2013 at 3:38 PM, user123 ivanschu...@gmail.com wrote:

 I need to identify certain builds of my app permanently.

 I don't want to create a new app for this - the app has to be the same as
 the normal one, which can be downloaded from Google Play.

These two statements are contradictory - if you want to identify two
different builds, you need to make two different builds, with some
distinguishing characteristic. In terms of Android, this means two
different apps with different packages, which may very well behave exactly
the same as far as the user is concerned.

One idea: distribute a database (or other file) that contains your list of
pre-installed devices (by IMEI or whatever) with the app. When it runs it
can check the current device to see if it's in the pre-configured list.

-
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/groups/opt_out.




Re: [android-developers] How can I identify permanently certain builds of my app (for tracking)?

2013-07-10 Thread Steve Gabrilowitz
To my way of thinking, a preinstalled app can not be removed unless the
device is rooted.  If your app is preinstalled in this way  then perhaps
you can also arrange to have a special shared preferences xml file that
serves only as an indicator of the preinstalled status.  You say that the
preferences can be cleared at any time by the user but this is done by your
app right?  So you clear only the real prefs and leave the preinstall
status one alone.


On Tue, Jul 9, 2013 at 4:38 PM, user123 ivanschu...@gmail.com wrote:

 I need to identify certain builds of my app permanently. The reason is,
 that these will be pre-installed in certain devices and they need some
 different tracking parameters.

 I don't want to create a new app for this - the app has to be the same as
 the normal one, which can be downloaded from Google Play.

 Before any app update, the solution is clear - just create 2 different
 builds, with same package name and signature, one goes directly to be
 preinstalled on the devices and other to Google Play.

 But the preinstalled apps have to receive updates, and AFAIK, all
 differences will be overwritten.

 Possible solutions which come to my mind:

-

Pre-installed build saves a preference. Problem: the user can clear
the preferences at any moment. This has to be reliable.
-

Server side identification. Problem: the app doesn't require user
login to be used - so there would be only left the IMEI, which has to be
sent to the server the first time to say I'm preinstalled, but this would
need server changes, which are unwanted + not sure about legal implications
of sending IMEI (maybe a hash - but still, this isn't nice).
- Identify the app through the place it's stored. But I don't know
where people will store these pre installed apps. I assume they go in the
same place as normal apps. They are not system apps / firmware. So I guess
this is also not a possibility.



-  Different settings in the manifest: The whole manifest, as well as
the code, seems to be overwritten on updates, so I guess this is also not a
possibility.


 Is there any other way to identify my installation subset. Maybe I'm
 missing something very basic. Or what do you advice, generally?

 Thanks in advance.

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




-- 
-- 
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] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-10 Thread TreKing
On Wed, Jul 10, 2013 at 4:14 PM, Palmer Eldritch the.u...@gmail.com wrote:

 I mean nobody knows ??

 Do you ever check the intent for being null and if not why ?


Here's what you do. Assume it will not be null, then use ACRA or some other
bug-reporting tool to handle uncaught exceptions. If you get a null pointer
exception from here, you know it can be null.

You're welcome.

-
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/groups/opt_out.




Re: [android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-10 Thread Palmer Eldritch
I suspect it can't be null *by construction* - I just can't pin it down in 
code (or in docs)

It's nice to be sure

Can somebody point to the relevant code parts ?

I mean what paths lead to the onReceive being triggered ? Can we have a 
null intent in any of them ?

On Thursday, July 11, 2013 4:18:09 AM UTC+3, TreKing wrote:


 On Wed, Jul 10, 2013 at 4:14 PM, Palmer Eldritch 
 the@gmail.comjavascript:
  wrote:

 I mean nobody knows ??

 Do you ever check the intent for being null and if not why ?


 Here's what you do. Assume it will not be null, then use ACRA or some 
 other bug-reporting tool to handle uncaught exceptions. If you get a null 
 pointer exception from here, you know it can be null.

 You're welcome.


 -
 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/groups/opt_out.




Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-10 Thread Linda Li
I do not think using default Gallery is not secure. I also use default 
camera intent in the app.
I only need the picture. The picture is not secure: it is in the storage.
So this would not be a problem.

On Tuesday, July 9, 2013 1:39:59 PM UTC-5, Kristopher Micinski wrote:

 I guess my point is that if you don't control the app, whose to say it 
 won't steal your data?  Nothing stops it from doing so.  Furthermore, 
 how are you going to transmit the data so that the gallery app gets it 
 in a secure way?  The gallery doesn't have any features that allow 
 encryption or any way to exchange keys. 

 Kris 


 On Tue, Jul 9, 2013 at 2:12 PM, Linda Li codingpo...@gmail.comjavascript: 
 wrote: 
  I plan to kill all activities in the app, of course. 
  
  If all activities in the app are my own, the goal can be easily 
 implemented. 
  
  However, now we need to call a thrid-party activity, such as Gallery 
 (yes, 
  we could design our gallery. Here is an example): 
  So if the user presses HOME button when he is during Gallery, I still 
 want 
  to kill activities in the app, including Gallery. 
  
  
  
  On Tuesday, July 9, 2013 11:44:15 AM UTC-5, Kristopher Micinski wrote: 
  
  It sounds like your design is flawed and completely insecure:  you 
  really thinking that not showing the user the screen any more --- even 
  though you're going through another app and handing all the sensitive 
  information to it --- sounds like a good security policy? 
  
  Merely not showing the screen sounds like a non solution. 
  
  Kris 
  
  On Tue, Jul 9, 2013 at 12:39 PM, Linda Li codingpo...@gmail.com 
 wrote: 
   You cannot get the activity ID of the thrid-party activity, such as 
   Gallery. 
   
   On Tuesday, July 9, 2013 8:03:57 AM UTC-5, Kristopher Micinski wrote: 
   
   so call finish in onPause? 
   
   Kris 
   
   -- 
   -- 
   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.com 
   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.comjavascript:. 

   For more options, visit https://groups.google.com/groups/opt_out. 
   
   
  
  -- 
  -- 
  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/groups/opt_out. 
  
  


-- 
-- 
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] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-10 Thread Linda Li


On Tuesday, July 9, 2013 11:30:37 PM UTC-5, TreKing wrote:


 I already provided you a direct link to an Activity flag whose description 
 seems to match exactly what you want. What's the problem with that?


The link you posted is not what I want.
It clear the activities when we relaunch the task.

I want the activities to be killed when pressing the HOME button. There is 
a gap between the two situations.

 

 On Tue, Jul 9, 2013 at 1:12 PM, Linda Li codingpo...@gmail.comjavascript:
  wrote:

 So if the user presses HOME button when he is during Gallery, I still 
 want to kill activities in the app, including Gallery.


 And if the user uses the recent task list to move to another app, not 
 HOME? In that case as well?

 What difference does it make if the user remains on the Gallery when they 
 come back to your app or not? How is this any less secure than opening 
 the Gallery app to begin with?


It is not clean. Actually I can make relaunching the app by starting with 
Login page. However, when we press back, there is Gallery. It is not clean 
at all.


 

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