[android-developers] Re: Help: BOOT_COMPLETED has started acting weird in 2.3+

2011-08-12 Thread Carter
I bet a number of instances are due to HTC devices with Fast Boot enabled in the Settings. BOOT_COMPLETED isn't broadcast when Fast Boot is enabled. HTC added Fast Boot to the Evo 4G with the Gingerbread update. I think the Thunderbolt also has this feature. Try asking your users to turn Fast B

Re: [android-developers] Re: xml layout error.

2011-08-12 Thread TreKing
On Fri, Aug 12, 2011 at 7:30 PM, martypantsROK wrote: > why not give the poor guy some real advice > I thought I had ... > instead of just making crap up? > I didn't think I did ... If LogCat literally shows nothing - not a single line from anywhere - then the OP has serious problems, as I

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

2011-08-12 Thread TreKing
On Fri, Aug 12, 2011 at 5:36 PM, hectordu...@yahoo.com < hectordu...@yahoo.com> wrote: > i wonder if somebody has an idea to deal with this issue; i tried to catch > the RESULT_CANCELED but nothing happens, the activity 1 is as follows: > How and where are you calling your "goBack()" method? ---

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

2011-08-12 Thread ndiiie90
haha thanks to remind me to return it.. :D Yeah, i think to borrow Beginning Android 3 which is not available to be borrowed in library yet. Thanks for publishing such great book! On Aug 12, 10:25 pm, Mark Murphy wrote: > On Fri, Aug 12, 2011 at 11:18 AM,ndiiie90 wrote: > > By the way I just bo

[android-developers] Help: BOOT_COMPLETED has started acting weird in 2.3+

2011-08-12 Thread keyeslabs
I'm looking for ideas on this one, as I've been unable to reproduce no matter how hard I try in any of my local evironements. As users are getting upgraded to 2.3+, a small but significant number are reporting that my app (Screebl) is failing to start on phone reboot. The app has had a recei

[android-developers] Home screen's Icon

2011-08-12 Thread Perry168
Hi all, Does anything method , I can 'get' icon and widget's location & size at the current home screen? 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

[android-developers] StrictMode penalties

2011-08-12 Thread William Ferguson
It sure would be nice to be able to specify your own penalties when configuring StrictMode. For example, the ability to post to ACRA/(insert favourite remote exception handler) would really help with distributed testing. All it would need would be a penalty interface that received the stacktrace a

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

2011-08-12 Thread lbendlin
you need to stop asking for location updates if you no longer want to receive them. You can re-start the listener in onResume. -- 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@googlegr

Re: [android-developers] Re: Failed to register input channel?

2011-08-12 Thread Mark Carter
I'm getting this too (also only on SDK level 10) - anyone find any workarounds? -- 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 e

[android-developers] Re: Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
1- i saw an example using super.onActivityResult() using it after the "if" didnt make any difference! 2-the process code is for RESULT_OK: yellowRoullete = (Roullete) rit.getParcelableExtra("updatedYellowRoullete"); blueRoullete = (Roullete) rit.getParcelableExtra("updatedBlu

[android-developers] recommended icon size.

2011-08-12 Thread sblantipodi
Hi all... what is the recommended icon size actually? I mean the icon we use to start applications not the in-app icon. 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@google

[android-developers] Re: xml layout error.

2011-08-12 Thread martypantsROK
patently ridiculous - why not give the poor guy some real advice instead of just making crap up? On Aug 13, 5:13 am, TreKing wrote: > On Fri, Aug 12, 2011 at 3:10 PM, Goutom wrote: > > what to do? > > Reinstall Eclipse and the SDK - because if LogCat shows *NOTHING*, you have > a serious problem

[android-developers] Re: Tricky layout

2011-08-12 Thread darrinps
I hear you, but it has to be native. surely there is a way to do this though? On Aug 12, 5:11 pm, Mark Ayers wrote: > You might be better off using jQuery Mobile inside of a webView, and coding > it as a website. I could be totally wrong here. > On Aug 12, 2011 2:28 PM, "darrinps" wrote: > > > >

[android-developers] Re: xml layout error.

2011-08-12 Thread martypantsROK
You have to supply a layout_width On Aug 13, 5:10 am, Goutom wrote: > Hi > > I have a layout xml file.When I call setContentView(R.layout.xmlname), it > crashes.Logcat shows nothing. > > --

[android-developers] Re: Is it possible to create a tcp connection form a pc server to Android client?

2011-08-12 Thread Chris Stratton
On Friday, August 12, 2011 11:44:47 AM UTC-4, chu wrote: As i know,if a client is running on PC,if located in a LAN,the server > in the Internet cannot create a TCP connection to it > initiatively,because the router of the client will discard the > connection request.if we want to connect a cli

[android-developers] Re: Activity Lifecycle question

2011-08-12 Thread Indicator Veritatis
Two questions: 1) why do you call super.onActivityResult()? The ApiDemo examples do not. If you must call it, you should call if after your own processing, since you want to catch the CANCELED first 2) what code DO you have for handling other result codes? You should have a default case at least so

[android-developers] Re: Force Close Issue

2011-08-12 Thread Indicator Veritatis
your log extract looks like the same kind of log produced by logcat. Well and good. But there is no evidence of a "force close" in there. When you capture the log for that, you will see a Java Exception in the log. Exceptions produce stack traces. That is what we need to see. On Aug 12, 9:18 am, S

[android-developers] Re: greystripe mystery

2011-08-12 Thread rich friedel
Whoops meant to post the actual search... http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=com.greystripe.android.sdk.s -- 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@googlegro

[android-developers] Re: greystripe mystery

2011-08-12 Thread rich friedel
http://stackoverflow.com/questions/4980229/greystripe-full-ads-not-showing -- 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 t

[android-developers] greystripe mystery

2011-08-12 Thread bob
Anyone know what this means? 08-12 17:34:51.387: ERROR/com.greystripe.android.sdk.s(11698): setMinLogLevel: ClassNotFound: com.greystripe.android.sdk.GSSDKImpl 08-12 17:34:51.387: ERROR/com.greystripe.android.sdk.s(11698): setMinLogLevel: ClassNotFound: com.greystripe.android.sdk.GSSDKImpl $Client

[android-developers] Re: Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
thank you guys for comments, i wonder if somebody has an idea to deal with this issue; i tried to catch the RESULT_CANCELED but nothing happens, the activity 1 is as follows: public void onActivityResult(int requestCode, int resultCode, Intent rit) { super.onActivityResult(requestCode, re

[android-developers] Want to develop UI faster and better for your Android apps?

2011-08-12 Thread DroidUX DevTeam
Do you need to develop UI (user interface) faster for your Android apps? Try the DroidUX(tm) UI component library FREE. DroidUX is the first professional UI/UX component library for Android. DroidUX helps you build high quality and beautiful user interface fast and easy. Building UI conforming

Re: [android-developers] Android CL and onRetainNonConfigurationInstance

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 6:03 PM, Ian Dees wrote: > Apparently we have said books somewhere in the office here but no one's > willing to say who has them for fear of not getting them back :). Check underneath the break room table -- it might be propping up a short leg. Though if it's my digital bo

Re: [android-developers] destroyActivity() doesn't work from an ActivityGroup

2011-08-12 Thread Mark Murphy
FYI, ActivityGroup is now deprecated. You may wish to consider switching to fragments. On Fri, Aug 12, 2011 at 9:24 AM, GuetGuet wrote: > Hello EveryOne ! > > I'm developing an application with a TabBar implementation and i face > a problem : > In one tab i launch an activity which is extended fr

Re: [android-developers] Tricky layout

2011-08-12 Thread Mark Ayers
You might be better off using jQuery Mobile inside of a webView, and coding it as a website. I could be totally wrong here. On Aug 12, 2011 2:28 PM, "darrinps" wrote: > I am trying to create something that looks like this: > http://i254.photobucket.com/albums/hh105/darrinps/SameImage.jpg > > In sh

Re: [android-developers] Re: Can't get html5 video working properly -- happy to pay for an answer

2011-08-12 Thread Chris Stewart
I have had problems with this in Honeycomb, and I believe it started with 3.1. In 3.0, it worked fine. -- Chris Stewart http://chriswstewart.com On Fri, Aug 12, 2011 at 12:27 PM, John wrote: > Has anyone gotten inline video working on Honeycomb? This used to work > if you had hardware accele

Re: [android-developers] Android CL and onRetainNonConfigurationInstance

2011-08-12 Thread Ian Dees
On Fri, Aug 12, 2011 at 4:47 PM, Mark Murphy wrote: > On Fri, Aug 12, 2011 at 5:25 PM, Ian Dees wrote: > > Now, when I rotate the screen the other fragments on my screen are having > > problems similar to the post here [0]. In the portrait orientation there > are > > three 's sitting next to each

Re: [android-developers] Android CL and onRetainNonConfigurationInstance

2011-08-12 Thread Ian Dees
On Fri, Aug 12, 2011 at 4:59 PM, Mark Murphy wrote: > On Fri, Aug 12, 2011 at 5:56 PM, Ian Dees wrote: > > Where is this documented? > > Ummm... my books? > > :-) > > Seriously, there's lots of stuff that isn't documented, but we find > out collectively through the School of Hard Knocks. And, oh,

[android-developers] One Eclipse Layout Editor Across All Configurations?

2011-08-12 Thread Ian
In the latest ADT plugin for Eclipse (v12), if you open a layout file (let's say res/layout-land/foo.xml), it will create an editor called "foo.xml" and if I try to subsequently open a different configuration for that same layout (how about res/layout/foo.xml), it will open in the same editor bu

Re: [android-developers] Android CL and onRetainNonConfigurationInstance

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 5:56 PM, Ian Dees wrote: > Where is this documented? Ummm... my books? :-) Seriously, there's lots of stuff that isn't documented, but we find out collectively through the School of Hard Knocks. And, oh, how hard some of those knocks are... -- Mark Murphy (a Commons Gu

Re: [android-developers] Android CL and onRetainNonConfigurationInstance

2011-08-12 Thread Ian Dees
On Fri, Aug 12, 2011 at 4:47 PM, Mark Murphy wrote: > On Fri, Aug 12, 2011 at 5:25 PM, Ian Dees wrote: > > Now, when I rotate the screen the other fragments on my screen are having > > problems similar to the post here [0]. In the portrait orientation there > are > > three 's sitting next to each

Re: [android-developers] Android CL and onRetainNonConfigurationInstance

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 5:25 PM, Ian Dees wrote: > Now, when I rotate the screen the other fragments on my screen are having > problems similar to the post here [0]. In the portrait orientation there are > three 's sitting next to each other in the layout (each with a > unique id like "frag_1".."f

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

2011-08-12 Thread Kristoffer
Iam going to use SharedPreferences, thanks for the help. On 12 Aug, 20:04, Kamil wrote: > 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 y

Re: [android-developers] Custom Font

2011-08-12 Thread Mark Murphy
Not all fonts seem to be compatible. Try a font that's known to work, such as the HandmadeTypewriter font I used in this sample: https://github.com/commonsguy/cw-android/tree/master/Fonts/FontSampler If that works, but your font does not, then the issue is with the font, and I don't know what, if

[android-developers] Tricky layout

2011-08-12 Thread darrinps
I am trying to create something that looks like this: http://i254.photobucket.com/albums/hh105/darrinps/SameImage.jpg In short, an area that has borders all the way around it but the background is white for the text views and edit boxes inside that area which need to be seamless beside one another

Re: [android-developers] Android CL and onRetainNonConfigurationInstance

2011-08-12 Thread Ian Dees
On Fri, Aug 12, 2011 at 2:10 PM, Mark Murphy wrote: > > If so, what do I add it to to > > keep it from getting garbage collected outside of the onCreate()? > > Well, in either case ( or a FragmentTransaction in > onCreate()), you would call setRetainInstance(true) on the fragment > itself. This te

[android-developers] Ultimate Wall-paper rotator

2011-08-12 Thread Simon Platten
Finally released the "Ultimate Wall-paper Rotator" which has taken quite a while to get right, but I'm very happy with the final application, lots of nice little features which I would like to thank the community for the support, help and gudiance in implementing. The list view / gallery works ver

[android-developers] Re: Can't get html5 video working properly -- happy to pay for an answer

2011-08-12 Thread John
Has anyone gotten inline video working on Honeycomb? This used to work if you had hardware acceleration enabled, but this seems to have been broken in 3.1/2 (WebView.isHardwareAccelerated() will always now return false and inline video will no longer work). -- You received this message because yo

[android-developers] Re: Insertion,deletion & updation on SQL database in android

2011-08-12 Thread Avtar Guleria
Code for Insertion: /** * called to insert data in table. * */ public void insertFavCinema(int cinemaId, String name, String url, String lat_long, String numberOfMovies, String phone) { // Log.d(TAG, "Inserting fav cinema with cinema

Re: [android-developers] APK Decompiler

2011-08-12 Thread arun kumar
procedure to decoding .apk files---step wise method--> step 1: make a new folder and put .apk file (which you want to decode) now rename this .apk file with extension .zip (eg:rename from filename.apk to filename.apk.zip) and save it..now you get classes.dex files etc...at this stage you are able

[android-developers] Re: APK Decompiler

2011-08-12 Thread Viachaslau Ahrenich
I think this is what you are looking for: http://code.google.com/p/dex2jar/ or http://code.google.com/p/smali/ On Aug 12, 4:58 am, RAJU V wrote: > Hi friends please help me.. >               Please tell me how to decompiler the apk file to source code > files > > ~~RAJU~~ > ~~www.

Re: [android-developers] Help Me!!!!!

2011-08-12 Thread Appaholics
Please elaborate on what you mean by special materials. Both of the previous respondents provided excellent answers. If you want custom training or something hire a private teacher. Thanks On Thu, Aug 11, 2011 at 7:17 PM, RAJU V wrote: > both mail about I already I know but am asking special ma

[android-developers] Ongoing notification doesn't work

2011-08-12 Thread András Hatvani
Consider the following onStartCommand() method of a foreground service (music player): @Override public int onStartCommand(Intent intent, int flags, int startId) { Intent main = new Intent(getApplicationContext(), Main.class); PendingIntent pi = PendingIntent.getActivity(

[android-developers] cannot startActivity when I'm in onItemClick

2011-08-12 Thread Michael S
Hello , I'm trying to go to a new activity after one of the items on the list is clicked. The problem is that It throws me away every time. this is the class that deals with the clicking and I simply can't find the error I made. The putExtra objects are not the cause of the problem. Code:

[android-developers] destroyActivity() doesn't work from an ActivityGroup

2011-08-12 Thread GuetGuet
Hello EveryOne ! I'm developing an application with a TabBar implementation and i face a problem : In one tab i launch an activity which is extended from an ActivityGroup. From this last one, i create a sub-activity to display information into the user : Intent intent = new Intent(view.getContext

[android-developers] MP3 streaming issue.

2011-08-12 Thread AntonyW
I have this issue with my samsung vibrant running 2.1: I am running this app found here: https://github.com/scampion/Radio-SingSing-Android, but it doesn't do anything no crash, no error and also no sound. It doesn't work on the Lg to. Only on HTC. -- You received this message because you are s

[android-developers] Activity onPause and onResume Question

2011-08-12 Thread TheWanz
I would like to know the best practice approach to accomplishing this in Android: Main Activity: Contains 1 textview, 1 opens menu and 1 global thread- based class. The global thread-based class that opens a socket and reads in data via TCP/IP, and sends thread-safe notification to the main acti

[android-developers] Custom Font

2011-08-12 Thread erik ryerson
I'm having some trouble adding a custom font to skin.xml Here is my code I have this in the skins xml files Code: So I added this to my main package Code: TextView tv=(TextView)findViewById(R.id.sender_phone_num"); Typeface face=Typeface.createFromAsset(getAssets(), "fonts/n

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

2011-08-12 Thread Robert Thau
On Fri, Aug 12, 2011 at 11:17 AM, ndiiie90 wrote: > 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

[android-developers] Stream 3GP/H263/AMR via RTP. H263 Payload Header?

2011-08-12 Thread Stefan Billeb
Hi, I am able to record with the MediaRecorder the video with Audio using H263 Encoding, THREE_GPP Outputformat and Audio Encoding AMR. I have built minimal RTP Stack with help from Sipdroid Source Code. The recorder streams to a LocalSocket from which I can read the InputStream. My Thread is m

[android-developers] How to read *.CHM File ?

2011-08-12 Thread mahdi
Hi , i want to read *.chm file im my application and show it on textView , how can i do this ? 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 fr

[android-developers] android Monkeyrunner Step-By-Step

2011-08-12 Thread Hafeez
I have the same issue as follows Referring to the thread android monkey runner Options yanamala siddaiahJul 12, 6:10 pm pls tell me step by step , how to use this. how to write scripts for monkey runner .. thanks siddaiah -- You received this message because you are subscribed to

[android-developers] Is it possible to create a tcp connection form a pc server to Android client?

2011-08-12 Thread chu
hello all. i'm wondering if a server can create a TCP connection to a Android client? In fact,the situation is: i have a pc server,many android clients.the clients send UDP data to the server and listen a certain port,at most of the times,the pc server will ignore the clients' data to keep silent;

Re: [android-developers] Re: APK Decompiler

2011-08-12 Thread Kristopher Micinski
On Fri, Aug 12, 2011 at 4:23 PM, Indicator Veritatis wrote: > Well, I can agree that the most obvious reasons to want to decompile > an APK involve things that are at least a little bit 'shady', but > let's be careful: there ARE legitimate motives for this. > > One example comes to mind: for sever

[android-developers] Re: APK Decompiler

2011-08-12 Thread Indicator Veritatis
Well, I can agree that the most obvious reasons to want to decompile an APK involve things that are at least a little bit 'shady', but let's be careful: there ARE legitimate motives for this. One example comes to mind: for several days, I was getting a Force Close out of Google's own Map applicati

[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 wrote: > The log is generally what you what you seen in logcat console while > debugging. But here is the catch sinc

Re: [android-developers] xml layout error.

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

[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. -- http://schemas.android.com/apk/res/android"; andro

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 lock If needed, use the WIFI_MODE_FULL_HIGH_PERF mode with care to avoid driver optimizations at screen off. Thanks On Fri, Aug 1

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

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 3:17 PM, Kostya Vasilyev 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 user makes a cho

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 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 : > :-( > > so, if the user press back, the method setResult(RESULT_OK, rit), > called from onStop() ... does not work? > > On Aug 12, 12:35 pm, M

[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 wrote: > On Fri, Aug 12, 2011 at 1:16 PM, hectordu...@yahoo.com > > wrote: > > "have Activity 1 use > > startActivityForResult() to start up Activity 2,

Re: [android-developers] Android CL and onRetainNonConfigurationInstance

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 2:57 PM, Ian 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 a decent-size

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 Canvas(mBitmap);

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 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 have runnin

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 wrote: > I'm working on a drawing app, and the code for my file saving routine goes > like this: > c

[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); mDrawingPanel.draw(ca

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 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#db >> ? >> >> >> > Your link

[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 wrote: > Thanks for the answer. > >

[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 wrote: > Hi guys, > > I wonder how safe to store sensitive data in sqlite in Android? > > Because i'

[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

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 no

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 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 $##%)#$(@ guy who keeps %$

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 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 back doesnt > work

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

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

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

Re: [android-developers] Activity Lifecycle question

2011-08-12 Thread Mark Murphy
On Fri, Aug 12, 2011 at 1:02 PM, 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 > keyboard. In tha

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

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 RTSP

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 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 | http://github.com/commonsguy http://com

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 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 / sleeping would be

[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 wrote: > On Wed, Aug 10, 2011 at 11:21 AM, Marcus wrote: > > What is going on here? > > Possibly: any of the many apps on your phone requested the device to w

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 wrote: > I grabbed this log using app "Lo

[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 wrote: > are you canceling your requests for location updates in the onPause() > function? -- You received this m

[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 wrote: > None of that shows a crash. A "Force Close" dialog will have a Java > stack trace associated with it

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

[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 wrote: > That description seems to cover everything you need (except holding > the two phones together back-to-bac

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 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 can the da

[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 "An

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 wrote: > Here is the log and at this point i do not have any idea what it > means; > == > CRASH L

[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

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

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

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 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 > options to ex

[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 wrote: > On Fri, Aug 12, 2011 at 7:07 AM, Peter Stacey wrote: > > I think it's safe to assume the minimum version is 3.4.0 > > Ag

[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? Thanks,

[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 wrote: > You could mange that fix by having the app locate you (the user) > first, then input destination 2nd. > > On Aug 12, 12:15 am

[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 http://www.ibm.com/developerworks/opensource/library/

  1   2   >