[android-developers] Re: Eclipse/ADT not rebuilding correctly

2011-05-05 Thread Jake Basile
This problem has not gone away, and is getting worse. I need to fully restart eclipse so often now to get it to use my new code that I do it about 15 times a day. Incredibly frustrating, and a waste of my time. -- You received this message because you are subscribed to the Google Groups "Andro

[android-developers] How do you access Android credential storage?

2011-04-25 Thread Jake Basile
In Settings > Location & Security there is a section that allows the user to import certificates. There is also an option, "Use secure credentials"that "Allow[s] applications to access secure certificates and other creden

[android-developers] Re: Eclipse/ADT not rebuilding correctly

2011-04-14 Thread Jake Basile
On Wednesday, April 13, 2011 2:47:45 PM UTC-4, Dan Jin wrote: > Have you tried to refreshing Eclipse under the file menu? I have auto-refresh enabled so that I shouldn't need to. If the solution is to manually refresh every time, it's still broken in my opinion. -- You received this message b

Re: [android-developers] Re: Eclipse/ADT not rebuilding correctly

2011-04-13 Thread Jake Basile
I've never had any odd UI issues or crashes that seemed related to this issue (I've had both, just not close enough to this issue to be linked). -- Jake Basile http://jakebasile.com/ On Wed, Apr 13, 2011 at 5:31 PM, Kostya Vasilyev wrote: > I see this occasionally with Eclipse 3.6

[android-developers] Re: getting device-id

2011-04-13 Thread Jake Basile
There was a post not too long ago about this. See http://android-developers.blogspot.com/2011/03/identifying-app-installations.html. -- 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@go

[android-developers] Re: missing last 7 or 8 bytes while writing to file from inputstream?

2011-04-13 Thread Jake Basile
Try using a RandomAccessFile. It handles the fsync jazz for you. See http://android-developers.blogspot.com/2010/12/saving-data-safely.html for an explanation. I bet that might be what is happening. -- You received this message because you are subscribed to the Google Groups "Android Developers

Re: [android-developers] Re: Eclipse/ADT not rebuilding correctly

2011-04-13 Thread Jake Basile
I am running on 3.5, and my workspace is on auto-refresh. What do you mean by workspace log? -- 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

[android-developers] Re: PNG quality in WebView based app

2011-04-13 Thread Jake Basile
I am running into a very similar problem (see my post at https://groups.google.com/forum/#!topic/android-developers/el37eByuVb8/discussion), and I was wondering if you could post any details about your workaround? How did you split up the image, what size tiles did you use, etc? Did it actuall

Re: [android-developers] Help needed from someone with a Nexus S 2.3.2 system

2011-04-13 Thread Jake Basile
By now most Nexus Ses (how do you pluralize that?) are going to be on 2.3.3. They do have an unlocked loader, so you can downgrade to 2.3.2. I don't know how off the top of my head, but I'm sure xda-developers has some thread on it. -- You received this message because you are subscribed to th

[android-developers] Eclipse/ADT not rebuilding correctly

2011-04-13 Thread Jake Basile
I started noticing this problem about two weeks ago, but it's hard to nail down. I would change something in my code, wait for eclipse to finish building, deploy to my emulator or device, and proceed to step on the new code. I'd see no change and would then check my logs to see what happened: w

Re: [android-developers] WebView Image Scaling

2011-04-12 Thread Jake Basile
Oh well, thanks for the info. I'll figure something out - probably rolling my own. It does seem like something common enough that it should be in the default widgets, maybe in some future version. -- Jake Basile http://jakebasile.com/ On Tue, Apr 12, 2011 at 7:42 PM, Mark Murphy wrote:

Re: [android-developers] WebView Image Scaling

2011-04-12 Thread Jake Basile
Ahh, ok. I was checking if there was something I was missing that does that automatically. Do you know of any open source control that does something similar, as it seems like a pretty common thing? -- Jake Basile http://jakebasile.com/ On Tue, Apr 12, 2011 at 6:25 PM, Mark Murphy wrote: >

Re: [android-developers] WebView Image Scaling

2011-04-12 Thread Jake Basile
By tiling the image, do you mean splitting it up and putting it back together with HTML to display in the WebView? How does this avoid heap size problems? Does WebView do some magic behind the scenes? I'd like to avoid writing my own ImageView zoomer if that is going to open up more problems th

[android-developers] WebView Image Scaling

2011-04-11 Thread Jake Basile
I am writing an image viewer that downloads a PNG from a remote server, saves it to storage, and then opens it in a WebView so that I get multi-touch zoom for free. These images are usually going to be documents, so the user will want to be able to zoom in very far. I am sending down images o

[android-developers] Re: Gingerbread BroadcastReceiver Issue

2011-03-01 Thread Jake Basile
My issue was that according to the documentation, onStartCommand would be called, but with a null intent. Dianne confirmed it was an error in 2.3/3.0 and will be fixed in the next platform release. Using onCreate did solve the problem though, as said above. I never thought to try DDMS. The next

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-03-01 Thread Jake Basile
Thanks Dianne, I'm glad we finally found the root cause here. This along with your suggestion of using onCreate instead has effectively solved this problem in my app, for all version of Android I support. For anyone who would like to see how I worked around this issue, you can see the change at

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-02-28 Thread Jake Basile
Your definition of how START_STICKY works is different from the documentation : if this service's process is killed while it is started (after returning from onStartCommand(Intent, int, int)

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-02-28 Thread Jake Basile
It's been a month, and this regression bug still hasn't even been reviewed. I have since replaced my Nexus S due to it being full of other problems, and it still happens; a friend of mine updated his Nexus One to 2.3.3, and now Hearing Saver doesn't work in exactly the same way on his phone. I'm

[android-developers] Re: XML or JSON in Android

2011-01-28 Thread Jake Basile
I have used JSON as the transport encoding in an enterprise app, and it has been easy to use and effective at cutting down communication size from XML. As a side note, something you may want to consider is using C2DM, as polling every 15 minutes will destroy battery life, suck up bandwidth, and

[android-developers] Re: openFileOutput, FileNotFoundException

2011-01-27 Thread Jake Basile
Do you have in your manifest? -- 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 to android-developers+unsubscr...@googlegroup

[android-developers] Re: Honeycomb SDK

2011-01-26 Thread Jake Basile
prayers: answered. http://android-developers.blogspot.com/2011/01/android-30-platform-preview-and-updated.html -- 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 unsu

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-26 Thread Jake Basile
Went ahead and submitted a bug report for this. I am completely at a loss to explain the problem. Hopefully something will get fixed, or at least someone will drop some knowledge on me so I know what to change to make it work in 2.3 as it did in previous versions. I didn't

[android-developers] Re: Android SDK is so slow that is ridiculous.

2011-01-26 Thread Jake Basile
I have a Core i7-920, 6GB of DDR-1333 RAM, and an ATI 5770. I get maybe 5-10 FPS on the Honeycomb emulator. This thing needs serious performance testing and improvement. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] Re: OpenJDK on Android

2011-01-20 Thread Jake Basile
It would be very convenient for developers, and a nightmare for phone users. -- 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

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-20 Thread Jake Basile
I always try and assume it's my faultfirst, but I am completely without any idea as to how my code is causing the issue after spending q good chunk of effort searching. If I can fix this in my cod

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-19 Thread Jake Basile
Does anyone have any ideas yet about why this is happening? I feel like my code is correct, and it does work flawlessly on previous versions. Should I submit a regression issue on Android? -- Jake Basile http://jakebasile.com/ Sent from my Nexus S On Jan 13, 2011 10:30 AM, "Jake Basile&qu

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-13 Thread Jake Basile
It does appear that I am getting a version of the old behavior, but I do return START_STICKY from onStartCommand, and my minSdkVersion is 6. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread Jake Basile
This cracked me up. Thank you sir. On Wednesday, January 12, 2011 10:56:35 PM UTC-5, Spiral123 wrote: > > Play a tone and record it at the same time. The doppler shift should > give you the speed. Works for galaxies. > > On Jan 12, 9:52 pm, metal mikey wrote: > > You could use the phone's ca

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-12 Thread Jake Basile
I did some log searching, and found that this happens before the service stops working: 01-12 23:26:14.268: INFO/ActivityManager(109): No longer want com.jakebasile.android.hearingsaver (pid 31188): hidden #16 01-12 23:26:14.287: WARN/ActivityManager(109): Scheduling restart of crashed service c

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-11 Thread Jake Basile
I don't have any code, but it should be possible. It would also be wildly inaccurate. You' reduce the sample rate by quite a lot, and the samples would be of much lower quality. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-10 Thread Jake Basile
First off, thanks Mark and Dianne for trying to help with this. Now, on to the meat: I tried it with startForeground, and now it works: so it must be something to do with the service life cycle. This isn't something I'd really like to have to do, because as I've mentioned it doesn't need to be

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-08 Thread Jake Basile
I really doubt it's crashing, as the service doesn't do anything, really. It registers the BroadcastReceiver and then sits and holds a reference to it. It would sometimes get killed before, but it would then be restarted, re-register, and continue on. As it stands, the current code I have isn't

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-07 Thread Jake Basile
I assumed it would get killed and attempted to design around that so that it gets restarted. I return START_STICKY onStartCommand, which I interpreted as meaning it will be restarted after it is killed. Is that incorrect? What can be returned from onStartCommand that can cause onDestroy() to not

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-07 Thread Jake Basile
I'll check it out shortly. If it happens to fix it I might include it as an optional workaround. > As to onDestroy not always being called, where's the source for that? The documentationseems to indicate it is always called.

Re: [android-developers] Gingerbread BroadcastReceiver Issue

2011-01-07 Thread Jake Basile
I have considered it, but it's not really what I'm looking for so I didn't try it. This service shouldn't be in the foreground, and the exact same code didn't need to be to work in previous versions. I don't think the service is getting killed because my onDestroy is not called and the service s

[android-developers] Gingerbread BroadcastReceiver Issue

2011-01-07 Thread Jake Basile
My app, Hearing Saver, registers a BroadcastReceiver to get the ACTION_HEADSET_PLUGaction. Because of a flag on this, the receiver cannot be registered via the AndroidManifest, so I need to keep a service ali

Re: [android-developers] last block incomplete in decryption

2011-01-05 Thread Jake Basile
I'll look into that. This doesn't really need to be super duper encryption, I just need some level on it to satisfy certain requirements. Thanks for the tip though. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

Re: [android-developers] last block incomplete in decryption

2011-01-05 Thread Jake Basile
I linked the code on an external site because it was longer than a snippet. I found the answer to my question, though, through the help of some people on StackOverflow. First of all, I had an error

[android-developers] last block incomplete in decryption

2011-01-04 Thread Jake Basile
Hello android-developers! I have a simple class to try and wrap encryption for use elsewhere in my program. It seems to handle encryption correctly, but not so much when decrypting, which throws a javax.crypto.IllegalBlockSizeException "last block incomplete in de

[android-developers] Re: Protecting Android apk to prevent decompilation, network sniffing etc.

2011-01-01 Thread Jake Basile
There isn't a way to 100% prevent your code from being decompiled. If nothing else, a dedicated person could always look at the bytecode for your app and try and figure it out. The best you can do is what you already mentioned: obfuscate it to make it harder to understand from decompilation. As

Re: [android-developers] Re: pdf reader

2010-12-28 Thread Jake Basile
Just like opening any other type of file on Android, you should try to launch an intent to view it. Intent openPdfIntent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(pdfFile), "application/pdf"); try { startIntent(openPdfIntent); } catch(ActivityNot

[android-developers] Re: how to submit rating for the application to android market

2010-12-28 Thread Jake Basile
The best you could do is launch a browse intent to direct people to your app on the market. Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse("market://search?q=pname:your.package.here")); startActivity(intent); -- You received this message because you are subscribed to t

[android-developers] Re: how to check phone support torch mode..problem pls solve

2010-12-28 Thread Jake Basile
You'll want to read up on , specifically android.hardware.camera.flash. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

[android-developers] Re: Which JSON Parser is better

2010-12-24 Thread Jake Basile
The JSON library built into Android (org.json) should be more than efficient for your needs on a mobile device. If there are inefficiencies in it, they almost certainly won't be large enough to cause a visible slowdown in your app unless you are transmitting a drastic amount of information over

[android-developers] Re: INSTALL_PARSE_FAILED_NO_CERTIFICATES on Android-2.3

2010-12-16 Thread Jake Basile
Glad that worked for you. You also would need to sign it with a real key generated with keygen before releasing the APK, as the debug certificate won't work on the Android Market . -- You received this message because yo

Re: [android-developers] Re: INSTALL_PARSE_FAILED_NO_CERTIFICATES on Android-2.3

2010-12-16 Thread Jake Basile
Yes, all APKs have to be signed before they are installed: http://developer.android.com/guide/publishing/app-signing.html -- 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.

Re: [android-developers] Re: ADT 9.0.0 preview

2010-12-16 Thread Jake Basile
This is an option in the Eclipse XML formatter. Open your preferences>XML>XML Files>Editor and turn on "split multiple attributes each on one line". -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] Re: Droid X problems with SEARCH_LONG_PRESS intent

2010-12-15 Thread Jake Basile
Looks like it's a known issue on the current Droid X firmware. http://community.developer.motorola.com/t5/Android-App-Development-for/Unable-to-launch-App-from-hardware-buttons-on-Motorola-Devices/td-p/8864 -- You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Re: INSTALL_PARSE_FAILED_NO_CERTIFICATES on Android-2.3

2010-12-15 Thread Jake Basile
Just to be sure, did you sign your APKafter it is built? -- 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

[android-developers] "cannot download. The content is not supported on the phone"

2010-12-15 Thread Jake Basile
This is more of a user question, so it should probably go to android-discuss; but I know that Astro lets you specify that it should declare itself to open any file which lets the browser download everything. It messes up opening files, though, so it's not something I'd leave on all the time. --

[android-developers] Hello World and Google Maps API for Android!

2010-12-15 Thread Jake Basile
To answer your question about other languages, I know that the mono project is being ported as MonoDroid, but it's in closed beta at the moment. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-d

[android-developers] Re: Maximum size of APK that can Upload to Android Market

2010-12-15 Thread Jake Basile
If you need that much space, you should consider downloading it yourself to the SD card. This is the accepted way to download big sets of data. the TTS engine does this, if I recall correctly. -- You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] Re: Global search app

2010-12-14 Thread Jake Basile
Cool, glad I could help. -- 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 to android-developers+unsubscr...@googlegroups.com

[android-developers] Re: Choose Camera or Gallery Activity

2010-12-14 Thread Jake Basile
I don't think you can do this with createChooser. You should be able to "roll your own" though, without much problem. Query for those two intents, and create a dialo

[android-developers] Re: Global search app

2010-12-14 Thread Jake Basile
Also, you may need to add -- 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 to android-developers+unsubscr...@googlegroups.co

[android-developers] Re: Global search app

2010-12-14 Thread Jake Basile
You may have to go into Settings>Apps>Manage Apps find Voice Search, and then clear defaults. I'm not really sure though. You may also want to try android.speech.action.RECOGNIZE_SPEECH -- You

[android-developers] Re: jumping to a new screen

2010-12-14 Thread Jake Basile
The way to do that is by starting a new activity. You do that by creating an Intent and calling startActivity(intent). More info at http://developer.android.com/reference/android/app/Activity.html#StartingActivities . -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: screen brightness change

2010-12-14 Thread Jake Basile
On my system, it's at \platforms\android-9\data\broadcast_actions.txt. I don't know if it has them all, but it's been useful to me. -- 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@goo

[android-developers] Re: Global search app

2010-12-14 Thread Jake Basile
I also just saw that android.intent.action.SEARCH_LONG_PRESS exists, so maybe that's one you can use too. -- 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 unsubscri

[android-developers] Re: Global search app

2010-12-14 Thread Jake Basile
You might try android.intent.action.VOICE_COMMAND, but I don't know if that's the right intent for what you want. -- 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 u

[android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread Jake Basile
If it's for licensing, couldn't you use something like the LVL? Anything you write to a system you don't control (the device) is going to be non-permanent. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Overview for which API calls require which permissions?

2010-12-14 Thread Jake Basile
IMO, good documentation is the responsibility of the API developer, not the user. -- 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] Overview for which API calls require which permissions?

2010-12-14 Thread Jake Basile
This is really something that Google should assemble and publish, not an individual developer. First, it's a big workload to do it right, and second it may not always be correct. I can't remember what it was, but there is at least one part of the API that I found where instead of throwing an ex

[android-developers] New HierarchyViewer, pixel-perfect mode gone?

2010-12-14 Thread Jake Basile
I was able to get to it by selecting my device, and clicking "inspect screenshot". It took a while but it opened up in PPV. -- 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@googlegroup

[android-developers] Available databases for Android

2010-12-14 Thread Jake Basile
The only built in option is SQLite, available under android.database.sqlite. I'm not aware of anything else but there could be third party ones available. -- 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] Re: screen brightness change

2010-12-14 Thread Jake Basile
As an aside, to find what broadcast intents are available, you can check in a few places: - In your platform folder for the version of Android you are targeting, look for the broadcast_actions.txt file. This contains the string action for any intent that the system can broadcast. -

[android-developers] Switching to Eclipse causes Certificate Error

2010-08-05 Thread Jake Basile
Hey all. new to here, but can't find an answer after a good amount of Googling. I only get information about people who lost their key file or the password to it, and neither apply to me. I switched from Netbeans with the Netbeans add-in for a previous version of my app to Eclipse with ADT for the