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

2010-07-13 Thread Sean Hodges
m and log your issue there. I ran a quick search on the issue list for any existing bugs and didn't find any, but have a look yourself in case I missed one. > > Thank you very much! No problem :) > > -Danny Schimke > > On Jul 12, 5:00 pm, Sean Hodges wrote: >> D

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

2010-07-12 Thread Sean Hodges
uot; to finish configuration of my mail account - got an >> error "Setup could not finish - Unable to open connection to server" >> >> When I returne to the browser and try to open a website it does not >> load... I have to restart the emulator to get (re)access to the &g

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 Schi

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 getD

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 wrote: > Does anybody know when it will be released? > > On Jul 7, 9:16 am, Mark Murphy wrote: >> On Wed, Jul 7, 2010 at 10:14 AM, zachariahyoung wrote: >> > Where can I find the source code for the Android Twitter App

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 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 my app listings).

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: http://developer.android.com/intl/fr/reference/android/app/Activit

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 wrote: > On Thu, Jun 24, 2010 at 3:27 AM, LeveloKment > wrote: >> What is your advice to make the development team at least aware was >> this "potential improvement"? > > Post something on http://b.android.com -- short of contributing a > patch (or at

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 writ

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 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 b.android.com, and cons

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 si

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 a

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] 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 entries present? If it's the former, have you tried just removing those permissions from your manifest? On Mon, Jun 21, 2

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 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 looking for is a vis

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

2010-06-14 Thread Sean Hodges
.content.Intent.ACTION_SEND); > i.setType("image/jpg"); > i.putExtra(Intent.EXTRA_SUBJECT, "Neils Subject"); > i.putExtra(Intent.EXTRA_TEXT, "Hello Neil, check this out"); > i.putExtra(Intent.EXTRA_STREAM, uri); > startActivity(i); > > This acuta

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

2010-06-14 Thread Sean Hodges
torage, and use the URI format I gave in the example. On Mon, Jun 14, 2010 at 10:57 AM, Neilz wrote: > I've just been looking for something like this myself... a timely > topic. > > Please could you edit this code to show how I would send an image from > the @drawable folder?

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 wrote: > hi sean, > > when i try to send a mms using your code it

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 1

Re: [android-developers] Uploading Adult apps.

2010-06-10 Thread Sean Hodges
, 2010 at 4:06 PM, John T. Haggerty 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" wrote: >>

Re: [android-developers] Uploading Adult apps.

2010-06-10 Thread Sean Hodges
On Thu, Jun 10, 2010 at 3:08 PM, TreKing wrote: > On Thu, Jun 10, 2010 at 4:15 AM, Sean > Hodges  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 j

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 wrote: > I use Eclipse to develop my application, but I wan to use some @hide > interface. > > -)In Eclipse, build fail

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 wrote: > Is it possible to

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, woul

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 wrote: > i read in the android content guidelines that no 18+ or

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] 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 An

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 wrote: > hi guys, > > According to the site this is the code > >        Intent sendIntent = new Intent(Intent.ACTION_SEND); >                        sendIntent.putExtra("sms_body"

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

2010-06-08 Thread Sean Hodges
engine tends to handle this by wrapping a SurfaceView and keeping track of the context during the lifecycle: http://code.google.com/p/rokon/source/browse/trunk/OpenGL/GLSurfaceView.java?spec=svn25&r=25. This seems to be effective, but it does leave you wondering why the context lifetime isn

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 woul

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

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. Alternati

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

2010-06-07 Thread Sean Hodges
MediaPlayer instead. 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 Hodg

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 wrote: > guys > > any lead on this question would help me a

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: http://developer.andro

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] 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 wrote: > Hi Sean, > > when you set > ... activity> >

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, E

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] 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 su

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

2010-06-04 Thread Sean Hodges
'm on the wrong track here, 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 wrote: > hi Sean Hodges, > > it's working correctly.

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

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(). S

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

2010-05-21 Thread Sean Hodges
On Fri, May 21, 2010 at 3:06 PM, Leigh McRae 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 to use > runtime if statemen

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 wrote: > On May 21, 8:51 am, westmeadboy wrote: > >> Does anyone know whether it works for apps not installed via the >> Market (

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 n

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] 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 wrote: > Hi all, >        a simple question from a beginner - how many of Android phone

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 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 created is auto

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 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 > permanently till some

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 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 > its still stuck wi

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

2010-03-29 Thread Sean Hodges
On Mon, Mar 29, 2010 at 8:53 PM, Mark Murphy 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 said :) -- You receive

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 6:42 PM, Mark Murphy wrote: > ole! wrote: >> Now that AT&T 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 market? > > If

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 wrote: > Arijasoft developed android online radio SDK > using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radi

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] 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 wrote: > > Is there a mandate from google on some of the hardware features that mus

Re: [android-developers] Video Playback Issues

2010-03-22 Thread Sean Hodges
On Mon, Mar 22, 2010 at 12:36 PM, Akiduki 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 emulator. Since

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 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 have been confi

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. Chec

Re: [android-developers] hi

2010-03-19 Thread Sean Hodges
On Thu, Mar 18, 2010 at 1:21 PM, akshu 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 android-developers@googlegroups.com To

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 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 such a framework > exi

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 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 commercial software vendor. Go

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 alt

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

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

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 wrote: > Hi, > > has someone else already received it's phone? please keep us informed > with location. > i received my confirmation on 6th March, living in Hunga

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 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 apps > list. > http:

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 wrote: > > Hi all, > > how to write/read log data into txt file in res folder > > Thanks in advance > > Aswan > > -- > You received this message because you ar

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
wse_thread/thread/9d1681a01f05e782 > > On Mar 11, 3:14 pm, Sean Hodges 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 awa

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 pa

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 wrote: > On Mon, Mar 8, 2010 at 12:47 AM, Farproc wrote: >> >> try { >>        System.exit(0); >> } catch (SecurityException e) { > > This is NOT recommended. Use finish() on your activities and let Android > deal your app when it's ready. > TreKing is rig

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 wa

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")); List linkElements = sourc

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 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 group, send email

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 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 penniless upset

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

2010-02-26 Thread Sean Hodges
On Fri, Feb 26, 2010 at 8:17 AM, DroidBy 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 this? Strange, the l

Re: [android-developers] Disable Home Key?

2010-02-25 Thread Sean Hodges
On Thu, Feb 25, 2010 at 1:39 AM, DroidBy 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 not able to do it at

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] Re: Transmit serialized object via HTTP in Android

2010-02-22 Thread Sean Hodges
tive > 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 > >

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 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 difficult to send

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 emerg

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

2010-02-19 Thread Sean Hodges
On Fri, Feb 19, 2010 at 3:32 PM, Carlo 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 are subscribed to t

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 char

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 des

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 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, but then again so wou

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 screen

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 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 to you that nobody has an

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

2010-02-15 Thread Sean Hodges
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 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 cod

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 hardwa

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

2010-02-15 Thread Sean Hodges
ework for all to >>> > > benefit? >>> > > > > Clearly this has been a problem for the likes of Robert and >>> > > > > others who >>> > > have >>> > > > > done great work with game development and are compl

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" abou

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 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 any guide what mistake

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

2010-02-09 Thread Sean Hodges
You need this permission: 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 does not dim the screen. It prevents the screen from automa

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 wrote: > Hi, > > I'm trying to programatically turn the screen off and on, while keep > the app running. > > If i try this

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); startActivity(in

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 wrote: > Mikey > > Android Academy http://www.androidacademy.com > > On Feb 8, 1:59 am, tora wrote: >> Hello, >> >> I have a simple question. >> >> What's his name?http://www.android.com/intl/ja/media/android_vector.jpg >> >> According to th

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: 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 wrote: > I was about to start looking into