[android-developers] ActivityInstrumentationTestCase2 and Intent detection

2013-07-09 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 anyon

[android-developers] Audio record through mobile browser

2013-07-09 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(andro

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 wrote: > So if the user presses HOME button when he is during Gallery, I still want > to kill activities in the a

[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");

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

[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

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

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

[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

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 wa

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 whe

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

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

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 wrote: > In order to update a UI control (TextView) periodically, I create a > Runnable which updates the control but inste

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 recover

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

[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

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

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

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

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

[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

[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

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 wrote: > Hi everybody, > I am developing and app with maps. > I' ve been able

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

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

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" ha scritto: > Ugh, sadly I'm working on a healthcare app with the same problem... I > accidentally uploaded to production now I'm forced t

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

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 messag

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

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 > > > wrote: > >> Thanks for

[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

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