Re: [android-developers] Re: options menu items

2010-02-04 Thread Sean Hodges
No, you cannot adjust the theme or layout of the default options menu (see http://code.google.com/p/android/issues/detail?id=4441). However, you can intercept the Menu button press and draw your own menu... On Thu, Feb 4, 2010 at 4:25 PM, Robert Nekic robertne...@gmail.com wrote: I was about to

Re: [android-developers] Re: How to run android application from super user(administrator) mode

2010-02-08 Thread Sean Hodges
Are you using a rooted phone? Elevated privileges will be refused on a stock build. I'm not sure what the actual effect will be. I would expect a SecurityException, but it's possible that the su program is simply not visible to user-space processes. Also, you are not specifying the full path to

Re: [android-developers] Re: What's his name?

2010-02-08 Thread Sean Hodges
Terence On Mon, Feb 8, 2010 at 12:54 PM, Carl Whalley carl.whal...@googlemail.com wrote: Mikey Android Academy http://www.androidacademy.com On Feb 8, 1:59 am, tora kogo...@gmail.com wrote: Hello, I have a simple question. What's his

Re: [android-developers] Standard Android Music Player

2010-02-09 Thread Sean Hodges
Accroding to a comment in the OpenIntents site (http://www.openintents.org/en/node/112), this should work: Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data = Uri.parse(file:///sdcard/song.mp3); String type = audio/mp3; intent.setDataAndType(data, type);

Re: [android-developers] problems using SCREEN_DIM_WAKE_LOCK

2010-02-09 Thread Sean Hodges
Sorry to ask the obvious, but are you sure you have the android.permission.WAKE_LOCK permission declared in your AndroidManifest.xml? On Tue, Feb 9, 2010 at 3:11 PM, guich guiha...@gmail.com wrote: Hi, I'm trying to programatically turn the screen off and on, while keep the app running. If

Re: [android-developers] Re: problems using SCREEN_DIM_WAKE_LOCK

2010-02-09 Thread Sean Hodges
You need this permission: uses-permission android:name=android.permission.WAKE_LOCK / Be sure to have a read up on the permissions framework, it's pretty fundamental to Android development. http://developer.android.com/intl/fr/guide/topics/security/security.html#permissions SCREEN_DIM_WAKE_LOCK

Re: [android-developers] Playing Video in App Widget

2010-02-10 Thread Sean Hodges
You can't play video inside an AppWidget. On Wed, Feb 10, 2010 at 12:42 PM, Narendra Bagade bagadenaren...@gmail.com wrote: I want to play video,how can i achieve? I tried this code but ,it is playing only audio means i can hear only sound but video is not display on emmulater screen? can

Re: [android-developers] Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-12 Thread Sean Hodges
I think what Dianne is saying is that the values you are seeing are what is raw data returned from the sensor, it's not normalised for multi-touch games, or for any particular purpose. My understanding is that the values returned have different coordinate spaces, and have a tendency to jump about

Re: [android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-15 Thread Sean Hodges
here: http://lukehutch.wordpress.com/2009/01/10/full-working-multitouch-on-... On Fri, Feb 12, 2010 at 4:39 AM, Sean Hodges seanhodge...@googlemail.comwrote: I think what Dianne is saying is that the values you are seeing are what is raw data returned from

Re: [android-developers] Re: programatically press a button

2010-02-15 Thread Sean Hodges
Well, the two things I can tell you about it is: 1) They show exactly how they did it by giving you the source code. 2) They don't show you how to programatically send Menu or End Call button presses, because it is not possible to simulate those buttons (as Mark stated already). Those hardware

Re: [android-developers] Re: programatically press a button

2010-02-15 Thread Sean Hodges
exactelly the same problem as you. Using that piece of code I could simulate Home and Back key events. Regards, On 15 fév, 10:52, Sean Hodges seanhodge...@googlemail.com wrote: Well, the two things I can tell you about it is: 1) They show exactly how they did it by giving you the source code

Re: [android-developers] Re: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2010-02-15 Thread Sean Hodges
On Mon, Feb 15, 2010 at 12:47 PM, Ashish Srivastava ashish0srivasta...@gmail.com wrote: This is really bad behavior. None of you are trying to solve the problem for people with Proxy + Authentication enabled. It's really that people are being truly selfish. Shame on the community. Did it occur

Re: [android-developers] Re: Appwidget with fast updating needed ...

2010-02-15 Thread Sean Hodges
I was puzzling over this one, but I agree that a new home screen is a good idea. It will give you the flexibility you need to display custom views, at a suitable refresh rate. You will, however, have to deal with all the resource consumption issues that go with it. A 5fps update on the home

Re: [android-developers] Re: Appwidget with fast updating needed ...

2010-02-15 Thread Sean Hodges
On Mon, Feb 15, 2010 at 7:34 PM, Mark Murphy mmur...@commonsware.com wrote: That actually shouldn't be all that bad -- just disable the updates in ACTION_SCREEN_OFF (and onStop()) and re-enable them in ACTION_SCREEN_ON (and onStart()). Good point Mark. It would take a little forward thinking,

Re: [android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-16 Thread Sean Hodges
It doesn't seem as good because it isn't as good. Have you looked at the supported gestures page I linked you to? http://www.synaptics.com/solutions/technology/gestures/touchpad All of the gestures that the screen used by the Nexus One claims to support would not be affected by the issues you

Re: [android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-16 Thread Sean Hodges
So Sean, your answer to that is simply : Don't use multitouch at all !! No. My point was that you shouldn't rely on the touch screen for complex gestures (particularly multi-touch). Otherwise your game will be useless to anyone with a handset that doesn't support dual/multi touch, or has

Re: [android-developers] Re: In-app payment options

2010-02-19 Thread Sean Hodges
On Fri, Feb 19, 2010 at 3:32 PM, Carlo ca...@hyperdevbox.com wrote: can somebody explain the benefit of a lite version in a market where there is 24h trial of the full version for everybody ? Some products require a longer trial period than 24 hours. -- You received this message because you

Re: [android-developers] How to disable the Android device (android.permission.BRICK?)

2010-02-21 Thread Sean Hodges
I dont think I fully understand your question... Are you looking for something in the public API that will render a user's Android device useless for a period of time? Just how far do you expect this bricking to go? Will they still be able to use their phone for other purposes, e.g. making

Re: [android-developers] Transmit serialized object via HTTP in Android

2010-02-22 Thread Sean Hodges
On Mon, Feb 22, 2010 at 11:57 AM, Ray da Costa raydaco...@gmail.com wrote: Personnel possibility exists to transmit serialized object via HTTP in Android? I'm trying to use the HttpURLConnection but I get an exception saying that does not support Once an object is serialised, it shouldn't be

Re: [android-developers] Re: Transmit serialized object via HTTP in Android

2010-02-22 Thread Sean Hodges
is native in android, and well understood by various framweworks on the server side I started small JSON marshaller on github, which can marshall object trees to strings and back ( not really advanced  by now though ) http://github.com/ko5tik/jsonserializer On Feb 22, 2:09 pm, Sean Hodges

Re: [android-developers] Any interest in accessing our app via intents?

2010-02-25 Thread Sean Hodges
Hey Al, The service looks very cool. I guess the problem that I have is figuring out a real world use for it... Obviously I wouldn't expect you to do my thinking for me :) But what would be REALLY useful is if you could post up a few fictitious (or even real life) use cases, perhaps on the site,

Re: [android-developers] Disable Home Key?

2010-02-25 Thread Sean Hodges
On Thu, Feb 25, 2010 at 1:39 AM, DroidBy meikeng@gmail.com wrote: I am doing a security Lock system for my project. I am interested to know how to disable the HOME key or handle it at framework layer, in order to prevent user to by pass the security lock by presing HOME. I know that I am

Re: [android-developers] Re: Disable Home Key?

2010-02-26 Thread Sean Hodges
On Fri, Feb 26, 2010 at 8:17 AM, DroidBy meikeng@gmail.com wrote: I am happy that you give me a clue on this, however I am not able to open the link that you post, it will redirect me to a blank webpage. Can you repaste the link? or the main link that I can browse into the sub-pages of

Re: [android-developers] Re: Piracy sucks, or does it?

2010-02-26 Thread Sean Hodges
On Fri, Feb 26, 2010 at 12:15 PM, Hekki kaye...@gmail.com wrote: I'm french and here some of our stand-up comedians are upset with youtube and the likes because youtube makes money on they're work and they don't see a single penny of it. There is nothing in this world quite like witnessing a

Re: [android-developers] is it possible to get user name against the default Gmail account.

2010-02-26 Thread Sean Hodges
On Fri, Feb 26, 2010 at 2:19 PM, Atif Gulzar atif.gul...@gmail.com wrote: Is it possible to get the user name against the default Gmail account on device? I sure hope not... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Activity Being Killed (onDestroy) on Orientation Change

2010-04-06 Thread Sean Hodges
On Mon, Apr 5, 2010 at 6:50 AM, Gaurav Vaish gvaish.i...@gmail.com wrote: Problem: When the orientation is changed, the Application is notified about onConfigurationChange but: a) The current activity is Destroyed and recreated -- which is fine to some extent b) The new instance which is

Re: [android-developers] How many Android phones have touchscreens?

2010-04-21 Thread Sean Hodges
If you are a beginner, you should really be posting to the android-beginners list. I believe all of the current Android phones have touch screens. On Wed, Apr 21, 2010 at 10:24 AM, angushir...@googlemail.com angushir...@yahoo.co.uk wrote: Hi all,        a simple question from a beginner - how

Re: [android-developers] Display some part of HTML file in WebView

2010-04-21 Thread Sean Hodges
Why must all the content be on a single HTML page? If you really can't split it out, you could use some Javascript actions to hide/display sections of the HTML page when the user clicks the '' button. However, the browser will still need to download and render the entire page when it loads, which

Re: [android-developers] Market

2010-04-26 Thread Sean Hodges
If you don't mind a potential delay after publishing the other app, then you could query Cyrket for its package name. For instance: http://www.cyrket.com/p/android/com.blau.android.richer/; You will get a 200 (success) response if the app is available on the market, or a 404 (page not found) if

Re: [android-developers] How To Override the “Back ” button so it doesn’t Finish() my Activity?

2010-06-29 Thread Sean Hodges
When the user presses the back button, the activity in the foreground is stopped (and destroyed). This is what always happens, for all apps. What you really want is to restore the state of your activity when it is re-launched. See:

Re: [android-developers] Re: User comments available in the developer console!

2010-06-30 Thread Sean Hodges
On Wed, Jun 30, 2010 at 3:45 PM, TreKing treking...@gmail.com wrote: let's be honest - it's still fairly useless save for the convenience factor. I wouldn't say useless, the comment feed looks to be real-time, and therefore more up-to-date than Cyrket and other sites (based on what I've seen in

Re: [android-developers] Re: Twitter App Source Code

2010-07-07 Thread Sean Hodges
It hasn't been announced yet. On Wed, Jul 7, 2010 at 3:31 PM, zachariahyoung zpyo...@gmail.com wrote: Does anybody know when it will be released? On Jul 7, 9:16 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jul 7, 2010 at 10:14 AM, zachariahyoung zpyo...@gmail.com wrote: Where can

Re: [android-developers] Android IMEI with letter :O

2010-07-08 Thread Sean Hodges
Can you give an example? If you are detecting non-digits, perhaps they are dashes - separating the identifier components? Be careful when making assumptions on this value as not all Android devices are phones, and as far as I'm aware manufacturers could potentially pass anything back from a

Re: [android-developers] Re: Sending and reveiving mails in emulator

2010-07-12 Thread Sean Hodges
I'll take that as a BUMP :) Have you seen this thread? http://www.mail-archive.com/android-port...@googlegroups.com/msg06255.html How have you set up your GMail account in the Email app? IMAP? Can you connect to the Web OK using the emulator browser? On Mon, Jul 12, 2010 at 10:55 AM, Danny

Re: [android-developers] Re: Sending and reveiving mails in emulator

2010-07-12 Thread Sean Hodges
and give response ;-) Thanks, -Danny Schimke On Jul 12, 12:09 pm, Sean Hodges seanhodge...@googlemail.com wrote: I'll take that as a BUMP :) Have you seen this thread?http://www.mail-archive.com/android-port...@googlegroups.com/msg06255... How have you set up your GMail account

Re: [android-developers] Re: Sending and reveiving mails in emulator

2010-07-13 Thread Sean Hodges
missed one. Thank you very much! No problem :) -Danny Schimke On Jul 12, 5:00 pm, Sean Hodges seanhodge...@googlemail.com wrote: Don't use the Accounts sync settings to set up the Email app. Those settings are for the Google apps (GMail, Maps, Contacts, etc), not the Email app. Open

Re: [android-developers] Re: Android Market Developer Console Bugs feature

2010-05-21 Thread Sean Hodges
Yeah, you can't trick it like that String. It uses the Prediction API to only log bugs that it believes you don't know about. On Fri, May 21, 2010 at 11:37 AM, String sterling.ud...@googlemail.com wrote: On May 21, 8:51 am, westmeadboy westmead...@yahoo.co.uk wrote: Does anyone know whether it

Re: [android-developers] Re: Petitions to Google

2010-05-21 Thread Sean Hodges
On Fri, May 21, 2010 at 3:06 PM, Leigh McRae leigh.mc...@lonedwarfgames.com wrote: Why should I have to write interfaces or factory objects for something I know at compile time? Why do I need to write and maintain more code just so OOP purists can feel good about themselves?  Why should I have

Re: [android-developers] Re: Android finishActivity()

2010-06-02 Thread Sean Hodges
Mike, You've done half the work already, except there is a little confusion on the purpose of the finishActivity() method. That method only works the other way around (closing Activity B from Activity A). What you need to do now is send a result back to Activity A telling it to call finish().

[android-developers] Re: Email via seanhodges.co.uk website

2010-06-02 Thread Sean Hodges
Hello herrmie, What problems are you having? My post included some example code, is it this code you're having trouble with, or is it with adding the library to your project? Adding a library is relatively straightforward, although I admit I found it a bit confusing when I was starting off with

Re: [android-developers] Re: Android finishActivity()

2010-06-04 Thread Sean Hodges
, perhaps you could describe what you want step-by-step. At the moment, it sounds like you want the stack to have just one activity at all times. Cheers, Sean On Fri, Jun 4, 2010 at 9:52 AM, mike hasitharand...@gmail.com wrote: hi Sean Hodges, it's working correctly. and is there a way

Re: [android-developers] Re: Android finishActivity()

2010-06-04 Thread Sean Hodges
OK Mike, so reading carefully through your explanation, it looks to me that the process you want is this: A - B - C - A - (app close) Whilst what you are actually getting, with your current code, is this: A - B - C - A - A - B - (unknown) The complex nature of your activity jumping suggests

Re: [android-developers] How does a held wakelock impact if the service dies with out releasing it?

2010-06-04 Thread Sean Hodges
Wake locks should be released when the object is garbage collected. See the finalize() method in the WakeLock subclass here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/os/PowerManager.java You will get a thrown exception in your logs if this occurs.

Re: [android-developers] how to listen for system wide key presses

2010-06-04 Thread Sean Hodges
I'm not aware of a system-wide key press listener, but check out the org.openintents.audio.action_volume_update bradcast intent: http://www.openintents.org/en/node/380 That should allow you to detect changes in the volume setting (including the button presses). On Fri, Jun 4, 2010 at 4:24 PM,

Re: [android-developers] Re: Android finishActivity()

2010-06-05 Thread Sean Hodges
OK I must have misinterpreted your description, so you want: A - B - C - B - (close) The simple answer is to move the android:noHistory=true from the Activity B declaration, to the Activity A one. On Sat, Jun 5, 2010 at 3:25 PM, mike hasitharand...@gmail.com wrote: Hi Sean, when you set

Re: [android-developers] App disappears from the Market after upgrade

2010-06-07 Thread Sean Hodges
I can confirm the app is available on my Nexus One and the G1. It's also visible on the Android Market according to Cyrket: http://www.cyrket.com/p/android/net.yuvalsharon.android.netsms/ If it has only disappeared on your phone, perhaps you need to turn the sync setting on so the Android Market

Re: [android-developers] Passing Bitmap to Another Activity

2010-06-07 Thread Sean Hodges
Personally, I would avoid keeping that bitmap in memory, otherwise you are consuming a lot of resources and run the risk of hitting performance/heap space limitations. You could use openFileOutput() and getCacheDir() to store the contents of the Bitmap into a temporary file:

Re: [android-developers] Re: MediaController in MediaPlayer

2010-06-07 Thread Sean Hodges
Hey Abhi, Take a look at the VideoDemo class in Mark Murphy's tutorial projects: http://github.com/commonsguy/cw-advandroid/blob/master/Media/Video/src/com/commonsware/android/video/VideoDemo.java On Mon, Jun 7, 2010 at 2:28 PM, Abhi abhishek.r.sha...@gmail.com wrote: guys any lead on this

Re: [android-developers] Re: MediaController in MediaPlayer

2010-06-07 Thread Sean Hodges
. I already have a player using VideoView but am having issues with it, so I decided to switch over to MediaPlayer. I have a player running so far but no auto Media Controller (like the one in the link with VideoView). Abhi On Jun 7, 9:34 am, Sean Hodges seanhodge...@googlemail.com wrote: Hey

Re: [android-developers] How to send mms from my code

2010-06-07 Thread Sean Hodges
There is currently no public API available for sending MMS messages (that is, SMS messages with embedded multimedia content). You can launch the built-in MMS app along with your content using an Intent, as described here: http://jtribe.blogspot.com/2008/12/sending-mms-with-android.html.

Re: [android-developers] Can't grok Activity life cycle.

2010-06-08 Thread Sean Hodges
There are a lot of large successful games available on Android, and they all appear to be using the activity lifecycle without much problem. I would start by taking a look at how they work. My experience is that a game might pause when I leave to answer a phone call or run another app. When I

Re: [android-developers] Does specifying 2.2 exclude any devices?

2010-06-08 Thread Sean Hodges
An interesting question. Many of us outside the U.S. are still on 2.1, what's your app called? I'll check that I can see it on the market and run it without problems. Have you tested your app on older versions of Android? I have several emulator AVD's for testing against 1.5, 2.1, and 2.2. It

Re: [android-developers] Can't grok Activity life cycle.

2010-06-08 Thread Sean Hodges
of the context during the lifecycle: http://code.google.com/p/rokon/source/browse/trunk/OpenGL/GLSurfaceView.java?spec=svn25r=25. This seems to be effective, but it does leave you wondering why the context lifetime isn't looked after for you by default. On 6/8/2010 4:49 AM, Sean Hodges wrote

Re: [android-developers] Re: How to send mms from my code

2010-06-09 Thread Sean Hodges
It opens the SMS app so you can enter the contact number, see my email earlier. On Wed, Jun 9, 2010 at 2:25 PM, mike hasitharand...@gmail.com wrote: hi guys, According to the site this is the code        Intent sendIntent = new Intent(Intent.ACTION_SEND);                        

Re: [android-developers] Re: How to send mms from my code

2010-06-09 Thread Sean Hodges
Mike, I can do a little more than that, I can give you a fully working unit test with the phone number pre-populated in the From: field: package com.seanhodges.sandbox; import android.content.Intent; import android.net.Uri; import android.test.AndroidTestCase; public class SendAnMMS extends

Re: [android-developers] automatically turn on application

2010-06-09 Thread Sean Hodges
You might be able to use a Service and SensorListener for this, you will need to work out how often you would want to run the Service to poll the accelerometer for movement, as frequent polling will drain the battery. I've also read that the sensors can stop returning results when the screen goes

Re: [android-developers] Uploading Adult apps.

2010-06-10 Thread Sean Hodges
I don't think you can upload it to the Android Market, but other app markets will allow it. One such market: http://www.mikandi.com/ - NOTE: *not* suitable for work, depending on your work :) On Thu, Jun 10, 2010 at 8:33 AM, Zaid zaid.a...@gmail.com wrote: i read in the android content

Re: [android-developers] Re: How global is the app market?

2010-06-10 Thread Sean Hodges
I agree, it's a little tricky to use a Chinese language-only site when, like me, you are not able to read Chinese. I admit, it's completely my fault that I'm not multilingual, but there are many like me and it is a barrier for both sides. Also, even if I could navigate my way around the site,

Re: [android-developers] Is it possible to link to iTunes Store from Android application?

2010-06-10 Thread Sean Hodges
I don't think so, Apple haven't released an API for iTunes. You might be able to hack something together, pulling the files off the local hard disk, etc, but be prepared to fight against compatibility problems between versions. On Thu, Jun 10, 2010 at 12:23 PM, Samuh samuh.va...@gmail.com

Re: [android-developers] How to resolve the hide interface in Eclipse

2010-06-10 Thread Sean Hodges
You can exclude classes (or entire packages) from the build in Eclipse by right-clicking on them and selecting Build Path - Exclude. On Thu, Jun 10, 2010 at 12:26 PM, yangm yangm...@gmail.com wrote: I use Eclipse to develop my application, but I wan to use some @hide interface. -)In Eclipse,

Re: [android-developers] Uploading Adult apps.

2010-06-10 Thread Sean Hodges
On Thu, Jun 10, 2010 at 3:08 PM, TreKing treking...@gmail.com wrote: On Thu, Jun 10, 2010 at 4:15 AM, Sean Hodges seanhodge...@googlemail.com wrote: I don't think you can upload it to the Android Market, Well, you *can*, as evidenced by the plethora of adult apps already on the Market. You

Re: [android-developers] Uploading Adult apps.

2010-06-10 Thread Sean Hodges
, 2010 at 4:06 PM, John T. Haggerty jpcoo...@gmail.com wrote: Ive heard rumors of things like that however never seen anything proving this even with exploratory web searches.one would assume they are very much unadvertised On Jun 10, 2010 8:24 AM, Sean Hodges seanhodge...@googlemail.com wrote

Re: [android-developers] Re: How to send mms from my code

2010-06-12 Thread Sean Hodges
Mike, In the way I described, you are correct. There may be some way of returning the success of the MMS delivery by using startActivityForResult() instead of startActivity(), but you will have to take a look at the SMS app source code to see what is available there. Regards, Sean On Sat, Jun

Re: [android-developers] Re: How to send mms from my code

2010-06-14 Thread Sean Hodges
That is because there are multiple apps on your phone that can handle the intent. See the documentation: http://developer.android.com/intl/fr/reference/android/content/Intent.html#ACTION_SEND On Mon, Jun 14, 2010 at 5:31 AM, mike hasitharand...@gmail.com wrote: hi sean, when i try to send a

Re: [android-developers] Re: How to send mms from my code

2010-06-14 Thread Sean Hodges
, Sean Hodges seanhodge...@googlemail.com wrote: Mike, I can do a little more than that, I can give you a fully working unit test with the phone number pre-populated in the From: field: package com.seanhodges.sandbox; import android.content.Intent; import android.net.Uri; import

Re: [android-developers] Re: How to send mms from my code

2010-06-14 Thread Sean Hodges
); This acutally works if I select gmail, although the image name gets changed to the resource id. However if I choose 'Messaging' from the intent chooser, it throws a null pointer. On Jun 14, 11:55 am, Sean Hodges seanhodge...@googlemail.com wrote: I'm not sure of the best way to do this; but my

Re: [android-developers] Re: Android finishActivity()

2010-06-16 Thread Sean Hodges
Hello Mike, I somehow missed your last email. On Wed, Jun 16, 2010 at 5:16 AM, mike hasitharand...@gmail.com wrote: Hi Sean, i hope you also has gone out of answers. any way kindly let me know this. A -- B -- C -- C -- where? C to A? C to finished? C to force close dialog? What I'm

Re: [android-developers] READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE automatically required?

2010-06-21 Thread Sean Hodges
Can't say I've seen this before. Do you mean the permissions are automatically added to the AndroidManifest.xml, or that your app requests those permissions even without the uses-permission entries present? If it's the former, have you tried just removing those permissions from your manifest?

Re: [android-developers] Re: Extract text from image

2010-06-21 Thread Sean Hodges
Sreehari, OCR is not really an Android topic, I'd be surprised if anyone had any out-of-the-box sample code you could just use. One relatively straight-forward solution might be to use an OCR Web service to convert your images. A quick search brings up: http://www.ocrwebservice.com/, which has a

Re: [android-developers] Animated widgets?

2010-06-22 Thread Sean Hodges
What is the problem you are trying to solve? Perhaps there is a better solution than an app widget. For instance, you can have a canvas in a live wallpaper (assuming you do not need to support Android 1.x), or maybe the animation could be triggered after clicking on the app widget (e.g. it opens

Re: [android-developers] Re: Avoiding GPL

2010-06-23 Thread Sean Hodges
You really need to consult a specialist on this subject, developers (including me) have a tendency to give out I am not a lawyer type advice, which is inherently unreliable. In the strategy you describe, I believe putting A and B in the same APK means you are distributing both components as a

Re: [android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-06-23 Thread Sean Hodges
On Wed, Jun 23, 2010 at 9:46 AM, LeveloKment levelokm...@googlemail.com wrote: Come on. No information? No opinion? No advice how to address this issue to the Android development team? This particular functionality belongs in the system layer, not user-space apps. Log an enhancement ticket on

Re: [android-developers] Background apps (Instant Messaging) being killed without user notification

2010-06-23 Thread Sean Hodges
What Kostya said. When memory is critically low on the device, apps are killed outright to regain user control. Android was originally designed for mobile phones, and nobody wants to miss an incoming call because they have run out of memory. No notification is passed to the user, because well

Re: [android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-06-24 Thread Sean Hodges
On Thu, Jun 24, 2010 at 1:24 PM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jun 24, 2010 at 3:27 AM, LeveloKment levelokm...@googlemail.com wrote: What is your advice to make the development team at least aware was this potential improvement? Post something on http://b.android.com

Re: [android-developers] Re: HTML parsing with JAVA

2010-03-04 Thread Sean Hodges
I have have good results with Jericho (http://jericho.htmlparser.net), it works very efficiently in Android, and has a pretty comprehensive API. There are examples on the site, but to give you an idea of the syntax: Source source = new Source(new URL(www.google.co.uk)); ListElement linkElements =

Re: [android-developers] Making sure activity is alive to receive Intent?

2010-03-05 Thread Sean Hodges
There are better ways of handling this. The purpose of an Intent is to atomically request that an action is performed (and optionally retrieve the result of that action), not to continue a discussion with the activity throughout it's continued lifetime. There are a number of ways to do what you

Re: [android-developers] Re: How to end the Application?

2010-03-08 Thread Sean Hodges
On Mon, Mar 8, 2010 at 1:42 PM, TreKing treking...@gmail.com wrote: On Mon, Mar 8, 2010 at 12:47 AM, Farproc farp...@gmail.com wrote: try {        System.exit(0); } catch (SecurityException e) { This is NOT recommended. Use finish() on your activities and let Android deal your app when

Re: [android-developers] Re: No View key event called back when BACK key is pressed while IME is shown?

2010-03-11 Thread Sean Hodges
I believe the back button event is intercepted by the keyboard app, so it knows to hide. Once focus is returned to your app, the event has already been processed. I'm not aware of any way to intercept the events of another app (like the soft keyboard). You could write your own keyboard app that

Re: [android-developers] Re: No View key event called back when BACK key is pressed while IME is shown?

2010-03-11 Thread Sean Hodges
/9d1681a01f05e782 On Mar 11, 3:14 pm, Sean Hodges seanhodge...@googlemail.com wrote: I believe the back button event is intercepted by the keyboard app, so it knows to hide. Once focus is returned to your app, the event has already been processed. I'm not aware of any way to intercept

Re: [android-developers] write/read log files in res folder

2010-03-15 Thread Sean Hodges
No. You can't write into your APK file. Write your log data to the SD card instead. On Sat, Mar 13, 2010 at 7:07 AM, aswani kumar tholeti ensisinf...@gmail.com wrote: Hi all, how to write/read log data into txt file in res folder Thanks in advance Aswan -- You received this message

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-16 Thread Sean Hodges
On Tue, Mar 16, 2010 at 7:01 AM, Dianne Hackborn hack...@android.com wrote: You should have an activity that is -not- a MAIN/LAUNCHER activity, but rather MAIN/INFO.  This will be launched when the user selects launch from the market (or manage apps), but won't show up as an icon in the all

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-16 Thread Sean Hodges
Mine arrived yesterday: London, UK. I know others who are still waiting in this area though. On Tue, Mar 16, 2010 at 11:22 AM, ratson materem...@gmail.com wrote: Hi, has someone else already received it's phone? please keep us informed with location. i received my confirmation on 6th March,

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-16 Thread Sean Hodges
in Google Checkout. On Tue, Mar 16, 2010 at 2:55 PM, Thomas Riley tomrile...@googlemail.com wrote: Hi Sean, Did it come with a UK charger? Thanks, Tom On Mar 16, 11:39 am, Sean Hodges seanhodge...@googlemail.com wrote: Mine arrived yesterday: London, UK. I know others who are still waiting

Re: [android-developers] Ant vs Eclipse build difference

2010-03-17 Thread Sean Hodges
Your team member was using the Java 6 JDK. The @XmlSeeAlso annotation is not available in the Java 5 SDK: http://java.sun.com/javase/6/docs/api/javax/xml/bind/annotation/XmlSeeAlso.html I've seen this happen a lot. You need to either switch to JDK6 to build your app, or find an JDK5 compatible

Re: [android-developers] Re: Windows Phone and XNA. Nightmare is real. What we do with that ?

2010-03-17 Thread Sean Hodges
On Wed, Mar 17, 2010 at 1:48 PM, Piotr piotr.zag...@gmail.com wrote: I say it again, hoping that some Google Worker is watching :D: ... and right here is where your effort ends, and the whole concept becomes little more than hot air. Google are not a gaming company, they are not even a

Re: [android-developers] Re: Windows Phone and XNA. Nightmare is real. What we do with that ?

2010-03-17 Thread Sean Hodges
On Wed, Mar 17, 2010 at 2:25 PM, Streets Of Boston flyingdutc...@gmail.com wrote: True and not true. If google thinks that making an XNA like framework could enhance Android's adoption and device sales enough to bring more ad-revenues/ SaaS-revenues (because more phones would be around if

Re: [android-developers] hi

2010-03-19 Thread Sean Hodges
On Thu, Mar 18, 2010 at 1:21 PM, akshu aksharanadaha...@gmail.com wrote: i don't know about pc. Have you tried turning it off and on again? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Big difficult to develop in Android :( (I'm italian)

2010-03-19 Thread Sean Hodges
I agree with Fred, explain what problems you are having. Don't just say something vague like I'm finding it difficult, we need to know exactly what things you are finding difficult to help you. The SDK docs are actually very comprehensive, but you need to use the tutorials to learn Android. Check

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-22 Thread Sean Hodges
On Sat, Mar 20, 2010 at 9:31 PM, dgoemans dgoem...@gmail.com wrote: To be honest, i don't think anyone from this has actually received their phone yet. It'd be nice to get people on her confirming that they've got their Nexus One, and they weren't already waiting on one from ADC. Some people

Re: [android-developers] Video Playback Issues

2010-03-22 Thread Sean Hodges
On Mon, Mar 22, 2010 at 12:36 PM, Akiduki xyy1...@gmail.com wrote: I am developing a video rating tools which use Android's MediaPlayer class to playback the video sequences. I used the APIdemo at Android SDK to playback my encoded sequences but the picture stalled at the first frame on the

Re: [android-developers] required hardware features

2010-03-22 Thread Sean Hodges
Hi Michael, It would be worth asking this on the android-porting mailing list, as there are more people on that list who are familiar with hardware related topics. On Mon, Mar 22, 2010 at 2:43 PM, Michael Thomas enervat...@gmail.com wrote: Is there a mandate from google on some of the

Re: [android-developers] Re: How get SIM number

2010-03-25 Thread Sean Hodges
The getLine1Number() method in TelephonyManager retrieves the data in the phone number stored on the SIM card (NOT the phone number bound to the user's account) - this is often either wrong or non-existent, depending on the network provider it was shipped from. For example, UK Vodafone appear to

Re: [android-developers] Re: Playing a audio stream not working using MediaPlayer

2010-03-29 Thread Sean Hodges
It would have been nice if you emailed the recipients directly, instead of spamming everyones inboxes with advertising... On Mon, Mar 29, 2010 at 4:41 PM, dillirao malipeddi dillir...@arijasoft.com wrote: Arijasoft developed android online radio SDK using this AOR SDK you can play 

Re: [android-developers] Android market - limited distribution

2010-03-29 Thread Sean Hodges
On Mon, Mar 29, 2010 at 6:42 PM, Mark Murphy mmur...@commonsware.com wrote: ole! wrote: Now that ATT will not allow any downloads to the Flip except through the Android market, we need to have the capability to have a limited distribution on the Market. Can this be done on the Android

Re: [android-developers] decoder-decode returned false

2010-03-29 Thread Sean Hodges
I assume you are trying to The image decoder library (called Skia) is failing to parse the image data for those images. There are a number of things that can cause this problem: 1) The input file is not actually an image (e.g. if it is accessed from the Web, it might actually be a 404 error page)

Re: [android-developers] Android market - limited distribution

2010-03-29 Thread Sean Hodges
On Mon, Mar 29, 2010 at 8:53 PM, Mark Murphy mmur...@commonsware.com wrote: True. I was assuming the OP literally did not want the APK distributed, rather than having the APK be distributed but just not work. I thought so, just thought I'd assume a little more, on top of what you had already

Re: [android-developers] Advice on buying android phone for development

2010-03-29 Thread Sean Hodges
On Mon, Mar 29, 2010 at 1:05 PM, Venky.Vijay venkyinw...@gmail.com wrote: Hello everyone, I'm from India and I want to buy an Android phone for developing applications for it. I shortlisted two phones the SAMSUNG I7500 and HTC Hero. But the problem is that i7500 doesn't have much support as

Re: [android-developers] Re: Integrate IPhone Safari like view in Android?

2010-03-31 Thread Sean Hodges
On Wed, Mar 31, 2010 at 8:22 AM, javame_android su...@softwebsolutions.com wrote: I have been able to minimize the View using animation. I have set the animation for 500 duration, so the animation disappear after that period. Can someone let me know is it possible to have that shrunken view