[android-developers] Re: play video error

2009-04-03 Thread Nithin Varamballi
Hi.. Can you tell me that how to run video file in android emulator. I am using windows flat form. It is possible to run video file in android emulator using windows flat form... If possible please tell me how to run... --~--~-~--~~-

[android-developers] Re: Contacts-like Widget...

2009-04-03 Thread Inderjeet Singh
Thanks for the response. I haven't actually used ListView so may be that is enough for my needs. What I like about Contacts widget is the small position indicator (with the first letter of the words currently getting scrolled) on the right scroll bar. I also like the fact that you can scroll up an

[android-developers] play video

2009-04-03 Thread Nithin
Hi.. to all Can anyone tell me that how to run video file in android emulator. I am using windows flat form. It is possible to run video file in android emulator using windows flat form... If possible please tell me how to run... Thank You Nithin N V --~--~-~--~~--

[android-developers] Re: Multiple Frame by Frame animations

2009-04-03 Thread Kevin Phillips
Okay, so I got the above issue sorted out, now here is the next issue and it's a biggie for my app. How do I get the 2 seperate frame animations to load before they are called and set to the background? It seems to me that the frame by frame animations are not set until they are called and therefo

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

2009-04-03 Thread Dave Sparks
OpenCORE has no support for MP3 or QCELP encoding at this time, so those are not options. If someone wants to contribute an open source encoder and file composer, we would certainly be interested in supporting it. On Apr 3, 12:06 am, david 1 wrote: > As it is known, the default format to be reco

[android-developers] Re: Leaked window in PreferenceActivity

2009-04-03 Thread AusR
can anyone answer this? --~--~-~--~~~---~--~~ 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-developers] Re: Contacts-like Widget...

2009-04-03 Thread Mark Murphy
Inderjeet Singh wrote: > For my android app, I have need for a widget like the G1's address > book (Contacts); a widget that can display a long sorted list. Is that > widget (or something similar) available as open-source that I can > reuse? What specifically are you looking for that is not in Li

[android-developers] Contacts-like Widget...

2009-04-03 Thread Inderjeet Singh
For my android app, I have need for a widget like the G1's address book (Contacts); a widget that can display a long sorted list. Is that widget (or something similar) available as open-source that I can reuse? Thanks Inder --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Some question about market rate

2009-04-03 Thread clark
For application that I have had on the market since January, I have an active install percentage of %37. It's actually 37% for 3 out of my 4 applications. I think the biggest factor for most users is size. Until applications can be stored and ran from the SD card, that rate may not get much hig

[android-developers] Re: What is the proper handling of action.MEDIA_BUTTON?

2009-04-03 Thread Marco Nelissen
On Fri, Apr 3, 2009 at 1:35 PM, Stefan wrote: > > Does anyone know what is the "proper" way of subscribing for the > "action.MEDIA_BUTTON" - (this is sent by the button on the headset and > currently controls the play/pause of the built in player). It depends. What do you want to do with it? If

[android-developers] Re: Storing bitmap images for game animation

2009-04-03 Thread clark
That is the way its been done for years now, when it comes to sprite animations. Store your animations into one image file, then index into that image based on the frame you need to draw. ~clark On Apr 3, 1:03 pm, loty wrote: > Hi, > > Just starting a little game project and have a super basi

[android-developers] Re: OOM errors during inflation

2009-04-03 Thread fadden
On Apr 3, 2:22 pm, Ward Willats wrote: > Are there any tools besides ddms to look at the heap? My app is using > over 2 MB just sitting there -- and the ddms "track allocations" > don't add up to near that amount. How can I get a good picture of > what is going on in heapville? If you're on the

[android-developers] Multiple Frame by Frame animations

2009-04-03 Thread Alowishus
Hello All, I am building an app and I use 2 different Frame by Frame Animations that are used in the application. What I want to do is have one start after the other finishes. Whats the best way to go about this? I have tried using the touch events of ACTION_DOWN and ACTION_UP, but if I I let up

[android-developers] Re: OOM errors during inflation

2009-04-03 Thread Ward Willats
Okay, starting to debug this by printing out Runtime() memory stats around setContentView(). There is less memory available than ddms says (500K vs 1.5 MB). So maybe it is really running out. Are there any tools besides ddms to look at the heap? My app is using over 2 MB just sitting there --

[android-developers] Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES

2009-04-03 Thread geoff.stromberg
I've been working with my Eclipse/ADT Android project for weeks now, and all of a sudden, for no reason that I can determine, I have started getting this error whenever I try to run my app: Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES The only further clue found in logcat is this: 0

[android-developers] Re: Best way to check/sanitize data in a preferenceActivity

2009-04-03 Thread Chris
droozen : no , i get the call to the method , but the call to this method is propagated trought a handler and by the time my method get called , the Dialog is already dismissed.(and i can't find a way to restart it programaticly. mark : thank you , it's a bit convoluted but i'll have a look aroun

[android-developers] What is the proper handling of action.MEDIA_BUTTON?

2009-04-03 Thread Stefan
Does anyone know what is the "proper" way of subscribing for the "action.MEDIA_BUTTON" - (this is sent by the button on the headset and currently controls the play/pause of the built in player). The built in music application, registers a broadcast receiver for that action in the AndroidMainfest

[android-developers] Re: Best way to check/sanitize data in a preferenceActivity

2009-04-03 Thread Mark Murphy
chris wrote: > Hi > > I'm using a PreferenceActivity with a PreferenceScreen defined in a > xml file. > i want to make sure that the data set on a preference editor are valid > (integer , integer in a range) > > So , i want to be able to intercept a click on a button of the > EditTextPrefere

[android-developers] Re: Best way to check/sanitize data in a preferenceActivity

2009-04-03 Thread droozen
Preference.onPreferenceClickListener()? On Apr 3, 3:20 pm, chris wrote: > Hi > > I'm using a PreferenceActivity with a PreferenceScreen defined in a > xml file. > i want to make sure that the data set on a preference editor are valid > (integer , integer in a range) > > So , i want to be abl

[android-developers] Best way to check/sanitize data in a preferenceActivity

2009-04-03 Thread chris
Hi I'm using a PreferenceActivity with a PreferenceScreen defined in a xml file. i want to make sure that the data set on a preference editor are valid (integer , integer in a range) So , i want to be able to intercept a click on a button of the EditTextPreference , check the validity of the

[android-developers] Storing bitmap images for game animation

2009-04-03 Thread loty
Hi, Just starting a little game project and have a super basic question - what's the best way to store animation images for a game? I looked at the alien bloodbath code and they store multiple frames in a single png file. Is that the preferred way or is there easier/better way to do it? MP4? Tha

[android-developers] Bug in WebView highlight (and workaround)

2009-04-03 Thread Mattaku Betsujin
I am seeing an annoying bug in WebView on the G1. I have a WebView that displays an HTML page. When the user clicks on a link, the link's text is highlighted. At this point, I call WebView.clearView(), and then WebView.loadDataWithBaseURL() to load the URL that the user has just clicked on. When

[android-developers] Re: Creating a private jar

2009-04-03 Thread Fred Grott(shareme)
Yes there is another way.. I must preface this this does not work for all resources.. However, if you are only dealign with layout prameters about 75% fo those XML attributes have the corresponding accessible setters and getters.. That means if you rewrite the widgets to use setters and gette

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

2009-04-03 Thread djr
Like all of us, you need to just start coding to get a feel for the various layouts and how they work. Without knowing what your quiz questions are going to look like, I've found the most flexible features for quiz like apps is using a table in a relative layout. If your quiz is multiple choice, t

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

2009-04-03 Thread djr
You can compute a normal to each face of the cube to determine direction. Here is a URL to the basics of the mathematics (http:// www.geocities.com/SiliconValley/2151/math3d.html). Look for code on the internet that computes normals in 3D. If your mathematics isn't good, this will be a problem. O

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

2009-04-03 Thread Sheepz
Guess i'm gonna be wearing the stupid helmet for a while... that fixed it! thanks streets! On Apr 3, 1:42 pm, Streets Of Boston wrote: > Being in danger of stating the obvious :-) > > Did you try to look at Eclipse's 'Open With' menu-item. > Maybe you have it open as a regular XML file and this

[android-developers] Re: Determining the firmware version

2009-04-03 Thread Dianne Hackborn
Fyi, the correct number to check is Build.VERSION.SDK. This is incremented for each update of the platform APIs. On Fri, Apr 3, 2009 at 4:51 AM, Al Sutton wrote: > > D'oh. > > Build.VERSION doesn't resolve, but Build.VERSION.RELEASE does. > > Thanks for the pointer. > > Al. > > > -Origi

[android-developers] Re: Handler and MessageQueue question

2009-04-03 Thread Taísa Cristina
So, it's not "ugly" to finish my Activity and let that message in the MessageQueue of the main thread? :) On Fri, Apr 3, 2009 at 3:21 PM, Dianne Hackborn wrote: > Provided your process doesn't get killed, your process's main thread will > handle that message whenever it comes up, regardless of w

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

2009-04-03 Thread Streets Of Boston
You have to project 3D coordinates (model view) back to 2D coordinates (LCD screen). I wrote an app that needed to do the exact opposite (2d coords to 3d coord and vectors). But the idea is the same. 3D coords --Model View--> 2D coord --Project View--> 2D screen coords gluProject takes care of t

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

2009-04-03 Thread Dianne Hackborn
You might want to post some code. Also, "adb shell dumpsys activity" lets you see the system's current activity stack (the first part of the dump). On Thu, Apr 2, 2009 at 5:51 PM, davidandroid2...@yahoo.com < davidandroid2...@yahoo.com> wrote: > > My application has 2 activities. The main activi

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

2009-04-03 Thread Dianne Hackborn
It is much better to use andriod:screenOrientation="landscape" in your manifest, so that the system knows what orientation to move in to before it launches your app, rather than launching it in portrait and then restarting it in landscape. On Fri, Apr 3, 2009 at 5:18 AM, Mark Murphy wrote: > > Z

[android-developers] Re: Handler and MessageQueue question

2009-04-03 Thread Dianne Hackborn
Provided your process doesn't get killed, your process's main thread will handle that message whenever it comes up, regardless of what happened to the activity. Handler doesn't know anything about the activity state. On Fri, Apr 3, 2009 at 11:17 AM, Taísa Cristina wrote: > Hi all, > > I have a H

[android-developers] Handler and MessageQueue question

2009-04-03 Thread Taísa Cristina
Hi all, I have a Handler implementation that is used in my Activity. While handling the messages, there's a value of "msg.what" which makes my Activity to finish itself. My problem is that, when that "killer" message arrives, there's another one in the message queue also destined to my handler.

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

2009-04-03 Thread William
I am still lost. I am very new to opengl. I looked at the code and there is a lot going on. And even if I can understand it, I still have to then make code to do the detection. Someone has had to have this problem in the past that I could see the actual code that does the detection. On Apr 3,

[android-developers] Re: traceview and dmtracedump fails to start

2009-04-03 Thread fadden
On Apr 3, 2:08 am, Magnus wrote: > m...@labbe:/tmp$ traceview gldraw.trace > Exception in thread "main" java.lang.RuntimeException: Method exit > (java/lang/BootClassLoader.getInstance ()Ljava/lang/BootClassLoader;) > does not match currentmethod (dalvik/system/VMDebug.startClassPrep () > V) The

[android-developers] MediaScanner connect

2009-04-03 Thread yves...@gmail.com
I tried to use the following code to rescan some files, but onMediaScannerConnected() is never called. I followed the debugger and saw the last call (mConnection.connect()) is called, but nothing happened after that. Did I do something wrong? Any ideas? BTW, I run the text on a emulator, not the r

[android-developers] Re: 1.5 compiled image?

2009-04-03 Thread Ivan Soto
I'm actually getting interested in having the 1.5 emulator for Mac, I guess I will need to start compiling the OS. Ivan Soto Fernandez Web Developer http://ivansotof.com On Fri, Apr 3, 2009 at 10:04 AM, Al Sutton wrote: > I've only got a linux-x86 package, would that do? > > By the way there

[android-developers] Re: onDraw calling frequency

2009-04-03 Thread Bob
> If it's drawing logic, then it's fine :) There is a lot of logic in varying the Paints though. On Apr 3, 12:49 pm, Romain Guy wrote: > If it's drawing logic, then it's fine :) > > > > On Fri, Apr 3, 2009 at 10:48 AM, Bob wrote: > > >> onDraw() should normally not contain any logic code. > >

[android-developers] Re: Some questions about GLThread in ApiDemos

2009-04-03 Thread Streets Of Boston
for 1) Within the if (needToWait()) stament block, there may be more code than just this while(needToWait()) loop. But this is of little use if this if statement has no 'else' clause. If there is indeed no else clause, you could remove the 'if' statement all together. Maybe this is just a left-ove

[android-developers] Re: onDraw calling frequency

2009-04-03 Thread Romain Guy
If it's drawing logic, then it's fine :) On Fri, Apr 3, 2009 at 10:48 AM, Bob wrote: > >> onDraw() should normally not contain any logic code. > > All the logic I have is necessary to draw my canvas.  It looks to me > like that is going on in onDraw in the APIdemos, for example in > Layers.java.

[android-developers] Re: onDraw calling frequency

2009-04-03 Thread Bob
> onDraw() should normally not contain any logic code. All the logic I have is necessary to draw my canvas. It looks to me like that is going on in onDraw in the APIdemos, for example in Layers.java. Am I mistaken here? Should I be drawing into a bitmap or something when one of my inputs chang

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

2009-04-03 Thread Streets Of Boston
Being in danger of stating the obvious :-) Did you try to look at Eclipse's 'Open With' menu-item. Maybe you have it open as a regular XML file and this mode sticks. Right click on your XML file and do 'Open With' and see if an Android Plugin editor is offered as an alternative. On Apr 2, 5:58 

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

2009-04-03 Thread droozen
You're missing a > at the end of the LinearLayout declaration. However, I've noticed the same error, where eclipse wouldn't recognize a layout file as such (so that I could get a preview of it), but when I ran it in the emulator, it ran fine and the layout displayed fine (so I assume no error in

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

2009-04-03 Thread Streets Of Boston
I don't have a direct answer for you. But this is what i usually do when problems baffle me. I browse the git-source of Android. Try to find the source of SurfaceHolder and find the lockCanvas( ) and see why it may throw an exception. On Apr 3, 1:32 pm, mcmc wrote: > Everytime it hits the "c =

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

2009-04-03 Thread Sheepz
u r probably right, here it is: " http://schemas.android.com/apk/res/android"; android:id="@+id/dialogLayout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" > " it's pretty simple and straightforward... On Apr 2, 6:25 

[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

[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] 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] 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
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: 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: 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] 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] 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] 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] 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] 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: 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] 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] 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: 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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: 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: 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 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: 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: 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: 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: 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: 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 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: 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: 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: 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] 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] 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] 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] 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: 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: 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: 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: 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: 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 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 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

  1   2   >