[android-developers] Re: how to update apk's Jad file in run time

2009-01-05 Thread Jean-Baptiste Queru
Besides knowing whether you can safely edit classes.dex (I'd recommend putting the relevant information in a separate file in the apk), you're not going to be able to do what you have in mind without also re-signing the apk. JBQ On 1/5/09, sudha sudhagupta2...@gmail.com wrote: can i make

[android-developers] onListItemClick won't fire.

2009-01-05 Thread chrispix
This is what I am trying to accomplish. - Display List from Database w/ a delete button. - Launch a new activity based on the row selected - I am just going to pass data on. I have an activity that displays a list view from a database, I also have a 3 imagebuttons thrown in there (static images)

[android-developers] Re: File permissions for world read/write

2009-01-05 Thread Jean-Baptiste Queru
Note that you shouldn't hard-code the path to the SD card. There's an API in the Context class (if I remember correctly) that let's you query it. JBQ On 1/4/09, ggcespia g...@boopsie.com wrote: problem solved. package B had a typo in the file name. works fine now. On Jan 3, 9:02 pm,

[android-developers] Re: How To Custom Horizontal Scroll?

2009-01-05 Thread roland
Hi, you can implements OnGestureListener and override onScroll method, you can get scroll distance with this method. This link has an example i used to create a horizontal scrolling ListView. http://nan-technicalblog.blogspot.com/2008/12/android-how-to-use-horizontal-scrolling.html On 5 jan,

[android-developers] Orientation within orientation

2009-01-05 Thread Sundog
Hello, How can I have a main layout with a vertical orientation and have some text appear within it in a horizontal orientation? Even though my app is used horizontally, I use a vertical layout to get the title bar out of the way and get maximum vertical screen real estate. But I need the

[android-developers] Re: Stopping a Thread

2009-01-05 Thread Cyril Jaquier
Hi Brad, Can anyone tell me how to safely stop a thread? You can't stop a thread but you can let it die. Just return from the Thread#run method. Most of the time you will have something like: public volatile boolean shutdownRequested = false; public void run() { while

[android-developers] Re: XMLHttpRequest in WebView

2009-01-05 Thread Fred Grott(shareme)
That might not be correct On Jan 5, 9:22 am, mboehmer 4...@phoku.de wrote: Hello, I have read that the XMLHttpRequest object is not available in a WebView? Is this misunderstanding or true? If so, are there any workarounds for AJAX-based applications? Best regards mboehmer

[android-developers] Re: Get the screen resolution

2009-01-05 Thread Michal
First you need to get the WindowManager by : WindowManager wm = getSystemService(Context.WINDOW_SERVICE); Next use the method to retrieve a Display object: Display d = wm.getDefaultDisplay(); ... and finally the resolution: int height = d.getHeight(); int width = d.getWidth(); Hope that

[android-developers] Screenshot, screen capture

2009-01-05 Thread tryout
Hello, I see that in android.Manifest.permission file there is READ_FRAME_BUFFER permission that Allows an application to take screen shots and more generally get access to the frame buffer data Unfortunately there is no additionall information how to use this feature. I would like to know

[android-developers] Re: Problem with screenshot

2009-01-05 Thread Michal
I'm also looking for a response on this question. Moreover, is it possible to get the root view from a Service I mean, the Service runs in the background and I would like to capture the actual displaying screen Thanks for help, Michal On 17 Gru 2008, 09:40, Dec. 030440...@163.com wrote:

[android-developers] Implementing Parcelable with Eclipse - MyClass.java is in the way of MyClass.aidl

2009-01-05 Thread Jonathan DERROUGH
Hi, I am trying to use the Parcelable interface to have an activity communicate with a service. Following the AIDL tutorial (http://code.google.com/intl/fr/android/ reference/aidl.html), I implemented the Parcelable interface in MyClass.java and created the corresponding .aidl file

[android-developers] Re: T-Mobile G1: How to properly resume View's focus when Activity resumed from screen black-out?

2009-01-05 Thread shaunke...@gmail.com
Try keepScreenOn: http://code.google.com/android/reference/android/view/View.html#attr_android:keepScreenOn On Dec 31 2008, 12:58 pm, Toothy Bunny hongkun...@gmail.com wrote: Hi All, If the G1 is idle for short period (no user input) while a Activity is still running, the screen blacks out

[android-developers] XML Schemas for Android namespaces?

2009-01-05 Thread Erik Hellman
Hi! I search for the XML schema defined by the namespace http:// schemas.android.com/apk/res/android. I know this has been asked before, but that was over a year ago. Are this schema available somewhere? It would be really great if these could be published as it would make XML editing MUCH

[android-developers] HashMap via http tunneling

2009-01-05 Thread MarkMarkus
Hi, how can i connect an Android application to a servlet engine (es. tomcat) by sending an HashMap via http tunneling? In my Android application I tried to send/receivce a HashMap by using the java.net.URLConnection but, as descrived in the documentation, the method getOutputStream() returns

[android-developers] Re: What happens to the database when app is upgraded

2009-01-05 Thread shaunke...@gmail.com
Are you using a class that extends SQLiteOpenHelper to open your DB. You should be able to specify a version number then override the onUpgrade method in your SQLiteOpenHelper to update your db from earlier versions. See:

[android-developers] Re: XMPP through Smack

2009-01-05 Thread Add
I tried that update. it works with gtalk, but when I tried with my own ejabberd server, it didn't work. the error was host-unknown. Could anyone suggest me? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Animations Persistance

2009-01-05 Thread Ryan
Hi, I am looking for a way for animations to persist in my application. For example, if I user clicks one button I want to run a scale animation on a view, to scale the view 200%. Then if a user clicks another button I may want to run a tanslate animation to slide the view 50px's to the left. I

[android-developers] file system change notification

2009-01-05 Thread pradeep
how to get notifications if i make any change in file system like i add a file or delete a file. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Windows Live Messenger and other services not appearing in the IM Client?

2009-01-05 Thread Untouchable
Hi! I just recieved the Android Development Phone 1 (The G1). However, the IM client only shows Gmail and not the others.. Is there a way to get them, as I would like to see how the IM client handles it Kind Regards --~--~-~--~~~---~--~~ You received this

[android-developers] Working with JPEG images

2009-01-05 Thread nickthecook
Hello all, I'm looking for a way to work with JPEG images read from a file in Android. Specifically, I would like to scale them, and be able to get their height and width. I can get an InputStream to a JPEG file on the SD card, and I can work with the raw bytes, but I'd like something a little

[android-developers] ddms error: Cannot connect to adb

2009-01-05 Thread panku
Dear All I am trying to run HelloAndroid application after configuring the steps mentioned in the Getting Started guide. But when i am open eclipse run application, i am getting the following error: -ddms fail to initialize monitor thread: Unable to establish loopback connection Can you

[android-developers] Error in native method Picture.nativeCreateFromStream()

2009-01-05 Thread nickthecook
Hello all, I'm having some trouble creating a Picture from an InputStream. I am trying to do this: ByteArrayInputStream bis = new ByteArrayInputStream(bytes); Picture pic = Picture.createFromStream(bis); The problem also occurs when I try to use an InputStream returned by

[android-developers] Defining Themes in Android

2009-01-05 Thread ff
Hi! I'm trying to study Themes and found the following poor piece of code: style name=ThemeNew item name=windowFrame@drawable/screen_frame/item item name=windowBackground@drawable/screen_background_white/ item item name=panelForegroundColor#FF00/item item

[android-developers] Emulator crashing

2009-01-05 Thread Vitaly
Hello, I'm just starting with Java, Eclipse and Android, so maybe no wonder I ran into the following problem: when I run an application from Eclipse, emulator starts, my simple app shows up, etc. But when I close the emulator, I get a Windows' standard error message Emulator.exe has stopped

[android-developers] Re: Problem with screenshot

2009-01-05 Thread tymczasow...@gmail.com
I would like also to know a response to that question. Moreover, is it possible for a Service to get a root view from a view hierarchy? Michal On 17 Gru 2008, 09:40, Dec. 030440...@163.com wrote: hi,guys~! i've been playing around on g-phone test for a few days,But i'm really confused

[android-developers] Re: My GL10 always get Error.. how?

2009-01-05 Thread wyjday
I think on emulator, we should not have GPU support. is it works fine on G1 phone. I am not sure if G1 phone has GPU support or not! BRs wyjday 2009/01/05 On Nov 18 2008, 11:21 pm, Hydrian hyt...@gmail.com wrote: I'm trying to make an opengl program. my program starts from SpriteText(sample

[android-developers] Checkin service realization

2009-01-05 Thread shentong
Hi,all: Does anyone know android how to realize the checkin service next step? Now, android only have a FallbackCheckinService.cpp, it is a empty structure, not include actual checkin realization. -- Best Regards, shentong --~--~-~--~~~---~--~~ You received

[android-developers] Question about cupcake changes.

2009-01-05 Thread Kent
I asked this on the discuss forum also. The cupcake roadmap indicates: A number of settings in android.provider.Settings.System were moved to android.provider.Settings.Secure. Only system software can modify these settings. Is there any word on which settings will no be longer accessible to

[android-developers] getLastKnownLocation is not working.

2009-01-05 Thread Amit Samel
Hello guys, i am very much new to android platform. i am trying to implement some codes from Android: A Programmer’s Guide. i have installed latest sdk thats why there are some issues regarding deprecated apis. when i was trying to call getCurrentLocation() i got error , that this method is not

[android-developers] G1 always off-line!

2009-01-05 Thread if
Hi, I am desperately trying to connect to my G1, using Ubuntu 8.10, but both adb and eclipse always see the device as off-line...please help... Thanks, if --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Commercial applications policy

2009-01-05 Thread Bobby Kolev
Is there any light on to how are commercial applications going to be distributed? Like will they have to be fully functional and if so then are they going to be protected by some type of DRM so that they can't be moved from one device to another? We have an application which takes add-ons from

[android-developers] Re: Emulator crashing

2009-01-05 Thread David Turner
this should not happen. you're probably encountering a weird emulator bug. the Eclipse message is normal in case of an emulator crash. what exact platform/OS do you have ? can you repeat this consistently, or are the crashes random ? thanks in advance On Sun, Jan 4, 2009 at 11:16 AM, Vitaly

[android-developers] Re: Emulator crashing

2009-01-05 Thread Sundog
I always get this too. I don't think it interferes with normal operation. On Jan 4, 3:16 am, Vitaly vita...@gmail.com wrote: Hello, I'm just starting with Java, Eclipse and Android, so maybe no wonder I ran into the following problem: when I run an application from Eclipse, emulator starts,

[android-developers] Re: Emulator crashing

2009-01-05 Thread David Turner
On Mon, Jan 5, 2009 at 6:23 PM, Sundog michael_...@tmail.com wrote: I always get this too. I don't think it interferes with normal operation. thanks for pointing this out. Can you answer the same basic questions ? On Jan 4, 3:16 am, Vitaly vita...@gmail.com wrote: Hello, I'm just

[android-developers] Stopping a Thread

2009-01-05 Thread Brad Gies
Can anyone tell me how to safely stop a thread? It seems that all the methods I can see to use are deprecated :-). Thanks. Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA

[android-developers] Re: Remapping Key Functions

2009-01-05 Thread Mark Murphy
Raghu D K wrote: Hello All, How do I map the keys to perform specific functions depending on the application ? For example: Key 108 DPOD_UP // For scrolling up in a Browser application Key 108 VOLUME_UP // For Volume increase in the a Multimetia application Implement onKeyDown()

[android-developers] Re: Android Dev Phone - Failed to upload app using Eclipse (timeout)

2009-01-05 Thread Rafael Fernandes
hi guys, any takers on this one? I was debugging the eclipse plug in and everything, but no lucky... the funny part is that it can connect to the device, but it can't upload anything... cheers, rafa On Dec 23 2008, 8:59 pm, Rafael Fernandes luizraf...@gmail.com wrote: well, I'm actually using

[android-developers] XMLHttpRequest in WebView

2009-01-05 Thread mboehmer
Hello, I have read that the XMLHttpRequest object is not available in a WebView? Is this misunderstanding or true? If so, are there any workarounds for AJAX-based applications? Best regards mboehmer --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Working with JPEG images

2009-01-05 Thread Mike Reed
BitmapFactory.decodeStream(...) On Sun, Jan 4, 2009 at 11:55 AM, nickthecook nickthec...@gmail.com wrote: Hello all, I'm looking for a way to work with JPEG images read from a file in Android. Specifically, I would like to scale them, and be able to get their height and width. I can get

[android-developers] Re: Reporting Exceptions

2009-01-05 Thread Mark Murphy
kelvin wrote: Is there a built-in or easy scheme to have users report exceptions to a developer? I understand that you could try to get users to hook up a USB cable and run 'adb', but I don't think that's realistic. I'm running into a crash that appears to occur on a very small number of

[android-developers] Re: How to force screen backlight brightness change immediately?

2009-01-05 Thread monmonja
I've done this using IHardwareService, you guys may refer to this link http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/ Hope it helps Almond http://almondmendoza.com On Dec 27 2008, 2:16 am, Daniel velaz...@gmail.com wrote: I'm also looking for a solution

[android-developers] Re: Any updates on paid apps timeline?

2009-01-05 Thread loty
First problem is not a problem really. If app requires a camera then no one in his own mind will install it on a device with no camera. Second problem with multiple resolution will be a fact of life as other Android devices hit the market. Luckily for us Android has an elegant way of managing

[android-developers] Re: How do I set proper date and time on emulator?

2009-01-05 Thread Mark Murphy
Sarath Kamisetty wrote: I see that the date and time on my emulator are incorrect. How do I set the correct date and time ? You need to tell the emulator your proper timezone via -timezone timezone, where timezone is your timezone in zoneinfo format (e.g., America/New_York). -- Mark Murphy

[android-developers] Re: Error in native method Picture.nativeCreateFromStream()

2009-01-05 Thread Mike Reed
That method should not crash (I will fix that), but it is only intended to re-create a picture that was previously written to a stream. It does not know how to decode or interpreted images or other data formats. Use BitmapFactory for that. On Sun, Jan 4, 2009 at 11:29 AM, nickthecook

[android-developers] Re: Problem saving canvas to file

2009-01-05 Thread Mike Reed
Your code does not change bitmapOrg, but does create a new bitmap (whatever bitmap the canvas is drawing into). I expect you want to compress *that* bitmap to a file. begin pseudo code b = Bitmap.createBitmap(...); c = new Canvas(b); // now draw into c, e.g. c.drawBitmap(...), etc.

[android-developers] Re: getLastKnownLocation is not working.

2009-01-05 Thread Mark Murphy
Amit Samel wrote: Hello guys, i am very much new to android platform. i am trying to implement some codes from Android: A Programmer’s Guide. i have installed latest sdk thats why there are some issues regarding deprecated apis. when i was trying to call getCurrentLocation() i got error ,

[android-developers] Re: Emulator crashing

2009-01-05 Thread Sundog
I am running it on Windows XP with Eclipse, and it does this every time I quit the Emulator while it's running my app. I don't know if it's always done it or not, I only noticed it recently. On Jan 5, 10:26 am, David Turner di...@android.com wrote: On Mon, Jan 5, 2009 at 6:23 PM, Sundog

[android-developers] Re: XML Schemas for Android namespaces?

2009-01-05 Thread Ward Willats
Hear hear. Even for those of us writing stuff by hand it would be useful. I've been trying to get my head around what a definitive schema would be though. It seems like the way things like attrs.xml work (to define elements for custom controls) some of the XML grammar is defined at resource

[android-developers] Restarting your own application

2009-01-05 Thread Andrew George
I have a scenario where I need to restart my own application. So basically I need to do the equivalent of application.quit()/application.start... At the very least I need to quit from within my application. Anyone have a code sample on how to do this?

[android-developers] Re: Strange error for signed .apk

2009-01-05 Thread focuser
anyone? On Jan 4, 9:04 pm, focuser linto...@gmail.com wrote: Hi, I have an app that runs well from Eclipse.  But when I signed it using our release key, it threw a ClassCastException embedded in an InflateException at start up time.  The code is something like the following:              

[android-developers] Re: Understanding animation repeat

2009-01-05 Thread Sundog
Perhaps a more specific question will help get a response: Am I using the INFINITE and RESTART in SetRepeatCount and SetRepeatMode correctly? Can someone tell me why this fires once, plays both animations and then stops? Thanks for any help, I have searched and found nothing. On Jan 4, 7:05 pm,

[android-developers] Re: How do you create an MMS message with audio attachment?

2009-01-05 Thread Blake B.
Ok, digging into the com.android.mms.ui.ComposeMessageActivity handleSendIntent() method, it appears as though only Image attachments are expected in Intent Extras? Does anyone have any creative work-arounds of how to create/send an MMS message with an audio attachment? private void

[android-developers] Re: quick questions about Skia in android

2009-01-05 Thread Mike Reed
Skia is a 2D engine for drawing to a bitmap. However, there is experimental support for a canvas that redirects its calls to a GL context, but this is not officially supported at the moment. On Dec 31, 2008, at 3:15 AM, Andy Quan wrote: Anyone knows what the relationship between Skia and

[android-developers] Re: Strange error for signed .apk

2009-01-05 Thread Al
Hi, what does R.id.content represent, a LinearLayout, RelativeLayout, TextView, etc? Try making an explicit cast to the appropriate type it is. On Jan 5, 5:54 pm, focuser linto...@gmail.com wrote: anyone? On Jan 4, 9:04 pm, focuser linto...@gmail.com wrote: Hi, I have an app that runs

[android-developers] Re: Strange error for signed .apk

2009-01-05 Thread Mark Murphy
I don't use Eclipse, and this kind of problem is one of the reasons. It feels like a bug in your build process, whereby your generated R.java file is not lining up with the actual resource XML file contents. On Jan 4, 9:04 pm, focuser linto...@gmail.com wrote: Hi, I have an app that runs

[android-developers] Re: Commercial applications policy

2009-01-05 Thread Inderjeet Singh
One way you can address this is by providing each of the add-ons as commercial applications themselves, and communicate between your main app, and the add-ons via Intents. AFAIK, If you try to charge outside of Market, you may violate Android market's terms of service. Inder

[android-developers] Marketplace

2009-01-05 Thread Esteban Salazar
I'm curious what the deal is with the Android Marketplace. It seems like: - You can't browse it or download apk files in the marketplace from a desktop computer. Just previews of a few apps. - Marketplace is not installed in the emulator in the sdk - Can't find anything on how to install it -

[android-developers] Re: Android Marketplace?

2009-01-05 Thread Al Sutton
Marketplace is a closed source app that Google is in control of and developing it as it sees fit. There are other alternatives that allow you to brows apps from your destop, download apks, etc., etc., if you'd like to try one you can take a look at http://andappstore.com/ Al. eags wrote:

[android-developers] Re: Marketplace

2009-01-05 Thread Shane Isbell
On Mon, Jan 5, 2009 at 10:01 AM, Esteban Salazar eagsala...@gmail.comwrote: If I'm wrong can someone please explain a)Where can I browse the marketplace from a normal desktop and/or b)where can I get and apk I can install in the emulator to browse the marketplace. Google's Android Market

[android-developers] Orientation change on non-front activity?

2009-01-05 Thread Keith Wiley
Here's an interesting dilemma. My app detects and reacts to orientation changes (through a screen-flip-open/close on the G1 for example) through the onPause/onResume/onCreate methods without any trouble. It handles them and keeps rolling with the correct behavior...but, if someone opens a

[android-developers] Re: Android Marketplace?

2009-01-05 Thread Dan Dumont
I think the point of his post was that he wants to browse THE marketplace, not andappstore's marketplace... I'd like to know how as well. On Mon, Jan 5, 2009 at 1:03 PM, Al Sutton a...@funkyandroid.com wrote: Marketplace is a closed source app that Google is in control of and developing it

[android-developers] Re: What happens to the database when app is upgraded

2009-01-05 Thread Dan Dumont
There is a method that will get called when the version number you supply to the create db command exceeds the listed version that the user has ( you've upgraded your design ) You then put code in that handler to handle the database schema updates. Sorry I can't be more specific... my code is at

[android-developers] Android Limitation on Instrumentation

2009-01-05 Thread sundar
Hey guys, I was instrumenting my application in which I came across a scenario... where i need to launch and pick a contact from phone book contacts application. Here in Instrumentation I was able to launch the phone book contacts app, but I was not able to select a contact from it using,

[android-developers] Remapping Key Functions

2009-01-05 Thread Raghu D K
Hello All, How do I map the keys to perform specific functions depending on the application ? For example: Key 108 DPOD_UP // For scrolling up in a Browser application Key 108 VOLUME_UP // For Volume increase in the a Multimetia application Warm Regards, Raghu

[android-developers] Set Window Titile

2009-01-05 Thread mscwd01
How do you set/change the title of the Activities window? I am currently using this code but it has absolutley no effect: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set Window Title getWindow().setTitle(Title of

[android-developers] Re: Android Marketplace?

2009-01-05 Thread Shane Isbell
On Mon, Jan 5, 2009 at 10:11 AM, Dan Dumont ddum...@gmail.com wrote: I think the point of his post was that he wants to browse THE marketplace, not andappstore's marketplace... I'd like to know how as well. Google does not currently allow browsing of applications from the web. My

[android-developers] Reporting Exceptions

2009-01-05 Thread kelvin
Is there a built-in or easy scheme to have users report exceptions to a developer? I understand that you could try to get users to hook up a USB cable and run 'adb', but I don't think that's realistic. I'm running into a crash that appears to occur on a very small number of handsets, possibly

[android-developers] setSelection fails on onNewIntent

2009-01-05 Thread devileper
I have created a singleton ListActivity which accepts a selection index as an intent extra. However, calling setSelection(index) works during onCreate but fails during onNewIntent. Is there a way to work around this? public class PositionActivity extends ListActivity { @Override

[android-developers] setSelection fails on onNewIntent

2009-01-05 Thread devileper
I have created a singleton ListActivity which accepts a selection index as an intent extra. However, calling setSelection(index) works during onCreate but fails during onNewIntent. Is there a way to work around this? public class PositionActivity extends ListActivity { @Override

[android-developers] Re: Android Marketplace?

2009-01-05 Thread eags
That is a real shame that they have decided to do that. What we are seeing with the major fragmentation of places to get android apps from is the result and will get worse if this policy continues. Once we go beyond a certain point people will be used to it and the fragmentation will be almost

[android-developers] Re: getLastKnownLocation is not working.

2009-01-05 Thread Keiji Ariyama
Hi Amir, Where did you test that code? Emulator or dev phone? You may be missing the appropriate permissions (e.g., ACCESS_FINE_LOCATION) in your AndroidManifest.xml file. Mark is right. Additionally, I suppose that cause of crash is null pointer exception. Double latPoint =

[android-developers] Re: Orientation change on non-front activity?

2009-01-05 Thread Keith Wiley
Nevermind...sorta...the solution was to move the UI rebuilding routine from onActivityResult to onResume. The problem seemed to stem from the exactly order in which onCreate, onActivityResult, and onResume are called upon return to the primary activity. Cuidado! :-) On Jan 5, 10:09 am, Keith

[android-developers] Re: What happens to the database when app is upgraded

2009-01-05 Thread Blake B.
When you extend SQLiteOpenHelper, override this method: public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) It will be called when your application is being updated with a newer version. On Jan 5, 8:52 am, Dan Dumont ddum...@gmail.com

[android-developers] Re: Android Marketplace?

2009-01-05 Thread Dan Dumont
It may very well become what you say...it's just not there yet(tm)... I hope they put some effort into at least putting the app in the emulator... I'd really like to be able to see what kinds of apps are out there. On Mon, Jan 5, 2009 at 1:39 PM, eags eagsala...@gmail.com wrote: That is a

[android-developers] Android Shell

2009-01-05 Thread Raghu D K
Hello All, I am using logcat to debug. I have noticed that the Android shell does not have the export PATH variable exporting the path to /system/bin where the logcat is located. Some times on the android shell when I do # set It shows the following

[android-developers] Sensor readings on demand

2009-01-05 Thread clark
Hi all, I'm currently working on an application that needs to detect various types of motion using the accelerometer. I'd like to get readings from the accelerometer on demand, rather than using onSensorChanged() so that I can take samples at a given time interval. Is this possible with the

[android-developers] Re: What happens to the database when app is upgraded

2009-01-05 Thread Jay-andro
Thanks all, for bringing the SQLiteOpenHelper.OnUpgrade method to my attention. Reading up on it, I'm not clear on a couple of things: - When exactly does it fire - when a new version of the app is installed, or when the new app first tries to open the database, or when the new app tries to

[android-developers] Re: Sensor readings on demand

2009-01-05 Thread Dan Dumont
well... does onSeonsorchanged fire whenever the accelerometer changes? save the values when they change and read the saved values whenever you need to. On Mon, Jan 5, 2009 at 1:50 PM, clark clarkd...@gmail.com wrote: Hi all, I'm currently working on an application that needs to detect

[android-developers] Re: FTP Client

2009-01-05 Thread Derek
And you also have a full FTP client (AndFTP) with upload, download, rename, delete, chmod and more at: http://www.lysesoft.com/products/andftp/index.html Hope it helps. On Nov 27 2008, 10:15 am, Derek cram.de...@gmail.com wrote: FTPwith Android is possible. You have aFTPworking client for

[android-developers] Re: What happens to the database when app is upgraded

2009-01-05 Thread Dan Dumont
when you request a new or existing database you can provide a number (version of the db schema you are using) you should keep track of this, as it will be passed to your upgrade handler. On Mon, Jan 5, 2009 at 1:51 PM, Jay-andro jayan...@gmail.com wrote: Thanks all, for bringing the

[android-developers] Re: What happens to the database when app is upgraded

2009-01-05 Thread Dan Dumont
sorry... it's in the constructor of the helper http://code.google.com/android/reference/android/database/sqlite/SQLiteOpenHelper.html#SQLiteOpenHelper(android.content.Context,%20java.lang.String,%20android.database.sqlite.SQLiteDatabase.CursorFactory,%20int) On Mon, Jan 5, 2009 at 1:54 PM, Dan

[android-developers] XML PULL PARSER

2009-01-05 Thread Sudha
Hi I am tryting to read an xml file of the format response statusname/name/status gravityg1/g1/gravity /response My xml pull parser is reading till to status.but its not reading the gravity tag. it reached ENd_DOCUMENT after reading /status I understood that xmlpullparser can read only one

[android-developers] Re: battery level

2009-01-05 Thread The Spirit
how can i get the battery level? is this only a one line code for obtaining the level? or do i have to pull to the battery? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Sleeping thread vs. new thread

2009-01-05 Thread Noonien Soong
I am currently working on some communications code. Basically I am sending HTTP Requests to my server at an interval of lets say around 100 ms. The code is neatly placed in a Service and I am using threads in order not to block my UI. What I have right now is basically a cycle like this. 1.

[android-developers] Get the screen resolution

2009-01-05 Thread Nico
Hi, I need to get the screen resolution, how can I get it ? Thx. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: Orientation within orientation

2009-01-05 Thread Mark Murphy
Sundog wrote: How can I have a main layout with a vertical orientation and have some text appear within it in a horizontal orientation? Even though my app is used horizontally, I use a vertical layout to get the title bar out of the way and get maximum vertical screen real estate. But I

[android-developers] Sending Mail Error

2009-01-05 Thread Rahul
hi i am trying to send mail programatically by Using Android. i write following code by Using Intent but it shows Error Noapplication can perform this action. plz tel me any Extra setting are required or wt is the problem My Code is protected void sendEmail() { // Setup the

[android-developers] Re: What happens to the database when app is upgraded

2009-01-05 Thread Noonien Soong
Is the database version number a private number that the developer of each application comes up with? If so, I don't think is is terribly understandable from the documentation. On Jan 5, 1:56 pm, Dan Dumont ddum...@gmail.com wrote: sorry... it's in the constructor of the helper

[android-developers] Re: How to write code to uninstall apk from device/emulator?

2009-01-05 Thread Mark Murphy
Kenny Yu wrote: Simply put the cmd to Java function: system(adb uninstall apt_name); I mean your code should invoke the commands exactly as 'adb' does. Kenny On Jan 3, 8:52 am, Dr. Tingrong Lu lutingr...@hotmail.com wrote: Hi, How to write code to uninstall apk from device/emulator?

[android-developers] Re: Name of a widget

2009-01-05 Thread Mark Murphy
Nico wrote: I am looking for the name of the widget which can slide up. There is one on the desktop, it can be shown be clicking on a button on the bottom. AFAIK, that widget is not available to SDK applications. You can find the source code for it in the Android Git repository:

[android-developers] how to switch gmail account attached to the gphone?

2009-01-05 Thread CJ
what i understand is there must be an gmail account attached to a gphone. my question is how to switch it to another gmail account and how to do so programmatically. thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Problem with screenshot

2009-01-05 Thread Noonien Soong
what type is the this in your question? If it's a View, then you can simpy use this.. A View is a Context. On Dec 17 2008, 3:40 am, Dec. 030440...@163.com wrote: hi,guys~! i've been playing around on g-phone test for a few days,But i'm really confused on how to get current screenshot,One

[android-developers] Re: Android Marketplace?

2009-01-05 Thread Shane Isbell
On Mon, Jan 5, 2009 at 10:39 AM, eags eagsala...@gmail.com wrote: That is a real shame that they have decided to do that. What we are seeing with the major fragmentation of places to get android apps from is the result and will get worse if this policy continues. Once we go beyond a

[android-developers] Re: Deployment of native C library

2009-01-05 Thread Anonymous Anonymous
adb remount then try again On Sun, Jan 4, 2009 at 12:45 PM, shimo...@gmail.com shimo...@gmail.comwrote: Hi, Did as you suggested from my Windows PC (using adb shell). The 'mount' command did not yield any error. But - saw no change in the \system attributes (using ls -l). And - when I

[android-developers] Re: set up a redirection from A:localhost:localPort to B:10.0.2.15:serverPort

2009-01-05 Thread Fred Grott(shareme)
maybe I am asleep this morning but coudl you not use No-ip.com's app and free service to do the same without having to type al the redirects? I have used it when I needed to do redirects for facebook app development. On Jan 5, 4:58 am, Sanak mathib...@gmail.com wrote: I am working on Ubuntu

[android-developers] Re: button response is slow on GPhone

2009-01-05 Thread cindy
Mark, Thank you for the reply. I found that if I use trackball, it always work for click. But the response from hand touch is really not very responsible. Have you tried to use G1? Have some other developer experience the same problem? Thanks! Cindy On Jan 5, 4:47 am, Mark Murphy

[android-developers] Re: Android Marketplace?

2009-01-05 Thread Disconnect
You realize they could have simply disabled the third-party-installer option, right? (Or not written one to begin with.) They are far more than an application vendor in this space, and if they really wanted to control the distribution channel for mobile content they could have. (Also, that big

[android-developers] Re: button response is slow on GPhone

2009-01-05 Thread Mark Murphy
cindy wrote: Thank you for the reply. I found that if I use trackball, it always work for click. But the response from hand touch is really not very responsible. Have you tried to use G1? Frequently. Let's flip the problem around: do you have problems with other buttons in other

[android-developers] Re: Fast Scroll drag handle similar to Contacts ListView

2009-01-05 Thread Romain Guy
Hi, The FastScrollView is currently implemented in the Contacts application itself. It will be part of a future SDK update though. You can find the current implementation in the source code at http://source.android.com On Tue, Dec 2, 2008 at 4:48 AM, Will Ryan willrya...@googlemail.com wrote:

[android-developers] Re: Android Marketplace?

2009-01-05 Thread Shane Isbell
On Mon, Jan 5, 2009 at 11:18 AM, Disconnect dc.disconn...@gmail.com wrote: You realize they could have simply disabled the third-party-installer option, right? (Or not written one to begin with.) They are far more than an application vendor in this space, and if they really wanted to control

  1   2   >