[android-developers] Re: Building different versions of an app -- best practice?

2009-04-21 Thread Edward Falk
On Apr 20, 6:58 am, jarkman jark...@gmail.com wrote: We actually maintain two separate codebases for our pro and light products ... Yuck. I was afraid that would be the answer. I don't know what Sun was thinking when they decided to have no pre-processor for Java. I'll try the if

[android-developers] Re: android-task in tab from TabHost widget

2009-04-21 Thread benjamin.lehej...@googlemail.com
hi, oh sorry but i know the api-demo and for one activity firing up an intent worked well but i really mean a android-task! So a few activities where sequential launched and i would like to see all the content views from these activities in the tab. On 21 Apr., 07:54, Android Users

[android-developers] Re: how to color key 2d sprite backgound?

2009-04-21 Thread Arjen van Haren
Hi Diana, At the time I started coding I was unsure if opengl would be hardware enabled on all upcoming devices. And starting plain 2d on a new device seemed more easy to start with. As for my animations, I create those with an animation package where most of the times I only need to have 1 color

[android-developers] Re: android-task in tab from TabHost widget

2009-04-21 Thread Android Users
Sorry that i am re-phrasing your questions. Just want to confirm with my understanding, running more than one activity (changing from one activity to another) within a tab. If that is the case then you will have to define an ActivityGroup set it as the content for your tab. if thats what you

[android-developers] Re: How to create a composer for QCELP

2009-04-21 Thread david 1
Resolved. Thanks. david 2009/3/23 david david...@gmail.com Hi, Anybody knows how to create such the composer? I've searched OpenCore source for a sample from which I can do learn to create it. But I just found the one for MPEG4. Meanwhile, It looks like very complicated and I think it

[android-developers] Re: Shutdown notification?

2009-04-21 Thread Jon Colverson
On Mar 25, 2:26 pm, Cyril Jaquier cyril.jaqu...@jaqpot.net wrote: I would like to perform a task just before the phone is shut down. I thought that Application#onTerminate would be called but that does not seem to be the case. Is there a broadcast intent when the phone is going to shutdown?

[android-developers] Re: android-task in tab from TabHost widget

2009-04-21 Thread benjamin.lehej...@googlemail.com
yes i think you got it.. How does that work for example plz? On 21 Apr., 09:19, Android Users androidmai...@gmail.com wrote: Sorry that i am re-phrasing your questions. Just want to confirm with my understanding, running more than one activity (changing from one activity to another) within a

[android-developers] Re: How Delete SMS from inbox programmatically OR discard it before received in inbox

2009-04-21 Thread Gulfam
Hi all, Thanks for response. How i can get thread_id or message id ? Regards, Gulfam On Apr 21, 9:14 am, Adam K a...@everythingandroid.net wrote: You can delete by message id, see here:http://code.google.com/p/android-smspopup/source/browse/tags/SMSPopup... Cheers, Adam

[android-developers] Re: android-task in tab from TabHost widget

2009-04-21 Thread Android Users
You have to create a class extending the ActivityGroup and set that as content for the tab. tabHost.addTab(tabHost.newTabSpec(Tab1) .setIndicator(Tab1) .setContent(new Intent(this, TabActivityGroup.class)

[android-developers] Create APN programmatically

2009-04-21 Thread jappit
Hi, I'm looking for a way to create an APN programmatically, but haven't found anything yet. Does anyone knows if/how this is possible? Thanks in advance, Alessandro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: A Gesture Recognition Library

2009-04-21 Thread sydnal
@ Jonas; Well I guess it can be considered a shame on my part that I did not know about xstroke before your post. Anyway I examined the link, however the way strokes are defined is somewhat different. Xstroke seems to define strokes using regions which it passes through, DKN uses a list of

[android-developers] Re: Building different versions of an app -- best practice?

2009-04-21 Thread Jon Colverson
On Apr 20, 1:23 pm, Mariano Kamp mariano.k...@gmail.com wrote: But isn't the real problem that you would need a totally different package name to upload it to the Android Market? I'd love to hear if anyone has an elegant solution for this. Mine is very ugly: I have one manifest file for my

[android-developers] Re: Bus error when running 1.5 emulator

2009-04-21 Thread Evan JIANG
I've submitted a patch for this bug https://review.source.android.com/Gerrit#change,9597 If you'd like, I can mail you the binaray file I built. Best regards, On Tue, Apr 21, 2009 at 7:58 AM, Peter pkana...@gmail.com wrote: Ok, my problem has returned, so the above fix wasn't it. Here's my

[android-developers] Re: Scroller widget in a WebView

2009-04-21 Thread Naseer
Hi, Was anyone able to resolve this ? I have the same issue as well. After startScroll, if I do getCurrX, I can see the new x value but the view does not move. I think the view is not being attached to the scroller. Thanks, -Naseer On Mar 10, 1:59 am, oyobyaw oyob...@gmail.com wrote: Hello,

[android-developers] Re: A Gesture Recognition Library

2009-04-21 Thread Jonas Petersson
Hi again Sydnal, sydnal wrote: @ Jonas; Well I guess it can be considered a shame on my part that I did not know about xstroke before your post. Anyway I examined the link, however the way strokes are defined is somewhat different. Xstroke seems to define strokes using regions which it

[android-developers] How stable is the KXML parser? What's your experience?

2009-04-21 Thread Mariano Kamp
Hi, two months ago I migrated from DOM parsing to using the pull parser. I did this to be more memory efficient. It wasn't absolutely necessary though and I currently think about re-writing my code to use DOM (or maybe SAX directly) again. The reason is that I see phenomena that I can't

[android-developers] Doesn't Android-1.0 support Recording Video well?

2009-04-21 Thread david 1
hi all, I just experienced the video recording on G1 based on the system.img of android1.0. The process just lasts about 3 seconds, then blocks. And the generated file is empty. What's the matter? Doesn't this version support video recording, yet? david

[android-developers] Castor unmarshalling with Android's SAX DOM implementation throws: The 'namespace-prefix' feature is not supported while the 'namespaces' feature is enabled

2009-04-21 Thread DaRolla
hello, in order to generate Java classes from XML schema I use Castor. These classes have unmarshalling methods for loading and parsing XML files. In JDK I'd use Xerces as SAX DOM implementation. As I understood Android it comes with its own implementation. Trying to unmarshal the XML file

[android-developers] Re: OpenGL|ES: eglMakeCurrent issues

2009-04-21 Thread bonfo
Another weird behaviour. I'm trying to have multiple threads that render to the same surface. So I'm creating a single EGLSurface form the SurfaceHolder and then an EGLContext for each thread. Each thread calls the eglMakeCurrent function passing the eglSurface (for both read/write) and its own

[android-developers] Minimum memory requirement for Android application

2009-04-21 Thread Muthu Kumar K.
HI All, I want to know how much memory required (Minimum) for running Android application. Or else any standard memory size is there for each application. Please give your thoughts. Thanks in Advance, Muthu Kumar K. --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Access the remote Image

2009-04-21 Thread Mark Murphy
Nithin Varamballi wrote: Its web server And its JPEG images This has nothing to do with Android, then. Use URLConnection or HttpClient to retrieve the data, writing it to a JPEG file. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-21 Thread Mark Murphy
dilit wrote: Can you tell me what classes would allow me to disable the lock from within the program? Is it KeyguardManager, KeyguardLock? It is android.provider.Settings.System -- you want the LOCK_PATTERN_ENABLED setting. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: Convert accelerometer readings to degrees

2009-04-21 Thread ellipsoidmob...@googlemail.com
I assume you mean degress to g's, as the accelerometer data is already in degrees? If so I think it would be: float gaxis = Math.sin(Math.toRadians(xaxisreading)); Note though that if someone is moving the phone they might be accelerating it in the same axis, so that would screw your reading

[android-developers] SQLiteException..database is locked

2009-04-21 Thread for android
Basically I have a list page which I get from the network and cache it in the local DB. and on list item click the details of the list is displayed In the list page i have the refresh button which gets the latest state of the list.I run a thread to update the list. When the thread is running

[android-developers] Re: android-task in tab from TabHost widget

2009-04-21 Thread Android Users
Create a heirarchy similar to this: 1. A class which creates a tab - set the content to class extending ActivityGroup. 2. Class which extends ActivityGroup - here you display the default activity ie., your default frontend like the example code i gave you. 3. Class which extends Activity -

[android-developers] Insufficient Memory Error when launching application for second time after calling finish() in main activity..

2009-04-21 Thread quakeboy
I have made a game with just one activity.. I just replace the views when I want to change screen. The game runs fine for a really long time inspite of what ever I do within the game. But once I close the main game, by calling finish on the only activity in the application, and then when I start

[android-developers] Re: android-task in tab from TabHost widget

2009-04-21 Thread benjamin.lehej...@googlemail.com
thx at first and some additional information... If the tab is created then a intent is fired up to launch my-frontend- activity and this activity starts the activity whose content should be displayed in the tab. If the launched-by-my-frontend-activity closed then the my-frontend-activity decide

[android-developers] Re: selectively manipulate parts of an image

2009-04-21 Thread Gaurav
Can someone please respond to this. I would like to make some modifications in the existing pixels represented by a path, this is a little different from FingerPaint Sample where we draw a fresh path overwriting the existing pixels. On Apr 21, 2:05 am, Gaurav gau...@silkenmermaid.com wrote:

[android-developers] Re: maps api and 1.5

2009-04-21 Thread André Charles Legendre
Hi I get the same problem, and changed the build target to be the Google API, then I create an AVD for Google Api and finaly I get : Unable to resolve superclass of Lorg/example/android/apis/MapViewDemo; where org.example.android.apis is the package and MapViewDemo is a copy of

[android-developers] Re: Access the remote Image

2009-04-21 Thread Nithin Varamballi
Hi Mark Murphy, Thanks for your help I solve that problem using URL connection... Same URL connection can i play the playvideo(mpg4 format)... Thank You Nithin N V --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: ReStarting An Activity From A Service

2009-04-21 Thread Mohamed Amir
Yes, I have set the activity android:launchMode=singleTop in the manifest, but still in vain. I have put breakpoints in onCreate() and onNewIntent(). onCreate is called only the first time, and onNewIntent is never called. On Apr 21, 12:37 am, Dianne Hackborn hack...@android.com wrote: Did

[android-developers] Re: android:launchMode?

2009-04-21 Thread Mariano Kamp
Any idea how to get rid of that behavior too? At best the home button would get bring up the most recent used, unfinished(), activity of the app. If that is not possible, then the home button launching the launch activity would be ok too. But after using the home button and launching the main

[android-developers] Re: Building different versions of an app -- best practice?

2009-04-21 Thread jarkman
For what it is worth, the 1.5 SDK does move the R.java out into a different directory (myProject/gen/com.needle.noo), which may solve one of your problems. But I don't see how you'd get round having the package name in all the source files (or, at least, in all the activities so on) without

[android-developers] Re: OpenGL|ES: eglMakeCurrent issues

2009-04-21 Thread bonfo
Soory, the documentation link is http://www.khronos.org/opengles/sdk/1.1/docs/man/eglMakeCurrent.xml --~--~-~--~~~---~--~~ 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] java.lang.StackOverflowError when deserializing

2009-04-21 Thread DaRolla
hi, I've got a strange problem here doing object de/serialization. In Java (JDK 1.6) I serialize some objects. In Android (SDK 1.1) I deserialize them. This work quite nice in general. In order to work with a server object (that uses Castor un/ marshalling) I do it like I always do. Same

[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-04-21 Thread scanning_it
Thank you for the answer. Could you specifiy where I can find this bug in the issue list? Regards On Mar 6, 12:37 am, JP joachim.pfeif...@gmail.com wrote: This is a known issue. I worked around it by storing a copy of the preferences in a sqlite database table, and populate the preferences

[android-developers] ConditionVariable Usage

2009-04-21 Thread Asif k
Hi, I'm trying to use a ConditionVariable to control the execution sequence of two threads. I can create a ConditionVariable in one thread and block on it. But I would like to be able to access it from another Thread and unblock it from that thread.. ? Blocked Thread i am planning to keep

[android-developers] Re: ReStarting An Activity From A Service

2009-04-21 Thread Mohamed Amir
Hi Dianne, I have found this in the doc. when the activity is re-launched while at the top of the activity stack instead of a new instance of the activity being started, onNewIntent() will be called on the existing instance with the Intent that was used to re-launch it. on my case, the

[android-developers] Re: ReStarting An Activity From A Service

2009-04-21 Thread Mohamed Amir
OK, sorry, Dianne. It works now. I just did as you said, I am not sure why it wasn't working in the first place. Thank you Dianne. On Apr 21, 2:50 pm, Mohamed Amir mohamed.a...@gmail.com wrote: Hi Dianne, I have found this in the doc.  when the activity is re-launched while at the top of

[android-developers] Re: ReStarting An Activity From A Service

2009-04-21 Thread Mohamed Amir
I am sorry, but the same code doesn't run now. I am testing on the emulator. Can it be a timing issue? if the service is invoked before the incoming call dialog captures the focus, it works because the activity is then on top of stack? On Apr 21, 2:57 pm, Mohamed Amir mohamed.a...@gmail.com

[android-developers] Re: java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

2009-04-21 Thread Ask
executing code from the SD card is a security hole for your app, no matter how short a time you have the code there. now I am successful in writing file in the /data/app-private/ dir rather than /sdcard. So one problem is solved. but still I cant invoke intents in the method which is

[android-developers] Re: a receiver for outgoing sms and email?

2009-04-21 Thread Gulfam
Hi all, Any updates about interception of out going SMS Gulfam On Apr 5, 4:53 am, Seer gilligan.ch...@gmail.com wrote: I have been trying to catch outgoing sms and i can tell you it is currently impossible. No one on here or the platform knows a way to do it and from the people

[android-developers] Re: As application developers are we allowed to access system properties like ro.config.sync?

2009-04-21 Thread Hans
The data roaming thing is fixed in Cupcake. Fixed?  It's not broken as far as I can tell.  It's a System setting. Seriously, why on earth would you change it?  I'm sure that no developer has requested this as a change, so why is it changing? Yes, fixed as far as applications can no

[android-developers] Re: OpenGL|ES: eglMakeCurrent issues

2009-04-21 Thread bonfo
Never ending story. Is it possible that creating multiple EGLSurfaces form the same SurfaceHolder gives problems even if only ONE of this surface is current on ONE thread with ONE context?!? I can not belive to have so many issues with the OpenGL|ES binding on the Android platform. It would be

[android-developers] Re: How to send AT command to the modem ?

2009-04-21 Thread Jude
Hi all, Thanks a lot for your reativity. Just to clarigy some stuffs... David, Normally, the modem can support the multi channel for AT commands, it allows to send/receive multiple AT commands. For example you can perform an MO/MT call (CS call) and activate a PDP context (PS call) or

[android-developers] Re: How to send AT command to the modem ?

2009-04-21 Thread Daliang Luo
Hi Jude, maybe the function can be call via the app within android itself. As you can see that lots of app in android itself. But cannot be call by app that developed with SDK. Nio 2009/4/21 Jude julien.dela...@gmail.com Hi all, Thanks a lot for your reativity. Just to clarigy some

[android-developers] Re: Image motion tween

2009-04-21 Thread Manuel
Has nobody an idea? Or is there no way for this problem? --~--~-~--~~~---~--~~ 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: Insufficient Memory Error when launching application for second time after calling finish() in main activity..

2009-04-21 Thread Streets Of Boston
Do you statically cache objects? If your activity is gone/finished, that does not necessarily mean that your game's process has died. Static references/caches may still be active. On Apr 21, 7:06 am, quakeboy prasna...@gmail.com wrote: I have made a game with just one activity.. I just replace

[android-developers] Re: How do i save a (large) edited JPEG with full 24bit colordepth without getting OutOfMemoryErrors?

2009-04-21 Thread Streets Of Boston
Thanks, everyone, for your responses. I already feared a bit that there was no 'native' support for this in the Android SDK. The app i write is not a full-fledged editing app. I think i'll give the user options: When starting to edit an image: If the image is (too) large, the user can choose

[android-developers] Re: Doesn't Android-1.0 support Recording Video well?

2009-04-21 Thread Marco Nelissen
1.0 doesn't support video recording at all. On Tue, Apr 21, 2009 at 2:56 AM, david 1 david...@gmail.com wrote: hi all, I just experienced the video recording on G1 based on the system.img of android1.0. The process just lasts about 3 seconds, then blocks. And the generated file is empty.

[android-developers] Re: How to config G1 to make both browser and MMS work?

2009-04-21 Thread shimsim
I got the same problem in China with my Dev G1. I'm using the M-Zone Sim card and with the settings below everything works except the browser. name: china mobile apn: cmnet proxy: 10.0.0.172 port:80 username: blank password: blank server: blank mmsc: http://mmsc.monternet.com mms proxy:

[android-developers] displaying routes on android maps

2009-04-21 Thread Raghuveer
Hi, My application is trying to display a path between two points on android maps. I was wondering if there is any API for doing it. If not, any other pointers as to how to accomplish the task? Any info would be appreciated. Thanks, Raghuveer

[android-developers] memory leak when closing and restarting appliction several times

2009-04-21 Thread Julie Alexan
Hi, All! Using 'ddms' and repeatably clicking SysInfo - Update from Device helped me find a memory leak. So we have 9 JUnit test cases spread amongst 4 files, and we run them in eclipse. After EACH test cases finishes, our application is exiting; and it restarts again for the next test case.

[android-developers] mirror image using ImageView

2009-04-21 Thread sridhar
Hi, How to create mirror image using ImageView with out using Canvas. --~--~-~--~~~---~--~~ 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

[android-developers] Re: DDMS running on Vista64

2009-04-21 Thread hilkiah.lavin...@gmail.com
Hi John, Had the same problem that you are having and found this great workaround : http://itezer.com/my/trbrown/ Basically you install the 32bit java jdk and modify the ddms batch file to point to the java 32 bit executable instead of the java 64bit. Worked nicely for me. Regards, Hilkiah

[android-developers] News Feed Widget on Android

2009-04-21 Thread Amit Panwar
Hi, I want to create a news feed widget. Please suggest the ideas to implement the same. Thanks, Ammy --~--~-~--~~~---~--~~ 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] How do I create a 3 row screen?

2009-04-21 Thread CHUA Chee Wee
Hi, I am trying to create a screen consisting of a conceptual 3 rows. Initially, I tried using a top LinearLayout, with 3 childs of LinearLayouts, but that didn't work for me. I then tried creating a top TableLayout, with 3 childs of TableRows, followed by a LinearLayout in each TableRow, but

[android-developers] How the Flick operation can be implemented on an Android activity?

2009-04-21 Thread Amit Panwar
Hi, I am creating a custom home screen for the Android mobile. Also I want to add the flick operation on the main screen such that: - If flick left on the main screen, the messaging application starts. and if flick right on the messaging application, return to the home screen. - If flick

[android-developers] My dialog inherited class pops up gray, want it to be like maps-menu-map mode (white foreground)

2009-04-21 Thread pawpaw17
Hi, I'm trying to figure out how to make my dialog look like the dialog you see when you run the maps app and choose menu-map mode. White foreground and the background is gray (not dimmed slightly). I think the AlertDialog using the builder looks like this by default, but I want to extend the

[android-developers] Question about rtsp streaming support on cupcake

2009-04-21 Thread caijing
Hi, I am doing development on RSTP streaming on cupcake. I want know more clear about it, so my question is, which version of 3GPP PSS has been support on cupcake, R4, R5 or R6? Thanks Cai Jing --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: java.net.SocketException: The operation timed out............not behind proxy

2009-04-21 Thread Otherwish
Hi, String websiteData = null; DefaultHttpClient client = new DefaultHttpClient(); URI uri = new URI(url); HttpGet method = new HttpGet(uri); HttpHost proxy = new HttpHost(proxy, port);

[android-developers] Re: HelloGallery tutorial android.R.styleable cannot be resolved

2009-04-21 Thread icedfusion
I have been trying to get this to work for ages, being new at android I thought I had made a mess of something on the install. However, I did get it to work by doing the following: [code] public ImageAdapter(Context c) { mContext = c; TypedArray a = obtainStyledAttributes

[android-developers] xsd/dtd for AndroidManifest.xml

2009-04-21 Thread bobby
Hi, Where can we find schema definition for AndroidManifest.xml? I see that this question has been asked long back but no response: http://groups.google.com/group/android-developers/browse_thread/thread/b342d4daca9e02ee/fafa759938bcd17a?q=schema+for+androidmanifest.xml Any pointers will be of

[android-developers] MapActivity, Buttons and OnClickListener

2009-04-21 Thread nmesisca
Hi all, could you give me some help please? I have written a simple MapActivity that contains a mapview (defined in the xml file); it also contains a Button. If the Button has no OnClickListener associated then the project runs fine (the mapview is of course empty). If I add an OnclickListener

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-21 Thread heyunh...@gmail.com
Xavier thanks a lot Downloading Looks like powerful. On 4月14日, 上午7时30分, Xavier Ducrohet x...@android.com wrote: Hello developers! I'm pleased to announce the release of an early look of the Android 1.5 SDK. More information and download link

[android-developers] Re: how to get driving direction info from maps application?

2009-04-21 Thread Raghuveer
On Apr 1, 1:01 am, jj jagtap...@gmail.com wrote: Actually he developed his own code for calculating distance and direction, What I mean is, I launch the new activity with, this.startActivity(new Intent(Intent.ACTION_VIEW,                         Uri.parse(http://maps.google.com/maps?

[android-developers] Bugs in SDK 1.5 preview?

2009-04-21 Thread gguoling
Hi all, the theme android.R.style.Theme_Translucent_NoTitleBar and android.R.style.Theme_Translucent_NoTitleBar_Fullscreen not worked correctly in setTheme, is this a bug? Another question: how can i show a popup window outside its parent view ? Dos the popup window only showed in it's parent

[android-developers] Android theme inheritance relation implied by name?

2009-04-21 Thread jking
Hi, When I search across the source of framework resources packages, I found the theme definitions in themes.xml using the naming pattern like this: Theme Theme.Black Theme.Dialog Does it implied that the Theme.Black is derived from Theme? As it is another way to set implied inheritance

[android-developers] Query For initial a call,sms,email to implement and check the notifications.

2009-04-21 Thread Gaurav
Help Me On:- I am making a Notification Widget in which I need to update the notification counter for every new incoming call,sms,email,contact respectively. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] How to call a method from outside an Activity

2009-04-21 Thread ciaran101
Hi, I have a java class Poker.java and an Activity .GameWindow in GameWindow.java. In the GameWindow activity i have a method: public void setConsoleText(String st){ console.append(st); } Where console is a TextView. I'm just wondering how would I call this method from Poker.java?

[android-developers] Problem with text filter in ListView

2009-04-21 Thread Vince
Hi all, I'm experiencing a very strange problem while using text filtering in a ListView. I'm using a FrameLayout described as follow: FrameLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/container android:layout_width=fill_parent

[android-developers] Re: Image motion tween

2009-04-21 Thread Streets Of Boston
There is a solution for this problem. It is not trivial though. I would use a post or postDelayed on the view (or a Handler) to run a task that updates the position of your image on the path repeatedly. After updating the image's position, call 'invalidate()' on the view that draws the image

[android-developers] Re: how to get driving direction info from maps application?

2009-04-21 Thread Neil
And he then abandoned the whole idea because it goes against the Terms Of Use of Google Maps. On Apr 1, 7:01 am, jj jagtap...@gmail.com wrote: Actually he developed his own code for calculating distance and direction, --~--~-~--~~~---~--~~ You received this

[android-developers] Re: How to call a method from outside an Activity

2009-04-21 Thread Streets Of Boston
You need to store a reference to GameWindow inside your Poker class public class Poker { ... ... GameWindow _gameWindow; public Poker(GameWindow gameWindow) { _gameWindow = gameWindow; } ... public void someMethod() { ... ... _gameWindow.setConsoleText(a); ...

[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-04-21 Thread Chander Pechetty
Are these settings part of your preferences xml file? use android:persistent=true or set it and you most likely won't have this issue. Check if your case falls under the issue : http://code.google.com/p/android/issues/detail?id=1707 --~--~-~--~~~---~--~~ You

[android-developers] Re: DDMS running on Vista64

2009-04-21 Thread Streets Of Boston
Here is how to setup a 64 bit environment http://forum.xda-developers.com/showthread.php?t=446274highlight=64+usb+driver It involves installing the 64-bit driver for the Android phone USB device. I have this working and it works well. On Mar 30, 9:07 pm, John Doe halila...@gmail.com wrote:

[android-developers] Re: Android theme inheritance relation implied by name?

2009-04-21 Thread Dianne Hackborn
Yes the default rule is to inherit from the theme before the '.'. On Mon, Apr 20, 2009 at 11:17 PM, jking jiangjun.jk...@gmail.com wrote: Hi, When I search across the source of framework resources packages, I found the theme definitions in themes.xml using the naming pattern like this:

[android-developers] Re: Listview row layout dependent on remote data

2009-04-21 Thread Nmix
What I've done in the past is use a single layout that has all the possible views, which I set visible, invisible or gone depending on context. That should work well with ListView since you can customize the row, including visibility of widgets, in your getView() or bindView () method. On Apr

[android-developers] In case anyone wants to launch sync settings activity...

2009-04-21 Thread Hans
You need to specify the target package/class for the intent as it doesn't appear to be registered for it explicitly (probably a reason for that.) Intent l_oIntent = new Intent(); l_oIntent.setAction( android.settings.SYNC_SETTINGS ); l_oIntent.setClassName( com.android.settings,

[android-developers] Re: How to instrument code to find an OutOfMemory error (in WebView?)

2009-04-21 Thread Richard Cook
This is a good question, a proper testing method for unit power/memory consumption. I believe there is one through instrumentation that allows you to access the free memory (I can't find it right now). But I'd like to know this as well. On Tue, Apr 21, 2009 at 3:18 AM, Mariano Kamp

[android-developers] How to create this fancy Map-Item-Navigation?

2009-04-21 Thread androidcrew
Hi, can some tell my how i can create this very fancy item-navigation like google did it in thier app google maps for android? here is a screen: http://img16.imageshack.us/img16/3649/device122.png --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: how to get driving direction info from maps application?

2009-04-21 Thread Jeff Sharkey
Depending on your accuracy needs, you could wave your hands and calculate the distance as-the-bird-flies. Timing might be harder, but assuming 55MPH might be enough for a very rough estimate. j On Tue, Apr 21, 2009 at 8:32 AM, Neil neilb...@gmail.com wrote: And he then abandoned the whole

[android-developers] Re: What is the permission required to toggle the phone GPS setting?

2009-04-21 Thread Bonifaz
Use should this one. uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] SQLiteCursor.class Breakpoint

2009-04-21 Thread Kirk
Whenever I'm debugging, my code randomly breaks in SQLiteCursor.class as if there was a breakpoint in that class. Of course, it tells me that the source is not found, so I have no idea what's going on. Has anyone else encountered this? Any solutions? Thanks! Kirk

[android-developers] Re: where can i get the source code of the command monkey?

2009-04-21 Thread a druid
Hi Dianne, Just for fun I wanted to write a Service, which can display the current activityManager, the current Window Manager and the current Service Manager, in Monkey.java this is done by Monkey.getSystemInterfaces() with mAm = ActivityManagerNative.getDefault(); How can I get the same

[android-developers] Re: Problem installation Android Development Tools

2009-04-21 Thread AlphaBeta
I had similar problem. You may need to update and install latest fixes to eclipse. Eclipse-Preferences-Install/Updates-Automatic Updates Click 'Automatically find new updates and notify me', select 'Look for updates each time platform is started' Restart eclipse. You should see at the bottom

[android-developers] Re: Problem installation Android Development Tools

2009-04-21 Thread AlphaBeta
Hey All, I had the same problem. The fix: Turn on automatic update for eclipse. You can get to automatic updates one of the two ways: 1. As you are in the Software Updates and Add-ons screen, at the very bottom there is a blurb about Automatic Update. Click on it. 2. Eclipse - Preferences

[android-developers] using the ARM toolchain on FreeBSD to compile a .so for Android

2009-04-21 Thread rohit
Hello, I'd like to compile C code on FreeBSD as a .so to be linked with a Java front-end using JNI. I have available to me the arm-rtems-gcc-4.2.3 toolchain from ports. Can I expect to compile for Android using this toolchain? Is there anything unique about the cross-compiler from CodeSourcery?

[android-developers] Re: Map view not displaying tiles in 1.5 but it's fine in 1.1

2009-04-21 Thread wayne mcfadden- Red Droid
Thanks a bunch Xavier. That worked I now can see the map in the 1.5 toolkit. A few notes on what I did: 1. Regenerate the certificate using the new location for the 1.5 environment. 2. Regenerate the key: I used the html file that comes with the 1.5 documentation rather than the going to the

[android-developers] Re: where can i get the source code of the command monkey?

2009-04-21 Thread a druid
Hi Dianne, In fact my goal is to write my own Monkey-service(initial version only for key presses). What I need is a much more controlled randomness of key presses and key timings. I can create and start a service. I can create a key event: KeyEvent = kevent = new KeyEvent

[android-developers] Re: maps api and 1.5

2009-04-21 Thread André Charles Legendre
Hi Finally, my error was to left maps.jar in the classpath Now, this very simple Map app with 1.5 SDK launch good Thank for all the responses. It helps a lot. Andre --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] does cupcake recognise (anti)clockwise rotatiions of the device

2009-04-21 Thread devi prasad
hi I was told that Cupcake distinguishes both clockwise and anti-clockwise rotations of the device and that it sets UI layouts accordingly. Is this true? Or have I misunderstood something? Also, what happens when the device is flipped upside down? Does cupcake deal with it at all? thanks

[android-developers] Disable XSL transforms in HTTPClient

2009-04-21 Thread Magnus
Does anyone know how to avoid the XSL transforming that is taking place in the HTTPClient? I just want the raw xml. thanks /Magnus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: How to instrument code to find an OutOfMemory error (in WebView?)

2009-04-21 Thread Richard Cook
Look at ActivityManager, it has access to memory info. I bet you could use that to manage/find memory leaks and other things. Let me know if that helps at all! On Tue, Apr 21, 2009 at 8:57 AM, Richard Cook richardgc...@gmail.comwrote: This is a good question, a proper testing method for unit

[android-developers] Problem with tabs and focus

2009-04-21 Thread khose
Hello all. I've got another little issue using tabs. I've created a new TabHost handling 4 Tabs. Each tab has an Intent as content. The first tab launches a new Activity that creates a new Options Menu. When i change the tab and then come back to the first one, that menu wont show at first. I

[android-developers] Re: App widgets and remote views

2009-04-21 Thread Joel
I'm excited about the app widget functionality, and I've been playing with it for a bit. I love the idea that downloadable apps can customize the home screen with arbitrary data. Is it possible to create my own custom views and use them inside of an app widget? For instance, if I wanted to

[android-developers] Can I close automatically the browser when I use it to start another activity ?

2009-04-21 Thread Karima
Hi, I want start a video stream and I have a link with http:. With a redirection or other the android's browser can find the link rtsp:. My problem is when I stop the video, the browser is again there and empty. In the LOG: I/ActivityManager( 54): Starting activity: Intent {

[android-developers] creating a dialog that slides in

2009-04-21 Thread dashman
how would one create a dialog box that slides in and out when done. 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] Development versions of proprietary Google applications

2009-04-21 Thread Sander
Hi, I was wondering if there's any chance that you will release development versions of the proprietary Google applications. I'm guessing that the 'trunk' or 'main' version of them will be stable enough for people to use them in their personal builds. I've been diving into the source code of the

[android-developers] Re: Map view not displaying tiles in 1.5 but it's fine in 1.1

2009-04-21 Thread Xavier Ducrohet
Wayne, You could also have moved your old debug.keystore in the new location, instead of generating a new map key. But either way is fine. 2. Regenerate the key:   I used the html file that comes with the 1.5 documentation rather than the going to the google website and using that one

  1   2   >