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-09 Thread TreKing
On Mon, Jul 8, 2013 at 10:45 PM, Linda Li codingpotatoli...@gmail.comwrote:

 However, I do not know all activities are cleared immediately after
 pressing HOME button, or immediately after launching the application.


http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET

-
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: creating apk according to selected java files

2013-07-09 Thread surabhi jain
Hi Friends,

is there any Update?


On Tue, Jul 2, 2013 at 4:43 PM, surabhi jain surabhi17.j...@gmail.comwrote:

 Thanks for reply.

 I am sure that there is no dependency of remaining classes. But exactly I
 am not getting that How could  we build project using Ant including
 selected java classes?


 On Wed, Jun 19, 2013 at 3:24 AM, Lew lewbl...@gmail.com wrote:

 And bear in mind that transitive dependencies might require use of those
 classes anyway.

 How come your files need to be excluded from the build yet exist in the
 source tree?

 What advantage do you imagine exclusion of those files will confer?

 --
 Lew


 On Tuesday, June 18, 2013 4:52:44 AM UTC-7, Piren wrote:

 that's awesome.
 now do a search for ant exclude from build.

 On Tuesday, June 18, 2013 1:18:18 PM UTC+3, surabhi jain wrote:

 with the help of ANT we can generate apk file.


 On Tue, Jun 18, 2013 at 1:59 PM, Piren gpi...@gmail.com wrote:

 that has nothing to do with android... that's a java build issue. It
 depends on how you build and what you use to build.
 you'll just have to exclude those files from the build path. Do a
 search on how to perform that for the way you build your project.


 On Tuesday, June 18, 2013 10:33:07 AM UTC+3, surabhi jain wrote:

 Hi all,
 I have created a project, I want to create apk according to selected
 java files.
 Scenario like :
 Suppose in my project, there are 10 java files and I want to create
 apk using 5 java files without deleting remaining (5 java files ) java
 files from src folder.

 Is it possible?

 Thanks
 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-d...@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=enhttp://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_outhttps://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.






-- 
-- 
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] Custom Font for public page show in webview

2013-07-09 Thread Aung Myo Oo
Hi

I am creating custom web browser using webview. Some of the web page is 
using the fonts that are not supported by OS. 

So I would like to embed that custom font in webview. 

May I know how to embed custom font in webview?

Regards,
Alex

-- 
-- 
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] Runnable to View.PostDelayed vs Handler.PostDelayed

2013-07-09 Thread Pankaj Chawla
In order to update a UI control (TextView) periodically, I create a Runnable 
which updates the control but instead of creating an explicit Handler and 
posting the runnable to that, I post the runnable directly to the control. I 
find the later to be simple but most readings on the web seem to be using an 
explicit Handler object. Any reasons, I should be careful about?  

Runnable runnable = new Runnable() { 
@Override
public void run() {
textview.setText(String.valueOf(counter));
textview.postDelayed(runnable, 2);
}
};

@Override 
public void onResume() {
super.onResume();
textview.post(runnable); 
}


@Override 
public void onPause() {
super.onPause(); 
textview.removeCallbacks(runnable);
}

---
Take care,
Pankaj

-- 
-- 
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: creating apk according to selected java files

2013-07-09 Thread Piren
I dont know... how about you try Ant exclude from build in Google 
again(?) and see if they have any updates.


On Tuesday, July 9, 2013 9:53:10 AM UTC+3, surabhi jain wrote:

 Hi Friends,

 is there any Update?


 On Tue, Jul 2, 2013 at 4:43 PM, surabhi jain 
 surabhi...@gmail.comjavascript:
  wrote:

 Thanks for reply.

 I am sure that there is no dependency of remaining classes. But exactly I 
 am not getting that How could  we build project using Ant including 
 selected java classes?
  

 On Wed, Jun 19, 2013 at 3:24 AM, Lew lewb...@gmail.com javascript:wrote:

 And bear in mind that transitive dependencies might require use of those 
 classes anyway.

 How come your files need to be excluded from the build yet exist in the 
 source tree?

 What advantage do you imagine exclusion of those files will confer?

 -- 
 Lew


 On Tuesday, June 18, 2013 4:52:44 AM UTC-7, Piren wrote:

 that's awesome.
 now do a search for ant exclude from build.

 On Tuesday, June 18, 2013 1:18:18 PM UTC+3, surabhi jain wrote:

 with the help of ANT we can generate apk file. 


 On Tue, Jun 18, 2013 at 1:59 PM, Piren gpi...@gmail.com wrote:

 that has nothing to do with android... that's a java build issue. It 
 depends on how you build and what you use to build.
 you'll just have to exclude those files from the build path. Do a 
 search on how to perform that for the way you build your project.


 On Tuesday, June 18, 2013 10:33:07 AM UTC+3, surabhi jain wrote:

 Hi all,
 I have created a project, I want to create apk according to selected 
 java files.
 Scenario like :
 Suppose in my project, there are 10 java files and I want to create 
 apk using 5 java files without deleting remaining (5 java files ) java 
 files from src folder.

 Is it possible?

 Thanks
 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-d...@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=enhttp://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_outhttps://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.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-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: Custom Font for public page show in webview

2013-07-09 Thread Piren
Yes, you may.
Google Android webview custom font, i've seen several solutions.

On Tuesday, July 9, 2013 10:49:11 AM UTC+3, Aung Myo Oo wrote:

 Hi

 I am creating custom web browser using webview. Some of the web page is 
 using the fonts that are not supported by OS. 

 So I would like to embed that custom font in webview. 

 May I know how to embed custom font in webview?

 Regards,
 Alex


-- 
-- 
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: Application mistakenly published

2013-07-09 Thread JBirdVegas
Ugh, sadly I'm working on a healthcare app with the same problem... I 
accidentally uploaded to production now I'm forced to unpublish our desired 
java namespace and repackage into a new namespace. In the process breaking all 
our current testers linking. #annoyed

-- 
-- 
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: Custom Font for public page show in webview

2013-07-09 Thread Aung Myo Oo
Yes, I have search before I post it here. Most of the sample are only for 
static html added in assets folder.

My requirement is to add into page from web.

On Tuesday, 9 July 2013 16:42:42 UTC+8, Piren wrote:

 Yes, you may.
 Google Android webview custom font, i've seen several solutions.

 On Tuesday, July 9, 2013 10:49:11 AM UTC+3, Aung Myo Oo wrote:

 Hi

 I am creating custom web browser using webview. Some of the web page is 
 using the fonts that are not supported by OS. 

 So I would like to embed that custom font in webview. 

 May I know how to embed custom font in webview?

 Regards,
 Alex



-- 
-- 
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: Application mistakenly published

2013-07-09 Thread davidemo89
I have contacted Google play assistance and they told me they are working
to fox it for me. Try contact them you too
Il giorno 09/lug/2013 11:15, JBirdVegas jbirdve...@gmail.com ha scritto:

 Ugh, sadly I'm working on a healthcare app with the same problem... I
 accidentally uploaded to production now I'm forced to unpublish our desired
 java namespace and repackage into a new namespace. In the process breaking
 all our current testers linking. #annoyed

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




-- 
-- 
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] Run Google Maps Android API v2 on devices with OpenGL 2.0

2013-07-09 Thread DoM
Hi everybody,
I am developing and app with maps.
I' ve been able to setup and run Google Maps Android API v2 on emulator, 
but I am testing the app on real device(Huawey Ideos) and it has an OpenGL 
version 1.1 .

To be more precise the app doesn't crash but shows me a blank screen.

Do you have any suggestion or tutorial I can follow?

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] Re: Custom Font for public page show in webview

2013-07-09 Thread Piren
If you plan on using WebView, you'd have to download the HTML and then 
inject the proper font attributes.
If you want a real custom web browser, using WebView is not the way.

On Tuesday, July 9, 2013 12:06:37 PM UTC+3, Aung Myo Oo wrote:

 Yes, I have search before I post it here. Most of the sample are only for 
 static html added in assets folder.

 My requirement is to add into page from web.

 On Tuesday, 9 July 2013 16:42:42 UTC+8, Piren wrote:

 Yes, you may.
 Google Android webview custom font, i've seen several solutions.

 On Tuesday, July 9, 2013 10:49:11 AM UTC+3, Aung Myo Oo wrote:

 Hi

 I am creating custom web browser using webview. Some of the web page is 
 using the fonts that are not supported by OS. 

 So I would like to embed that custom font in webview. 

 May I know how to embed custom font in webview?

 Regards,
 Alex



-- 
-- 
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] Run Google Maps Android API v2 on devices with OpenGL 2.0

2013-07-09 Thread surabhi jain
Hi,

Generally this problem is occurred due to generating wrong mapAPI key.
If you are sure about mapAPI key.

Then tell me with the help of which technique, you are displaying map.


On Tue, Jul 9, 2013 at 3:54 PM, DoM daume...@gmail.com wrote:

 Hi everybody,
 I am developing and app with maps.
 I' ve been able to setup and run Google Maps Android API v2 on emulator,
 but I am testing the app on real device(Huawey Ideos) and it has an OpenGL
 version 1.1 .

 To be more precise the app doesn't crash but shows me a blank screen.

 Do you have any suggestion or tutorial I can follow?

 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.




[android-developers] Display Chart using achartengine on actionbarsherlock

2013-07-09 Thread Samboga
Hello All

I have been trying to display a bar chart using fragments with actionBar 
sherlock. 

http://pastebin.com/DxZE3Nms - fragment
http://pastebin.com/msnXZBfF - xml layout
http://pastebin.com/MbwaNuKv - mainactivity

When I try to run the mainactivity I only get a textView and a blank screen 
with my fragment pager, I have tried to run the code outside of the 
fragment and I do get a blank new activity with the bar chart on it, so I 
suspect that I do not have the intent in the right place.

Can someone in here please guide me on how to do it the correct way I have 
been working on this for some time now

-- 
-- 
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] Delete unpublished apk from Google Play is not possible

2013-07-09 Thread user123


I have a very stupid problem. We created an application in Google Play, 
somebody else filled with all required information - translations, 
screenshots, etc.

Now for testing reasons, we uploaded the first .apk with a different 
package name (another already existent app).

The question: How can I delete this .apk!?

It seems not to be possible! I only find an option to delete the 
application, but I guess that this will delete the whole thing, the 
descriptions, screenshots, etc.

When I try to upload .apk with the correct package name, it says, I can't, 
because the package name has to be the same.

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

2013-07-09 Thread Palmer Eldritch
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.




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-09 Thread Kristopher Micinski
so call finish in onPause?

Kris

On Mon, Jul 8, 2013 at 11:45 PM, Linda Li codingpotatoli...@gmail.com wrote:
 If I use clearTaskOnLaunch of activity A, then the whole procedure can be
 what I want.

 However, I do not know all activities are cleared immediately after pressing
 HOME button, or immediately after launching the application.
 I just asked the question in clearTaskOnLaunch behavior ambiguous

 I need to clear all activities immediately after pressing HOME button.
 The reason, my application is related to some private data, and the first
 activity actually is login. So security is the top reason.

 On Monday, July 8, 2013 9:47:22 PM UTC-5, TreKing wrote:


 On Mon, Jul 8, 2013 at 8:33 PM, Linda Li codingpo...@gmail.com wrote:

 So when I start FOOL again, I see Gallery! This is not desired at all!


 And why not? If I opened the Gallery via your app, and went home, when I
 returned to your app I would expect to still be in the Gallery as this was
 the last thing I was doing with your app and this is standard Android
 Behavior.

 However, if you feel you need to change this, check the Intent flags which
 you can use when starting activities. I'm sure some combination of them will
 do what you're looking for.


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



-- 
-- 
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] camera for portrait

2013-07-09 Thread Sadhna Upadhyay
Hi guys,
i am creating camera application when i am capturing photo its preview
in
portrait but when i do e mail it is in landscape though i have set
Camera.setDisplayOrientation(90); but its only showing preview but it is
not saving in portrait.i have googled but m not able to take photo in
portrait its working fine for landscape but not working for portrait please
please help me i am stuck.

 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.




Re: [android-developers] Re: Large amount of orders not complete over this weekend

2013-07-09 Thread piemm...@googlemail.com
Mine are now charging, and I have a 'decent' amount in todays stats, though 
short of what it should be had the bug not have arisen (my stats are fairly 
static day-to-day)

Will be interesting to see if this recovers and we make up for the 'dip' in 
unprocessed orders, or whether this will result in an unrecoverable dip for 
the period that orders were bugged. Will be interesting to see if anyone 
else notices the same!

-- 
-- 
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] DexClassLoader.loadClass fails on Android 4.2.2 but works on 2.1.

2013-07-09 Thread Grigory Fishilevich
Hi all,

I've already spend a lot hours and really come to no solution. Any
help or hints would be great.

What I'm doing:

1. use a custom build.xml to add a package as asset to my app

2. on the app start read from asset and write the jar-file to private
app-directory (/data/data/MY_PACKAGE/app_dex/JAR_FILE)

3. then using DexClassLoader.loadClass and an interface of this class
I call a method

The whole thing works on Android 2.1 and has worked some months ago on
Jelly Bean too. If I run the app from eclipse it works as well. But if
I do ant release and install the ...release.apk to my device (4.2.2)
I get:

java.lang.ClassNotFoundException: Didn't find class MY_CLASS on
path: /data/data/MY_PACKAGE/app_dex/JAR_FILE

I've already checked, the JAR_FILE exists, it's readable.

I've also extracted the asset-file and done dexdump - the class is
there, the name is correct. And as I say, this works on Android 2.1

Really no idea... it's on ADT 17?



Kind regards,
Grigory

-- 
-- 
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: DexClassLoader.loadClass fails on Android 4.2.2 but works on 2.1.

2013-07-09 Thread Grigory F.
Unbelievable... 

I have figured out by chance. 

*DexClassLoader.loadClass* fails if param *dexPath* (of 
*...newDexClassLoader(String 
dexPath ...)* does not end with *.jar*.

Since when does file-extension matter on *nix systems?! Unbelievable...


On Tuesday, July 9, 2013 4:41:40 PM UTC+2, Grigory F. wrote:

 Hi all, 

 I've already spend a lot hours and really come to no solution. Any 
 help or hints would be great. 

 What I'm doing: 

 1. use a custom build.xml to add a package as asset to my app 

 2. on the app start read from asset and write the jar-file to private 
 app-directory (/data/data/MY_PACKAGE/app_dex/JAR_FILE) 

 3. then using DexClassLoader.loadClass and an interface of this class 
 I call a method 

 The whole thing works on Android 2.1 and has worked some months ago on 
 Jelly Bean too. If I run the app from eclipse it works as well. But if 
 I do ant release and install the ...release.apk to my device (4.2.2) 
 I get: 

 java.lang.ClassNotFoundException: Didn't find class MY_CLASS on 
 path: /data/data/MY_PACKAGE/app_dex/JAR_FILE 

 I've already checked, the JAR_FILE exists, it's readable. 

 I've also extracted the asset-file and done dexdump - the class is 
 there, the name is correct. And as I say, this works on Android 2.1 

 Really no idea... it's on ADT 17? 



 Kind regards, 
 Grigory 


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

2013-07-09 Thread b0b


On Tuesday, 9 July 2013 16:19:21 UTC+2, piem...@googlemail.com wrote:

 Mine are now charging, and I have a 'decent' amount in todays stats, 
 though short of what it should be had the bug not have arisen (my stats are 
 fairly static day-to-day)

 Will be interesting to see if this recovers and we make up for the 'dip' 
 in unprocessed orders, or whether this will result in an unrecoverable dip 
 for the period that orders were bugged. Will be interesting to see if 
 anyone else notices the same!


For me, it has fully processed the long list of chargeable  orders I had, 
and seems to operate normally now.

-- 
-- 
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] Runnable to View.PostDelayed vs Handler.PostDelayed

2013-07-09 Thread Romain Guy
View.postDelayed() simply calls Handler.postDelayed(). It's a convenient
method that helps avoid creating Handler instances.


On Tue, Jul 9, 2013 at 12:53 AM, Pankaj Chawla pankaj...@gmail.com wrote:

 In order to update a UI control (TextView) periodically, I create a
 Runnable which updates the control but instead of creating an explicit
 Handler and posting the runnable to that, I post the runnable directly to
 the control. I find the later to be simple but most readings on the web
 seem to be using an explicit Handler object. Any reasons, I should be
 careful about?

 Runnable runnable = new Runnable() {

 @Override

 public void run() {

 textview.setText(String.valueOf(counter));

 textview.postDelayed(runnable, 2);

 }

 };


 @Override

 public void onResume() {

 super.onResume();

 textview.post(runnable);

 }


 @Override

 public void onPause() {

 super.onPause();

 textview.removeCallbacks(runnable);

 }

 ---
 Take care,
 Pankaj

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






-- 
Romain Guy
Android framework engineer
romain...@android.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/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-09 Thread Linda Li
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-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-09 Thread Kristopher Micinski
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 codingpotatoli...@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-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 can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-09 Thread Linda Li
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.comjavascript: 
 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.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-09 Thread Kristopher Micinski
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 codingpotatoli...@gmail.com 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
  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.



-- 
-- 
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: Delete unpublished apk from Google Play is not possible

2013-07-09 Thread user123
I recreated the app, seems its the only way.


Am Dienstag, 9. Juli 2013 14:07:07 UTC+2 schrieb user123:

 I have a very stupid problem. We created an application in Google Play, 
 somebody else filled with all required information - translations, 
 screenshots, etc.

 Now for testing reasons, we uploaded the first .apk with a different 
 package name (another already existent app).

 The question: How can I delete this .apk!?

 It seems not to be possible! I only find an option to delete the 
 application, but I guess that this will delete the whole thing, the 
 descriptions, screenshots, etc.

 When I try to upload .apk with the correct package name, it says, I can't, 
 because the package name has to be the same.

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

2013-07-09 Thread user123


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.




[android-developers] Re: Location Listener event when not online

2013-07-09 Thread Gary Blakely
if you are right then does that mean that reliable tracking apps cannot be 
created on Android?  What is a more reliable method to use to follow the 
phone's movement?  Is this something that has been reported as a bug?
Gary

On Saturday, July 6, 2013 4:41:21 PM UTC-7, Gary Blakely wrote:

 I write apps for both Windows Phone in C# and Android in Java.  I have 
 similar apps, on each marketplace, that both use the GPS to track movement 
 as the phone moves about.  When the phone is out moving around, the 
 internet connectivity, of course, goes in and out.

 Both versions of my app transmit the GPS readings to my cloud server REST 
 service where they are recorded on to a database.  If the app has no 
 internet connection, it saves the GPS locations on the phone and then, when 
 the internet connection comes back, it bursts what it has to the cloud 
 server.  This process works great in Windows phone.

 But with Android, when there is no internet connection, my 
 onLocationChanged event in my LocationListener does not get triggered as 
 the phone moves about.  It's working as though the GPS gets turned off when 
 there is no internet signal.  That makes no sense to me.  Is it supposed to 
 work this  way?  Why would the GPS need an internet connection to work?
 Thanks,
 Gary


-- 
-- 
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: Google Cancelled this Order. Reason: Other

2013-07-09 Thread jtoolsdev
Looks to me that most of these I've had are due to using a credit card that 
had expired, incorrectly entered or maybe even stolen.

- Brian

On Friday, July 5, 2013 9:48:24 AM UTC-7, Nathan wrote:

 I've always gotten a few of these orders. I have never known what the heck 
 that means or what kind of confusing message the end user gets in that 
 situation 

 However, yesterday, July 4th, I have over a hundred in one day. Many of 
 them are the same unlucky people trying up to ten times. They outnumbered 
 the successful orders. 

 Maybe other means our guy who usually approves such orders is out buying 
 fireworks

 I wanted to check here to see if anyone is seeing the same pattern.

 I believe there was a rash of them last fall and a number of us saw them 
 in big numbers. 

 Nathan


-- 
-- 
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] Databases folder

2013-07-09 Thread Filipe
Hi,
 
When we use SQLite database from java it puts the database file in 
/data/data/your.package.name/databases.
 
I have an APP with SQLite compiled in native code.
I am saving all my app files in /data/data/your.package.name/files and I 
am also putting the database file there.
 
Is there any problem in doing so? In terms of security or other reason why 
I should not put databases in .../files folder?
 
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] How to Launch com.android.phone.InCallScreen Activity from my app

2013-07-09 Thread rakesh kumar
Hi All

I am trying to launch InCallScreen Activity from my own app,I am using the 
below code


 some code-

 Intent callIntent = new Intent();
callIntent.setClassName(com.android.phone, 
com.android.phone.InCallScreen); 
callIntent.setData(Uri.parse(tel: + mobNo));
mContext.startActivity(callIntent);
 

I have used the uses-permission 
android:name=android.permission.CALL_PHONE/ in manifest file


Then I am getting the below exception  :
java.lang.SecurityException:Permission denial


If I am trying to use below permission then I receive this message 
Permission is only granted to system apps

uses-permission android:name=android.permission.CALL_PRIVILEGED/

I want to know is it possible without rooting the 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-09 Thread TreKing
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?

On Tue, Jul 9, 2013 at 1:12 PM, Linda Li codingpotatoli...@gmail.comwrote:

 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?

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