[android-developers] Re: Android - SQLLite

2011-06-12 Thread Zsolt Vasvari
> - I am creating database in default way hence it will be created in my > application private storage and other applications will not get access to > it. Still I the user login as root user he would right? Anyways to prevent > this? No, of course, not. Given access to the hardware, no software s

Re: [android-developers] Android - SQLLite

2011-06-12 Thread Sivaprakash
It is like this, - I am creating database in default way hence it will be created in my application private storage and other applications will not get access to it. Still I the user login as root user he would right? Anyways to prevent this? - What is the best mechanism to store secret data like

[android-developers] Your Opinion between android native app or HTML-5 Web App.

2011-06-12 Thread Ishwar Chawla
I just want your opinion which option is better I am about to start a project looking at ease of coding and UI which according to you is better native app or HTML-5 Web App. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

Re: [android-developers] can't see output of ssh command

2011-06-12 Thread Max Lv
Use com.trilead.ssh2 instead, you can find source codes for android from Connectbot project On Mon, Jun 13, 2011 at 5:31 AM, ABSOLUT wrote: > Hi, > I'm using jsch to execute a command and then shows me the output of > the command, but I cant see the ouput of command with LogCat. Could > you help

[android-developers] Re: Saving as Bitmap ".BMP" in android

2011-06-12 Thread Doug
Try using getPixels() on the bitmap and write out the array of pixels it generates. No need to use bmp if you don't absolutely need to export it to some other program that requires it. Doug On Jun 8, 9:53 pm, PMR wrote: > Hi all, > I am new to this group...sorry if I make any mistakes:) > I

Re: [android-developers] How to get Map on signed Android application?

2011-06-12 Thread Sivasankar K
thanx a lot i works 2011/6/13 νιנαソkum@r > workspace-->rightclick---> click export--->export android > apps-->next-->next--->enter keystore file name--->next--->enter key > alis--->finish > > On Mon, Jun 13, 2011 at 9:59 AM, Sivasankar K < > sivasanka...@greatinnovus.com> wrote: > >> in my i hav

Re: [android-developers] Re: Options for Too Many Views

2011-06-12 Thread Dianne Hackborn
Let me promise you -- it is not taking 18 seconds to load just because you have 100 views. Where is traceview showing you spending most of your time? On Sun, Jun 12, 2011 at 2:16 PM, Capt Spaghetti wrote: > I took the time to read up on traceview and hierarchyviewer. I will > try and attach > a

Re: [android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-12 Thread Dianne Hackborn
You are significantly under-stating what you can do with the ability to take a screenshot at any time. This basically lets you see whatever the user is doing. For example it would be quite feasible to wait until you determine the user is needing to enter their password and start taking screenshot

Re: [android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-12 Thread Dianne Hackborn
On Sun, Jun 12, 2011 at 12:58 PM, Mark Murphy wrote: > I suspect that part of the reason why user-level screenshot capability > is not in the OS is to make damn sure that there's no way via > reflection or other games that somebody could programmatically invoke > it. That's just a guess, though. >

[android-developers] how to store places on google maps?

2011-06-12 Thread danhpc
Hi all, I'd like to create a application in android that cans store places which was inputted via my app. Then show those places on google map. But it seems those data are too large. I'd like to use google map to store those places. I saw that google maps maker allows user can customize map and sa

Re: [android-developers] How to get Map on signed Android application?

2011-06-12 Thread νιנαソkum
workspace-->rightclick---> click export--->export android apps-->next-->next--->enter keystore file name--->next--->enter key alis--->finish On Mon, Jun 13, 2011 at 9:59 AM, Sivasankar K wrote: > in my i have a map application. I have got my finger print and my api key. > When i run the app from

[android-developers] How to get Map on signed Android application?

2011-06-12 Thread Sivasankar K
in my i have a map application. I have got my finger print and my api key. When i run the app from my eclipse to device straightly i am able to see the map, but when i run the app after creating as a zip aligned .apk file there is No map backgrounds Was able browse and search but still no map back

Re: [android-developers] how to update currentlocation and path on map every 10 secs?

2011-06-12 Thread Hitendrasinh Gohil
Hi treking, thankx a lot. On Sun, Jun 12, 2011 at 9:05 PM, TreKing wrote: > On Sun, Jun 12, 2011 at 10:34 PM, Hitendrasinh Gohil < > hitendra.virtuei...@gmail.com> wrote: > >> i m following this link >> http://android-codes-examples.blogspot.com/2011/04/google-map-example-in-android-with-info.h

Re: [android-developers] how to update currentlocation and path on map every 10 secs?

2011-06-12 Thread TreKing
On Sun, Jun 12, 2011 at 10:34 PM, Hitendrasinh Gohil < hitendra.virtuei...@gmail.com> wrote: > i m following this link > http://android-codes-examples.blogspot.com/2011/04/google-map-example-in-android-with-info.htmland > have implemented locationlistner in mapview class and from there i m > inva

Re: [android-developers] how to update currentlocation and path on map every 10 secs?

2011-06-12 Thread Hitendrasinh Gohil
Hi treking, i m following this link http://android-codes-examples.blogspot.com/2011/04/google-map-example-in-android-with-info.htmland have implemented locationlistner in mapview class and from there i m invalidating the mapview.(Mapview is define static in LocationViewer class). On Sun, Jun 12,

Re: [android-developers] how to update currentlocation and path on map every 10 secs?

2011-06-12 Thread TreKing
On Sun, Jun 12, 2011 at 10:25 PM, Hitendrasinh Gohil < hitendra.virtuei...@gmail.com> wrote: > I found one way ,that i m invalidating mapview on locationchanged so that > the path and currentlocation on map is updated. > Is it rightway? > Given how little the rest of know about your app, all I ca

Re: [android-developers] how to update currentlocation and path on map every 10 secs?

2011-06-12 Thread Hitendrasinh Gohil
Hi, I found one way ,that i m invalidating mapview on locationchanged so that the path and currentlocation on map is updated. Is it rightway? On Sun, Jun 12, 2011 at 9:38 AM, TreKing wrote: > On Sun, Jun 12, 2011 at 4:17 AM, Hitendrasinh Gohil < > hitendra.virtuei...@gmail.com> wrote: > >> But

Re: [android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-12 Thread rich friedel
I agree that an app taking a screenshot of extremely private information is a high security risk. However, how is that any different than allowing an application access to my contacts, browser, phone state, etc... As an example take LauncherPro, because it is a complete launcher it requires nea

Re: [android-developers] Layout problem: equal margins in XML

2011-06-12 Thread Ted Hopp
I thought I had addressed that. Assuming that the smaller margins are at least the minimum, then the larger margins should shrink (the ListView should expand in that dimension) until they are equal all around. I think you are right that this cannot be done in XML alone, but I asked hoping that

[android-developers] Re: Stop Thread started by bindService

2011-06-12 Thread Indicator Veritatis
What did you to do to register the Service? Did you include a tag in AndroidManifest.xml? For that matter, are you sure the Service is still connected when you call unbindService()? I have got this same exception when calling unbindService on a ServiceConnection object that was not connected with

[android-developers] Re: can't see output of ssh command

2011-06-12 Thread Zsolt Vasvari
I don't know what the problem is, but JSch, whatever that is, is not part of the Android SDK, so it's not the right forum to ask. On Jun 13, 5:31 am, ABSOLUT wrote: > Hi, > I'm using jsch to execute a command and then shows me the output of > the command, but I cant see the ouput of command with

Re: [android-developers] Re: On CRC32, LVL and tamper-proof app

2011-06-12 Thread H
I agree with Kostya. Although it's annoying people crack our apps, we should be thankful this is available for us to download, decompile, see how it works and then change your app easily with a single line of code so that it is no longer crackable. If anyone just takes the lvl code example prov

Re: [android-developers] service and Intent

2011-06-12 Thread Mark Murphy
On Sun, Jun 12, 2011 at 6:09 PM, dashman wrote: > My app has an service that does a background job. > > On completion, I post a notification...when the user > taps on the notification...it shoots an Intent to my > main UI activity and loads it w/ data from the service > (passed as Intent extras).

[android-developers] Re: httppost not working on android 3.1 !!

2011-06-12 Thread khaled anaqwa
when I remove these statements from manifest work but the screen is small On Jun 12, 11:40 pm, khaled anaqwa wrote: > Hello Guys , > > I have a problem when upgrade my app SDK , httppost not working ?!! -- You received this message because you are subscribed to the Google Groups "Android D

[android-developers] service and Intent

2011-06-12 Thread dashman
My app has an service that does a background job. On completion, I post a notification...when the user taps on the notification...it shoots an Intent to my main UI activity and loads it w/ data from the service (passed as Intent extras). Problem is some users are getting confused with this extra

[android-developers] can't see output of ssh command

2011-06-12 Thread ABSOLUT
Hi, I'm using jsch to execute a command and then shows me the output of the command, but I cant see the ouput of command with LogCat. Could you help me please? Many thanks and sorry for my english! public String texto (String comando){ Log.d("PRUEBA", "CONSULTA CRON DENTRO DEL OBJ

[android-developers] Re: Options for Too Many Views

2011-06-12 Thread Capt Spaghetti
I took the time to read up on traceview and hierarchyviewer. I will try and attach a png file of the "running" application. It's the only proof I have other than the actual application. I will attach a pdf file of the screenshots of the different views. I have been able to remove one of LinearLayo

Re: [android-developers] Re: On CRC32, LVL and tamper-proof app

2011-06-12 Thread Kostya Vasilyev
He can move to a different host at any time. Someone could file a DMCA notice with Blogger / Google, but at the same time, it seems useful to run his scripts on one's code, to see if it gets broken. -- Kostya 2011/6/13 String > Wait... He's hosting this crap on BLOGGER?!? And we still can't

[android-developers] Re: On CRC32, LVL and tamper-proof app

2011-06-12 Thread String
Wait... He's hosting this crap on BLOGGER?!? And we still can't get Google to shut the site down?? Wow. They care even less about Android piracy than I realized. String -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] httppost not working on android 3.1 !!

2011-06-12 Thread khaled anaqwa
Hello Guys , I have a problem when upgrade my app SDK , httppost not working ?!! -- 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

Re: [android-developers] Android USSD

2011-06-12 Thread Sophie thedawg
HEY DUDE THIS IS SDAWG. Email me wahtever I want I love emails from cool dudes like you guys I am sdawg WOOF WOOF! On Sat, Jun 11, 2011 at 12:52 PM, Tsolmon Narantsogt wrote: > Dear Comrade. > > I wanna make ussd checker ( i think it's a widget ). So i don't know more > about ussd command and cod

Re: [android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-12 Thread Mark Murphy
On Sun, Jun 12, 2011 at 3:10 PM, rich friedel wrote: > What security implications arise from allowing the device to take screenshots? Allowing the user to take screenshots would not be a problem, in isolation. Allowing an SDK application to take screenshots of itself presumably would not be a pr

Re: [android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-12 Thread rich friedel
What security implications arise from allowing the device to take screenshots? I see that line of reasoning toss about a lot to describe why something doesn't work automatically. I don't understand why this couldn't be something that is normally available... all it would require is a simple per

Re: [android-developers] Layout problem: equal margins in XML

2011-06-12 Thread Kostya Vasilyev
What if the list view's content produces unequal margins in the horizontal and vertical directions? I don't think your requirement, as written, can handle this. If equal horizontal and vertical margins weren't a requirement, I'd say make a FrameLayout with minimum margins (or padding), then set yo

Re: [android-developers] can't launch activity from my appwidget

2011-06-12 Thread Kostya Vasilyev
David, In the code you posted, I don't see a call to appWidgetManager.updateAppWidget with the remoteViews object you're building. RemoteViews is not at all like an RPC connection where you do stuff "on one side", in your code, and it magically appears "on the other side", in the widget. You need

Re: [android-developers] can't launch activity from my appwidget

2011-06-12 Thread Mark Murphy
I'd get rid of all the getApplicationContext() calls. The Context you are supplied in onUpdate() will work just fine for all of those. Also, FLAG_ACTIVITY_NEW_TASK is a flag for Intent, not PendingIntent. Please move it to a setFlags() call on the Intent object. On Sun, Jun 12, 2011 at 1:40 PM, A

[android-developers] can't launch activity from my appwidget

2011-06-12 Thread ABSOLUT
Hi, I have a button in my appwidget that I would like that launch the activity. I have this in the code: public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.widget

[android-developers] Re: On CRC32, LVL and tamper-proof app

2011-06-12 Thread juande
The creator uses blogger to publish this software. The page for downloading the app is this: http://androidcracking.blogspot.com/p/antilvl.html It's very useful for testing your own app security. -- You received this message because you are subscribed to the Google Groups "Android Developers"

Re: [android-developers] Re: How to mark an element visually in ListView the user clicked on?

2011-06-12 Thread Mark Murphy
On Sun, Jun 12, 2011 at 1:04 PM, Scythe wrote: > Thanks, I was looking for this 'activated' state. The methods and > states related to "selecting" elements from the list completely > confused me. It turned out that the in ListView's context, selecting > an element means that the user navigates the

[android-developers] Re: Website not working when displayed in a WebView

2011-06-12 Thread John Gaby
Never mind, I see that I needed to enable Java Script for the WebView. On Jun 12, 10:02 am, John Gaby wrote: > I have a website which has a forum, and if I view the site using the > phone's browser, it works fine.  However, if I view the site from > within a WebView inside my app, some of the but

[android-developers] Emulator .ini files

2011-06-12 Thread mlybrand
Is there a good reference for what options are available for me to put in these files: .ini config.ini emulator-user.ini The documentation shows several command line options for further controlling the emulators, but I would prefer to do some sort of configuration customization for when it launch

[android-developers] Website not working when displayed in a WebView

2011-06-12 Thread John Gaby
I have a website which has a forum, and if I view the site using the phone's browser, it works fine. However, if I view the site from within a WebView inside my app, some of the buttons do not work. For example, if I click the 'New Post' button, nothing happens when in a WebView, but it works fin

[android-developers] Re: How to mark an element visually in ListView the user clicked on?

2011-06-12 Thread Scythe
Thanks, I was looking for this 'activated' state. The methods and states related to "selecting" elements from the list completely confused me. It turned out that the in ListView's context, selecting an element means that the user navigates the focus around in the list with the d-pad... And yes, I'm

Re: [android-developers] how to update currentlocation and path on map every 10 secs?

2011-06-12 Thread TreKing
On Sun, Jun 12, 2011 at 4:17 AM, Hitendrasinh Gohil < hitendra.virtuei...@gmail.com> wrote: > But there is need to update it every 10 secs. So schedule your update code to run every 10 seconds. There are plenty of examples out there on scheduling actions to run. There is even a "timer" example i

[android-developers] Layout problem: equal margins in XML

2011-06-12 Thread Ted Hopp
I have a rather involved requirement for a rather simple layout. I have an activity with a single ListView floating in the middle of the screen with a background margin of uniform width all around. So far no problem. Now I need the margin to be as large as possible given the content of the ListV

Re: [android-developers] Android - SQLLite

2011-06-12 Thread Kumar Bibek
Encrypt and Store. Use remote wipe, it would of course need a lot of work. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Sun, Jun 12, 2011 at 9:42 PM, Sivaprakash wrote: > Alright, but any way what is the best mechanism to protect my data? Even i

Re: [android-developers] Android - SQLLite

2011-06-12 Thread Sivaprakash
Alright, but any way what is the best mechanism to protect my data? Even if I loose my mobile someone should not gain access to my data. On Sun, Jun 12, 2011 at 5:52 PM, Mark Murphy wrote: > On Sun, Jun 12, 2011 at 1:37 AM, Sivaprakash > wrote: > > Thanks !! What should I do if I want to protect

[android-developers] Re: Can't write to sdcard

2011-06-12 Thread Ab Caballero
It does not On Jun 12, 11:56 am, Kumar Bibek wrote: > Does the file/dir get created at all? > > *Thanks and Regards, > Kumar Bibek* > *http://techdroid.kbeanie.comhttp://www.kbeanie.com* > > > > On Sun, Jun 12, 2011 at 9:24 PM, Ab Caballero wrote: > > It is in the emulator. I set up the external

Re: [android-developers] Re: Can't write to sdcard

2011-06-12 Thread Kumar Bibek
Does the file/dir get created at all? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Sun, Jun 12, 2011 at 9:24 PM, Ab Caballero wrote: > It is in the emulator. I set up the external storage for the GalaxyTab > in the SDK and AVD Manager. I have it

[android-developers] Re: Can't write to sdcard

2011-06-12 Thread Ab Caballero
It is in the emulator. I set up the external storage for the GalaxyTab in the SDK and AVD Manager. I have it included in the hardware profile and set to 2048 MiB. The DDMS File Explorer shows that it is located in /mnt/sdcard. It just won't write to it. On Jun 12, 11:43 am, Mark Murphy wrote: > W

Re: [android-developers] Re: Can't write to sdcard

2011-06-12 Thread Mark Murphy
Where, specifically, are you getting this error? If this is the emulator, do you have any external storage set up? By default, there is none. On Sun, Jun 12, 2011 at 11:37 AM, Ab Caballero wrote: > Still getting the same error. I followed your advice with: > > File sdDir = Environment.getExterna

[android-developers] Re: Can't write to sdcard

2011-06-12 Thread Ab Caballero
Still getting the same error. I followed your advice with: File sdDir = Environment.getExternalStorageDirectory(); sdDir.mkdirs(); File file = new File(sdDir +currentTripName+".kml"); FileWriter sdWriter = new FileWriter(file, false); sdWriter.write(fileContents); sdWriter.close(); also, the mani

Re: [android-developers] Can't write to sdcard

2011-06-12 Thread Mark Murphy
Never never never hardwire paths. For example, your paths are wrong for modern versions of Android. Use Environment.getExternalStorageDirectory() for the root of external storage. Also, make sure you have the WRITE_EXTERNAL_STORAGE permission. On Sun, Jun 12, 2011 at 10:31 AM, Ab Caballero wrote

Re: [android-developers] How to mark an element visually in ListView the user clicked on?

2011-06-12 Thread Mark Murphy
singleChoice requires your row Views to implement the Checkable interface, as I recall. On Honeycomb, your desired look is achieved by setting the "activated" state on the row Views. On phones, since the ListView is not usually on the same screen as other stuff, your desired pattern isn't really p

[android-developers] How to mark an element visually in ListView the user clicked on?

2011-06-12 Thread Scythe
I have a ListView with a custom adapter. I'd like to visually mark the list element the user clicked on by changing it's background permanently (until the user clicks on another element that is). How do I achieve that? I believe that there's a built-in feature inside LisView for this, but I had no

[android-developers] Can't write to sdcard

2011-06-12 Thread Ab Caballero
I am attempting to save data to the sdcard with the following code but get a file not found exception: String fileContents = fileBuf.toString(); Log.d(tag, fileContents); File sdDir = new File("/sdcard/Logger"); sdDir.mkdirs(); File file = new File("/sdcard/Logger/"+currentTripName+".kml"); FileWr

[android-developers] Re: One of my apps no longer appears in searches, or under "my apps" public page?

2011-06-12 Thread Zsolt Vasvari
Seriously, don't expect anything until Monday CA time. Google must not feel that the Android Market is mission critical to the point where there is after hours support needed. On Jun 12, 7:30 pm, Joan Pujol wrote: > Today it isn't working yet. And my application is not listed in the market > fro

[android-developers] Re: Loading Bitmaps in native heap

2011-06-12 Thread albnok
I had the same problem when loading as ARGB_565. Use inDither to get rid of very obvious stair-stepping. I would say I could spot a 16-bit image, especially with a lot of reds, on a less red screen (Xoom and Acer Iconia Tab A500) while the Galaxy Tab 7" is a whole splotch of red. However with inDit

[android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-12 Thread albnok
The Samsung Galaxy Tab 7" does support screenshots, albeit unelegantly - while holding down Back, press Power. You may have to go into another activity first before pressing Back and hitting Power at the same time LOL. On Jun 9, 2:07 am, Adam Ratana wrote: > I just checked this approach out as a

Re: [android-developers] astro file manager

2011-06-12 Thread Mark Murphy
This is not a support group for Astro File Manager. On Sun, Jun 12, 2011 at 2:24 AM, Expressions Unlimitted wrote: > > Hi all, > > I am wondering to work with astro file manager. What i am going to do is to > select file from sdcard and upload it to the remote server. How to access > the sdcard f

Re: [android-developers] Android - SQLLite

2011-06-12 Thread Mark Murphy
On Sun, Jun 12, 2011 at 1:37 AM, Sivaprakash wrote: > Thanks !! What should I do if I want to protect my data in more secure way > meaning even if someone steels my memory card they should not gain access to > my data or immediately it should be erased ? Don't put the data on the memory card in t

[android-developers] Re: One of my apps no longer appears in searches, or under "my apps" public page?

2011-06-12 Thread Joan Pujol
Today it isn't working yet. And my application is not listed in the market from the phone (from web version is correctly listed). I think that this is a very important issue and at least someone from Google should make a note or give some explanations. -- You received this message because you a

Re: [android-developers] how to update currentlocation and path on map every 10 secs?

2011-06-12 Thread Hitendrasinh Gohil
is there antone who can help me? On Sun, Jun 12, 2011 at 2:47 PM, Hitendrasinh Gohil < hitendra.virtuei...@gmail.com> wrote: > Hi, > > I m able to draw path between two points and current location on > map.But there is need to update it every 10 secs. > i am following below link. > > http://and

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
Thanks for the responses. I've decide to implement an SQLite database, this will be created by the library, each application will create a category record and all the resources will be stored in another table associated with the appropriate category. When the application reboots it will load

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Kostya Vasilyev
Well, you can define a placeholder resource in the library (so its code can reference it) and overide it (use same id) in the application(s). Or you can make Application subclasses with onCreate: not my preferred way of doing this, but a good match for this particular case. Either way, you will w

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
I really want to keep the data and the application code seperate...my application activity really does nothing except add the data from a resource and call the library routines. The library which is common to all applications is where the boot recevier resides, so I need some way to get to the

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Kostya Vasilyev
Really depends on what kind of array it is and where it originaly comes from (a constant in the code, or from a file). It sounds like you already have correct initialization code, it's just not getting called at the right time. Two ways to ensure it gets called are: a lazy-initialize singleton, o

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
In that case I should probably create the array in a persistent store and load it when required? On 12/06/2011 11:04 AM, Kostya Vasilyev wrote: No. An Activity is just one of the components that make up an application (package). http://developer.android.com/guide/topics/fundamentals.html#Comp

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Kostya Vasilyev
No. An Activity is just one of the components that make up an application (package). http://developer.android.com/guide/topics/fundamentals.html#Components http://developer.android.com/guide/topics/fundamentals/activities.html Since you have a receiver for boot_completed, and there is an event

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
During testing, I have shutdown all processes including the application before shutting down the phone. When I power up the phone I can see that the application has been restarted and is resident, so I should be able to get the activity shouldn't I? On 12/06/2011 9:51 AM, Kostya Vasilyev wr

[android-developers] how to update currentlocation and path on map every 10 secs?

2011-06-12 Thread Hitendrasinh Gohil
Hi, I m able to draw path between two points and current location on map.But there is need to update it every 10 secs. i am following below link. http://android-codes-examples.blogspot.com/2011/04/google-map-example-in-android-with-info.html how can i do that? -- You received this message becau

Re: [android-developers] Re: SSL Socket Connection fails after network cut

2011-06-12 Thread Kostya Vasilyev
For a blocking stream, -1 is closed. The issue with SSL sockets in HTTP code failing in some way or other comes up on this list every once in a while. Think I remember a suggestion to disable SSL session cacheing (negotiated SSL sessions are cached and reused, if the code sees the same pair of en

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-12 Thread Kostya Vasilyev
I didn't say anything about a thread - in fact, my recommendation is to not use a thread just for scheduling stuff (although that Thread.sleep() can look so tempting...). As for Handler messages not firing when there aren't any activities on the screen - that's simply not true. The event loop con

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Kostya Vasilyev
There may not be an instance of your activity - definitely not when we're talking about processing boot_completed. At that point, the only components involed are a broadcast receiver and possibly your wakeful intent service (IIRC). Since the user at that point has never run your application, there

[android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
Hi, I've managed to find out why my application wasn't restarting correctly after a boot up and it was an uninitialised array that is normally set-up by the main activity when the application starts. The question now ishow do I get the main application activity? The reason it isn't so strai

Re: [android-developers] Re: Anyone developing on the Galaxy Tab and a Mac?

2011-06-12 Thread String
On Saturday, June 11, 2011 5:01:50 PM UTC+1, Dan Raaka wrote: Also, 3.1 was OTA'ed to these devices starting yesterday > Yep, I got my 3.1 OTA on Friday. Go check for updates if you're impatient (like me). String -- You received this message because you are subscribed to the Google Groups "A

[android-developers] Re: SSL Socket Connection fails after network cut

2011-06-12 Thread Indicator Veritatis
I think you may be jumping the gun by assuming that read() returning -1 means the stream is invalid: what it REALLY means is only that the end of the stream has been reached, there are no more bytes to read: it does not explain WHY there are no more to read. How can you exclude the possibility that

Re: [android-developers] Creating a view in java

2011-06-12 Thread Kostya Vasilyev
The Context / AttributeSet constructor is used when a view is inflated from XML. For creating a view {subclass} from code, you can make any constructor that makes sense - it should be passed a Context, most likely won't have an AttributeSet (since that comes from XML), and can have any other param

Re: [android-developers] Slow motion video

2011-06-12 Thread Daniel Drozdzewski
On Saturday, June 11, 2011, New Developer wrote: > MediaPlayer had getFrameAt  which has been  depreciated > > I was hoping to use this to create my own play function > Where I could throw in a sleep or delay > So as to control the time between frames being shown and thus create a slow > motion p

[android-developers] Re: How can I know when the home button has been pressed?

2011-06-12 Thread Indicator Veritatis
O...K..., now that we have that clarification, is there anytime that the Activity will be paused or stopped (i.e. onPause(), onStop() called) when you DO want the timer thread to fire anyway? If the answer is 'no', then follow Kostya's suggestion, killing the thread in either onPause() or onStop().