[android-developers] Re: MapView on 1.6 very strange behaviour

2009-11-13 Thread mobilek...@googlemail.com
Problem resolved. On 13 Nov, 10:36, "mobilek...@googlemail.com" wrote: > Hi, in my app I display MapViews in several activities. Now that I > have updated my G1 device to 1.6, I notice that at some pleace the > MapView is displayed properly, and at others - it's

[android-developers] MapView on 1.6 very strange behaviour

2009-11-13 Thread mobilek...@googlemail.com
Hi, in my app I display MapViews in several activities. Now that I have updated my G1 device to 1.6, I notice that at some pleace the MapView is displayed properly, and at others - it's not - I can see the my OverlayItem though. I'm 100% I use the same keys throughout my app. Any suggestions as to

[android-developers] Handling Network Unavailability

2009-09-16 Thread mobilek...@googlemail.com
The application I'm working allows a continious upload of several Mbs over http, which turns out to be quite a challenge when testing it on T-Mobile's 3G netowrk in the UK. At points the stream is interrupted and the network status seems to change from connected to idle during data transmission. T

[android-developers] TextView with dyncami links

2009-08-17 Thread mobilek...@googlemail.com
Hello, I have a TextView containing special pieces of information, which I would like to perform some action on. The closest supported functionality I can think of in android is android.util.text.Linkify, however, I find it limited as it only recognises phone numbers, email, web and map addresses

[android-developers] Video Streaming

2009-06-17 Thread mobilek...@googlemail.com
Hi, I'm trying to stream a video from an HTTP server to my client. In order to play it I fire up an action_view intent by providing to it the uri of the media. The client opens up a new browser window, and then redirects to the youtube player as expected. However, after a couple of seconds it thro

[android-developers] Unlocking screen after wake lock

2009-06-09 Thread mobilek...@googlemail.com
Hi, My app requires alerts at certain events, which are very likely to happen while the screen is off. It captures those event perfectly, however, I'm struggling to hide the T-Mobile screen lock after I've acquired wake lock from the PowerManager. I've tried broadcasting Intent.ACTION_CLOSE_SYSTEM

[android-developers] Advice on debug tool for I/O

2009-06-03 Thread mobilek...@googlemail.com
Hi, On a number of cases I have experienced problems with server / client communication where the server responses with XML files, which never reach my client. Is there any tool for monitoring everything incoming through an HTTP connection, or if not what is your advice to detect what's come throu

[android-developers] Calendar Content Provider

2009-05-27 Thread mobilek...@googlemail.com
Hi, Is there a way to read data from android.provider.Calendar? It's URI is mentioned here (http://developer.android.com/guide/topics/providers/ content-providers.html), so I thought its data should somehow be accessible. On the other hand it's clearly not within the android.provider package... a

[android-developers] Problem with MapActivity on the 1.5 release

2009-05-22 Thread mobilek...@googlemail.com
Hi, I have a problem with firing an activity that extends MapActivity. When it gets called, it throws a java.lang.NoClassDefFoundError... not sure what this is supposed to mean. I think something goes wrong with the external implementation of the maps API (maps.jar). Has anyone come across that

[android-developers] Logical Sequence in Video Capturing

2009-05-12 Thread mobilek...@googlemail.com
Hi, Can anyone describe the logical sequence of implementing video recording facility? I've followed the steps as outlined from the diagram here: http://developer.android.com/reference/android/media/MediaRecorder.html; and ended up with an out-of-memory exception. Thanks! --~--~-~--~---

[android-developers] Parsing XML feed with SAX

2009-04-23 Thread mobilek...@googlemail.com
Hi, I'm unable to consume a WS with the SAX, for some reason my implementation doesn't read the complete XML feed, it reads it up to a random point. Has anyone faced anything similiar? Here's what I'm doing: After calling a RESTful WS a read the response from the server as follows: if (isSessio

[android-developers] Problem with detecting onTouchEvent()

2009-04-16 Thread mobilek...@googlemail.com
Hi, For some reason onTouchEvent() never gets called in an activity with a ListView child. Is this is a bug, or it requires a special implementation? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Problem with Camera and layout orientation

2009-04-09 Thread mobilek...@googlemail.com
Hi, I've been trying to solve this for awhile now, and still couldn't find a solution to it. To properly display my SirfaceView consumed by the camera, I have forced my activity's layout in landscape mode. However, in my app the camera functionaluty will be mostly used in portait mode, and therefo

[android-developers] Problems with NotificationManager

2009-03-18 Thread mobilek...@googlemail.com
Hi, In my app I use several different notifications, which require different actions. By default the notification manager loads the main activity, when users select a notification. How can I change that so different notifications prompt different actions. I've been studying the related APIs, howev

[android-developers] Video Capturing

2009-03-11 Thread mobilek...@googlemail.com
Hi, Is video capturing currently supported in the latest SDK? The sequence diagram from the class description of MediaRecorder (http:// developer.android.com/reference/android/media/MediaRecorder.html) made me believe it's possible, however, it seems that the video related methods are not supporte

[android-developers] Issue with Threads and onCreate()

2009-03-11 Thread mobilek...@googlemail.com
Hi, I've faced the following issue. Upon loading my app I have several threads consuming an http output stream to update some state. I've implemented the Handler technique and have my threads posting back when they're ready to do so. This usually takes 2-3 seconds. The issue comes if the keyboard

[android-developers] Problem with setText() on custom CheckBox

2009-03-04 Thread mobilek...@googlemail.com
Hi, I've implemented a custom CheckBox view and faced a probelm with adding text to it. Here's my implementation: public class MyCheckBox extends CheckBox{ private int imgResourceFocusedChecked, imgResourceFocusedNotChecked, imgResourceNotFocusedChecked, imgResourceNotFocusedNotChecked;

[android-developers] Re: ViewGroup, Views and Animation

2009-02-14 Thread mobilek...@googlemail.com
Ok, well I'm a bit new to animations on android, and wasn't sure if ViewGropus was the right path for me. Btw how would you set the repeat mode for an animation? I've tried the java way but it didn't work. On Feb 14, 11:57 pm, Romain Guy wrote: > Animations have a repeat mode, no need to do it y

[android-developers] ViewGroup, Views and Animation

2009-02-14 Thread mobilek...@googlemail.com
Hi, I have a few views and animations and I need to figure out a way to package them so I can use them throughout my app. I thought I should be able to use ViewGroup, however, things are getting a bit complicated as my animations need to repeat and to achieve that I have applied the technique with

[android-developers] Re: Assisted GPS

2009-02-08 Thread mobilek...@googlemail.com
Huh what do you mean by that: > When I want to get a GPS fix as quickly as possible You always get it as quickly as possible. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Re: Technique for displaying different options menus

2009-02-08 Thread mobilek...@googlemail.com
ich is called each time the menu will be > shown), do something like this: > > switch (mState) { > >       case BUTTON_1: >               //hide/show certain menu groups/items >       break; > >     //etc, etc > > } > > Hope this helps. > > On Feb 8, 12:

[android-developers] Technique for displaying different options menus

2009-02-08 Thread mobilek...@googlemail.com
Hi, I'm trying to figure out a way to display different option menu groups at a time based on various events. For instanece, if the click listeners on certain views have been triggered, the activity should bring up a specific option menu. On the other hand if they are not on focussed, by pressing

[android-developers] onSaveInstanceState(Bundle) && onRestoreInstanceState(Bundle)

2009-01-21 Thread mobilek...@googlemail.com
Hi, This one is easy, but I seem to have a problem using this technique to save some state. Basically, the problem I'm having is that neither onRestoreInstanceState(Bundle) nor onCreate(Bundle) have the bundle I've previosly saved from onSaveInstanceState(Bundle). In fact, onRestoreInstanceState

[android-developers] Re: Camera Focus Facility

2009-01-21 Thread mobilek...@googlemail.com
Could you list the proper sequence as I'm having hard time working it out! Thanks On Jan 21, 3:21 am, Dave Sparks wrote: > Sounds like you might have some sequencing issues. Did you call > startPreview first? > > On Jan 20, 2:51 pm, "mobilek...@googlemail.com" >

[android-developers] Re: Camera Focus Facility

2009-01-20 Thread mobilek...@googlemail.com
Focus(cb); > > where cb is a callback function you supply that tells you focus is > successful or not. > > On Jan 20, 5:27 am, "mobilek...@googlemail.com" > > wrote: > > Hi, > > > My app is struggling to take focused shots. Is there a built in > > fa

[android-developers] Camera Focus Facility

2009-01-20 Thread mobilek...@googlemail.com
Hi, My app is struggling to take focused shots. Is there a built in facility that sets an auto-focus property on the camera, so it automatically takes clear and focused images. I've noticed that feature in numerous well-known apps such as ShopSavvy, CompareEverywhere, etc. Could you advise on ho

[android-developers] Re: What protocol does android use to sync contacts with gmail?

2009-01-16 Thread mobilek...@googlemail.com
How do we access the client's own number? On Jan 16, 2:44 am, 杨锋 wrote: > http://code.google.com/apis/contacts/ > > On Nov 29 2008, 4:04 am, Josh Guilfoyle wrote: > > > I would recommend usingSyncML, this is what it was designed for. > > That said, I don't know what protocol Google is using, b

[android-developers] Re: SAXParser doesn't resolve Entitiy-References ( EntityResolver )

2009-01-16 Thread mobilek...@googlemail.com
Hi, The implementation of SAXParser seems to encounter problems when it attempts to parse anything with '&'. Have a look at those threads, if you haven't done so already: http://groups.google.com/group/android-developers/browse_thread/thread/f9a1ce37af6db350/f965528dec77c569#f965528dec77c569 h

[android-developers] Re: android.database.sqlite.SQLiteConstraintException: error code 19

2009-01-15 Thread mobilek...@googlemail.com
I couldn't resolve the problem. I think it was to do with my implementation of ContentProvider as the same data manipulation operations worked fine in some situantions and they didnt in others... Thank you for the help, anyway! > > And, at the risk of responding to my own message, here's a list o

[android-developers] android.database.sqlite.SQLiteConstraintException: error code 19

2009-01-15 Thread mobilek...@googlemail.com
Hi, Has anyone come across this one: android.database.sqlite.SQLiteConstraintException: error code 19. It gets thrown on 'insert', 'update' and 'delete' statements. What is it supposed to mean? At the moment the documentation lacks a signle word about SQL Exceptions and the error codes they thro

[android-developers] Parsing Special Characters with SAX Parser

2009-01-10 Thread mobilek...@googlemail.com
Hi, I'm having hard time parsing special characters such as '&' with the default handler provided in org.xml.sax.helpers. Basically, the parser reads up to where it encounters '&' and skips the rest. I tried escaping the with & and & but none worked. Any ideas? Thank you! --~--~-~--~--

[android-developers] Re: Post Bitmap over Http

2009-01-09 Thread mobilek...@googlemail.com
Hi, I added the following code, however, I got an OutOfMemoryError. It comes from the bos.flush() line... Am I doing it wrong? I BufferedOutputStream bos = new BufferedOutputStream(os); bm.compress(CompressFormat.JPEG, 100, bos); try { bos.flush(); bos.close(); os.close()

[android-developers] Post Bitmap over Http

2009-01-09 Thread mobilek...@googlemail.com
Hi, I need to send a bitmap to a server. I've written some code, however, I got stuck on the part where I need to transform my bitmap into byte []. Here is my code: public void updateBitmap(Bitmap bm){ URL url = null; HttpURLConnection conn = null;

[android-developers] Help on MediaStore.Images.Media.EXTERNAL_CONTENT_URI

2009-01-06 Thread mobilek...@googlemail.com
Hi, I'm trying to make a simple gallery by accessing the image content of the SD card. My question is how do you make thumbnails of the images so that the device doesn't run out of memory by loading the images in their original sizes? I have noticed the MINI_THUMB_MAGIC column in the database, h

[android-developers] Obtain Uri references of .jpgs in MediaStore.Images.Media.EXTERNAL_CONTENT_URI

2009-01-06 Thread mobilek...@googlemail.com
Hi, I'm wondering how to obtain Uri references of the images stored on my SD card. I can access information about them by using MediaStore.Images.Media.EXTERNAL_CONTENT_URI, however, I'm not sure how to obtain a unique reference for each of them. Could pls you give me any direction? Thanks --~-

[android-developers] Re: Pass state from Activity to Service

2009-01-03 Thread mobilek...@googlemail.com
ion in everything, including abstinence > > -Original Message- > From: android-developers@googlegroups.com > > [mailto:android-develop...@googlegroups.com] On Behalf Of > mobilek...@googlemail.com > Sent: Friday, January 02, 2009 6:28 AM > To: Android Developers > Subje

[android-developers] Re: Pass state from Activity to Service

2009-01-02 Thread mobilek...@googlemail.com
Can anyone help me pls? On Jan 1, 3:59 pm, "mobilek...@googlemail.com" wrote: > Hi, > > I'm having hard time working out how to accomplish that. In my > activity I call my service as follows: > > private void startService(){ >         Intent myInten

[android-developers] Pass state from Activity to Service

2009-01-01 Thread mobilek...@googlemail.com
Hi, I'm having hard time working out how to accomplish that. In my activity I call my service as follows: private void startService(){ Intent myIntent = new Intent(this, MyService.class); Bundle b = new Bundle(); b.putSerializable("userBean", user); myIntent .putE

[android-developers] Re: GetLastKnownLocation vs. requestLocationUpdates

2008-12-17 Thread mobilek...@googlemail.com
Unfortunately, JSR-179 is not part of Android. I mentioned it filled with nostalgic for the old days of Java ME when JSR-179 was the the best alternative to build LBS apps. Having looked at the android.location pack, the best way to find the current location seems to me like that: 1. Call Locati

[android-developers] android.database.sqlite.SQLiteException: error code 20

2008-12-16 Thread mobilek...@googlemail.com
Just wondering where I can find a reference of the error codes that the android.database.sqlite.SQLiteException class returns? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Re: GetLastKnownLocation vs. requestLocationUpdates

2008-12-16 Thread mobilek...@googlemail.com
I think the API doc is explanatory enough. public Location getLastKnownLocation(String provider) "Returns a Location indicating the data from the last known location fix obtained from the given provider. This can be done without starting the provider. Note that this location could be out-of-date

[android-developers] Re: GetLastKnownLocation vs. requestLocationUpdates

2008-12-16 Thread mobilek...@googlemail.com
I think the API doc is explanary enough. public Location getLastKnownLocation(String provider) "Returns a Location indicating the data from the last known location fix obtained from the given provider. This can be done without starting the provider. Note that this location could be out-of-date,

[android-developers] Re: Versioning and Deploying

2008-12-11 Thread mobilek...@googlemail.com
Thanks! Uh I just knew it that the package name would fix it! On Dec 11, 9:17 pm, mathiastck wrote: > You also need a unique java package for each app. > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Versioning and Deploying

2008-12-11 Thread mobilek...@googlemail.com
Hi, I have several versions of my app, and I'd like to deploy them on my testing device. To do that I've altered the AndroidManifest.xml's version code and name. However, everytime when I attempt to install one of the versions, and have the other onle already installed on the device, the latter re