[android-developers] Re: How could i check the android device is rooted or not?

2012-08-12 Thread Chris Stratton
On Aug 7, 4:02 am, Ali Ahmadi aliahmadi1...@gmail.com wrote: all i want to know is How could i check the android device is rooted or not? please give me a code to check that in my application and warn user if the device is not rooted! It is ultimately not possible to do so with certainty.

[android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-28 Thread Chris Stratton
On Jul 29, 12:18 am, Alex Pruss arpr...@gmail.com wrote: These kinds of things can provide a lot of value to users, and disabling log access forces users to have to root their devices to do these things. That's not the real problem though. Reading the logs was never the right way to customize

[android-developers] Re: adb pull not to file but to memory

2012-07-21 Thread Chris Stratton
On Jul 21, 12:37 pm, matt matthias.gru...@gmail.com wrote: specifically i am writing a java program, that executes adb pull /dev/graphics/fb0 Don't do that. While it works on some devices, it won't work on others. There's an executable program called screencap or something like that, which

[android-developers] Re: How to stop terminate the Android application when using the native code

2012-07-21 Thread Chris Stratton
On Jul 20, 11:07 am, Justin Anderson magouyaw...@gmail.com wrote: I know, i can disable it, so it will work, but i'd like to let the app can run many times again. So i disable the exit(), but when call the second times, it generates errors. Could you help? Debug your code, find the

[android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Chris Stratton
On Jul 12, 7:43 pm, Mark Murphy mmur...@commonsware.com wrote: I was able to get it working in a Galaxy Nexus running ICS, but only after several tries. I think the actual issue is that it has a very long latency - during which there is no indication that it is working. And then gmail pops

[android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Chris Stratton
On Jul 12, 8:55 pm, Dianne Hackborn hack...@android.com wrote: So, it is now a development permission (a new concept introduced in JB), which will never be shown to users, but developers can enable through their development tools. What is duration of effect of a pm grant or pm revoke command?

[android-developers] Re: Ping in android

2012-07-09 Thread Chris Stratton
On Jul 9, 1:42 pm, Robert Greenwalt rgreenw...@google.com wrote: Does your application have internet permission? If that were the problem, creating AF_INET sockets would fail, even before trying to use them. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: slow. just a big complaint.

2012-07-05 Thread Chris Stratton
On Jul 5, 5:12 am, seveneves freeander...@gmail.com wrote: this post is just a big complaint and a little bit doubt about why they can't make android better. i'm using mac book pro and eclipse. by the way, android software emulator is really slow. Yes, because it is emulating an arm

[android-developers] Re: HELP! Google removed my app with millions of users!

2012-07-05 Thread Chris Stratton
On Jul 5, 11:54 pm, John Coryat cor...@gmail.com wrote: I just searched Alarm Clock Plus click fraud and found this posting: http://r.bernsteinbear.com/r/Android/comments/v1htq/alarm_clock_plus_... I would say this could be the part or all of your problem. Sounds likely... and familiar: I

[android-developers] Re: GPRS connection problem in Android 2.3

2012-06-30 Thread Chris Stratton
On Jun 29, 8:35 am, Siva kumar sivakumar...@gmail.com wrote: I got s3c6410 Arm development Board. It has been ported with Android 2.3. This board has SIM300 GSM modem.When i tried to connect to internet through GPRS i found APN was missing. This sounds more appropriate for android-porting, as

[android-developers] Re: Need help - hidden GPS monitoring app

2012-06-29 Thread Chris Stratton
On Jun 29, 12:08 pm, Mihai Popescu mihai.m.pope...@gmail.com wrote: The client is not a seller, it is a large company and its activity involves mostly transporting goods throughout the country. The purpose of the software is to monitor truck driver location, thus enforcing some policies to

[android-developers] Re: about the communication channels between android apps

2012-06-29 Thread Chris Stratton
On Jun 29, 12:24 pm, M xuetao@gmail.com wrote: So, is there any way to montior all the communication channels between Android apps inside the devices? No, because people can play dirty tricks like modulating and measuring the system load to transmit information slowly. -- You received

[android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-24 Thread Chris Stratton
On Jun 24, 10:34 am, Jason Meyer jasonmeyer...@yahoo.de wrote: However, there are apps which do not have a shared user ID, but a user ID of their own - and still come without a perms block. One example is the /system/app/FileManager.apk package, which is preinstalled on my testing device.

[android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-24 Thread Chris Stratton
On Jun 24, 8:26 pm, Dianne Hackborn hack...@android.com wrote: Why do you care if there is a perms tag? What is stored in packages.xml is an implementation detail; Yes, but wanting to understand how things work is an endemic amongst engineers (though this probably is the wrong group to discuss

[android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-24 Thread Chris Stratton
On Jun 24, 10:12 pm, Kristopher Micinski krismicin...@gmail.com wrote: But an interesting one.  I've finally managed to find the code that skips writing out the permissions for system apps. Would you mind pointing out which portion of the codebase this is? The following code within void

[android-developers] Re: Two things holding up my app. Any suggestions?

2012-06-20 Thread Chris Stratton
On Jun 20, 10:32 am, Saurav to.saurav.mukher...@gmail.com wrote: Have you tried starting the media player in an activity, and overriding the on Back Button pressed function? Handling all the functions in the Activity Life Cycle? I am sure there is a way to keep it running programming it in

[android-developers] Re: Need Help Problem about socket communication between android smartphone and PC through WIFI

2012-06-18 Thread Chris Stratton
This suggests that either you are using an emulator-only alias address, or are trying to contact a pc on a private network behind firewall/nat from the device's mobile network rather than having the device active on wifi at the time of the attempt.. Try something with prebuilt software such as a

[android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-18 Thread Chris Stratton
On Jun 17, 1:34 pm, Jason Meyer jasonmeyer...@yahoo.de wrote: after doing a bit of research I've gotten very curious: Where are the permissions stored which were granted to apps installed in /system/app? I checked out my phone's packages.xml file (located in /data/system/ packages.xml). User

[android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-18 Thread Chris Stratton
On Jun 18, 12:35 pm, Jason Meyer jasonmeyer...@yahoo.de wrote: Well, sure, if they request it, just like any other SDK app. I am not quite sure what you mean by request it. The uses-permission is in their AndroidManifest.xml just as it would be for a non-system app. See for example:

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Chris Stratton
On Jun 16, 11:43 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jun 16, 2012 at 11:33 AM, Terry terb...@gmail.com wrote: HOW do you get the preferred directory in internal storage? There is no preferred directory, insofar as the preferred directory concept implies that the user has

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Chris Stratton
On Jun 17, 4:26 am, Terry terb...@gmail.com wrote: I checked on a new HTC One V. There the Environment method getExternalStoragePublicDirectory() returns /mnt/sdcard, which cannot be used for anything. Trying to write there fails. The external memory is also reported as unmounted. There IS

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Chris Stratton
On Jun 17, 10:23 am, Terry terb...@gmail.com wrote: You asked What happens if you try to download something (perhaps a PDF file) with the built in browser? Good question. WIth an SDcard inserted, I tried to download a free ebook. That went well. Then i removed the SDcard, and tried

[android-developers] Re: Get Port for Pid

2012-06-12 Thread Chris Stratton
On Jun 7, 3:30 pm, Pinas silviorie...@gmail.com wrote: Is there maybe an arm port of lsof or any other possibility to get the ports belonging to an app ? It wouldn't be terribly hard to port the idea of lsof, but it probably would not be as useful on android as it is on a typical desktop linux

[android-developers] Re: usage of project folder inside android data/data

2012-06-12 Thread Chris Stratton
On Jun 10, 10:43 am, Mjava mri...@gmail.com wrote: I am thinking about the usage of project app folder inside data/data/ com.myapp.main in android file system. For examples like CACHE folder, database folder, lib folder etc... inside data/data/com.ayppp.main. Do people like samsung/htc

[android-developers] Re: unused application permissions

2012-06-11 Thread Chris Stratton
On Jun 11, 10:40 am, Kristopher Micinski krismicin...@gmail.com wrote: On Mon, Jun 11, 2012 at 7:39 AM, Live Happy livehap...@gmail.com wrote: it is there a tools  or way to know what is the unused permission in the application http://www.android-permissions.orgdoes exactly this. Perhaps

[android-developers] Re: Dynamically loading a jar file at runtime

2012-06-11 Thread Chris Stratton
On Jun 11, 2:30 pm, TreKing treking...@gmail.com wrote: On Mon, Jun 11, 2012 at 2:11 AM, Reddy devireddy@gmail.com wrote: I have a requirement that i need to download a jar file dynamically at runtime and use a function present in the jar. I would expect that this would not be possible,

[android-developers] Re: Dynamically loading a jar file at runtime

2012-06-11 Thread Chris Stratton
On Jun 12, 1:00 am, Reddy devireddy@gmail.com wrote: 1. Jar files contains some encryption/decryption algorithms. 2. Algorithms should not present in the application. I really hope you aren't hoping that will prevent others from seeing those algorithms. -- You received this message

[android-developers] Re: App talking to native ARM binary via sockets

2012-06-06 Thread Chris Stratton
On Jun 6, 8:34 am, Tony Houghton h...@realh.co.uk wrote: 10.0.2.2 is a special address so that apps in an emulator can connect to services on the host running the emulator. AIUI your service is running on the same Android device as the client so I think you want 127.0.0.1. Yes. Not only is

[android-developers] Re: Is there a way to get a WAN IP address from a phone based on its phone number?

2012-06-06 Thread Chris Stratton
On Jun 6, 2:49 am, Akki akshay.iitr@gmail.com wrote: Is there any way by which I can get the IP address of the other device by just using the phone no. No. Not only is there no way to obtain such information by lookup from the phone number, in most cases the information doesn't exist.

[android-developers] Re: How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Chris Stratton
On Jun 5, 5:23 pm, michael xuetao@gmail.com wrote: Is there any way to retrieve the Intents used by intalled apps on the phone? For example, how do I know that one app could send an Intent to invoke Camera app or Email app or Text Message app? No. Not only is there no way to query the

[android-developers] Re: How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Chris Stratton
On Jun 5, 7:29 pm, Kristopher Micinski krismicin...@gmail.com wrote: Is there any way to retrieve the Intents used by intalled apps on the phone? For example, how do I know that one app could send an Intent to invoke Camera app or Email app or Text Message app? But you could track this in

[android-developers] Re: How to monitor UI operation in android from pc?

2012-06-04 Thread Chris Stratton
On Jun 3, 8:34 pm, Roger Li roger...@gmail.com wrote: I am struggling to find a solution for the project. The project is used to record the operations in mobile and then play back. This is not really supported by stock android devices. You can use the ddms screenshot capability to record a

[android-developers] Re: How is this done? App uses fortran and executable?

2012-06-04 Thread Chris Stratton
On Jun 1, 1:07 am, Brian Van Der Wagt mathista...@gmail.com wrote: The reason I ask that (excuse my ignorance, I am just started with NDK), is because A: Octave includes Fortran code and my book about the NDK says it supports C and C++ only The NDK is basically a build of GCC and some

[android-developers] Re: Why can't someone at Google answer this question????????????????????????????????????????????????????????????

2012-06-04 Thread Chris Stratton
On Jun 1, 2:23 am, Jim Morris jim.mor...@lecere.com wrote: I believe this is a bug introduced into Android 4.0.3. The software works fine on Android 3.2 on a Galaxy P-6210. I have traced the problem to the statement mmSocket.connect(); When this statement is executed, a dialog box pops up on

[android-developers] Re: how to get the name of external card

2012-06-04 Thread Chris Stratton
On Jun 1, 7:45 am, RLScott fixthatpi...@yahoo.com wrote: As Mark Murphy said, there is no API for that.  So what I did in my app was very messy.  I invited the user to find out on his own, perhaps using a file explorer app on the Android device, what path he would like to use for the external

[android-developers] Re: How to monitor UI operation in android from pc?

2012-06-04 Thread Chris Stratton
On Jun 4, 12:32 pm, roger roger...@gmail.com wrote: I am trying to start a service in the application, and then get the top foreground activity, get the UI from the activity and the position for each UI element. Then parse the log and getevent is it possible to get the ui operation with the

[android-developers] Re: is there a way to explore directory structure in assets/?

2012-06-04 Thread Chris Stratton
On Jun 4, 12:08 pm, Latimerius l4t1m3r...@googlemail.com wrote: On Mon, Jun 4, 2012 at 2:03 AM, lbendlin l...@bendlin.us wrote: Aren't you the one who put stuff into the asset folder structure? So you should know what's there, and where. Seriously - I'm writing code that has to work with

[android-developers] Re: Debugging code that cause's a hardware restart of the phone :?

2012-04-30 Thread Chris Stratton
On Apr 30, 11:34 am, ThomasWrobel darkfl...@gmail.com wrote: I also use the JPCT 3D library in my app, as well as using the camera preview as a background, so the app is pretty heavy overall. My first hunch would be issues in the platform openGL implementation that probably uses. It would be

[android-developers] Re: ndk, shared library's global variables persist

2012-04-25 Thread Chris Stratton
On Tuesday, April 17, 2012 11:59:42 AM UTC-4, Anatoliy Lysenko wrote: Hi, In my NDK project I have two global variables, int and pointer. When I install my app and run it for first time, all global variables are empty. When I exit app and start it again, in both variables stored values

Re: [android-developers] How to check whether connected wifi network is secured or not

2012-04-24 Thread Chris Stratton
On Tuesday, April 24, 2012 7:08:06 AM UTC-4, Mark Murphy (a Commons Guy) wrote: On Tue, Apr 24, 2012 at 6:40 AM, Bunty syed wrote: But there are no APIS available in the WifiInfo to check the security -- WifiConfiguration tells you what was possible, not what was negotiated for this

Re: [android-developers] Reading ROM version through code

2012-04-23 Thread Chris Stratton
On Monday, April 23, 2012 7:54:50 AM UTC-4, JP wrote: Didn't find anything unfortunately. Is this really impossible to do? Open an adb shell, type getprop and look at the result. Some entries which may be of interest: ro.build.fingerprint ro.build.version.* ro.product.version These should

Re: [android-developers] Reading ROM version through code

2012-04-23 Thread Chris Stratton
Update: none of these are stable APIs and you will need to use the call the native function property_get() or invoke the getprop routine to retrieve them. That makes this method off topic for this group. On Monday, April 23, 2012 10:53:25 AM UTC-4, Chris Stratton wrote: On Monday, April 23

[android-developers] Re: How to upload large video files to FTP Server

2012-04-21 Thread Chris Stratton
On Saturday, April 21, 2012 1:28:39 AM UTC-4, ashish wrote: Hi guys i am getting a problem on uploading large video files to ftp server,files are uploading but the data got courrpted and when we download that file,it is not playable and showing file is courrpted,could anyone please help me

[android-developers] Re: I need to send smileys via mail

2012-04-20 Thread Chris Stratton
On Friday, April 20, 2012 4:21:48 AM UTC-4, Jxn wrote: then, how can i send smiley to the particular receiver using this url??? You can't, as mail (SMTP) is strictly ASCII plain text. It was developed before HTML and the web. I was under the impression that smiley's _are_ plain text.

[android-developers] Re: I need to send smileys via mail

2012-04-20 Thread Chris Stratton
On Friday, April 20, 2012 11:55:42 AM UTC-4, barrett wrote: Does that help? See how this has NOTHING to do with Android? Presumably the poster wants to send the message from an android device, or something like that. Or they are just clueless... -- You received this message because you

[android-developers] Re: I need to send smileys via mail

2012-04-20 Thread Chris Stratton
On Friday, April 20, 2012 11:55:42 AM UTC-4, barrett wrote: Does that help? See how this has NOTHING to do with Android? Presumably the poster wants to send the message from an android device, or something like that. But then again, it's a poorly stated question so we can only speculate as

Re: [android-developers] Re: I need to send smileys via mail

2012-04-20 Thread Chris Stratton
On Friday, April 20, 2012 1:30:45 PM UTC-4, MagouyaWare wrote: Presumably the poster wants to send the message from an android device, or something like that. Just because they are developing for Android doesn't mean the question has anything at all to do with Android development...

[android-developers] Re: Grant the root privilege to the application

2012-04-19 Thread Chris Stratton
On Wednesday, April 18, 2012 2:19:35 AM UTC-4, Sam wrote: Therefore, it needs to be granted the root privilege to run some native functions. That would not be possible on a secured android device, ie, it is off topic for this group The code has been built to be a .so by NDK. The code

[android-developers] Re: tablet is hang due to full internal storage memory

2012-04-19 Thread Chris Stratton
On Thursday, April 12, 2012 11:50:55 PM UTC-4, priya abc wrote: Hello, I run application from eclipse .it installed directly on tablet internal memory storage.that` why it memory is almost full. Then I am trying to uninstall it but it is not removing. So i just power off the tablet and

Re: [android-developers] Re: Directly accessing the e-mail app.

2012-04-19 Thread Chris Stratton
On Thursday, April 12, 2012 9:59:30 AM UTC-4, MagouyaWare wrote: Is there any way I can do it, without going through the chooser? That goes directly against the core of Android. You get a chooser if the user has not specified an email app to use as the default. If they have chosen an

[android-developers] Re: How can I implement AB repeat function using mediaplayer

2012-04-19 Thread Chris Stratton
On Wednesday, April 18, 2012 10:46:21 PM UTC-4, SH wrote: Hi all. I try to develop an audio player and would like to have A-B repeat function. When a user click A button while playing, it memorise starting position and clicking B button, it will save ending position. So it repeat A to B

[android-developers] Re: display homescreen after kill all the background process

2012-04-19 Thread Chris Stratton
On Thursday, April 19, 2012 1:07:22 PM UTC-4, Android Developer wrote: Hi All Can we able to display homescreen after kill all the background process. android.os.Process.killProcess(android.os.Process.myPid()); Try doing it in the other order - send the intent for the home screen and

[android-developers] Re: digital audio input to android phone or tablet

2012-04-06 Thread Chris Stratton
You should, with work, be able to do input digital audio with one of the more recent devices that has the USB host mode option and an appropriate USB dongle. You could also do so via the data network, especially if you can use wifi or do not need to transfer in real time. If you do not

[android-developers] Re: lsusb unable to enumerate an HTC G1

2012-04-06 Thread Chris Stratton
On Thursday, April 5, 2012 5:29:48 PM UTC-4, Yan wrote: [10056.276022] usb 2-7: device descriptor read/64, error -62 [10056.560024] usb 2-7: device descriptor read/64, error -62 [10056.840019] usb 2-7: new full speed USB device using ohci_hcd and address 96 Could be either an

Re: [android-developers] Re: Video Sharing to Facebook from Android App using share intent FAIL :( .

2012-04-05 Thread Chris Stratton
On Thursday, April 5, 2012 5:41:37 AM UTC-4, softy wrote: The exception is coming form inside the *com.facebook.katana.service.method.VideoUpload.getRealPathFromURI that is a part of android.jar I guess. * No, it's part of a facebook client application which is launched in response to

Re: [android-developers] Can we use Android on embedded device without LCD?Are there any devices in the market with this option?

2012-04-05 Thread Chris Stratton
On Wednesday, April 4, 2012 4:32:23 AM UTC-4, the_edge123 wrote: On 31/03/12 23:34, AndroidGuy wrote: Hello Friends, Android is mainly designed for phones and Tablets. But lot of embedded devices doesn't have LCD display or in fact any user input device.Can we use Android on embedded

Re: [android-developers] retrieve minSdkVersion from manifest file programmatically

2012-04-05 Thread Chris Stratton
On Thursday, April 5, 2012 10:45:55 AM UTC-4, MagouyaWare wrote: I need to retrieve the minSdkVersion value from AndroidManifest.xml from a java class. AFAIK there is no way to get that... If you really want to you can find your own apk, open it, and decompile the binary manifest (there's

[android-developers] Re: ANDROID NET - Create a new parallel and open source network via mobile device for data and voice communication

2012-04-03 Thread Chris Stratton
On Monday, April 2, 2012 4:30:48 AM UTC-4, jacopo.tolja wrote: Here the Idea, I was out in the sea about 5 miles from the coast and I could connect to the internet without problem. Android OS in the phone is designed to connect ONLY to the backbone grid. WHAT IF THE BACKBONE GRID IS

[android-developers] Re: Sleep mode

2012-04-02 Thread Chris Stratton
On Monday, April 2, 2012 9:35:28 AM UTC-4, Dan wrote: the question is what do you do to get the device to try to go to a state of CPU/SCREEN/KEYBOARD all Off. You (as an application developer) don't. You merely insure that your code isn't what is keeping it from doing so. You have

[android-developers] Re: Sleep mode

2012-04-02 Thread Chris Stratton
On Tuesday, April 3, 2012 12:03:02 AM UTC-4, Put_tiMe wrote: So according to Dianne's post, CPU is indeed completely switched off. And in Android, there is no CPU under clock mode. And it can be woken up only by external interrupts. Got that. But then how does Alarm-manager timers work?

[android-developers] Re: Database access from another android phone.

2012-03-30 Thread Chris Stratton
Since devices on mobile networks generally can't be reached by incoming connections, you will probably have to have a server somewhere which all the mobile clients check in with so it can forward traffic between them (possible using C2DM to get their attention). You will have to build

Re: [android-developers] Flash freedom

2012-03-30 Thread Chris Stratton
On Friday, March 30, 2012 2:41:29 PM UTC-4, Mark Murphy (a Commons Guy) wrote: I am fairly certain that, by definition, this is impossible. On Fri, Mar 30, 2012 at 2:23 PM, bob wrote: Does anyone know of a reasonable way to play Flash files in an Android app that does not require the

[android-developers] Re: Regarding application created data access on android phone

2012-03-28 Thread Chris Stratton
Yes, you can't. You have three choices: 1) Build extra functionality into your app to copy the database to the sdcard or make it world-readable 2) Make your apk debuggable and use run-as your.package.name from the adb shell to copy the database. You may need to use cat and a redirect if your

[android-developers] Re: Remove / change website elements?

2012-03-28 Thread Chris Stratton
On Tuesday, March 27, 2012 5:09:21 PM UTC-4, adr990 wrote: I would like to change the layout of a website on the fly, with just an andriod app. Like removing images and change divs elements etc. You are going to have to do quite a bit of work, the real question is where. Some

[android-developers] Re: Driver in Linux to access the IOCTL from JNI application. It is failed with error code 13(Permission denied).

2012-03-27 Thread Chris Stratton
ioctl works in the NDK, but Android SDK applications are by design unable to acquire permission to do most of what a driver would probably need to. Android driver-level programming belongs in the discussion of making builds for custom hardware, which would be found on android-porting rather

Re: [android-developers] Force opening web URLs YouTube videos in Android phone's DEFAULT browser using Intent.

2012-03-26 Thread Chris Stratton
On Saturday, March 24, 2012 8:27:15 PM UTC-4, MagouyaWare wrote: AFAIK you can't... On Mar 23, 2012 12:40 AM, Shajahan wrote: I am trying to launch browser with the specified URL. It works fine if it's web URL, but when the URL detected to be a video(say YouTube video) then it come up with

Re: [android-developers] Mobile to Mobile remote access

2012-03-23 Thread Chris Stratton
On Friday, March 23, 2012 6:45:37 AM UTC-4, Mark Murphy (a Commons Guy) wrote: This is not possible via the Android SDK at this time. On Thu, Mar 22, 2012 at 3:50 PM, MadihaKhalid wrote: i just want to know that how i could develop an android application who give remote access to other

Re: [android-developers] Get an app's api level programmatically

2012-03-23 Thread Chris Stratton
On Thursday, March 22, 2012 10:55:00 PM UTC-4, exiquio wrote: My intent is to write and app that pulls the targetSdkVersion from all of a user's installed apps in order to present them with a clear picture of what should and should not run on their device in the event that they update to a

Re: [android-developers] Get an app's api level programmatically

2012-03-23 Thread Chris Stratton
Oh, sorry, didn't see that the specific information you need is part of what is available from stable APIs. On Friday, March 23, 2012 2:26:44 PM UTC-4, Chris Stratton wrote: On Thursday, March 22, 2012 10:55:00 PM UTC-4, exiquio wrote: My intent is to write and app that pulls

[android-developers] Re: Can an Android app have exclusive access to the audio h/w?

2012-03-23 Thread Chris Stratton
Presumably your sound can be as loud as any sound any other SDK application is producing. Do you have to play an intelligible sound file, or might it be enough to mix in enough klaxon or buzzer of various sorts that the user realizes *something* atypical is happening, picks up the device, and

Re: [android-developers] Get an app's api level programmatically

2012-03-23 Thread Chris Stratton
On Friday, March 23, 2012 2:50:13 PM UTC-4, Kostya Vasilyev wrote: Perhaps a better test would be to check for undocumented APIs that are known to have disappeared in a particular Andorid version, but just collecting the data for this type of checking is going to be a large task.

[android-developers] Re: Redirect my app to network setting if the device is not connected to any Network??

2012-03-22 Thread Chris Stratton
You could probably do it by sending an intent, for example ACTION_WIRELESS_SETTINGShttp://developer.android.com/reference/android/provider/Settings.html#ACTION_WIRELESS_SETTINGS On Thursday, March 22, 2012 4:20:50 AM UTC-4, muhamma...@hotmail.com wrote: Hi, Please help me, my

[android-developers] Re: Android adb permision error

2012-03-22 Thread Chris Stratton
On Thursday, March 22, 2012 3:22:50 AM UTC-4, liuyix wrote: Have the same problem on one of my android phones.But the other android phone I got doesn't have this problelm. Your udev rules file probably does not contain a rule matching the VID of that device. -- You received this message

Re: [android-developers] Re: How to use cp (Copy) command in system function in native C code on Android

2012-03-22 Thread Chris Stratton
On Thursday, March 22, 2012 1:02:20 AM UTC-4, Saurabh Patel wrote: Hi all Its resolved some problem of read write permission of my mounted directory Launching a process is still a very bad way to solve a problem on Android, which should only be resorted to when there is no alternative (for

[android-developers] Re: Instalation of FDTI Driver in Android

2012-03-22 Thread Chris Stratton
It's not on topic for this group as it is far outside the bounds of the SDK. Either contact FTDI and ask them to improve their terribly inadequate documentation, or do some searching as I think the question has come up on in other android forums and may have a solution. On Wednesday, March

[android-developers] Re: android crash while installing .apk

2012-03-21 Thread Chris Stratton
On Wednesday, March 21, 2012 12:47:09 AM UTC-4, kiran nayak wrote: hi all i have booted android on my beagleboard.. but when i try to install a simple helloworld.apk android crashes. This question doesn't belong on android-developers since it's a system problem with a custom build; it

[android-developers] Re: Android adb permision error

2012-03-21 Thread Chris Stratton
Is the content of your udev rules file correct, and will it match the device you are connecting? Ie, post the content of your rules file. On Tuesday, March 20, 2012 7:59:49 AM UTC-4, Hera wrote: Hello, I have installed the android SDK but I’m getting an error when using a hardware

[android-developers] Re: icecream emulator adb push to sdcard, gallery fails to update

2012-03-16 Thread Chris Stratton
On Friday, March 16, 2012 5:43:57 AM UTC-4, extrapedestrian wrote: when I push image to icecream emulator sdcard, it doesn't appear in gallery. I have to restart emulator to see image in gallery. That's been true on every android emulator or device I've ever seen. You have to trigger the

Re: [android-developers] Re: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?

2012-03-16 Thread Chris Stratton
On Thursday, March 15, 2012 12:07:30 PM UTC-4, Ted S. wrote: mkdirs(app/dir) fails; mkdirs(app) followed by mkdirs(app/dir) works. This is extremely unusual. That's pretty much standard *nix behavior, Android being a modified linix kernal it's what I would expect. If you were dealing

Re: [android-developers] Recording High Frequencies

2012-03-14 Thread Chris Stratton
On Wednesday, March 14, 2012 7:44:03 AM UTC-4, Spooky wrote: You didn't mention your sampling frequency Remember Nyquist? To reproduce any digital signal, you MUST sample at twice the frequency of the highest frequency you want to reproduce. In this case, you'd have to sample at a

[android-developers] Re: Change Package name to new one

2012-03-14 Thread Chris Stratton
On Wednesday, March 14, 2012 1:18:00 PM UTC-4, Randil wrote: I need to change the excising package name to my own package name. I am trying to rebuild the Soft Keyboard to our own language keyboard. Also is there any tutorials about developing a predictive input systems? If you are

Re: [android-developers] Is there a way for an android app to know which web sites you are accesing?

2012-03-13 Thread Chris Stratton
On Monday, March 12, 2012 2:51:39 PM UTC-4, MagouyaWare wrote: Let's say I open a browser on my phone and go into my favorite site (facebook, for example) and spend an hour there. Is there a way for an external application to register the fact that you've been there, and how long? AFAIK that

[android-developers] Re: problem in executing Runtime.getRuntime().exec()

2012-03-13 Thread Chris Stratton
On Monday, March 12, 2012 9:37:36 AM UTC-4, Ali wrote: Process p = Runtime.getRuntime().exec(su); p = Runtime.getRuntime().exec(sync); p = Runtime.getRuntime().exec(echo 3 /proc/sys/vm/drop_caches); Regardless if these commands would or would not work with

Re: [android-developers] Lock-unlock device during audio recording

2012-03-13 Thread Chris Stratton
On Tuesday, March 13, 2012 5:26:57 AM UTC-4, rachana govilkar wrote: On Monday, March 12, 2012 11:55:21 PM UTC+5:30, hooman os wrote: Maybe start recording in onResume() and stop recording in onPause() nope.it did not work. What didn't work? Was onPause() not called when you lock the

Re: [android-developers] Re: Developer Options on Galaxy Nexus!?

2012-03-07 Thread Chris Stratton
On Wednesday, March 7, 2012 6:01:41 AM UTC-5, Kostya Vasilyev wrote: Instead, there are countless sites r recommending this setting to end users to make things run faster. Can you come up with code to detect it, and point out to the user that this setting is incompatible with your

[android-developers] Re: How To: Run Multiple Apks in Single Process

2012-03-06 Thread Chris Stratton
On Tuesday, March 6, 2012 12:00:57 AM UTC-5, moktarul anam wrote: * * *in android each application runs in separate process. for data sharing u look in to service and contentProvider * The question was probably supposed to be about how to make two apk's share the same userid, something

[android-developers] Re: Developer Options on Galaxy Nexus!?

2012-03-06 Thread Chris Stratton
On Sunday, February 5, 2012 12:26:09 PM UTC-5, guruk wrote: hi there, the experimental developer options on the new Galaxy Nexus cause lots of confusion and problems with my users (as the FORCE CPU RENDERING) do not work with my app (and as i heard from lots of other developers, even has

[android-developers] Re: sqlite database on phone creash

2012-03-05 Thread Chris Stratton
On Monday, March 5, 2012 4:20:12 AM UTC-5, Jagruti Sangani wrote: i have use the sqlite databse for storing and retrive the value during application run.It is work perfectly when i run my apllication on emulator but when i run my application on phone then when try to get data from database

[android-developers] Re: power button

2012-03-04 Thread Chris Stratton
On Sunday, March 4, 2012 8:26:39 AM UTC-5, zasaz wrote: hi everyone! how can i set password on shutdown device or on press power button? Head on over to android-porting or xda-developers and build you own version of android itself - this isn't something SDK apps would be permitted to do.

[android-developers] Re: Approved/recommended/best way to write to GENUINE external storage

2012-03-03 Thread Chris Stratton
On Friday, March 2, 2012 8:06:47 PM UTC-5, Grunthos wrote: Is there a recommended way to identify a list of real *external* storage media? Reading /proc/mounts and discarding anything obviously ineligible would produce a list, at least on devices where it's an actual filesystem and not some

Re: [android-developers] put application in background run

2012-03-03 Thread Chris Stratton
On Friday, March 2, 2012 4:35:37 AM UTC-5, Jagruti Sangani wrote: hello but i had never use the service and also i want to comeback on front the application when call will come in my application. The part that can be in front is an Activity. The part that keeps working even when hidden is

[android-developers] Re: Please guide me how to send data(datastream, not files) from a PC to a real android phone via USB.

2012-03-02 Thread Chris Stratton
On Friday, March 2, 2012 3:16:12 AM UTC-5, vvis wrote: That is, when I tried to send data stream from Simulator to PC, as PC's address being 10.0.2.2, the PC can receive data stream from Simulator(10.0.2.2). I just guess there is somewhat THREAD running on the Simulator. The 10.0.2.2

[android-developers] Re: Regarding apk installation programatically getting callback for successful installation.

2012-03-02 Thread Chris Stratton
On Friday, March 2, 2012 8:24:33 PM UTC-5, Josh Brown wrote: There's the ACTION_PACKAGE_ADDEDhttp://developer.android.com/intl/de/reference/android/content/Intent.html#ACTION_PACKAGE_ADDED broadcast you could use to see when it's installed. I don't think there's one for if it was

[android-developers] Re: Performance issue executing native code on ICS

2012-03-01 Thread Chris Stratton
On Thursday, March 1, 2012 12:08:31 PM UTC-5, Michael wrote: Good tip! This is a print from top running the test application on a Nexus S with Gingerbread: User 89%, System 3%, IOW 0%, IRQ 0% User 282 + Nice 0 + Sys 12 + Idle 22 + IOW 0 + IRQ 0 + SIRQ 0 = 316 PID TID CPU% S VSS

Re: [android-developers] application unable to access internet on device while working properly on android emulator?

2012-03-01 Thread Chris Stratton
On Thursday, March 1, 2012 5:41:40 AM UTC-5, Jagruti Sangani wrote: Hello, the Internet connection is on in the device but still not work. First I assume you have tested that the internet connection of the device works (using the web browser or something) . What type of internet connection

[android-developers] Re: Differences in USB Host support between Embedded Linux and Android phone

2012-02-29 Thread Chris Stratton
On Tuesday, February 28, 2012 1:40:18 AM UTC-5, David Henning wrote: I'm looking for some help understanding the current USB Host capabilities of the latest Android smartphones versus an embedded processor running a standard Linux build. I've done quite a bit of driver-level Linux

[android-developers] Re: USB serial with D2XXSamplefrom FTDI doesn't detect my device.

2012-02-29 Thread Chris Stratton
On Monday, February 27, 2012 4:28:46 PM UTC-5, Gett wrote: I'm trying to use an FTDI USB chip on Android following the instructions at: http://www.ftdichip.com/Android.htm http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_Android_D2XX_Driver.pdf The problem is

[android-developers] Re: USB serial with D2XXSamplefrom FTDI doesn't detect my device.

2012-02-29 Thread Chris Stratton
On Monday, February 27, 2012 4:28:46 PM UTC-5, Gett wrote: I'm trying to use an FTDI USB chip on Android following the instructions at: http://www.ftdichip.com/Android.htm http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_Android_D2XX_Driver.pdf The problem

Re: [android-developers] Re: How to get the DB File from real android device

2012-02-29 Thread Chris Stratton
On Friday, February 24, 2012 5:52:51 AM UTC-5, Sridhar Reddy wrote: Hi.. Only in emulator we can able to access the db files, but it is not possible on Real devices? How to access the db file on real device? If you have non-root ADB but your app is debug-able you have to use the run-as command

[android-developers] Re: ADB over WiFi

2012-02-29 Thread Chris Stratton
On Wednesday, February 22, 2012 5:12:21 PM UTC-5, Bret Foreman wrote: I'm considering running ADB over a WiFi connection rather than via the USB cable. I've read a lot of blog posts about it but I want to verify a few things: 1) Is it true that the phone must be rooted? If so, is

  1   2   3   4   >