Re: [android-developers] Re: Deep sleep after 1 hour?

2013-04-24 Thread paladin
That looks like it fixed the issue. Thanks a lot! On Tuesday, April 23, 2013 10:16:15 AM UTC-4, Kristopher Micinski wrote: this... http://developer.android.com/guide/components/services.html#Foreground Kris On Tue, Apr 23, 2013 at 10:05 AM, paladin quot...@gmail.com javascript: wrote

[android-developers] Re: Deep sleep after 1 hour?

2013-04-23 Thread paladin
this really would be to set an alarm which fires every 30 seconds, when you receive the alarm take a partial wakelock and fire a service to perform the ping, this service should also take and release a wakelock whilst performing the ping. On Monday, 22 April 2013 22:00:32 UTC+1, paladin wrote: I

Re: [android-developers] Re: Deep sleep after 1 hour?

2013-04-23 Thread paladin
: An AlarmManager will wake the device up, but isn't typically used for 30 second granularity. Still, perhaps a solution to try. Kris On Tue, Apr 23, 2013 at 4:51 AM, paladin quot...@gmail.comjavascript: wrote: It's actually sending the location of the phone every 30 seconds

Re: [android-developers] Re: Deep sleep after 1 hour?

2013-04-23 Thread paladin
Then no, I'll have to try that and see if that fixes things. On Tuesday, April 23, 2013 10:16:15 AM UTC-4, Kristopher Micinski wrote: this... http://developer.android.com/guide/components/services.html#Foreground Kris On Tue, Apr 23, 2013 at 10:05 AM, paladin quot...@gmail.com

[android-developers] Deep sleep after 1 hour?

2013-04-22 Thread paladin
I have an app that is supposed to send a ping to a server every 30 seconds. When the app goes to sleep, it's still supposed to do this, but I've been testing and it seems to stop sending any updates after 1 hour, consistently. Is this a deep sleep? I have seen no documentation on this. Has

[android-developers] Re: Deep sleep after 1 hour?

2013-04-22 Thread paladin
PowerManager.PARTIAL_WAKE_LOCK On Monday, April 22, 2013 5:38:06 PM UTC-4, RichardC wrote: Are you holding any sort of Wake Lock? If so which one? On Monday, April 22, 2013 10:00:32 PM UTC+1, paladin wrote: I have an app that is supposed to send a ping to a server every 30 seconds. When

Re: [android-developers] Deep sleep after 1 hour?

2013-04-22 Thread paladin
Our users are aware of this. On Monday, April 22, 2013 5:39:28 PM UTC-4, Kristopher Micinski wrote: You, of course, that this is going to completely kill your user's battery, right? Kris On Mon, Apr 22, 2013 at 5:00 PM, paladin quot...@gmail.com javascript: wrote: I have an app

Re: [android-developers] Re: Deep sleep after 1 hour?

2013-04-22 Thread paladin
is given up, and then you receive no more updates...? Kris On Mon, Apr 22, 2013 at 5:51 PM, paladin quot...@gmail.com javascript: wrote: PowerManager.PARTIAL_WAKE_LOCK On Monday, April 22, 2013 5:38:06 PM UTC-4, RichardC wrote: Are you holding any sort of Wake Lock? If so

Re: [android-developers] Re: Deep sleep after 1 hour?

2013-04-22 Thread paladin
. But the reasons would be simply enough that other apps come into the foreground and do some processing that have higher priority (e.g., google talk, etc...). Kris On Mon, Apr 22, 2013 at 6:20 PM, paladin quot...@gmail.com javascript: wrote: I don't think so. Why would the OS kill the app after 1

[android-developers] Is certificate pinning possible to do with a WebView?

2012-08-28 Thread paladin
Not via an explicit https connection, but using a WebView, can I make it do certificate pinning? -- 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

[android-developers] Re: setPictureSize on Droid RAZR

2012-07-20 Thread paladin
Code where I set the size: public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { Camera.Parameters parameters = camera.getParameters(); ListSize sizes = parameters.getSupportedPictureSizes(); int width = 0, height = 0; if(sizes == null)

[android-developers] setPictureSize on Droid RAZR

2012-07-19 Thread paladin
I'm trying to fix a bug some customers are having only on Droid RAZRs, and I don't happen to have access to one. We're trying to take pictures as close to the size 1600x1200 as we can, to optimize the size/quality of the pic. However, whenever I setPictureSize on a RAZR (using available picture

[android-developers] When is android.os.Process.myUid created?

2011-11-30 Thread paladin
Notably, if a new version of an application is installed, replacing the old version, is a new value for myUid created for it, or is it the same as the previous version? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] 124x124 icon

2011-06-23 Thread paladin
In the marketplace listings, like this one: https://market.android.com/details?id=com.infonow.bofa They use a 124x124 size icon to display. Where exactly does that icon go? Is it part of the .apk file? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Google Maps Directions in a WebView

2011-06-17 Thread paladin
I got a WebView to correctly get a person's current location from a website, but when I go to get directions from the user's current location to another specific place, the B field is correctly filled in, but in the full browser, the A field has My Location, whereas in the WebView, it remains

[android-developers] HTC Thunderbolt camera orientation

2011-05-06 Thread paladin
Have a camera activity that works for pretty much any other phone, in portrait mode, using this code: Camera.Parameters parameters = camera.getParameters(); parameters.set(orientation, portrait); parameters.set(rotation, 90); camera.setParameters(parameters);

[android-developers] Linux User ID?

2011-01-28 Thread paladin
Is it possible to retrieve the Linux user ID that an app is running under (and possibly group ID)? -- 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

[android-developers] Re: Linux User ID?

2011-01-28 Thread paladin
Do I need to set up any permission to make that call? android.os.Process.myUID(), correct? On Jan 28, 3:57 pm, Kostya Vasilyev kmans...@gmail.com wrote: Process.myUID(): http://developer.android.com/reference/android/os/Process.html 28.01.2011 23:46, paladin пишет: Is it possible

[android-developers] Security question

2011-01-27 Thread paladin
Is there some way to be able to save something to the file system that is only retrievable by the app that saved it? And I don't mean by hardcoding a password or key within the code, because that is very easily decompiled. Can I use the keystore that the app was signed with somehow? -- You

[android-developers] Re: Security question

2011-01-27 Thread paladin
27, 5:57 pm, TomTasche tomtas...@gmail.com wrote: What about Context.getCacheDir()? Maybe that's what you are looking for... Good luck Tom On Jan 27, 11:12 pm, paladin quoti...@gmail.com wrote: Is there some way to be able to save something to the file system that is only retrievable

[android-developers] Re: Security question

2011-01-27 Thread paladin
? On Jan 27, 9:11 pm, Dianne Hackborn hack...@android.com wrote: On Thu, Jan 27, 2011 at 5:37 PM, paladin quoti...@gmail.com wrote: No, another app can go to that directory and read anything in there, if it hasn't been deleted. No, it can't. Maybe your first step should be to read some

[android-developers] Re: Security question

2011-01-27 Thread paladin
Also, do you know if it is possible to retrieve the value of the application's user ID? On Jan 28, 2:33 am, paladin quoti...@gmail.com wrote: Thank you. It says, Any data stored by an application will be assigned that application's user ID, and not normally accessible to other packages. Which

[android-developers] Re: Security question

2011-01-27 Thread paladin
your file if you use one of the other techniques mentioned. Have a nice day Tom On 28 Jan., 02:37, paladin quoti...@gmail.com wrote: No, another app can go to that directory and read anything in there, if it hasn't been deleted. I need something like Unix permissions, where only

[android-developers] Code analysis, anyone?

2011-01-10 Thread paladin
Has anyone any experience with Klocwork code analysis for their Android apps? Is it any good? Or is there some other form of analysis that anyone has done? -- 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] Anchors aren't working

2010-09-30 Thread paladin
In an HTML page, I have at one place, a name=updates/a, but in a WebView, when I click on a href=#updatesupdates/a, it doesn't jump to the correct place. It works fine if I load that page in a browser. It does nothing but mark that link as visited in the WebView. Is there some setting that I'm not

[android-developers] Re: Anchors aren't working

2010-09-30 Thread paladin
OK, found the answer. The WebView was in a ScrollView, when that is unnecessary, and that was messing up the navigation. On Sep 30, 3:20 pm, paladin quoti...@gmail.com wrote: In an HTML page, I have at one place, a name=updates/a, but in a WebView, when I click on a href=#updatesupdates

[android-developers] Any way to display a TIFF image?

2010-09-20 Thread paladin
I'm thinking that BitmapFactory.decode... only handles JPEG (and maybe PNG) images? Is there some way to decode a TIFF file? -- 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] Wait for activity to finish?

2010-09-07 Thread paladin
I have one activity call a camera view activity, and in the onActivityResult, I have it start that activity again with different parameters. Android doesn't seem to like that, and gives me an error that the camera is not available if I start it right after it returns. I tried just waiting a few

[android-developers] Re: Wait for activity to finish?

2010-09-07 Thread paladin
How do I do this? On Sep 7, 2:30 pm, Frank Weiss fewe...@gmail.com wrote: You are probably supposing that the startActivityForResult method is synchronous, that is, when it returns the camera activity has finished. Not! There is an intent result callback you should focus on, no pun intended.

[android-developers] Connect to localhost on a Nexus One?

2010-09-02 Thread paladin
I have a web service running on my local machine, and I used IP address 10.0.2.2 to connect from the emulator to that web service, but when I try that on a Nexus One connected via USB, I get a timeout. Is there a way to access my machine from a real phone like I can from an emulator? -- You

[android-developers] Re: Connect to localhost on a Nexus One?

2010-09-02 Thread paladin
...@commonsware.com wrote: On Thu, Sep 2, 2010 at 3:39 PM, paladin quoti...@gmail.com wrote: I have a web service running on my local machine, and I used IP address 10.0.2.2 to connect from the emulator to that web service, but when I try that on a Nexus One connected via USB, I get a timeout. Is there a way

[android-developers] Re: Connect to localhost on a Nexus One?

2010-09-02 Thread paladin
Yeah, I'm using Visual Studio's Cassini, and it doesn't accept connections except on localhost. On Sep 2, 3:47 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 2, 2010 at 3:45 PM, paladin quoti...@gmail.com wrote: I'm behind a router, and the real IP address starts with 192

[android-developers] Has anyone used uses-library android:option=true?

2010-08-12 Thread paladin
I am trying to make an app that can work with or without the Google Maps API present. Eclipse gives me an error when trying to use android:option as an attribute (I have the latest SDK, I think, revision 6). Also, when I set the build target without the Google Maps library, I get an error from my

[android-developers] Re: Has anyone used uses-library android:option=true?

2010-08-12 Thread paladin
On Aug 12, 3:17 pm, TreKing treking...@gmail.com wrote: On Thu, Aug 12, 2010 at 1:22 PM, paladin quoti...@gmail.com wrote: Eclipse gives me an error when trying to use android:option as an attribute And the error is ... ? error: No resource identifier found for attribute 'option' in package

[android-developers] Re: Has anyone used uses-library android:option=true?

2010-08-12 Thread paladin
On Aug 12, 3:21 pm, TreKing treking...@gmail.com wrote: On Thu, Aug 12, 2010 at 1:22 PM, paladin quoti...@gmail.com wrote: I am trying to make an app that can work with or without the Google Maps API present. Also, this page:http://developer.android.com/guide/topics/manifest/uses-library

[android-developers] Re: Has anyone used uses-library android:option=true?

2010-08-12 Thread paladin
On Aug 12, 4:02 pm, Mark Murphy mmur...@commonsware.com wrote: Try android:required=false. That's undocumented, but it's in the source code. error: No resource identifier found for attribute 'required' in package 'android' -- You received this message because you are subscribed to the Google

[android-developers] Re: Has anyone used uses-library android:option=true?

2010-08-12 Thread paladin
On Aug 12, 4:30 pm, paladin quoti...@gmail.com wrote: On Aug 12, 4:02 pm, Mark Murphy mmur...@commonsware.com wrote: Try android:required=false. That's undocumented, but it's in the source code. error: No resource identifier found for attribute 'required' in package 'android' Wait, it works

[android-developers] Can I make a view slide off the screen?

2010-08-10 Thread paladin
I have ads that display on the top and bottom of the screen, and I'd like them both to slide off the screen smoothly, instead of just disappear. Is there some way to do this? They are both WebViews, if that makes any difference. -- You received this message because you are subscribed to the

[android-developers] Are the Maps libraries included on every phone?

2010-07-13 Thread paladin
My app uses location services, and has the manifest entry: uses-library android:name=com.google.android.maps / Does anyone know if these libraries are guaranteed to be included on every Android phone? If not, how would I know if they are not there? -- You received this message because you are

[android-developers] Re: Are the Maps libraries included on every phone?

2010-07-13 Thread paladin
On Jul 13, 4:46 pm, TreKing treking...@gmail.com wrote: On Tue, Jul 13, 2010 at 2:34 PM, paladin quoti...@gmail.com wrote: You don't, but your app probably won't be able to be installed on the device if you require the library. For example, creating an AVD without the Google Maps add

[android-developers] Change spinner's text color?

2010-07-08 Thread paladin
How can I change the text color of a spinner? Not the list when you click it, but the spinner itself? I changed the background to a black image, and I need to make the text white. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Pre-defined text styles?

2010-06-30 Thread paladin
Where can I see what typeface, size, color, etc. are used for Android's pre-defined text styles? Like the default text style or textAppearanceMedium, for example? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Pre-defined text styles?

2010-06-30 Thread paladin
Thanks! On Jun 30, 2:02 pm, Kostya Vasilyev kmans...@gmail.com wrote: In your sdk root\platforms\android-platform id\data\res\values styles.xml -- Kostya 30.06.2010 21:45, paladin пишет: Where can I see what typeface, size, color, etc. are used for Android's pre-defined text styles

[android-developers] Setting each pixel quickly?

2010-04-01 Thread paladin
I am using the following code to flip each pixel in a bitmap to black or white: for(int x = 0; x newBitmap.getWidth(); x++) { for(int y = 0; y newBitmap.getHeight(); y++) { int point = newBitmap.getPixel(x, y); if(point

[android-developers] Re: Setting each pixel quickly?

2010-04-01 Thread paladin
/documents/pdf/Final%20Report.pdf I don't think the comparison you are doing if (point Color.GRAY) is valid since Bitmap pixels are ARGB data. I would expect to see code bit shifting out the R G  B components. -Kevin On Apr 1, 4:14 pm, paladin quoti...@gmail.com wrote: I am using the following

[android-developers] ColorMatrix problem

2010-03-30 Thread paladin
I found the effect that I'm trying to go for here: http://rainmeter.net/forum/viewtopic.php?f=15t=3119p=21615 It's the B/W effect (not the grayscale), halfway down the page. But I have been unsuccessful in creating the correct Android ColorMatrix values to achieve this effect. Can anyone help me

[android-developers] Global font size?

2010-03-29 Thread paladin
Is there a single place/call where I could increase all font sizes in the app all at once, programmatically? -- 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] Possible to finish() my activity when Home is pressed?

2010-03-25 Thread paladin
I saw another thread related to this question, but did not find the answer that was useful to me. Is it possible when the user presses the Home button to be able to finish() my activity somewhere? I saw that people were having problems with using onStop(). Has anyone found a resolution to see if

[android-developers] Detecting if there is a screen unlock pattern?

2010-02-16 Thread paladin
Is there a way, some API one can call to detect if the user has set a screen unlock pattern or not? -- 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

[android-developers] Rotating just the header?

2010-02-16 Thread paladin
I have a list view with a number of text views per row. Is it possible to rotate the text in some of these text views, and only in the header of the list view? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email