[android-developers] Re: Why does not SoundRecoder work on G1

2009-04-03 Thread david 1
As it is known, the default format to be recorded is AMR. Is it to possible to replace it with another one, e.g. mp3 or qcelp? Frankly speaking, I want to let OpenCore support recording qcelp which is just one type of audio format. Could you please give me some clues about it, or what should I prep

[android-developers] Re: Recording Audio

2009-04-03 Thread david 1
hi Ben, by using you code, I encountered the problem, “The application audiorecorder(process com.david.android.audiorecorder) has stopped unexpectedly. Please try again”. My audiorecoder class looks like as: import android.app.Activity; import android.os.Bundle; //importing yours … public class

[android-developers] Cupcake availability?

2009-04-03 Thread arnouf
Hi all, Do we have more information about the availability of the Android SDK cupcake version? A first phone running on Cupcake should be available this month in France and it should be great to have a SDK exactly the same :) Rgds --~--~-~--~~~---~--~~ You receiv

[android-developers] Definite need for a Cupcake SDK & release details.

2009-04-03 Thread Al Sutton
I've just run up cupcake emulator images in the 1.1 SDK emulator under windows and seen something that makes me very nervous about cupcake. Under 1.0, 1.1, and on the G1 the password entry page of one of my companies apps looks as shown in the far left hand image at; http://www.funkyexpenses.com

[android-developers] Re: Cupcake availability?

2009-04-03 Thread Al Sutton
At the moment it would appear that you need to build your own Linux cupcake SDK and Windows cupcake SDKs aren't available and there aren't any instructions on how to make one. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in

[android-developers] Re: Definite need for a Cupcake SDK & release details.

2009-04-03 Thread Romain Guy
The layout is actually working. However, Cupcake has new assets for buttons (and other widgets) and it happens that the minimum width of the buttons has changed. I don't know how you set up your layout but it looks like you were relying on that minimum size to get all the buttons aligned (which w

[android-developers] Re: SQLite functions - how to use them?

2009-04-03 Thread sirius
Thanks all of you! That was really helpful! Took me some time though to find out how to run the SQL statements from inside of Java, but this is how I did it: SQLiteStatement r = db.compileStatement("SELECT count(*) FROM " + TABLE_NAME); long result = r.simpleQueryForLong(); --~--~-~--~--

[android-developers] Re: Definite need for a Cupcake SDK & release details.

2009-04-03 Thread Al Sutton
Romain, I accept that it may not have been the best way of doing it, but my main point is that many developers have absolutely no way of checking for problems like this. Now I am fortunate in that my company has a Linux machine that I can download and build the SDK on, but I suspect there are ma

[android-developers] Re: Definite need for a Cupcake SDK & release details.

2009-04-03 Thread Romain Guy
I did not say otherwise but the best I can do right now is guide you and help you solve your issue. We are aware of what you're saying and we understand. Repeating it over and over will not, unfortunately, make things happen differently. Believe it or not, we heard you the first time. (And we wer

[android-developers] Re: create an image "on the fly" and assign it to a button

2009-04-03 Thread Peli
I guess what you are looking for is a "stateful drawable". Here is a sample code: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=core/res/res/drawable/btn_check.xml;hb=master The drawable is an xml file, which says which png file should be used depending on whether

[android-developers] Re: Looking for a few co developers

2009-04-03 Thread Peli
For what you have in mind, one probably would start from the available open source Android applications, like the SMS application, to get a quick start, and modify those. If you are thinking of providing intents, probably you could present your idea in our developer's group as well: We have alrea

[android-developers] Re: Definite need for a Cupcake SDK & release details.

2009-04-03 Thread Al Sutton
I appreciate the responses you've given and understand you're giving it your best efforts, but from this side of the fence we've see no movement and no solid commitment. Surely it's not too much to ask for a nightly build of the SDK and/or emulator images to be posted somewhere?, I'd do it myself

[android-developers] Re: Definite need for a Cupcake SDK & release details.

2009-04-03 Thread Mariano Kamp
Hey Al, I actually think the keyboard layout has a nice curve to it ;-) You should sell it as a feature. Cheers, Mariano On Fri, Apr 3, 2009 at 9:58 AM, Romain Guy wrote: > > The layout is actually working. > > However, Cupcake has new assets for buttons (and other widgets) and it > happens t

[android-developers] I want run my application in background, with "Service component"

2009-04-03 Thread jj
Hello I want run my application in background, with "Service component", If the application is running in background then there should be icon of application, so when user click on icon the application should come in fore ground. Is this possible in Android, anybody having suggestions plz

[android-developers] Re: Android Physics Engine

2009-04-03 Thread Mariano Kamp
Anton, thanks. Very interesting. On Fri, Apr 3, 2009 at 2:24 AM, Anton wrote: > >Check out > http://android-developers.blogspot.com/2009/02/track-memory-allocations.html > >Romain Guy points out in this post that the android garbage > collector cannot optimize small short lived objects.

[android-developers] Re: Definite need for a Cupcake SDK & release details.

2009-04-03 Thread Al Sutton
It's only when you scale the image down to the size of the G1 screen do you see that although it may look nice it's really not usable so it'd guarantee a few unpleasant comments :). Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registe

[android-developers] What uniquely identifies an application?

2009-04-03 Thread jgf1979
I have developed two games, but when i try and install the second it replaces the first. In other words, Android belives the two games to be the same application. I have tried to find out this information, but my question is: what uniquely identifies an Android application? What is Android look

[android-developers] Re: Android Physics Engine

2009-04-03 Thread Romain Guy
We're aware of the shortcomings of the current garbage collector and believe me, it's one of the things we'd really love to see improved as soon as possible :) On Fri, Apr 3, 2009 at 2:04 AM, Mariano Kamp wrote: > Anton, thanks. Very interesting. > On Fri, Apr 3, 2009 at 2:24 AM, Anton wrote: >

[android-developers] Re: Android Touch Inputs via adb

2009-04-03 Thread frank
Any input? On Apr 2, 4:52 pm, frank wrote: > Ok so I have figured out that MotionEvents are used for what I need. > > MotionEvent:  Object used to report movement (mouse, pen, finger, > trackball) events > > Sooo, is there anyway to issue these events through ADB??? > > Please let me knows!!

[android-developers] Which one scales with the screen... Dip, sp, px.....?

2009-04-03 Thread Al Sutton
Given the recent discovery with the cupcake emulator I'm trying to re-work the layout file so it's cupcake friendly and future proofed, but have hit a problem. What I want is for 6 buttons to take up a total of three quarters of the screen width, but I can't seem to find the measurement unit whic

[android-developers] Re: WebView with Gears:

2009-04-03 Thread anderson
i have a question about how to setup gear ? Browser -> setting -> enable gear i cant input any url to setup gear ~ Both 1.0 and cupcake emulator have the same problem ? anyone meet the same problem ? On 2月13日, 上午6時18分, Mike Reed wrote: > /data/data/com.android.browser/app_plugins > > On Thu,

[android-developers] Determining the firmware version

2009-04-03 Thread Al Sutton
Is there any way to determine the version of Android that an app is running on? The reason being my latest idea was to turn off my on-screen keypad when running on cupcake. The problem is the firmware version shown on the about screen comes from android.os.Build.VERSION which appears to be a priv

[android-developers] Re: Android Physics Engine

2009-04-03 Thread Mariano Kamp
Romain, I am sure you are, but as with the Cupcake issue from the other thread with Al, it is not transparent at all. The road map ( http://source.android.com/roadmap) doesn't contain much and doesn't seem up to date. And don't get me started on the lack of transparency and predictability reg

[android-developers] Are ArrayList / Hashtable's bad for gc on Android?

2009-04-03 Thread admin.androidsl...@googlemail.com
I notice in the source code they are not used in critical loops, e.g. in View.java : http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/view/ViewGroup.java;h=e686d1c20bd21eaa050ff3bf9187b549ee7b1355;hb=HEAD I can see this kind of code which would be much easi

[android-developers] Some question about market rate

2009-04-03 Thread EvgenyV
Hi all, I can't explaing why with the increasing number of downloads and increasing positive feedbacks the number of uninstalls is growing as well. Does anybody know what is the avarage value of free applications uninstall? Thanks in advance, Evgeny --~--~-~--~~~--

[android-developers] Re: Determining the firmware version

2009-04-03 Thread Stoyan Damov
What??? android.os.Build is not part of the public API??? Why can I see it here then? http://developer.android.com/reference/android/os/Build.VERSION.html On Fri, Apr 3, 2009 at 1:20 PM, Al Sutton wrote: > > Is there any way to determine the version of Android that an app is running > on? > > T

[android-developers] Image download issue

2009-04-03 Thread Muthu Kumar K.
Hi All, I am trying to download the image from the server. Here i am getting the problem, some times the image is not getting download it is showing empty. In server i kept the bitmap image. I am using the following code to download the image. private Bitmap downloadImageFile(String fileUrl

[android-developers] Re: Determining the firmware version

2009-04-03 Thread Al Sutton
Try using it in eclipse. Using the 1.1 SDK I get the following error; android.os.Build.VERSION cannot be resolved Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England & Wales with the company number 6741909. The regi

[android-developers] Re: Determining the firmware version

2009-04-03 Thread Stoyan Damov
My code uses Build.VERSION.RELEASE, Build.VERSION.INCREMENTAL and Build.VERSION.SDK and compiles just fine w/ the 1.1. SDK Are you compiling with a cupcake SDK or something? Cheers On Fri, Apr 3, 2009 at 2:15 PM, Al Sutton wrote: > > Try using it in eclipse. Using the 1.1 SDK I get the followi

[android-developers] Re: Are ArrayList / Hashtable's bad for gc on Android?

2009-04-03 Thread Stoyan Damov
Using hand-crafted code, you can control how much your backing array grows -- I suspect ARRAY_CAPACITY_INCREMENT is quite a big number. Cheers On Fri, Apr 3, 2009 at 1:44 PM, admin.androidsl...@googlemail.com wrote: > > I notice in the source code they are not used in critical loops, e.g. > in

[android-developers] Re: Android Physics Engine

2009-04-03 Thread Stoyan Damov
+ googol On Fri, Apr 3, 2009 at 1:43 PM, Mariano Kamp wrote: > Romain, > >   I am sure you are, but as with the Cupcake issue from the other thread > with Al, it is not transparent at all. The road map > (http://source.android.com/roadmap) doesn't contain much and doesn't seem up > to date. > >

[android-developers] Re: Determining the firmware version

2009-04-03 Thread Al Sutton
D'oh. Build.VERSION doesn't resolve, but Build.VERSION.RELEASE does. Thanks for the pointer. Al. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Stoyan Damov Sent: 03 April 2009 12:31 To: android-developers@goo

[android-developers] Re: What uniquely identifies an application?

2009-04-03 Thread Mark Murphy
jgf1979 wrote: > I have developed two games, but when i try and install the second it > replaces the first. In other words, Android belives the two games to > be the same application. > > I have tried to find out this information, but my question is: what > uniquely identifies an Android applica

[android-developers] Re: Determining the firmware version

2009-04-03 Thread Stoyan Damov
Yes, Eclipse sucks. BTW, does anyone now know hard or easy it is to write plugins for Eclipse, especially plugins which generate code, or parse and/or modify code in code windows? I'd like to create a plugin which when given an activity class, and a layout, used as a view in the activity would ge

[android-developers] Displaying result in tabular form

2009-04-03 Thread Zhubham
Hi, I had stored some data in the SQLite database. I can view it in tabular format using the SQLite database reader.. Now is there a way (set of commands) by which i can view the result in emulator in a similar format?? Thanks in advance. Best Regards, Zhubham --~--~-~--~~--

[android-developers] Re: Determining the firmware version

2009-04-03 Thread Al Sutton
The tutorial at http://www.ibm.com/developerworks/opensource/library/os-ecplug/ makes it seem reasonably easy. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England & Wales with the company number 6741909. The registe

[android-developers] How can i make any string/integer factory configurable

2009-04-03 Thread Zhubham
Hi, How can i make any string/integer factory configurable in android?? eg. Alert dialog displays a text which is directly picked from a (central repository) file. Now we change the text in this file and make a rom image (but DO NOT compile the whole code) and flash it on the phone. Now the aler

[android-developers] Re: Switching from Landscape to Portrait orientation

2009-04-03 Thread Mark Murphy
Zhubham wrote: > Hi, > > I want to display a table which would fit better in portrait view than > in the landscape view. How do i instruct the emulator to change the > orientation?? Try calling setRequestedOrientation() in your activity. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Switching from Landscape to Portrait orientation

2009-04-03 Thread Zhubham
Hi, I want to display a table which would fit better in portrait view than in the landscape view. How do i instruct the emulator to change the orientation?? Please help me with this. Thanks. Best Regards, Zhubham --~--~-~--~~~---~--~~ You received this message b

[android-developers] Re: What uniquely identifies an application?

2009-04-03 Thread Stoyan Damov
I have a question - can I have 2 apps, where the 1st app is in the package com.company.games.Game1 and the other in com.company.games.Game2 i.e. I guess the common prefix com.company.games is not a problem, right (just like "com." is not a problem for most of the apps)? On Fri, Apr 3, 2009 at 2:

[android-developers] onDraw after all child views

2009-04-03 Thread Zack
Hi, I have a composite view which is extended from LinearLayout and contains a TableLayout which contains many ImageViews. I would like to overlay some effects on the resulting image that is produced by my custom view. It would seem that my CustomView's onDraw is only being called after before al

[android-developers] Re: How to scale a view without scaling its children ?

2009-04-03 Thread Ovuca
Here's a short exemple : The XML file : http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > http://schemas.android.com/apk/res/ android" android:id="@+id/formScrollView"

[android-developers] Re: Need for backup functionality

2009-04-03 Thread MrChaz
I went with plan B and simple copied the database file it lives in "data/data//databases/" if i remember rightly. On Apr 2, 9:23 pm, droozen wrote: > So I've come to a need to backup data in my application, so a user can > safely restore the important data. I had an idea about how to go about

[android-developers] Re: What uniquely identifies an application?

2009-04-03 Thread Mark Murphy
Stoyan Damov wrote: > I have a question - can I have 2 apps, where the 1st app is in the > package com.company.games.Game1 and the other in > com.company.games.Game2 I'm not sure what Game1 and Game2 are. If they are part of the package, then yes, that should work, give or take any case-related

[android-developers] Iphone Programming courses

2009-04-03 Thread dushyEDU
Hi Everyone, The iPhone Development Course on EDUmobile.org is now accepting students. The course is crafted to suite the industry need of professional iPhone developers. After the course completion, developers will be able to create software for iphone and can also distribute their content thro

[android-developers] Re: What uniquely identifies an application?

2009-04-03 Thread Stoyan Damov
Sorry, I meant to put them in lowercase, e.g. com.company.games.game1 and com.company.games.game2. I have another question though. What if I already have already published a game with the package com.company and I now I want to publish another with the package com.company.games.game2? Will there b

[android-developers] Re: What uniquely identifies an application?

2009-04-03 Thread Mark Murphy
Stoyan Damov wrote: > Sorry, I meant to put them in lowercase, e.g. com.company.games.game1 > and com.company.games.game2. > I have another question though. What if I already have already > published a game with the package com.company and I now I want to > publish another with the package com.com

[android-developers] Re: What uniquely identifies an application?

2009-04-03 Thread Alexey
I have kind of same problem to solve I have same code base from which i have to build to different apps using two different resources folders and may be some extensions in terms of extra activities etc... so let say all my base code is in com.acme.product.base And I have packages like com.acme.pr

[android-developers] Re: What uniquely identifies an application?

2009-04-03 Thread Stoyan Damov
On Fri, Apr 3, 2009 at 4:51 PM, Mark Murphy wrote: > However, your kilometerage may vary. LOL! :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] Re: WebView.clearHistory()

2009-04-03 Thread nEx.Software
Outstanding. Thanks for the information. I really appreciate it. Justin On Apr 2, 4:28 am, StefanK wrote: > I recently had the same issue. What I found is that you have to clear > history AFTER the (first) page loads. It appears that the history > clears everything before the current page so if

[android-developers] Re: OpenGL What Cube Face Is Facing Me

2009-04-03 Thread William
//i rotate the cube using the following //xRot,yRot are inc or decremented to change angles gl.glRotatef(xRot, 1.0f, 0.0f, 0.0f); gl.glRotatef(yRot, 0.0f, 1.0f, 0.0f); So yes i have access to yRot and xRot but they numbers range from -900 to +900. I figure I can used them somehow to tell what is

[android-developers] Re: 1.5 compiled image?

2009-04-03 Thread Ivan Soto
Thanks again for the images. For some reason I can't make Internet work on the emulator. On screen keyboard didn't work either. I tried to hold menu button but nothing happened. The UI is looking great. I like that the applications drawer now has something like a carbon fiber background. I hope it

[android-developers] Re: 1.5 compiled image?

2009-04-03 Thread Al Sutton
I got the onscreen keyboard whenever I clicked in an EditText (I had to click it even if it had the default focus). It then wouldn't go away until I clicked the back key (even if I moved off to a button). Networking does seem to be non-working in the 1.1 emulator with the 1.5 images though. A

[android-developers] Re: WebView bug with pageDown() ?

2009-04-03 Thread pperotti
I did that also but if you invoke view.pageDown(true) inside onPageFinished(Webview view, STring url ) it produces the same behavior as explained before. The only way this method seems to work (producing a very poor user-experience) is by just invoking inside the onPageFinished something like the

[android-developers] Telephony question

2009-04-03 Thread EvgenyV
Hi all, I'm tring to catch events from phone calls. For some reason the event "state changed" happens only when the main activity is started. After that I'm trying to simulate the call using eclipse DDMS tool but unsucessfully. Should I listen in background thread instead? What is wron with foll

[android-developers] adb push wtf

2009-04-03 Thread yarik...@gmail.com
C:\android-sdk-windows-1.1_r1\tools>adb push C:\src\test \data failed to copy 'C:\src\test' to '\data': Read-only file system wtf?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post t

[android-developers] Re: adb push wtf

2009-04-03 Thread Mark Murphy
yarik...@gmail.com wrote: > C:\android-sdk-windows-1.1_r1\tools>adb push C:\src\test \data > failed to copy 'C:\src\test' to '\data': Read-only file system > > wtf?? 1. Android runs Linux and therefore uses slashes (/) not backslashes (\) on paths. 2. You should not be attempting to put files i

[android-developers] Re: adb push wtf

2009-04-03 Thread yarik...@gmail.com
thanks a lot! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-

[android-developers] Re: Telephony question

2009-04-03 Thread Evgeny V
It just works. I just have to press the "answer" button :) On Fri, Apr 3, 2009 at 5:56 PM, EvgenyV wrote: > > Hi all, > > I'm tring to catch events from phone calls. For some reason the event > "state changed" happens only when the main activity is started. After > that I'm trying to simulate th

[android-developers] Re: Android Physics Engine

2009-04-03 Thread mscwd01
I have thrown together a quick example of the APE Physics engine (www.cove.org/ape/) running on Android. As you can see, simulating 30 or so circles results in a solid 15fps, which looks acceptable. The bad news, which I didn't realise before porting it to Android, is APE's lack of simulating ro

[android-developers] Re: OpenGL What Cube Face Is Facing Me

2009-04-03 Thread Marco Nelissen
On Fri, Apr 3, 2009 at 7:24 AM, William wrote: > > //i rotate the cube using the following > //xRot,yRot are inc or decremented to change angles > gl.glRotatef(xRot, 1.0f, 0.0f, 0.0f); > gl.glRotatef(yRot, 0.0f, 1.0f, 0.0f); > > So yes i have access to yRot and xRot but they numbers range from -9

[android-developers] Re: Android Physics Engine

2009-04-03 Thread Stoyan Damov
On Fri, Apr 3, 2009 at 6:24 PM, mscwd01 wrote: > > I have thrown together a quick example of the APE Physics engine > (www.cove.org/ape/) running on Android. > > As you can see, simulating 30 or so circles results in a solid 15fps, > which looks acceptable. > :( 15 fps? IMO it's not that accepta

[android-developers] Re: 1.5 compiled image?

2009-04-03 Thread Ivan Soto
Is it possible to get the 1.5 emulator? Ivan Soto Fernandez Web Developer http://ivansotof.com On Fri, Apr 3, 2009 at 8:32 AM, Al Sutton wrote: > I got the onscreen keyboard whenever I clicked in an EditText (I had to > click it even if it had the default focus). It then wouldn't go away unt

[android-developers] Re: OpenGL What Cube Face Is Facing Me

2009-04-03 Thread Streets Of Boston
- Get your objects coordinates in the model view (you should have those :)) - Get the current model view matrix (see MatrixTrackingGL class in your APIDemo's source code for OpenGL) - Take a look the gluUnProject/gluProject methods and use them to figure out what part of the LCD-screen your 3D obj

[android-developers] Re: Are ArrayList / Hashtable's bad for gc on Android?

2009-04-03 Thread Romain Guy
It's actually not a large number, Views usually don't have many children. This implementation has nothing to do with the GC. The goal is to avoid going through method calls to manipulate the group's children. On Fri, Apr 3, 2009 at 4:32 AM, Stoyan Damov wrote: > > Using hand-crafted code, you c

[android-developers] Re: Which one scales with the screen... Dip, sp, px.....?

2009-04-03 Thread Romain Guy
Simply use the layout_weight on the children of a TableRow or LinearLayout. Give them all a width of 0dip and the same layout_weight (1 for instance.) That's all. On Fri, Apr 3, 2009 at 2:43 AM, Al Sutton wrote: > > Given the recent discovery with the cupcake emulator I'm trying to re-work > the

[android-developers] Re: 1.5 compiled image?

2009-04-03 Thread Al Sutton
I've only got a linux-x86 package, would that do? By the way there seem to have been some changes to the emulator and some new parameters added, so it's not as easy as getting the 1.1/1.0 emulator working. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky

[android-developers] Re: Which one scales with the screen... Dip, sp, px.....?

2009-04-03 Thread Al Sutton
Thanks. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England & Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this

[android-developers] Re: Android Physics Engine

2009-04-03 Thread mscwd01
I was saying in terms of the other physics engines we have tested, 15fps for 30+ objects is a lot more acceptable than 1-2fps! But yes of course if you were to create a game which relied heavily on a physics engine it would be less than ideal ;) On Apr 3, 4:31 pm, Stoyan Damov wrote: > On Fri, A

[android-developers] Re: Sliding Text just like the phone's icon texts??

2009-04-03 Thread Moto
Thanks guys for your help! I will try your suggestions! Again thanks! Moto! --~--~-~--~~~---~--~~ 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@googlegro

[android-developers] Re: Android Physics Engine

2009-04-03 Thread Anton
:) That's great to hear. I know how these things go, so I assumed that it was being worked on. I also understand the complexities of bringing out an NDK. But personally, that's high on my list of desired features. Even one that can't link against any external libraries would be a good star

[android-developers] ScrollView and Programmatically Scrolling

2009-04-03 Thread droozen
So, I have a ScrollView with a single TextView inside it. Upon initial startup I set the text of the text view to an internally stored string and try: ScrollView myScroll = (ScrollView) findViewById(R.id.my_scroll_id); myScroll.fullScroll(ScrollView.FOCUS_DOWN); No scrolling happens. (The string

[android-developers] onDraw calling frequency

2009-04-03 Thread Bob
Hi, I have a log of logic in my onDraw but the result (ie screen output) changes infequently. Do I need to worry about wasting CPU cycles and battery with repeated identical calculations or will onDraw only be called when necessary? Thanks, Bob --~--~-~--~~~---~--~---

[android-developers] Re: onDraw calling frequency

2009-04-03 Thread Romain Guy
onDraw() should normally not contain any logic code. This method is executed as needed by the system when it needs to refresh the screen. On Fri, Apr 3, 2009 at 10:12 AM, Bob wrote: > > Hi, > I have a log of logic in my onDraw but the result (ie screen output) > changes infequently.  Do I need t

[android-developers] Re: Need for backup functionality

2009-04-03 Thread droozen
And how'd you perform the copy? Is there a way to let the user choose where to copy to? Or how the user can copy it back to the device? On Apr 3, 8:11 am, MrChaz wrote: > I went with plan B and simple copied the database file > > it lives in  "data/data//databases/" if i > remember rightly. > >

[android-developers] ANDROID_PROPERTY_WORKSPACE

2009-04-03 Thread davidc...@gmail.com
I tried to add the new property file (same as build.prop format) such as music.prop to the /sys directory. I studied the code in the System_property.c as following function, my questions are as following 1. What is __system_property_area__? I saw this is init by ANDROID_PROPERTY_WORKSPACE. 2. Can

[android-developers] Webview timeout

2009-04-03 Thread davidandroid2...@yahoo.com
Is there a way to set the timeout value in WebView? I want the WebView to be timeouted within 10 seconds if the url is too slow to response. Havn't able to find any api to support that. Thanks, David --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Displaying a Class Variable on Screen

2009-04-03 Thread TrojanSnake12
Basically, what I want to do is have the Preview screen showing the what the camera is currently pointing at, but I would also like to display the changing X, Y, Z orientation of the phone. Currently I am able to get a handle to the orientation array and its values and store it in a Global class

[android-developers] ContentProvider instance

2009-04-03 Thread davidandroid2...@yahoo.com
I have multiple applications which use the same ContentProvider code for internal WebView to access local files (application private). Because the ContentProvider has the same code base (package name, content uri), this will cause problem when deployed 2 or more of my application in the same devic

[android-developers] Re: Layout file not recognized as such in eclipse

2009-04-03 Thread TrojanSnake12
Yes, the extra info would help. On Apr 2, 3:11 pm, dan raaka wrote: > posting xml file contents helps to see if there are any errors > > On Thu, Apr 2, 2009 at 2:58 PM, Sheepz wrote: > > > Hi all, pretty simple question: > > I've created a new xml file in my layouts directory using eclipse's >

[android-developers] scale a view

2009-04-03 Thread Ovuca
Hello, I'd like to scale a view but when i do it, all the childrens of my view are scaled too. Is there a way to resize it without resizing its children ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Deve

[android-developers] Re: How to compile android app with static library?could somebody give me a example?thanks

2009-04-03 Thread davidandroid2...@yahoo.com
You can include the the library jar file in your Android Eclipe project's library. On 4月1日, 下午11时52分, 打工者 wrote: > How to compile android app with static library?could somebody give me > a example?thanks --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Why there are 2 instance of same Activityes?

2009-04-03 Thread davidandroid2...@yahoo.com
My application has 2 activities. The main activity will create the "child" activity through startActivityForResult((...). When the child activity needs to exit, it calls setResult(..) and finish(). Child activity will start and exit multiple time upon user selection. The activity are start and exi

[android-developers] Re: Cupcake Emulator do not mount SD card image

2009-04-03 Thread Alexander
Hello Android team, Any updates on this issue? Unfortunately "remount" doesn't help. My command to launch emulator under Ubuntu: ${ANDROID_ROOT}/out/host/linux-x86/bin/emulator -sysdir $ {ANDROID_ROOT}/out/target/product/generic -kernel ${ANDROID_ROOT}/ prebuilt/android-arm/kernel/kernel-qemu -d

[android-developers] Re: I want run my application in background, with "Service component"

2009-04-03 Thread Todd Sjolander
Using a Notification is one way to go about it. The Notification can be linked to an Activity, which gets launched if the user clicks on the Notification. Here's some code, which I think I pulled from some tutorial someplace: CharSequence text = getText(R.string.remote_service_started);

[android-developers] Custom theme issues

2009-04-03 Thread Janek Priimann
Is it possible to change color of ListPreference items (bunch of radio buttons) and button style (ok / cancel) used in an alert dialog? @color/dark ... @style/AlertDialog @styl

[android-developers] Re: Accelerometer/Orientation sensor problem

2009-04-03 Thread chow
I have noticed that the speaker output does effect the magnetic compass reading a bit. Not too surprising, since the speaker uses an electromagnet. This is probably what is causing the sensor to jitter around. As for the accelerometers, I would guess that the movement of the speaker cone itself is

[android-developers] which layout is good for Quiz application

2009-04-03 Thread Makrand
Hello I am a android beginner, now i am going to design a Quiz application for android I am very confuse about which layout i should use for Quiz. My requirement is when user touch the answer , the next question will appear on same screen and at the end of quiz the web view will be generated as a

[android-developers] Re: What is the best way to sent/receive data from remote database such as mysql on android?

2009-04-03 Thread Ale
Hi,I am a beginer and I've got the same question. How can i access remote database like MySQL on Android? Is it true i can't connect MySQL directly? How about other dbs? Thanks~ On 3月7日, 上午12时20分, "best6...@gmail.com" wrote: > Hi , Guys , > > I'm try to sent/receive data from my remote db ser

[android-developers] Exception locking surface - lockCanvas() returns a null?

2009-04-03 Thread mcmc
Everytime it hits the "c = mHolder.lockCanvas();" line, it pops up with that same error mentioned below. Also, I realize that c returns a null after called lockCanvas(), but mHolder is still active. Why might this be? I'm getting the following error as seen from the logcat window: E/SurfaceCom

[android-developers] traceview and dmtracedump fails to start

2009-04-03 Thread Magnus
Hi, tried to trace for the first time but got the following exception when I started the "traceview" application with my trace file. m...@labbe:/tmp$ traceview gldraw.trace Exception in thread "main" java.lang.RuntimeException: Method exit (java/lang/BootClassLoader.getInstance ()Ljava/lang/Boot

[android-developers] Re: Q. Stack trace gives Hex values not function names when core library crashes

2009-04-03 Thread Jorge
To figure out this crash, you will need to use the addr2line tool manually. 1) Find the path to the addr2line enter this command in the build env: ~/mydroid$ find . -name *addr2line 2) Find the location of the symbol directory enter this command in the build env: ~/mydroid$ find . -name li

[android-developers] Re: Looking for a few co developers

2009-04-03 Thread Ruiming Li
Hi Chris, It is great idea. I have totally 5+ years experience of developping messaging application(sms,mms,email etc) on the following platform:linux java,Limo,qtopia phone edtion,and android.I prefer to develop messaging application with you.what's the plan? Thanks&Best regards. Robert. On

[android-developers] Understanding LocationListener.

2009-04-03 Thread thecasa...@gmail.com
I, like many, have been writing a Service utilizing location (GPS) data. As this service is spinning/waiting in the background I would like to requestLocationUpdates when the GPS is enabled and de-register for the updates when disabled. So, it seemed like the correct place to do this was in the on

[android-developers] Re: INSTALL_FAILED_UPDATE_INCOMPATIBLE

2009-04-03 Thread sri
I found that the only thing that worked for me was to go on the device and select settings->applications->manage applications->your application name->uninstall ->adb uninstall failed for me :( On a side note please can someone out there test my application on a device. It (the signed apk) works

[android-developers] Re: Switching from Landscape to Portrait orientation

2009-04-03 Thread Desu Vinod Kumar
U can find the code snippet for this orientation of screen portrait view to landscape view.. http://www.anddev.org/index.php?sid=073eab2a58d6440d349e502239240872 see this link it may be useful for u ... On Fri, Apr 3, 2009 at 5:33 PM, Zhubham wrote: > > Hi, > > I want to display a

[android-developers] Re: Observation and comments on Android and "regularly" scheduled events

2009-04-03 Thread Marco P.
So, given that the functionality should be there, why is the AlarmClock App (from Google!) not working yet? http://code.google.com/p/android/issues/detail?id=1942 Is that a bug in the application, in the system, in the hardware or something else? Thanks M On Mar 30, 11:09 am, Dianne Hackborn w

[android-developers] Re: INSTALL_FAILED_UPDATE_INCOMPATIBLE

2009-04-03 Thread sri
Hi , I was facing the same problem, there is a way to uninstall from "settings" in the application menu settings->applications->mange applications-> select the application->select "unistall". This seems to delete everything and allows to install release version Thanks Srilaxmi P.S. I will really

[android-developers] Some questions about GLThread in ApiDemos

2009-04-03 Thread samurai00...@gmail.com
Hi everybody. This is my first post in the group, I hope not the last :) . I am working in an OpenGL application, and was analyzing the GLThread code in ApiDemos in order to define the work loop in my app. I have some questions about: 1/ In the fragment: if(needToWait()) {

[android-developers] ADB refuses to work

2009-04-03 Thread FIONIC
I've tried on both my vista and xp systems to update the usb mass storage driver to allow adb to work, but it just will not accept the damn driver. i successfully update the radio image when it first came out, and i was waiting for a fix to the fastboot problem, when i saw they finally made an ad

  1   2   >