Re: [android-developers] Users Verifying my App Signature

2011-08-12 Thread Nikolay Elenkov
On Fri, Aug 12, 2011 at 2:54 PM, Dianne Hackborn hack...@android.com wrote: On Thu, Aug 11, 2011 at 7:36 PM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: BTW, your signing certificate does not have to be self signed. You can have your own CA, and use it issue signing certificates. You

Re: [android-developers] Fwd: imageview displaying

2011-08-12 Thread arun kumar
thankyou for ur reply how can i solve this the image has to appear according to the screen resolution(actually am having a circle(placed at the centre of the screen) on that i placed four images (top,left,right.bottom) by giving android:layout_marginLeft=10dip ((for leftside image)) and

[android-developers] making an installed app not to be displayed in manage applications menu

2011-08-12 Thread kampy
Hi, I am making an mobile theft tracker application for which either i need to remove uninstalling and reinstalling permissions and have to provide uninstalling from the app OR have to provide uninstalling menu in the app and make the app not to be displayed in the manage applications menu .

[android-developers] AccountManager.addAccountExplicitly generates a null pointer error...

2011-08-12 Thread Richard Schilling
I'm getting a null pointer exception and the phone reboots when I call AccountManager.addAccountExplicitly, even though I have a service that returns a proper SyncAdapter. It's all setup in the manifest properly, etc just like others was saying to do. What other possible conditions generate

[android-developers] Re: Known reasons for rebooting?

2011-08-12 Thread Per
Update: I had my app running for hours yesterday while charging, with the Desire kept cool by sitting on top of a small CPU-cooler-like fan. Noisy, but cool. When I switched off the fan, the Desire rebooted within 3 minutes. Also, no reboots in flight mode. Bugger. On Aug 11, 1:55 pm, Per

[android-developers] Re: asmack.jar - typing notification.

2011-08-12 Thread arindam
Hi, I have added the listener like MessageEventRequestListener and MessageEventNotificationListener but nothing is happening. Please give me idea on this. Thanks. - Arindam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Java script to Native Bindings reverse

2011-08-12 Thread Android Developer
Hi, I am working on web applications where am trying to access Native functionality in the phone using Java script APIs. Android Web view supports Add Java script interface for Java script to Java (native) bindings as in below link:

[android-developers] Re: MediaRecorder video save issue

2011-08-12 Thread esse
Appears to be a problem specific to the phone's or operating system. I have now tested the above code and my more complex video recorder code on two different phones and I did not get the above issue. Unfortunately I do not know if it was the phone or os. On Aug 3, 12:20 pm, esse

[android-developers] Number of notifications

2011-08-12 Thread hman
Hi, How can I get the number of notifications (that appears in the statusbar) avialable on the phone at any time ? regardless of whether these notifications are calls, sms..etc.. appreciate if any one can hel me with the right code.. thanks -- You received this message because you are

[android-developers] Re: Force Close Issue

2011-08-12 Thread Usef Ali
You could alway option your present location first, then destination to. On Aug 12, 12:21 am, Nick Risaro nris...@gmail.com wrote: That's so sad :( Maybe if you attach some logs we can help you and stop being sad. On Fri, Aug 12, 2011 at 1:15 AM, Spica spicaneb...@gmail.com wrote: I am

[android-developers] how to enable the dragging option in android browser?

2011-08-12 Thread simi
i want to run the site http://html5demos.com/drag; .. actually this site is opening in android browser(1e,in android emulator).but can not do the drag option.. what should do for dragging the texts in emulator Is there any workaround possible for working the HTML5 drag and drop

[android-developers] update_all.py problem

2011-08-12 Thread antoine Y
Hi Everyone, I am trying to port bionic libc with linux kernel, and when I generate header files, according to README.TXT at /bionic/libc/ kernel/, I copy linux header files at kernel/original... and run tools/ update_all.py, it comes problem as following:(no mater it's in isolated bionic dir

[android-developers] Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-12 Thread gml
Hi guys, I have simple application that loading the data needed upon the Activity starts which it consume about 2-3 minutes. Then, the UI displayed after that long process. Present Scenario: 1) click the app to start. 2) progress bar pop-up while doing the data loading in my localDB (about

[android-developers] Need ideas on encrypting h.264 videos on Android

2011-08-12 Thread Peter Taps
Folks, Our application requires that a H.264 video be kept on the disk in an encrypted format. One should be able to play this video only through our application. I am seeking ideas on the best way to achieve this. I looked at VideoView class. Looks like it can only take a file, HTTP or RTSP

[android-developers] Re: Force Close Issue

2011-08-12 Thread Usef Ali
You could mange that fix by having the app locate you (the user) first, then input destination 2nd. On Aug 12, 12:15 am, Spica spicaneb...@gmail.com wrote: I am developing location based application which uses phone's gps. It works fine on my android device when i am not moving but as soon as i

Re: [android-developers] Re: Force Close Issue

2011-08-12 Thread Der Jäger .
Can't you incorporate Google maps to your app for judging your location ? On Fri, Aug 12, 2011 at 12:40 AM, Spica spicaneb...@gmail.com wrote: This my first android application so i am not sure what log i need to attach... On Aug 12, 12:21 am, Nick Risaro nris...@gmail.com wrote: That's so

[android-developers] Camera onPreviewFrame not called after video recording with MediaRecorder

2011-08-12 Thread esse
when using the Camera.PreviewCallback implementation the onPreviewFrame is called without problem after initializing camera and starting preview (Camera.startPrevew()). The problem is if I make a video recording using MediaRecorder onPreviewFrame does not get called any more. I understand that

Re: [android-developers] Fwd: imageview displaying

2011-08-12 Thread Appaholics
Use a RelativeLayout or create the screen at runtime with java and set the margins after calculating them. Thanks On Fri, Aug 12, 2011 at 11:33 AM, arun kumar arun.kata...@gmail.com wrote: thankyou for ur reply how can i solve this the image has to appear according to the screen

[android-developers] How to save captured image by camera to a particular location ?

2011-08-12 Thread Amit Mangal
Hi Everyone, I am opening camera by my app and taking picture with that camera now i want to save that image to a particular folder in sd card i have calculated path of folder. please let me know how to save that image in particular path. thank you -- You received this message because you are

Re: [android-developers] Re: Known reasons for rebooting?

2011-08-12 Thread Nico Balestra
As I told you.. I switched on a Samsung Galaxy S2 :) I thought about keeping the HTC just for testing my apps on a different device but eventually it was useless. As soon as I connected the device on the USB port... puff.. function reboot() { reboot(); }:))) 2011/8/12 Per p...@care2wear.com

Re: [android-developers] how to enable the dragging option in android browser?

2011-08-12 Thread Duygu Kahraman
i check in device.Dragging option doesnt work too. Duygu Kahraman http://tr.linkedin.com/in/duygukahramann 2011/8/12 simi simivenugopa...@gmail.com i want to run the site http://html5demos.com/drag; .. actually this site is opening in android browser(1e,in android emulator).but can not do

Re: [android-developers] Users Verifying my App Signature

2011-08-12 Thread sparky
No, I think that was just hyperbole. It's still 25 years. http://developer.android.com/guide/publishing/app-signing.html The signature isn't to say, unequivocally, I am Sparky. It says, both versions of this app were signed by the same author. -- You received this message because you are

Re: [android-developers] Users Verifying my App Signature

2011-08-12 Thread Nikolay Elenkov
On Fri, Aug 12, 2011 at 6:06 PM, sparky spar...@google.com wrote: No, I think that was just hyperbole.  It's still 25 years. http://developer.android.com/guide/publishing/app-signing.html On other forums, there have been reports that you are unable to publish a new app if the certificate is

[android-developers] how to set read writ permission to recorded file

2011-08-12 Thread Amit Mangal
Hi everyone i am doing audio recording after recording audio my prepare get fails. I have read on some threads set permission to a file while playing from sd card please tell me any one knows how to set permission recorded file programatically so that i willbe able to play it inside from my app.

Re: [android-developers] how to set read writ permission to recorded file

2011-08-12 Thread Appaholics
You aren't making too much sense. Do you want the permissions for the manifest or the permissions to set for the audio file? Thanks On Fri, Aug 12, 2011 at 2:48 PM, Amit Mangal forum.amit.man...@gmail.comwrote: Hi everyone i am doing audio recording after recording audio my prepare get fails.

[android-developers] Save data in file or db

2011-08-12 Thread Kristoffer
Hello. This is my first app made in eclipse (have worked with app inventor) This is a simple app where i have two buttons and a textview. one button will increase 1 to the number that shows in the textview and the other button will decrease with 1. So the question is whats the best way to

Re: [android-developers] Save data in file or db

2011-08-12 Thread Appaholics
If you need it only once per run and can afford to throw it away and start again from next time then simply increment a variable. Otherwise for something like this SharedPreferences would do as well. Thanks On Fri, Aug 12, 2011 at 2:53 PM, Kristoffer kris.isak.v...@gmail.comwrote: Hello.

Re: [android-developers] how to set read writ permission to recorded file

2011-08-12 Thread Amit Mangal
No, I want to play audio file which i have recorded by my application.recording is working fine but playing not. thanks On Fri, Aug 12, 2011 at 2:51 PM, Appaholics raghavs...@appaholics.inwrote: You aren't making too much sense. Do you want the permissions for the manifest or the permissions

[android-developers] Sqlite version in all Android platforms

2011-08-12 Thread ndiiie 90
Hi guys, I am wonder what is sqlite version in all android platforms? Is it version 3? or is there any version below? Thanks, Rendy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] how to set read writ permission to recorded file

2011-08-12 Thread Appaholics
If you created the file you should be able to read it. There must be some other problem. Post the LogCat and relevant code. On Fri, Aug 12, 2011 at 3:24 PM, Amit Mangal forum.amit.man...@gmail.comwrote: No, I want to play audio file which i have recorded by my application.recording is

[android-developers] Re: Save data in file or db

2011-08-12 Thread Kristoffer
Thanks for the answer. I need to save the value from sessions to sessions to i need to save it. so you think that i should go with SharedPreferences instead? On 12 Aug, 11:26, Appaholics raghavs...@appaholics.in wrote: If you need it only once per run and can afford to throw it away and start

Re: [android-developers] Re: Save data in file or db

2011-08-12 Thread Appaholics
For a simple storage thing like this you could safely use SharedPreferences. If it starts becoming complex then a database would be best. On Fri, Aug 12, 2011 at 3:47 PM, Kristoffer kris.isak.v...@gmail.comwrote: Thanks for the answer. I need to save the value from sessions to sessions to i

Re: [android-developers] Need ideas on encrypting h.264 videos on Android

2011-08-12 Thread Sumedh Jiwane
actually not sure what do you want to do. can you be elaborate more. Do you want to play local file or remote file. Do you want to stream or download and play? On Fri, Aug 12, 2011 at 8:28 AM, Peter Taps ptr...@gmail.com wrote: Folks, Our application requires that a H.264 video be kept on

Re: [android-developers] Fwd: imageview displaying

2011-08-12 Thread arun kumar
Hi am sending the xml code i made by taking relative layout...so,where i have to change the code..can u guide me... Thanks RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:id=@+id/ll android:background=@drawable/circle2

Re: [android-developers] Java script to Native Bindings reverse

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 2:57 AM, Android Developer p.sidda...@gmail.com wrote: I am working on web applications where am trying to access Native functionality in the phone using Java script APIs. Android Web view supports Add Java script interface for Java script to Java (native) bindings as

[android-developers] Re: Sqlite version in all Android platforms

2011-08-12 Thread Peter Stacey
http://developer.android.com/reference/android/database/sqlite/package-summary.html Last sentence of first paragraph. On Aug 12, 7:57 pm, ndiiie 90 rnd...@gmail.com wrote: Hi guys, I am wonder what is sqlite version in all android platforms? Is it version 3? or is there any version below?

Re: [android-developers] making an installed app not to be displayed in manage applications menu

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 2:15 AM, kampy narasimha1...@gmail.com wrote:  I am making an mobile theft tracker application for which either i need to remove uninstalling and reinstalling permissions and have to provide uninstalling from the app OR have to provide uninstalling menu in the app

Re: [android-developers] Number of notifications

2011-08-12 Thread Mark Murphy
On Thu, Aug 11, 2011 at 5:11 PM, hman housn...@gmail.com wrote: How can I get the number of notifications (that appears in the statusbar) avialable on the phone at any time ? regardless of whether these notifications are calls, sms..etc.. appreciate if any one can hel me with the right code..

[android-developers] Service Discovery is not happening when screen is off

2011-08-12 Thread SREEHARI
Hi, My application runs a service which can announce the Upnp discovery through Wifi. The device is getting discovered in Cling work bench. But when the screen is off, the device is not getting discovered. I tried Wakelock and Wifilock, but still its not working. I changed the sleep policy in

Re: [android-developers] Re: Sqlite version in all Android platforms

2011-08-12 Thread Mark Murphy
Actually, that documentation lies. http://stackoverflow.com/questions/2421189/version-of-sqlite-used-in-android On Fri, Aug 12, 2011 at 6:54 AM, Peter Stacey peterst6...@gmail.com wrote: http://developer.android.com/reference/android/database/sqlite/package-summary.html Last sentence of

Re: [android-developers] OnCheckedChangeListener not working on RadioGroup

2011-08-12 Thread Mark Murphy
The error message is self-explanatory. You are trying to use a CompoundButton.OnCheckedChangeListener() in a place that takes a RadioGroup.OnCheckedChangeListener. On Fri, Aug 12, 2011 at 12:58 AM, shamir shakir dewswo...@gmail.com wrote: Hello, I was trying to add the CheckedChangeListner for

Re: [android-developers] Fwd: imageview displaying

2011-08-12 Thread Appaholics
Put everything in one RelativeLayout and then use the Below etc parameters to position your images. On Fri, Aug 12, 2011 at 4:20 PM, arun kumar arun.kata...@gmail.com wrote: Hi am sending the xml code i made by taking relative layout...so,where i have to change the code..can u guide me...

[android-developers] Re: Sqlite version in all Android platforms

2011-08-12 Thread Peter Stacey
Interesting. I thanks for that one Mark. I think it's safe to assume the minimum version is 3.4.0 On Aug 12, 8:56 pm, Mark Murphy mmur...@commonsware.com wrote: Actually, that documentation lies. http://stackoverflow.com/questions/2421189/version-of-sqlite-used-in-... On Fri, Aug

Re: [android-developers] How to close an activity

2011-08-12 Thread leo luo
Hi, If the version u used is before 2.2, I guess u can try this methord: ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); activityManager.restartPackage(packagename); If the version is 2.2 or later: u may try this: public

Re: [android-developers] Re: Sqlite version in all Android platforms

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 7:07 AM, Peter Stacey peterst6...@gmail.com wrote: I think it's safe to assume the minimum version is 3.4.0 Agreed. I think that they just haven't updated the docs. There was an extended thread recently on the compatibility issues this can raise, particularly if you

Re: [android-developers] Need ideas on encrypting h.264 videos on Android

2011-08-12 Thread Daniel Drozdzewski
On 12 August 2011 11:28, Sumedh Jiwane sumed...@gmail.com wrote: actually not sure what do you want to do. can you be elaborate more. Do you want to play local file or remote file. Do you want to stream or download and play? On Fri, Aug 12, 2011 at 8:28 AM, Peter Taps ptr...@gmail.com wrote:

[android-developers] Re: connecting USB serial device to Android handset, is it possible?

2011-08-12 Thread ColorTheorist
While I do not have full understanding of different hardwares and chips, not being too familiar with hardware in general, the Honeycomb suite does allow for the user to connect an HID interfacing USB device and open up a connection with it. From there you could communicate with the device via a

[android-developers] Re: Run Flash on Android Emulator?

2011-08-12 Thread dhirendra
Hi Mark, Do you know how to embed flash animation into my android application(flash on app start) which is not browser based? If not possible, is their anyway i can load webview for flash to just show that animation and than go to my application which is not webview based. Regards Dhirendra On

Re: [android-developers] how to set read writ permission to recorded file

2011-08-12 Thread Amit Mangal
Problem is solved i need to pass file descriptor rather than path string. thanks On Fri, Aug 12, 2011 at 3:28 PM, Appaholics raghavs...@appaholics.inwrote: If you created the file you should be able to read it. There must be some other problem. Post the LogCat and relevant code. On Fri, Aug

Re: [android-developers] Re: Run Flash on Android Emulator?

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 8:22 AM, dhirendra dhirendraii...@gmail.com wrote: Do you know how to embed flash animation into my android application(flash on app start) which is not browser based? There may be a way to show the Flash in an app via a WebView, but I have not tried it, and I see enough

[android-developers] How to get android capture image URI?

2011-08-12 Thread vijayakumar M
Hi Friends, How to get android camera capture image uri? any one help me please Thanks for advance -- νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] How to get android capture image URI?

2011-08-12 Thread Ratheesh Valamchuzhy
hi Vijaya kumar plse find the links http://stackoverflow.com/questions/6248887/android-device-specific-camera-path or Uri target = Uri.parse(content://media/external/ images/media); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: How to close an activity A and sub activity B that runs in the background?

2011-08-12 Thread nadam
Activity B is not running in the background. It's already stopped, so you just need to call finish() to stop Activity A. But since you already do that I assume that there is some other problem. Maybe you call startActivity() to get back to Activity A from Activity B? Call finish() instead in

[android-developers] Re: Problem installing USB driver for Nexus S

2011-08-12 Thread nadam
The right drivers seems to be part of PdaNet, so that's what many people recommend as the easiest way to solve this problem. http://junefabrics.com/android/download.php On 10 Aug, 02:02, David dfket...@gmail.com wrote: Hi! I've installed the SDK and AVD Manager (successfully, I believe), and

[android-developers] Re: Query...

2011-08-12 Thread nadam
http://developer.android.com/guide/topics/data/data-storage.html On 11 Aug, 13:01, ISHAN THAPAR ishanthapar...@gmail.com wrote: But can you give me some example with code to unnderstand!!! On Thu, Aug 11, 2011 at 3:56 AM, Nico Balestra nicobales...@gmail.com wrote: Probably bits

[android-developers] Re: How to parse a text data in an xml,if the text data in xml contains spaces ?

2011-08-12 Thread nadam
The characters() method may be called several times, so you need to use a StringBuilder to append all the information. See the following links: http://stackoverflow.com/questions/2838099/android-sax-parser-not-getting-full-text-from-between-tags

[android-developers] Re: Force Close Issue

2011-08-12 Thread Spica
Guys, functionality is fine but issue is that it crashes when device moves. I will install looger app and upload the log here today. On Aug 12, 12:32 am, Usef Ali djse.internatio...@gmail.com wrote: You could mange that fix by having the app locate you (the user) first, then input destination

[android-developers] Re: How to close entire app?

2011-08-12 Thread ndiiie90
Hi again Mark, I must close the entire app, because my app is a commerce application, that has its own flow until the payment, and user can't go back to previous screen, so whenever user has reached the last page, there are options to exit the app or go back to menu again..have any idea?

[android-developers] Re: Sqlite version in all Android platforms

2011-08-12 Thread ndiiie90
Hi Mark, thanks for your answer. By the way I just borrowed your book from library.. :D and thanks also for Peter Thanks, Rendy On Aug 12, 6:13 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Aug 12, 2011 at 7:07 AM, Peter Stacey peterst6...@gmail.com wrote: I think it's safe to

Re: [android-developers] Re: How to close entire app?

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 11:17 AM, ndiiie90 rnd...@gmail.com wrote: I must close the entire app No, you don't. because my app is a commerce application, that has its own flow until the payment, and user can't go back to previous screen, so whenever user has reached the last page, there are

Re: [android-developers] Re: Sqlite version in all Android platforms

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 11:18 AM, ndiiie90 rnd...@gmail.com wrote: By the way I just borrowed your book from library.. :D Don't forget to return it on time. :-) BTW, if the book is _Beginning Android 2_, that is older than the Creative Commons-licensed Version 3.0 of _The Busy Coder's Guide to

[android-developers] Restarting onPreviewFrame

2011-08-12 Thread esse
when using the Camera.PreviewCallback implementation the onPreviewFrame is called without problem after initializing camera and starting preview (Camera.startPrevew()). The problem is if I make a video recording using MediaRecorder onPreviewFrame stops being called and cannot be restarted after

[android-developers] Re: Force Close Issue

2011-08-12 Thread Spica
Here is the log and at this point i do not have any idea what it means; == CRASH LOG: 0.00) 08-12 10:54:08.908 D/gps_BRCM( 2479): on_location_cb() : location is missed. flags is 0! 08-12 10:54:08.908 D/GpsLocationProvider( 2479): send

Re: [android-developers] Re: Force Close Issue

2011-08-12 Thread Mark Murphy
None of that shows a crash. A Force Close dialog will have a Java stack trace associated with it. On Fri, Aug 12, 2011 at 11:29 AM, Spica spicaneb...@gmail.com wrote: Here is the log and at this point i do not have any idea what it means;

[android-developers] How safe to store database in sqlite?

2011-08-12 Thread ndiiie 90
Hi guys, I wonder how safe to store sensitive data in sqlite in Android? Because i've researched that rooted Android phone can access the database. But can the database to be edited? or view only? Thanks, Rendy -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] How safe to store database in sqlite?

2011-08-12 Thread Kristopher Micinski
http://developer.android.com/guide/topics/data/data-storage.html#db? On Fri, Aug 12, 2011 at 11:39 AM, ndiiie 90 rnd...@gmail.com wrote: Hi guys, I wonder how safe to store sensitive data in sqlite in Android? Because i've researched that rooted Android phone can access the database. But

[android-developers] Re: enableForegroundNdefPush not working

2011-08-12 Thread musfiq
Normal tag sharing works. But foregroundNDEFPush not working? Nothing in logcat. By the way, I could not find your apps searchin ndef push in the market. On Aug 11, 12:35 pm, nadam a...@anyro.se wrote: That description seems to cover everything you need (except holding the two phones together

[android-developers] Re: Service Discovery is not happening when screen is off

2011-08-12 Thread b0b
It is probably related to Wifi Power Save Polling (PSP) mode which can cause issues like this depending on the device and the WiFi router. It can also cause stuterring audio, for example for VoIP apps. See this link for full details: http://code.google.com/p/android/issues/detail?id=9781 To

[android-developers] Re: Force Close Issue

2011-08-12 Thread Spica
I grabbed this log using app Log Report. Could you suggest how i can capture log so it grabs the Java stack trace? Or suggest better app to capture log. On Aug 12, 11:31 am, Mark Murphy mmur...@commonsware.com wrote: None of that shows a crash. A Force Close dialog will have a Java stack trace

[android-developers] Re: newbie: onLocationChanged invoked even in sleep mode

2011-08-12 Thread Marcus
No, the code above is the whole thing. There is no other code than that. But my cofusion is that I get updates even though phone is appear to be sleeping. On 11 Aug, 19:55, lbendlin l...@bendlin.us wrote: are you canceling your requests for location updates in the onPause() function? -- You

Re: [android-developers] Re: Force Close Issue

2011-08-12 Thread Kristopher Micinski
Run a logcat after you force close while you have the device plugged in (or hooked up in some other way to your debug bridge.) Logcat can give you some good helpful hints, you can read a bit more about it. Kris On Fri, Aug 12, 2011 at 12:18 PM, Spica spicaneb...@gmail.com wrote: I grabbed

[android-developers] Re: newbie: onLocationChanged invoked even in sleep mode

2011-08-12 Thread Marcus
According to the phone task manager there are no more processes running. Only the system services are running. On 11 Aug, 19:17, TreKing treking...@gmail.com wrote: On Wed, Aug 10, 2011 at 11:21 AM, Marcus marcussilf...@gmail.com wrote: What is going on here? Possibly: any of the many apps

Re: [android-developers] Re: newbie: onLocationChanged invoked even in sleep mode

2011-08-12 Thread TreKing
On Fri, Aug 12, 2011 at 11:44 AM, Marcus marcussilf...@gmail.com wrote: According to the phone task manager there are no more processes running. Only the system services are running. Have you waded through the full log to see what else is happening around that time? I'd hope the device waking

Re: [android-developers] Re: newbie: onLocationChanged invoked even in sleep mode

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 12:44 PM, Marcus marcussilf...@gmail.com wrote: According to the phone task manager there are no more processes running. Only the system services are running. Some of those may wake up the phone. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Need ideas on encrypting h.264 videos on Android

2011-08-12 Thread Peter Taps
These are local files but stored in an encrypted format. The clients obtain the videos via physical means (not download). The encryption/decryption itself is not an issue. The problem is how to let MediaPlayer or VideoView deal with on-the-fly decryption. One way would be to implement a local

[android-developers] Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
Hi guys, My app has two activities with a parcelable object going forward and back between them, which works fine. The problem comes when user goes back (from activity 2 to main activity) by using the hardware keyboard. In that moment the method onStop suppose to be called and the activity must

Re: [android-developers] Activity Lifecycle question

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 1:02 PM, hectordu...@yahoo.com hectordu...@yahoo.com wrote: Hi guys, My app has two activities with a parcelable object going forward and back between them, which works fine. The problem comes when user goes back (from activity 2 to main activity) by using the hardware

[android-developers] Re: Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
have Activity 1 use startActivityForResult() to start up Activity 2, with Activity 2 sending the result back via setResult(), followed by finish(). ok, thats exactly what the activities do; but the result back doesnt work when the hardware keyboarb (back) is used. What actvity 2 does is:

[android-developers] Re: How to close entire app?

2011-08-12 Thread Kevin TeslaCoil Software
So, if this were a Web app, you would attempt to reboot the user's PC to prevent them from pressing the BACK button in their Web browser? That is exactly how I handle my web apps! So can you send me reboot code for the onBackPressed()? It is urgent. :) -- You received this message because

Re: [android-developers] Re: How to close entire app?

2011-08-12 Thread TreKing
On Fri, Aug 12, 2011 at 12:18 PM, Kevin TeslaCoil Software ke...@teslacoilsw.com wrote: So, if this were a Web app, you would attempt to reboot the user's PC to prevent them from pressing the BACK button in their Web browser? That is exactly how I handle my web apps! So can you send me

Re: [android-developers] Re: Activity Lifecycle question

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 1:16 PM, hectordu...@yahoo.com hectordu...@yahoo.com wrote: have Activity 1 use startActivityForResult() to start up Activity 2, with Activity 2 sending the result back via setResult(), followed by finish(). ok, thats exactly what the activities do; but the result

Re: [android-developers] Re: How to close entire app?

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 1:18 PM, Kevin TeslaCoil Software ke...@teslacoilsw.com wrote: So, if this were a Web app, you would attempt to reboot the user's PC to prevent them from pressing the BACK button in their Web browser? That is exactly how I handle my web apps! So *you're* the $##%)#$(@

Re: [android-developers] How safe to store database in sqlite?

2011-08-12 Thread Chris
On Friday, August 12, 2011 11:49:20 AM UTC-4, Kristopher Micinski wrote: http://developer.android.com/guide/topics/data/data-storage.html#db? Your link doesn't really go into any details about the security and integrity of using the database to store sensitive data. Anyway, they're not

[android-developers] Canvas.drawBitmap() different in API 7 vs API 8?

2011-08-12 Thread hacksoft
Hi, I'm trying to implement pan and zoom across a bitmap and I'm using Canvas.drawBitmap(bitmap, src, dest, paint) where dest is the rectangle of the Android device screen. The difference in implementation I'm seeing is that I can set a src Rect with negative coordinates and drawBitmap() will

[android-developers] Re: How safe to store database in sqlite?

2011-08-12 Thread Kamil
So, if you connect to database you can edit its records. AFAIK SQLite doesn't have any password set. Connecting to database gives you all permissions to whole database. On 12 Sie, 17:39, ndiiie 90 rnd...@gmail.com wrote: Hi guys, I wonder how safe to store sensitive data in sqlite in Android?

[android-developers] Re: Save data in file or db

2011-08-12 Thread Kamil
You should definitely use SharedPreferences. It's easy to save/read data from prefs. Moreover, everything you save into SharedPreferences will be stored in XML file placed in application directory, so you can easy check saved value. On 12 Sie, 12:17, Kristoffer kris.isak.v...@gmail.com wrote:

Re: [android-developers] How safe to store database in sqlite?

2011-08-12 Thread Kristopher Micinski
On Fri, Aug 12, 2011 at 1:55 PM, Chris crehb...@gmail.com wrote: On Friday, August 12, 2011 11:49:20 AM UTC-4, Kristopher Micinski wrote: http://developer.android.com/**guide/topics/data/data-**storage.html#dbhttp://developer.android.com/guide/topics/data/data-storage.html#db ? Your

[android-developers] Saving file causes exception

2011-08-12 Thread Mark Ayers
I'm working on a drawing app, and the code for my file saving routine goes like this: case SAVE_MENU_ID: Config config = Config.ARGB_; Bitmap mBitmap = Bitmap.createBitmap(mDrawingPanel.getWidth(), mDrawingPanel.getHeight(), config); Canvas canvas = new Canvas(mBitmap);

Re: [android-developers] Saving file causes exception

2011-08-12 Thread Mark Murphy
You cannot affect the UI from doInBackground(). As the stack trace illustrates, this includes showing Toasts. Please move your Toast to onPostExecute(). On Fri, Aug 12, 2011 at 2:51 PM, Mark Ayers markthe...@gmail.com wrote: I'm working on a drawing app, and the code for my file saving routine

Re: [android-developers] Android CL and onRetainNonConfigurationInstance

2011-08-12 Thread Ian
Mark, On Tuesday, July 19, 2011 7:45:43 AM UTC-5, Mark Murphy (a Commons Guy) wrote: On Tue, Jul 19, 2011 at 5:32 AM, Zsolt Vasvari zvas...@gmail.com wrote: If so, what can I do when I have some objects I need to retain, but I cannot save them to the activity state? In particular, I

Re: [android-developers] Saving file causes exception

2011-08-12 Thread Appaholics
Hey Mark (the first one), Forgot to tell you. I fixed this problem (sort of). I got the force close to go away but the file doesn't save. case SAVE_MENU_ID: mBitmap = Bitmap.createBitmap(mDrawingPanel.getWidth(), mDrawingPanel.getHeight(), Bitmap.Config.ARGB_); canvas = new

Re: [android-developers] Android CL and onRetainNonConfigurationInstance

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 2:57 PM, Ian ian.d...@gmail.com wrote: When you say create a no-UI fragment I haven't tried this technique, personally. My state tends to be bound up in fragments that need an actual UI, or is part of a data model that isn't instance state. Hence, take my advice here with

[android-developers] Re: Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
:-( so, if the user press back, the method setResult(RESULT_OK, rit), called from onStop() ... does not work? On Aug 12, 12:35 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Aug 12, 2011 at 1:16 PM, hectordu...@yahoo.com hectordu...@yahoo.com wrote: have Activity 1 use

Re: [android-developers] Re: Activity Lifecycle question

2011-08-12 Thread Kostya Vasilyev
Try calling setResult from onPause - I believe onStop is too late, due to how Start/Stop/Pause/Resume are intermingled. 2011/8/12 hectordu...@yahoo.com hectordu...@yahoo.com: :-( so, if the user press back, the method setResult(RESULT_OK, rit), called from onStop() ... does not work? On Aug

Re: [android-developers] Re: Activity Lifecycle question

2011-08-12 Thread TreKing
On Fri, Aug 12, 2011 at 2:12 PM, hectordu...@yahoo.com hectordu...@yahoo.com wrote: so, if the user press back, the method setResult(RESULT_OK, rit), called from onStop() ... does not work? Yes it does. More than likely you are handling onActivityResult incorrectly. Are you specifically

Re: [android-developers] Re: Activity Lifecycle question

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 3:17 PM, Kostya Vasilyev kmans...@gmail.com wrote: Try calling setResult from onPause - I believe onStop is too late, due to how Start/Stop/Pause/Resume are intermingled. Last I checked, even onPause() is too late. Hector: The idea is that you call setResult() when the

Re: [android-developers] Service Discovery is not happening when screen is off

2011-08-12 Thread Irfan Sheriff
If it is related to multicast packets getting dropped, try creating a multicast lockhttp://developer.android.com/reference/android/net/wifi/WifiManager.MulticastLock.html If needed, use the WIFI_MODE_FULL_HIGH_PERF mode with care to avoid driver optimizations at screen off. Thanks On Fri, Aug

[android-developers] xml layout error.

2011-08-12 Thread Goutom
Hi I have a layout xml file.When I call setContentView(R.layout.xmlname), it crashes.Logcat shows nothing. -- ?xml version=1.0 encoding=utf-8? LinearLayout

Re: [android-developers] xml layout error.

2011-08-12 Thread TreKing
On Fri, Aug 12, 2011 at 3:10 PM, Goutom goutom.sust@gmail.com wrote: what to do? Reinstall Eclipse and the SDK - because if LogCat shows *NOTHING*, you have a serious problem. - TreKing

[android-developers] Re: Force Close Issue

2011-08-12 Thread Indicator Veritatis
And why can't he debug it while moving? He can run the SDK on a laptop and carry it with him connected to the phone while he moves both together. On Aug 11, 10:13 pm, Sumedh Jiwane sumed...@gmail.com wrote: The log is generally what you what you seen in logcat console while debugging. But here

  1   2   >