RE: [android-developers] Is it possible to develop and upload Android 2.1 apps onto Motorola backflip?
I currently have a backflip and droid and see no problems using either for developement. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy Sent: Monday, April 26, 2010 8:53 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Is it possible to develop and upload Android 2.1 apps onto Motorola backflip? Giri Senji wrote: Thanks much again. You almost made my purchasing decision. Please share any other gotchas that you are aware of :) w/ Motorola backflip device itself or its use w/ Android development. Personally, I don't have one yet. I have been following it closely, given the ATT restrictions, which is how I knew it worked with the developer tools for installing apps. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting: http://commonsware.com/consulting -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] code for capturing screenshot of android device
can somebody give me tips on how to take a screenshot of the android phone using code ( not with DDMS, i mean with in code i have to write a logic to take a screen shot , i have no idea which classs i have to use for this ) Thanks , Sudhi -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: webview touch problem
It's hard to tell if and where a mistake may have been made without seeing your html... Are you using touch or click events? -John Coryat Radar Now! What Zip Code? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: code for capturing screenshot of android device
From what I understand, it's only possible with rooted phones. -John Coryat -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?
My first thought was to suggest that you rethink if you really need to do this - maybe your app isn't going to be as important to your users as you may think. But then, I been frustrated in the past by games which exit in the middle of the game if you press too far right... Maybe you should provide an option (which you'd only ever ask once): Always confirm before exiting I can find some posts on how to warn user when the back button is pressed to 'quit' the application. The common answer is to catch the key down event by onKeyDown, or use startActivityForResult(). My approach is to restart the activity in onStop(). Is it a better choice? Please help to check if there's anything inappropriate. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: code for capturing screenshot of android device
Rooted phones ??? what does it mean On Apr 27, 11:39 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: From what I understand, it's only possible with rooted phones. -John Coryat -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do ListViews exactly work?
Hi Moto, at this moment I'm working on my own custom ListView implementation so I can share some investigations I've found about ListView internals. 1) First of all ListView is adapter view that means that it uses adapter object to get it's child views - take a look at ArrayAdapter.getView(int, View, ViewGroup) 2) ListView at the moment only contains children that are on the screen. For example, if you have adapter with 100 records but only 5 are fit on screen ListView.getChildCount will return 5 not 100 3) each time you scroll your list it refresh dynamically its children list getting child view from adapter and/or relayouting existing views offsets I dont have best understanding now but I think ListView state is : 1) first position of child view of screen 2) offset of child view within parent view if you know first position and it offset you can simply get from adapter and draw other ones android.widget.AdapterView.getFirstVisiblePosition() will give you a position of first item within adapter data on the screen use getChildCount() and getChildAt() of ListView to get current child views so you can obtain some layout details ListView.setSelection(int) allows you to sets the currently selected item but I think It will not scroll smoothly to it... Hope this will help you Thanks, Pavel On 27 апр, 03:05, Moto medicalsou...@gmail.com wrote: I hope someone can shed some light? :( On Apr 25, 9:37 pm, Moto medicalsou...@gmail.com wrote: I'm trying to figure out how it's been designed. How it holds its items? How do I get a hold of the scrolling container? How can I know it's exact scrolling position? How can I scroll it to an exact position? I want to have all the current benefits the ListView provides plus detailed scrolling control... How about animating from x to x+100 scroll position? Maybe I need to create my own ListView? Where do I begin? Thanks for the help! -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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] CoreException thrown by IProject.build
Hi Guys I'm writing my own eclipse plug-in[1] that integrates with the Eclipse Android Development Tools (ADT). However, I'm getting a CoreException (Project target not loaded yet.)[2] thrown when I attempt to call IProject.build on an Android project: IProject project = importProject(...); project.build(IncrementalProjectBuilder.FULL_BUILD, monitor); Should I be waiting for the project target to load before calling the above? If so, what call should I use to poll the project target loading status? [1] http://code.google.com/p/m2eclipse-android-integration/ [2] See attached stack trace. Thanks in advance for any help you can give me... -- Ricardo Gladwell ricardo.gladw...@gmail.com http://www.google.com/profiles/ricardo.gladwell -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enorg.eclipse.core.runtime.CoreException: Project target not loaded yet. at com.android.ide.eclipse.adt.internal.build.BaseBuilder.stopBuild(Unknown Source) at com.android.ide.eclipse.adt.internal.build.BaseBuilder.abortOnBadSetup(Unknown Source) at com.android.ide.eclipse.adt.internal.build.PreCompilerBuilder.build(Unknown Source) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:218) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:360) at org.eclipse.core.internal.resources.Project$1.run(Project.java:523) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782) at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:502) at org.eclipse.core.internal.resources.Project.build(Project.java:94) at com.byluroid.eclipse.maven.android.test.AndroidMavenPluginTest.testBuildForAndroid11(AndroidMavenPluginTest.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62) at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:114) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3468) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3115) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at
[android-developers] Re: Device Seeding Program for Top Android Market Developers
They're stressed because they're waiting for phones too :P On Apr 26, 10:36 pm, Lim Sim lim@gmail.com wrote: Come on. why is everybody taking this so seriously?? lighten up guys. It's a freaking joke. Why the persistent negativity?? On 26 April 2010 16:32, James O'Brien jobriena...@googlemail.com wrote: Realistically: -They are in the post, most likely shipped from US. So they've been delivered to US devs and are on the way to Europe where I guess after being sorted, they'll be distributed to our homes. -Our phones won't come with FroYo -We can't purchase a contract with Vodafone at get a refund from Google Some of this speculation is ridiculous :/ We all know its nearly 2 months since they acknowledged us as part of the program, but its a free phone so all you can do is wait. Also in reply to fhucho: Chess for Android has a better name and most likely has also been on the market for longer. Most of the times people will go for the app that is the most popular first and if it does the job won't try others. -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Lim Sim t: +44 790 4181648 f:http://www.flickr.com/photos/limsim -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?
Some of my customers are accustomed to use the back button to go back to the previous activity. Some complained that they often navigate out of the application by pressing back button. I think it would be nice to customers if they can be warned. Thanks for your suggestion. How do think the approach I used? On Apr 27, 2:43 pm, Nicholas Albion nalb...@gmail.com wrote: My first thought was to suggest that you rethink if you really need to do this - maybe your app isn't going to be as important to your users as you may think. But then, I been frustrated in the past by games which exit in the middle of the game if you press too far right... Maybe you should provide an option (which you'd only ever ask once): Always confirm before exiting I can find some posts on how to warn user when the back button is pressed to 'quit' the application. The common answer is to catch the key down event by onKeyDown, or use startActivityForResult(). My approach is to restart the activity in onStop(). Is it a better choice? Please help to check if there's anything inappropriate. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?
You can override onBackPressed in your Activity. This is called when the user presses the back button, before your Activity is finished by the system. You could pop a dialog asking the user to confirm this action, if they hit yes you call through to the super and the Activity gets finished, if they hit no you do nothing and the Activity resumes [I've never tried this, but AFAIK this should work]. Only problem is this method is only available in Android 2.0+ [introduced in API Level 5]. Restarting the Activity in onStop sounds incredibly intrusive for your user experience. -Nick On Apr 27, 12:22 am, Xiongzh zx.zhangxi...@gmail.com wrote: Some of my customers are accustomed to use the back button to go back to the previous activity. Some complained that they often navigate out of the application by pressing back button. I think it would be nice to customers if they can be warned. Thanks for your suggestion. How do think the approach I used? On Apr 27, 2:43 pm, Nicholas Albion nalb...@gmail.com wrote: My first thought was to suggest that you rethink if you really need to do this - maybe your app isn't going to be as important to your users as you may think. But then, I been frustrated in the past by games which exit in the middle of the game if you press too far right... Maybe you should provide an option (which you'd only ever ask once): Always confirm before exiting I can find some posts on how to warn user when the back button is pressed to 'quit' the application. The common answer is to catch the key down event by onKeyDown, or use startActivityForResult(). My approach is to restart the activity in onStop(). Is it a better choice? Please help to check if there's anything inappropriate. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?
Wait I'm a bit confused... If the user wants to hit the back button to go back to the previous Activity, I'm assuming you're talking about a previous Activity within your app? This functionality is native to Android and should be maintained throughout your app. If you start an activity for result and then finish it, it will be removed from your back stack. If your users complain that the back button does not act natively [going back to the previous Activity], maybe rethink how you pass of from Activity to Activity throughout your app. If this page the user wants to return to is important enough for your users to complain about their inability to return to it, you should keep it in the back stack so they can return to it. Sorry if this is a misunderstanding of your message. -Nick On Apr 27, 12:22 am, Xiongzh zx.zhangxi...@gmail.com wrote: Some of my customers are accustomed to use the back button to go back to the previous activity. Some complained that they often navigate out of the application by pressing back button. I think it would be nice to customers if they can be warned. Thanks for your suggestion. How do think the approach I used? On Apr 27, 2:43 pm, Nicholas Albion nalb...@gmail.com wrote: My first thought was to suggest that you rethink if you really need to do this - maybe your app isn't going to be as important to your users as you may think. But then, I been frustrated in the past by games which exit in the middle of the game if you press too far right... Maybe you should provide an option (which you'd only ever ask once): Always confirm before exiting I can find some posts on how to warn user when the back button is pressed to 'quit' the application. The common answer is to catch the key down event by onKeyDown, or use startActivityForResult(). My approach is to restart the activity in onStop(). Is it a better choice? Please help to check if there's anything inappropriate. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Extracting colors from Themes?
Do you need to be doing this programatically? You could always take a screenshot of your phone [either using DDMS on a non-rooted device or the PicMe app on a rooted device] and then grab the colors using Photoshop or any image editing software. Another option, again not programmatic, would be to download the Android source [or you can browse it online in the Git repo] and find the declarations for those colors. -Nick On Apr 26, 3:23 am, Mariano Kamp mariano.k...@gmail.com wrote: Hi, I want to use colors from a Theme to apply it to HTML my app is rendering. I am wondering if I can do that? I am looking to use colors like they are specified in themes.xml: item name=colorForeground@android:color/bright_foreground_dark/item .. item name=colorBackground@android:color/background_dark/item .. item name=textColorPrimary@android:color/primary_text_dark/item .. So it looks to me those are declared in the same way. When trying to access those values this way: TypedValue tv = new TypedValue(); getTheme().resolveAttribute(android.R.attr.colorBackground, tv, true); System.out.println(tv.string= + tv.string); System.out.println(tv.coerced= + tv.coerceToString()); int colorResourceId = getResources().getColor(tv.resourceId); System.out.println(colorResourceId= + colorResourceId); tv = new TypedValue(); getTheme().resolveAttribute(android.R.attr.textColorPrimary, tv, true); System.out.println(tv.string= + tv.string); System.out.println(tv.coerced= + tv.coerceToString()); colorResourceId = getResources().getColor(tv.resourceId); System.out.println(colorResourceId= + colorResourceId); I get this as a result: I/System.out( 1578): tv.string=null I/System.out( 1578): tv.coerced=# I/System.out( 1578): colorResourceId=-1 I/System.out( 1578): tv.string=res/color/primary_text_light.xml I/System.out( 1578): tv.coerced=res/color/primary_text_light.xml I/System.out( 1578): colorResourceId=-16777216 The results are different. The first one actually gives me the color #fff which would work for me, the second one only gives me an xml. Do I need to jump through a few more hoops here to resolve the actual color? Does my original intention work at all? Maybe it won't work, because colors could be arbitrary drawables? I didn't find any relevant documentation, but if you know any, just point me there please. Btw. I also tried obtainStyledAttributes(), but this had basically the same issues. Cheers, Mariano -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: code for capturing screenshot of android device
On Apr 27, 7:54 am, Sudheendra sudhindra.ma...@gmail.com wrote: Rooted phones ??? what does it mean Sounds like you need to do a bit of basic research first... http://lmgtfy.com/?q=root+android String -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?
Yes, I have keep in back stack what should in the back stack. But sometimes customers just want to navigate to the activity in the bottom of the stack, i.e, the first view the see, the main view I assume. They are not intent to leave my application. That's why they ask for a confirmation when they leave by back button. On Apr 27, 3:31 pm, patbenatar patbena...@gmail.com wrote: Wait I'm a bit confused... If the user wants to hit the back button to go back to the previous Activity, I'm assuming you're talking about a previous Activity within your app? This functionality is native to Android and should be maintained throughout your app. If you start an activity for result and then finish it, it will be removed from your back stack. If your users complain that the back button does not act natively [going back to the previous Activity], maybe rethink how you pass of from Activity to Activity throughout your app. If this page the user wants to return to is important enough for your users to complain about their inability to return to it, you should keep it in the back stack so they can return to it. Sorry if this is a misunderstanding of your message. -Nick On Apr 27, 12:22 am, Xiongzh zx.zhangxi...@gmail.com wrote: Some of my customers are accustomed to use the back button to go back to the previous activity. Some complained that they often navigate out of the application by pressing back button. I think it would be nice to customers if they can be warned. Thanks for your suggestion. How do think the approach I used? On Apr 27, 2:43 pm, Nicholas Albion nalb...@gmail.com wrote: My first thought was to suggest that you rethink if you really need to do this - maybe your app isn't going to be as important to your users as you may think. But then, I been frustrated in the past by games which exit in the middle of the game if you press too far right... Maybe you should provide an option (which you'd only ever ask once): Always confirm before exiting I can find some posts on how to warn user when the back button is pressed to 'quit' the application. The common answer is to catch the key down event by onKeyDown, or use startActivityForResult(). My approach is to restart the activity in onStop(). Is it a better choice? Please help to check if there's anything inappropriate. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?
But it's totally transparent to the customer, isn't it? The activity should be in the very top of the Android stacks. So it would be bring up again quickly. On Apr 27, 3:28 pm, patbenatar patbena...@gmail.com wrote: Restarting the Activity in onStop sounds incredibly intrusive for your user experience. -Nick -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: code for capturing screenshot of android device
Thanks String , Thanks John ... So using rooted phone how can i do it On Apr 27, 12:38 pm, String sterling.ud...@googlemail.com wrote: On Apr 27, 7:54 am, Sudheendra sudhindra.ma...@gmail.com wrote: Rooted phones ??? what does it mean Sounds like you need to do a bit of basic research first...http://lmgtfy.com/?q=root+android String -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ApiDemos/Graphics/CamerPreview Nexus One force close
Thanks for sharing, wurp! Having to work like that is incredibly messy though, and not having a Nexus One to test on I would not want to depend on complex code like that even if it works. I hope someone can shed more light on what is going on here and either fix the bug (Google?) or explain what exactly are the minimum steps to finally get the camera working reliably. The camera has been the most troublesome and time-wasting part for me since the beginning of Android in 2008. Since apparently even Google's sample code now fails here on their Nexus One I think it is the Google Android developers who need to chime in here, assuming that the problem is reproducible. Perhaps the problem is related to what was recently discussed in the thread http://groups.google.com/group/android-developers/browse_thread/thread/792707bd366d4732/ I increasingly receive startPreview related crash reports for users of Android 2.1-update1 (HKDKC100 Odroid by Hardkernel, and Motorola Droid; no crash reports at all for Android 2.1) while my camera app works fine on the emulator for 2.1-update1 and also runs fine on my good old ADP1. Under such conditions I cannot properly support users of my app who run into these problems. Thanks The vOICe for Android http://www.seeingwithsound.com/android.htm On Apr 27, 5:12 am, wurp bobbymart...@gmail.com wrote: I did have this same problem. The issue is that the Camera.open method bombs out. I created a camera wrapper class that does a bunch of initialization to ensure that open works, then takePicture works, etc. I found the initialization code by looking through the Camera source code for Google's main Camera app. I think the code you need is: private synchronized void preOpen(Context context) { mPreferences = PreferenceManager.getDefaultSharedPreferences(context); upgradePreferences(mPreferences); } public static final String KEY_VERSION = pref_version_key; public static final String KEY_RECORD_LOCATION = pref_camera_recordlocation_key; public static final String KEY_VIDEO_DURATION = pref_camera_video_duration_key; public static final String KEY_JPEG_QUALITY = pref_camera_jpegquality_key; public static final int CURRENT_VERSION = 3; private static void upgradePreferences(SharedPreferences pref) { int version; try { version = pref.getInt(KEY_VERSION, 0); } catch (Exception ex) { version = 0; } logPreferences(pref); if (version == CURRENT_VERSION) return; SharedPreferences.Editor editor = pref.edit(); if (version == 0) { // For old version, change 1 to 10 for video duration preference. if (pref.getString(KEY_VIDEO_DURATION, 1).equals(1)) { editor.putString(KEY_VIDEO_DURATION, 10); } version = 1; } if (version == 1) { // Change jpeg quality {65,75,85} to {normal,fine,superfine} String quality = pref.getString(KEY_JPEG_QUALITY, 85); if (quality.equals(65)) { quality = normal; } else if (quality.equals(75)) { quality = fine; } else { quality = superfine; } editor.putString(KEY_JPEG_QUALITY, quality); version = 2; } if (version == 2) { editor.putString(KEY_RECORD_LOCATION, pref.getBoolean(KEY_RECORD_LOCATION, false) ? on : off); version = 3; } editor.putInt(KEY_VERSION, CURRENT_VERSION); editor.commit(); } I can't imagine a reason this would be required, but after I added it, Camera.open worked. Strangely, later I commented out the call to upgradePreferences and it still worked... I don't know if that's because the critical thing is just acquiring the preferences, or somehow one time initialization is enough. I noticed also that rebooting my phone and making the Camera.open be the very first thing I did also worked (without the preOpen call). None of this behavior makes sense to me; I'm just reporting what I saw, and what has continued to work for me. BTW, you also have to startPreview before you can takePicture. Bobby On Apr 25, 10:21 am, Scott Sheppard scottsheppar...@gmail.com wrote: I am running the android-7 ApiDemo sample project on a Nexus One device. I am interested specifically in the Graphics/CameraPreview sample code. The project works fine, but when I select Camera the device displays a Force Quit message. I am not receiving any error information in the debugger. The CameraPreview code works fine in the emulator. Anyone else had this problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post
[android-developers] How to overlay a GLSurfaceview on a surfaceview?
Hi there, is there anyone who knows how to overlay a GLSurfaceview on a Surfaceview? The Surfaceview is used for the camera preview. Thanks. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unparsed aapt error
Hey still i coudn get rid of it.. On Mar 16, 6:57 pm, Patrick Noffke patrick.nof...@gmail.com wrote: Hi all, I found some old posts on this problem, and I was having a similar issue, so I thought I'd share what I learned. I was getting this error after modifying an XML file, and I was unable to start a debug session until I fixed the problem. It seems if there are errors that cause aapt to fail, eclipse can get in a state where it doesn't know when the problem gets fixed. Deleting R.java did not work for me. What I ended up doing after I fixed the XML file is right-clicking on the error message in the Problems view, and deleting the error. Then modify some files to force a rebuild and you should be okay. I found it helps to turn the android log level to Verbose (Preferences - Android - Build). This led me to know that once I fixed the XML file, aapt was happy, but eclipse was not. Hopefully this will save someone else the 3 hours I burned trying to figure it out! Patrick -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unparsed aapt error
Hey please help.. i followed u.. but still cudn get rid of it..its showing error in java file.. werever r.layout is there.. On Apr 22, 1:02 am, Christopher tys...@gmail.com wrote: Doing Project Clean in Eclipse helped clear up the problem for me. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: webview touch problem
This is indeed an issue I guess. Well, let me re-frame the problem. Say, you have a long page which you load on the WebView. Now you start scrolling. Before the scrolling stops, tap on the web view, and the scrolling will stop automatically. After this point, try to execute some JS code from outside, ie, without touching the WebView again. May be through a normal button, or a manu time. At this point, the JS is not called. But, now when you touch the web view again, and may be do a bit of scrolling, and try to execute the same JS, it works. I guess, the web view in this case, is not in a state to execute JS code. Is it a bug? Thanks and Regards, Kumar Bibek On Apr 27, 11:27 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: It's hard to tell if and where a mistake may have been made without seeing your html... Are you using touch or click events? -John Coryat Radar Now! What Zip Code? -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need MMSH Protocol library
Hello everyone, Do you know any way on how to play a stream using mmsh protocol? It seems android at default cannot play mmsh streams. Any idea or inputs on how to start? Thanks, Brian -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is it possible to develop and upload Android 2.1 apps onto Motorola backflip?
Thanks Tommy. Cheers, Giri Senji phone g=415-Say-Giri/ On Mon, Apr 26, 2010 at 11:11 PM, Tommy droi...@gmail.com wrote: I currently have a backflip and droid and see no problems using either for developement. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy Sent: Monday, April 26, 2010 8:53 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Is it possible to develop and upload Android 2.1 apps onto Motorola backflip? Giri Senji wrote: Thanks much again. You almost made my purchasing decision. Please share any other gotchas that you are aware of :) w/ Motorola backflip device itself or its use w/ Android development. Personally, I don't have one yet. I have been following it closely, given the ATT restrictions, which is how I knew it worked with the developer tools for installing apps. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting: http://commonsware.com/consulting -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is there another way to show soft keyboard automatically?
when turn on other activity page, I want to show soft keyboard automatically. i get this source, but I don't know why use part of delay? I want to know WHY, and is there other way to show the softkeyboard? InputMethodManager imm; @Override public void onCreate(Bundle icicle) { TimerTask myTask = new TimerTask(){ public void run(){ imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE); imm.showSoftInput(getCurrentFocus(), InputMethodManager.SHOW_FORCED); } }; Timer timer = new Timer(); timer.schedule(myTask, 500); @Override protected void onPause() { super.onPause(); imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0); } thanks alot to read this one ^^ -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] CPU pegged in AudioTrack triggers reboot
Dear experts - including Nikolay, Last week Chander Pechetty mentioned bug 6478 in a different thread and as it seemed to cause the same issues I experience now and then, I've tried to capture the logs and today I succeeded. The symptoms are that while playing Bebbled the phone somtimes slows down drastically, in the end goes unresponsive and may even reboot. The logs are at the time littered with obtainBuffer timed out (is the CPU pegged?) messages from AudioTrack. Maybe Bebbled is misbehaving in some way, but it would be much preferable that the system could just kill it rather than reboot. I've attached my log file to the existing bug in the hope that someone with more insight can figure out the root cause and better way of handling it. Details here: http://code.google.com/p/android/issues/detail?id=6478 Best / Jonas Chander Pechetty wrote: Interesting, I had filed an issue earlier with my G1 crashing occasionally when playing bebbled; wonder if they are related ( to cosmic rays :-) http://code.google.com/p/android/issues/detail?id=6478 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Animating the background of a LinearLayout
Hello, Is there a way of being notified when a TransitionDrawable has finished its transition? I'm looking for a way to animate the background of a LinearLayout, switching it back and forth between two images thus creating a pulsating effect. TransitionDrawable works nicely, butonce. I tried stacking several 'item' in the XML defining the transition, but no luck. It justs fades from item 1 to item 2 and sits there. I'm wondering if I shouldn't implement a custom Animation. Any ideas? Thanks :) FYI : target platform is 1.5 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView focus behaving different when using minSdkVersion=3
Thank you for taking the time out to respond to my question. Much appreciated. Cheers, Jason On Apr 26, 8:04 pm, Streets Of Boston flyingdutc...@gmail.com wrote: However Eclipse shows a warning that the minSdkVersion is lower than the targetSdkVersion version. Do you know if this can cause problems? Shouldn't have any problems with this. If the min target, then you must take precautions yourself that you don't accidentally use APIs that are available only in 'target' and not in 'min'. That's the warning. Also, by building my app while running the code on the 1.6 SDK will it still be available to 1.5 devices in the market? Yes, as long as the minSdkVersion=3 (or lower). The minSdkVersion just tells the Android Market that your app can be installed on phones with this version or higher. The maxSdkVersion tells tells the Android Market that your app can be installed on phones with this version or lower. You probably won't use this setting. The targetSdkVersion instructs the run-time to run some forward or backward 'compatibility' code (where necessary) in case the customer's phone's version is not equal to the targetSdkVersion. Note: minSdkVersion = targetSdkVersion = maxSdkVersion On Apr 26, 12:23 pm, jason.delport jason.delp...@gmail.com wrote: Hi, Thanks for the response. Your questions were helpful. I changed the SDK version I was running my code on from 1.5 to 1.6 and implemented the below attributes in the manifest and everything works as it should (on 1.6+ devices). uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4 / However Eclipse shows a warning that the minSdkVersion is lower than the targetSdkVersion version. Do you know if this can cause problems? Also, by building my app while running the code on the 1.6 SDK will it still be available to 1.5 devices in the market? Thanks in advance. Cheers, Jason On Apr 24, 6:48 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Looks like a bug in the Android framework. What is your targetSdk value? What actual SDK version are you running your code on? On Mar 15, 10:13 pm, licorna lico...@gmail.com wrote: A few days ago I was trying to fix this issue: I have a header (three ImageButton's) and a ListView. If I use the dpad, pressing DOWN to focus the ListView, the ListView shows as selected the seventh or eighth row, not the first one. What I need to do is that the first element of the ListView get the focus (or selection) when I use the dpad, from another screen component, but instead, the seventh or eighth is selected. I had minSdkVersion=3 in my manifest. When I changed it to minSdkVersion=4 it worked as expected (first row selected). Don't know why, but there is a difference between both. I'm posting it right here if someone else has the same problem as me. The fring application has the very same problem in contact list. Salud, Rodrigo -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en-Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to scroll/move text within TextView on home screen widget ?
Hi, I tried with both options ( android:maxLines=1 android:scrollHorizontally=true ), but it didn't work Thanks This is how my Textview layout xml file looks like:- LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:orientation=vertical android:layout_gravity=center android:layout_height=wrap_content android:background=@drawable/background TextView android:id=@+id/widget_textview android:text=@string/widget_text android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center_horizontal|center android:layout_marginTop=5dip android:padding=10dip android:textColor=@android:color/black android:singleLine=true android:ellipsize=marquee android:focusable=true android:maxLines=1 android:scrollHorizontally=true/ /LinearLayout Thanks Ravi On Mon, Apr 26, 2010 at 11:24 PM, social hub shubem...@gmail.com wrote: also the animations are disabled for widgets as far as I can recall. On Wed, Apr 21, 2010 at 5:18 AM, Ravi singhai.ravin...@gmail.com wrote: Hi All, I have created a widget to be displayed on android emulator's home screen to display some long text. In my main.xml layout file i've already set TextView properties like singleLine=true, ellipsize=marquee, focusable=true etc, but still when my widget is displayed on home screen text does not move/scroll. - main.xml layout file ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent androidrientation=vertical android:layout_gravity=center android:layout_height=wrap_content android:background=@drawable/ background TextView android:id=@+id/widget_textview android:text=@string/widget_text android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center_horizontal|center android:layout_marginTop=5dip androidadding=10dip android:textColor=@android:color/black android:singleLine=true android:ellipsize=marquee android:focusable=true / /LinearLayout - end of main.xml layout file - My WidgetProvider.java file -- package com.android.weatherdata; import android.util.Log; import android.widget.RemoteViews; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; import android.app.PendingIntent; public class WeatherWidget extends AppWidgetProvider{ private static final String TAG = WeatherWidget; @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { Log.d(WEATHER-WIDGET, onUpdate(): ); final int N = appWidgetIds.length; // Perform this loop procedure for each App Widget that belongs to this provider for (int i=0; iN; i++) { int appWidgetId = appWidgetIds[i]; // Create an Intent to launch ExampleActivity Intent intent = new Intent(context, Weather.class); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0); Log.i(WEATHER-WIDGET, Create and Attach Text-view click handler ); // Get the layout for the App Widget and attach an on-click listener to the button RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.main); views.setOnClickPendingIntent(R.id.widget_textview , pendingIntent); // Tell the AppWidgetManager to perform an update on the current App Widget appWidgetManager.updateAppWidget(appWidgetId, views); } } } - End of WidgetProvider file When i add widget on home screen than only some part of text is displayed as Latest Weather Infor but i would like to write the code in such a way that the complete text should scroll till the complete string/text is displayed. Please suggest whether i need to change my layout file or what logic i can write so that i can scroll the text. Thanks in advance, Ravi -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to
[android-developers] Re: About AdSense for Mobile Applications
Google will accept your app if you got enough hitsa ( last time I checked, it was 100K daily ) Go for admob instead: http://admob.com ( and you will land by adsense once they are bought by google ) On Apr 26, 2:41 pm, s-hiro...@hirookaservice.co.jp s- hiro...@hirookaservice.co.jp wrote: Nice to meet you. It is Syougo Hirooka. I am Japanese. Hereafter, App of Google Android is made. All App is opened to the public free of charge. The beta version of AdSense for Mobile Applications It is thought that it used it. How can I obtain the beta version of AdSense for Mobile Applications? I want to try not to have done yet in Japan. And, I want to use AdSense for Mobile Applications early. Please tell me. Thank you very much. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need MMSH Protocol library
however, let me tell you, after doing all mms/mmsh.. you get wma streams... where wma codec is not supported by android On Tue, Apr 27, 2010 at 2:33 PM, brian karlo gutierrez brikz...@yahoo.comwrote: Hello everyone, Do you know any way on how to play a stream using mmsh protocol? It seems android at default cannot play mmsh streams. Any idea or inputs on how to start? Thanks, Brian -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.arijasoft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] DownloadManager - simultaneous multiple downloads
it support mutiple downloads,but i dont know how many that can go at same time. On Tue, Apr 27, 2010 at 12:59 AM, chris r chrisr0...@gmail.com wrote: Does the browser download manager supports simultaneous mutiple downloads? If yes, is there a limit on the maximum number of downloads that can go on at a time? -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Animating the background of a LinearLayout
Marc Poppleton wrote: Hello, Is there a way of being notified when a TransitionDrawable has finished its transition? I'm looking for a way to animate the background of a LinearLayout, switching it back and forth between two images thus creating a pulsating effect. TransitionDrawable works nicely, butonce. I tried stacking several 'item' in the XML defining the transition, but no luck. It justs fades from item 1 to item 2 and sits there. yes, TransitionDrawable fades in/out two Drawables and you cannot make it work in repeat mode I'm wondering if I shouldn't implement a custom Animation. i would implement custom Drawable instead Any ideas? Thanks :) FYI : target platform is 1.5 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] J2ME converting/translation to Android
motorola is giving tools for free to convert j2me to android... enjoy On Mon, Apr 26, 2010 at 1:25 AM, ricardocunha ricardocu...@gmail.comwrote: Hi, I want to know if exists a converter for a j2me source-code to android. Listen, it´s not a runner, like a midp runner for android, it ´s a converter for a source code. A tool for translate a source code for a new plataform, from j2me to android. Sorry about my English. Thank´s for any help. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.arijasoft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] custom seekbar
layer-list xmlns:android=http://schemas.android.com/apk/res/android; item android:id=@android:id/background shape corners android:radius=5dip / gradient android:startColor=#ff9d9e9d android:centerColor=#ff5a5d5a android:centerY=0.75 android:endColor=#ff747674 android:angle=270 / /shape /item item android:id=@android:id/secondaryProgress clip shape corners android:radius=5dip / gradient android:startColor=#80ffd300 android:centerColor=#80ffb600 android:centerY=0.75 android:endColor=#a0ffcb00 android:angle=270 / /shape /clip /item item android:id=@android:id/progress clip shape corners android:radius=5dip / gradient android:startColor=#4191bb android:centerColor=#bad8f2 android:centerY=0.75 android:endColor=#4c8fbe android:angle=270 / /shape /clip /item /layer-list On Mon, Apr 26, 2010 at 3:01 PM, student alsharewit...@gmail.com wrote: Hi android developer If anybody tel me how to change the color of secondary progress in seekbar. Is there possible to do it? Reply Soon Regards Student -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.arijasoft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] video conversion from .flv to .mp4
ffmpeg -i *input.flv* -f mp4 -vcodec mpeg4 -r 15 -s 320x240 -acodec aac -ac 2 -ab 64 -ar 44100 *output.mp4* On Wed, Mar 24, 2010 at 4:09 PM, Guru gurudut...@gmail.com wrote: I have been trying to convert .flv to .mp4 in the server with ffmpeg ,and stream it through the android browser:-This is the command I have been using : ffmpeg -i *input.flv* -f mp4 -vcodec mpeg4 -r 25 -b 56 -s 610x340 -acodec aac -ac 2 -ab 64 -ar 44100 *output.mp4* The output streams like a charm on the iPhone,but i have had no luck on the android G1 developer phone,has any one tried this?If so what are the parameters that I may be missing.I am not even a beginner as far as media related libraries are concerned.Any pointers will be helpful. Thanks Guru -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Thank you, Dilli Rao. M www.arijasoft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How can I use VideoView to streaming without buffering?
use low bit rate encoding... so that, even at low bandiwdths it works in the rtsp handshake, make sure, you provide codec params in DESCRIBE request/response.! On Thu, Apr 22, 2010 at 5:20 PM, Chirag chirag_vaish...@hotmail.com wrote: When you want live video streaming, second case is fine. Is there any way to reduce buffer size??? On Apr 14, 4:32 pm, MobDev developm...@mobilaria.com wrote: well most of the time buffering is just part of streaming... it's there so that a user will get a more seamless playback of the video/audio... The flipside is that it starts a little later because it has to buffer beforehand, and when it has enough data to play a specific amount of time seamlessly it will start.. Cutting out the buffering might mean frequent hickups during play... The first case might be acceptable for users (buffering) the second one definitely isn't (frequent hickups)... On 12 apr, 05:33, Kelvin sukel...@gmail.com wrote: I have a question. When I use the VideoView to play theRTSPstreaming, the VideoView will buffering some cache buffer. Is there any method to tell the VideoView DON'T buffer? My code: String VideoUri = rtsp://192.168.5.121:/live/h264; mVideoView = (VideoView) findViewById(R.id.video_view); mVideoView.setVideoURI(Uri.parse(VideoUri)); mVideoView.start(); Is anybody help me? Thanks. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.arijasoft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How can I use VideoView to streaming without buffering?
if u r using dss use sdp file with proper params to rtsp client understand the params.. key is encode low bit rate! On Tue, Apr 27, 2010 at 4:41 PM, dillirao malipeddi dillir...@arijasoft.com wrote: use low bit rate encoding... so that, even at low bandiwdths it works in the rtsp handshake, make sure, you provide codec params in DESCRIBE request/response.! On Thu, Apr 22, 2010 at 5:20 PM, Chirag chirag_vaish...@hotmail.comwrote: When you want live video streaming, second case is fine. Is there any way to reduce buffer size??? On Apr 14, 4:32 pm, MobDev developm...@mobilaria.com wrote: well most of the time buffering is just part of streaming... it's there so that a user will get a more seamless playback of the video/audio... The flipside is that it starts a little later because it has to buffer beforehand, and when it has enough data to play a specific amount of time seamlessly it will start.. Cutting out the buffering might mean frequent hickups during play... The first case might be acceptable for users (buffering) the second one definitely isn't (frequent hickups)... On 12 apr, 05:33, Kelvin sukel...@gmail.com wrote: I have a question. When I use the VideoView to play theRTSPstreaming, the VideoView will buffering some cache buffer. Is there any method to tell the VideoView DON'T buffer? My code: String VideoUri = rtsp://192.168.5.121:/live/h264; mVideoView = (VideoView) findViewById(R.id.video_view); mVideoView.setVideoURI(Uri.parse(VideoUri)); mVideoView.start(); Is anybody help me? Thanks. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.arijasoft.com -- Thank you, Dilli Rao. M www.arijasoft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Live stream latency
Arijasoft has developed android LiveStreaming SDK for Android. Its able to stream to all RTSP servers and verified with VLC and DSS ( darwin streaming server). you can request the android LiveStreaming SDK . Thanks On Wed, Apr 14, 2010 at 9:39 PM, Android dev gian23...@gmail.com wrote: Until now we only did the receive stream part of the application, not yet the send it to a server, and we did not need to deal with jni for it, as we are using the videoview/mediaplayer APIs. The videos that we used in our tests were from rtsp live streaming links that we found on the internet. What we are asking here is why does VLC show the same part of the video 2 to 10 seconds earlier than our Android application shows it, and why the other existing live streaming applications for Android that we found also have this delay. On 13 abr, 17:51, Rogério de Souza Moraes rogerio.so...@gmail.com wrote: Hi, I am trying to create a live streaming application that just send the stream to a server. The code I followed the example on sipdroid, but I am with some difficulties in showing this stream on server side. Can you give some tips how to configure the vlc to receive the video stream from android? To do your application works, did you had to deal with jni? About the delay, what kind of video format are you using? Android supports H.263 encoder and decoder as said on this page: http://developer.android.com/guide/appendix/media-formats.html Regards, Rogerio 2010/4/13 Android dev gian23...@gmail.com We are developing an Android video conferencing application. After examining some already existing live-stream applications , we came to the conclusion that all or almost all existing applications have a delay of 3 to 10 seconds. The application we are developing was tested receiving a video stream on the Android device and the same video stream on VLC at the same time.The result of the test is that VLC shows the same part of the video 2 to 10 seconds earlier than our Android application on the phone(HTC hero) depending on the rtsp link used. we havent found what is the main cause of the delay and also dont know if it is possible to reduce that delay. In our case, as it comes to video conferencing, the delay should be lower than 2 seconds at least. Do you guys have some information about the cause of the delay or even how to reduce it? -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject. -- Thank you, Dilli Rao. M www.arijasoft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Streaming video from Android handset - code examples anywhere?
Arijasoft has developed android live streaming sdk, which streams from android device to any RTSP server from android device --- rtsp server; Please contact: cont...@arijasoft.com thanks On Tue, Feb 16, 2010 at 11:01 PM, jussi69 jussiniemin...@gmail.com wrote: Hi, I'm in the process of writing an application that would be streaming live video from Android handset into a server that resides in the internet. Are there any code examples that can handle this? I've been trying to search code examples, but could not find any. I have also bought a couple of Android development books, but none of those covered this kind of functionality. Any help would be greatly appreciated. Thank you! -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.arijasoft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] custom seekbar
save this xml in drawable folder and set it as ProgressDrawable to seek bar On Tue, Apr 27, 2010 at 4:27 PM, dillirao malipeddi dillir...@arijasoft.com wrote: layer-list xmlns:android=http://schemas.android.com/apk/res/android; item android:id=@android:id/background shape corners android:radius=5dip / gradient android:startColor=#ff9d9e9d android:centerColor=#ff5a5d5a android:centerY=0.75 android:endColor=#ff747674 android:angle=270 / /shape /item item android:id=@android:id/secondaryProgress clip shape corners android:radius=5dip / gradient android:startColor=#80ffd300 android:centerColor=#80ffb600 android:centerY=0.75 android:endColor=#a0ffcb00 android:angle=270 / /shape /clip /item item android:id=@android:id/progress clip shape corners android:radius=5dip / gradient android:startColor=#4191bb android:centerColor=#bad8f2 android:centerY=0.75 android:endColor=#4c8fbe android:angle=270 / /shape /clip /item /layer-list On Mon, Apr 26, 2010 at 3:01 PM, student alsharewit...@gmail.com wrote: Hi android developer If anybody tel me how to change the color of secondary progress in seekbar. Is there possible to do it? Reply Soon Regards Student -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.arijasoft.com -- Thank you, Dilli Rao. M www.arijasoft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: convert a image into Base64 format
It looks like you're sending a POST request for every line you're encoding. If you're trying to do it in one shot, then why have a while statement? In any case, do not do it in one shot, use buffered streams instead, it could happen that your image is too big, so you're better off reading that FileInputStream wrapped with a BufferedInputStream, at the same time, prepare your HTTP connection, then, as you read from the bufferedInputStream, do your base64 encoding, and then write to a buffered output stream (to your HTTP) connection. Also, you should probably send the name of the file as an HTTP Header that you could parse on your server side. As I write this I'm also thinking that it might be useful on your server side what the file size will be. If I remember correctly everything in base64 is padded (every line should be 64 bytes), maybe you can do some math to know how big will be the encoded image in advance and send the size on a Content-Length http header. If not you can do the the conversion, save the base64 version of the image on a temporary file, and then find out the resulting size, then just send that file as you would post a regular file. On Apr 27, 1:44 am, pramod.deore deore.pramo...@gmail.com wrote: hello I want to convert a image into Base64 format and send it to server. I have one Base64 class which accept byte array and return a string.I am sending image into chunks of data.I am creating creating one chunk of 100kb. If image is less than 100 kb then image is uploaded on server, but if it is greater than 100kb (i.e when it requires more than one chunk) then it will not uploaded. I think it is because I am converting image into Base64 in parts and on server it decode it only in one shot. Now I want to send a image for conversion of Base64 only in one chunk. But if image is too large then it throw OutOfMemoryException (Obviously after all it is mobile having very limeted resources). My code is as follows import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import android.app.Activity; import android.os.Bundle; public class MicroFinalImageUp1 extends Activity { File myFile = new File(/sdcard/Images/4.jpg); int noOfChunks ; String base64String,str; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); readFile(); } public void readFile() { try { int size = (int)myFile.length(); noOfChunks = (size/102400); noOfChunks = noOfChunks+1; System.out.println (size of file is +size); System.out.println (size is+noOfChunks); byte[] byteArray = new byte[102400]; FileInputStream fstream = new FileInputStream(myFile); int bytesRead = 0; while((bytesRead = fstream.read(byteArray)) != -1) { str = new String(byteArray,0,bytesRead); base64String = Base64.encode(byteArray); sendData(0213456789_P~myimage.jpg~10~+base64String); } } catch (IOException ioe) { ioe.printStackTrace(); } } public void sendData(String line) { try { URL connectURL = new URL(MyURL); // connectURL is a URL object System.out.println (After heating url); HttpURLConnection conn = (HttpURLConnection)connectURL.openConnection(); // allow inputs conn.setDoInput(true); // allow outputs conn.setDoOutput(true); // don't use a cached copy conn.setUseCaches(false); // use a post method conn.setRequestMethod(POST); // set post headers conn.setRequestProperty(Connection,Keep-Alive); // open data output stream OutputStream dos ; dos=conn.getOutputStream(); System.out.println (Before if statement); byte[] arr = line.getBytes(); System.out.println (arr auccesfully created+arr.length); dos.write(arr); System.out.println (write to the page); System.out.println (After if statement); dos.flush(); InputStream is = conn.getInputStream(); int ch;
[android-developers] Using same sqlite database from multiple Activities and Services
I have been trying to find a discussion on the best way to handle a common sqlite database which is shared by multiple Activities (or multiple Activities and Services). This is all in the same application. It seems that if each Activity has: void onCreate() { SQLiteDatabase db = SQLiteDatabase.openDatabase(...) ... } void onDestroy() { db.close(); ... } this would be wasteful, assuming there would be N SQLiteDatabase objects with N activities that needed access to the same db. One could go about making a singleton, but who would be responsible for closing the database when the application terminates? Would it be best to extend the android.app.Application class and hook into the onTerminate() to close the database? Taking a look at NotePadv3Solution, I can't find where it closes the database - and that is a pretty straightforward example. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Deploy a build for a specific resolution
Hi Viorel, Filtering by OS is quite simple. You can specify in your application's manifest the target, minimum or maximum OS version your application needs, e.g.: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/ The market will show your app then only to phones that have the required OS version. On the resolution it's a bit more tricky. You can specify, also in the manifest, what resolutions your phone supports, e.g.: supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true android:resizeable=true/ The market will list your app then only for phones that are able to display the required size. The logic is however that the market will list the application on any phone that has the required resolution or better. I.e. if you specify that your application supports only largeScreens (largeScreen=true, everything else=false), the market will list it only on phones with a big screen. However if you specify smallScreens=true, the market will display your app to all phones with a small screen resolution or better, regardless of whether you set normalScreens and largeScreens to false or not. Best regards, Tobias On Apr 26, 8:10 pm, Viorel galanvio...@gmail.com wrote: Hello, It is possible to deploy a build on Google Market filter by the resolution and handset? For example: I want to deploy a build that works only on the devices that have 480x800 and only OS 2.x Thanks, Viorel -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Game stutters when drawing outside screen
Is the image that you are drawing exactly the same size as the screen area that you are filling? I noticed in my games that resizing of images is apparently an incredibly costly operation with Android. As soon as I draw a bitmap and the OS has to adjust the size of it, the game begins to stutter as the resize operation takes a lot of CPU time, and what's worse, it seems to take a different amount of time every frame. Don't know if you might be seeing the same effect. On Apr 26, 10:26 am, Peter peteroerlem...@gmail.com wrote: Thanks for the suggestion. I probably shoud have mentioned this in my original post. Objects sometimes leave the screen, therefore they are party drawed outside the screen until they are removed. On 320x480 screens this isn't visible, but on bigger screens it is. Drawing the image every frame solves this problem. On Apr 26, 8:53 am, ko5tik kpriblo...@yahoo.com wrote: I would say that you do not need to redraw that image part every frame - nothing happens there, and as there are no overlapping window on android there is no need to repair it. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Animating the background of a LinearLayout
Thanks, I'll see what I can do with a custom Drawable. On 27 avr, 12:53, skink psk...@gmail.com wrote: Marc Poppleton wrote: Hello, Is there a way of being notified when a TransitionDrawable has finished its transition? I'm looking for a way to animate the background of a LinearLayout, switching it back and forth between two images thus creating a pulsating effect. TransitionDrawable works nicely, butonce. I tried stacking several 'item' in the XML defining the transition, but no luck. It justs fades from item 1 to item 2 and sits there. yes, TransitionDrawable fades in/out two Drawables and you cannot make it work in repeat mode I'm wondering if I shouldn't implement a custom Animation. i would implement custom Drawable instead Any ideas? Thanks :) FYI : target platform is 1.5 -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] The function getLine1Number always return a empty. why?
perrot wrote: I was tried to get the phone number in a real device.But the function getLine1Number always return a empty string.Why? How do I get the phone number in a read device? getLine1Number() usually returns a value off of the SIM card. Sometimes this is the correct phone number. Sometimes it is an invalid value. Sometimes it is the wrong phone number -- on my personal phone, it returns the phone's original number, before an existing mobile number was ported over. I am not aware of another option, however. Even on the Settings screen, my personal phone reports the wrong number, so I have no evidence that there is a better solution hidden somewhere inside Android. Sorry! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android 2_ from Apress Now Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to add progress bar with media Player??????
up :p On 23 avr, 13:12, ulqui habibedday...@yahoo.fr wrote: up On 22 avr, 13:45, ulqui habibedday...@yahoo.fr wrote: up please i tried public void updateTime(){ int ttld=mMediaPlayer.getDuration(); int nowd=mMediaPlayer.getCurrentPosition(); int tremaning=(ttld-nowd); String s=getString(tremaning); TextView tv=(TextView) findViewById(R.id.listMusique); tv.setText(s); } but doesn t work thx a lot On 21 avr, 14:20, ulqui habibedday...@yahoo.fr wrote: hello thx a lot for your example it works perfectly ^^ you save me :p Now i will put also the duration of the track with time it s also a progressbar style or other ? thx alot for your help On 20 avr, 13:17, ulqui habibedday...@yahoo.fr wrote: ok thx a lot for your help I will try this thx ^^ On 19 avr, 16:56, Mark Murphy mmur...@commonsware.com wrote: ulqui wrote: hi i am currently working in a media player application with a progress bar. It work well but i am searching for a listener or something that will make the progressbar move each second the track is playing but have found nothing. i had tried private ProgressBar barre; private int durée; public void onClick(View view) { mMediaPlayer.start(); durée=mMediaPlayer.getDuration(); setProgress(durée); but not working You cannot merely call setProgress() once. If you want the ProgressBar to update every second, you will need to call setProgress() every second. In this sample project, I am using postDelayed() to achieve this effect: http://github.com/commonsguy/vidtry -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Something wrong here... using simplest project
Hi all, I am getting that annoying 'Something wrong here, didn't expect package name to be resumed' for the most basic Android project. Thing is, it only appears on the emulator but not on my Android 1.6 device. I don't know what to do. Is the emulator broken? Am I missing something here? This is a bare bone project, this message should not appear, right? Details and the test project can be found here http://adrianvintu.com/blogengine/post/The-Infamous-Something-wrong-here2c-didnt-expect-3cpackage-name3e-to-be-resumed-Warning.aspx Any feedback is appreciated! Many thanks, Adrian Vintu PS I did try android:configChanges=keyboardHidden|orientation but I don't want to use this trick. PPS I did take a peek at UsageStatsService.java but I did not find anything helpful :( -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Uploading large files - using setChunkedStreamingMode
Hi Carmen, I run into the same OutOfMemoryError issue when uploading video files of several MB within my app. I decided to look into this for the next version of the app. So, in the unlikely event you still haven't found a solution for this, here is how I get an answer from the server, even when using setChunkedStreamingMode: DataInputStream inStream = new DataInputStream ( conn.getInputStream() ); String oneLine, fullMsg=, msgStr; while (( oneLine = inStream.readLine()) != null) { if (DEBUG) Log.d(TAG, Server Response: + oneLine); fullMsg += oneLine + \n; } inStream.close(); I could have used a StringBuilder for fullMsg, but I have 2 lines at most coming from the server. Robert -- http://dailyroads.com/voyager/ If I upload a large file using an HttpURLConnection and setChunkedStreamingMode the file is successfully uploaded. But, I am not able to read the response from the server. If I leave out streaming mode line: conn.setChunkedStreamingMode(1000*1024); I get an out of memory error on large file, but this works well for small files and I get a response from the server. Any insights on this? Carmen // Set up URL Connection for streaming HttpURLConnection conn = (HttpURLConnection) connectURL.openConnection(); conn.setDoInput(true); conn.setDoOutput(true); conn.setUseCaches(false); conn.setChunkedStreamingMode(1000*1024); conn.setRequestMethod(POST); conn.setRequestProperty(Connection, Keep-Alive); conn.setRequestProperty(Content-Type, multipart/form-data;boundary=+boundary); // Read response // this works for small files when not in streaming mode // for large files, connection is reset by server (time outs) Reader reader = new InputStreamReader( conn.getInputStream() ); StringBuilder in = new StringBuilder( 32000 ); int x; while ( (x=reader.read()) != -1 ){ in.append( (char)x ); } -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Insert animation between video playback?
Hello I am not sure if this makes any sense. But what I really want to do is to insert some animation snippets (1-2 secs) in between my Video playback to try and give the users a transitional effect while watching videos. My questions really is whether I can do this while the videoview is running the video: mVideoView.pause(); mVideoView.setVideoPath(location of a short animation clip); mVideoView.start(); . 1-2 secs of animation playback on the same view mVideoView.setVideoPath(location of original video); mVideoView.seekTo(where I paused); mVideoView.start(); Am I shooting in the dark or is this something I can spend time trying? Thanks, Abhi -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Error getting GPS location on Droid + android 2.0 sdk
Hi all I am trying develop an application which shows user current location. To find user's current location i am using following code: import android.location.Location; import android.location.LocationListener; import android.location.LocationProvider; import android.os.Bundle; public class MyLocationListener implements LocationListener { private static double latitude; private static double longitude; public static boolean gpsAvailable = false; @Override public void onLocationChanged(Location arg0) { latitude = arg0.getLatitude(); longitude = arg0.getLongitude(); // Log.d(MyLocationListener, onLocationChanged); } @Override public void onProviderDisabled(String provider) { // Log.d(MyLocationListener, onProviderDisabled); } @Override public void onProviderEnabled(String provider) { // Log.d(MyLocationListener, onProviderEnabled); } @Override public void onStatusChanged(String provider, int status, Bundle extras) { // Log.d(MyLocationListener, onStatusChanged called); if (provider.equals(gps) status != LocationProvider.AVAILABLE) { gpsAvailable = false; // Log.d(MyLocationListener, status NOTAVAILABLE); } else { gpsAvailable = true; // Log.d(MyLocationListener, status AVAILABLE); } } public static double getLatitude() { return latitude; } public static double getLongitude() { return longitude; } } I have used this code to successfully get the GPS location on android 1.5 SDK but with 2.0 i am unable to find user's current location. I have tested this code on Droid and Magic. Please help.. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?
Maybe an audible cue that they are about to navigate back out? But, as others have said, that navigation should have no bad consequences, so the user need not be aware of it. While a home navigation in the option menu is not desirable, that would be one way to enable your users to return to the top of your application. Give this anchor activity a meaningful name and give the user a menu item so they can get to it from anywhere, if your users really need that. This article http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html covers how navigation should work. On Apr 27, 3:43 am, Xiongzh zx.zhangxi...@gmail.com wrote: Yes, I have keep in back stack what should in the back stack. But sometimes customers just want to navigate to the activity in the bottom of the stack, i.e, the first view the see, the main view I assume. They are not intent to leave my application. That's why they ask for a confirmation when they leave by back button. On Apr 27, 3:31 pm, patbenatar patbena...@gmail.com wrote: Wait I'm a bit confused... If the user wants to hit the back button to go back to the previous Activity, I'm assuming you're talking about a previous Activity within your app? This functionality is native to Android and should be maintained throughout your app. If you start an activity for result and then finish it, it will be removed from your back stack. If your users complain that the back button does not act natively [going back to the previous Activity], maybe rethink how you pass of from Activity to Activity throughout your app. If this page the user wants to return to is important enough for your users to complain about their inability to return to it, you should keep it in the back stack so they can return to it. Sorry if this is a misunderstanding of your message. -Nick On Apr 27, 12:22 am, Xiongzh zx.zhangxi...@gmail.com wrote: Some of my customers are accustomed to use the back button to go back to the previous activity. Some complained that they often navigate out of the application by pressing back button. I think it would be nice to customers if they can be warned. Thanks for your suggestion. How do think the approach I used? On Apr 27, 2:43 pm, Nicholas Albion nalb...@gmail.com wrote: My first thought was to suggest that you rethink if you really need to do this - maybe your app isn't going to be as important to your users as you may think. But then, I been frustrated in the past by games which exit in the middle of the game if you press too far right... Maybe you should provide an option (which you'd only ever ask once): Always confirm before exiting I can find some posts on how to warn user when the back button is pressed to 'quit' the application. The common answer is to catch the key down event by onKeyDown, or use startActivityForResult(). My approach is to restart the activity in onStop(). Is it a better choice? Please help to check if there's anything inappropriate. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at
[android-developers] Switching video files dynamically
HI I am trying to switch between two video files dynamically, but as soon as I set the path for the second video file during playback of the first, the app either hangs or force closes. This is what I am doing if(mVideoView.getCurrentPosition()2000) //switch to other video after 2 secs. { mVideoView.pause(); mVideoView.stopPlayback(); mVideoView.setVideoPath(/sdcard/Videos/Test.mp4); //set path for new video mVideoView.start(); mVideoView.requestFocus(); } Am I missing something? Abhi -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?
I would strongly advise against fighting the normal stack-based work- flow of android activities. If the user pressed the back-key, he/she probably wants to 'go back'. Don't fight your customer on this. Don't try to break or modify the work-flow model of Android. But, if you must, you could warn the user by implementing onKeyUp/ onKeyDown or onBackPressed methods of your activity and prevent the 'native' handling of the back-key press there. Popup a dialog. If the user says 'OK', then call 'finish()', otherwise do nothing. Still, do this if only you absolutely must! I still advise against it. On Apr 27, 3:43 am, Xiongzh zx.zhangxi...@gmail.com wrote: Yes, I have keep in back stack what should in the back stack. But sometimes customers just want to navigate to the activity in the bottom of the stack, i.e, the first view the see, the main view I assume. They are not intent to leave my application. That's why they ask for a confirmation when they leave by back button. On Apr 27, 3:31 pm, patbenatar patbena...@gmail.com wrote: Wait I'm a bit confused... If the user wants to hit the back button to go back to the previous Activity, I'm assuming you're talking about a previous Activity within your app? This functionality is native to Android and should be maintained throughout your app. If you start an activity for result and then finish it, it will be removed from your back stack. If your users complain that the back button does not act natively [going back to the previous Activity], maybe rethink how you pass of from Activity to Activity throughout your app. If this page the user wants to return to is important enough for your users to complain about their inability to return to it, you should keep it in the back stack so they can return to it. Sorry if this is a misunderstanding of your message. -Nick On Apr 27, 12:22 am, Xiongzh zx.zhangxi...@gmail.com wrote: Some of my customers are accustomed to use the back button to go back to the previous activity. Some complained that they often navigate out of the application by pressing back button. I think it would be nice to customers if they can be warned. Thanks for your suggestion. How do think the approach I used? On Apr 27, 2:43 pm, Nicholas Albion nalb...@gmail.com wrote: My first thought was to suggest that you rethink if you really need to do this - maybe your app isn't going to be as important to your users as you may think. But then, I been frustrated in the past by games which exit in the middle of the game if you press too far right... Maybe you should provide an option (which you'd only ever ask once): Always confirm before exiting I can find some posts on how to warn user when the back button is pressed to 'quit' the application. The common answer is to catch the key down event by onKeyDown, or use startActivityForResult(). My approach is to restart the activity in onStop(). Is it a better choice? Please help to check if there's anything inappropriate. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group at
[android-developers] Re: Game stutters when drawing outside screen
@ko5tik I didnt know about clipping, but that might be the solution for me. If I use clipping on the Canvas I only have to draw the image once (as you suggested in your first post). Thanks! I dont think providing a background hi-res will work, because the OS 'zooms in' on a bigger screen. Therefore, it runs exactly the same as on a 320 x 480 screen. @tobias429 The image I draw is exactly the same size as the part of the screen that is 'black' because of the scaling to a bigger resolution. I also tried to draw an image that is smaller, which reduces the stuttering, but it's always there. When running my 320 x 480 game on a bigger screen resolution I dont think the images are resized, it's just 'zoomed in'. When I get the screen resolution in my code on a 600 x 800 screen I get 320 x 533 back, which makes sense because of the difference in the screen dimension. If my presumable solution works I will post back. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] change margin of a view after it has been rendered
On Mon, Apr 26, 2010 at 3:33 PM, nou inghedebr...@gmail.com wrote: Is it possible at all? workaround? Maybe this? http://developer.android.com/intl/fr/reference/android/view/ViewGroup.MarginLayoutParams.html - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Using same sqlite database from multiple Activities and Services
I my app i there is service which is working in background and it's holding the instance of sql connection. When no activities are using the service it's destroyed and the connection is closed. On Tue, Apr 27, 2010 at 2:48 PM, goosedroid alexrhel...@gmail.com wrote: I have been trying to find a discussion on the best way to handle a common sqlite database which is shared by multiple Activities (or multiple Activities and Services). This is all in the same application. It seems that if each Activity has: void onCreate() { SQLiteDatabase db = SQLiteDatabase.openDatabase(...) ... } void onDestroy() { db.close(); ... } this would be wasteful, assuming there would be N SQLiteDatabase objects with N activities that needed access to the same db. One could go about making a singleton, but who would be responsible for closing the database when the application terminates? Would it be best to extend the android.app.Application class and hook into the onTerminate() to close the database? Taking a look at NotePadv3Solution, I can't find where it closes the database - and that is a pretty straightforward example. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to set Connection mode?
Take a look at http://developer.android.com/reference/android/net/ConnectivityManager.html . On Tue, Apr 27, 2010 at 9:38 AM, vikky vikash19852...@gmail.com wrote: Hi all, I want to provide option to users...for Connection mode with web server for services(XML).. How can i set the connection to use Wi-Fi or Direct or MDS or WAP connection mode.. Is there any way to set the connection to use SSL? plz help me.. Thanks.. Vikky -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Progress Dialog is not showing
On Sun, Apr 25, 2010 at 3:02 AM, Bipin Sutariya bipin.sutar...@gmail.comwrote: Can anyone help me in this? You're blocking the main thread with your getFriends() call which prevents the dialog from showing. You will have to put that in a separate thread, or use an AsyncTask. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to connect android phone to pc using adb
Did you install the SDK USB driver? On Apr 26, 9:38 pm, karteek kartee...@gmail.com wrote: @Rogerio My OS is ubuntu.And I already used these commands.But the device is not getting displayed under ./adb devices. @AJ I have the Driver CD that came with the phone.But,it is for Windows,the driver installer is in .exe. How do I make it work for linux? On Apr 26, 5:35 pm, Rogério de Souza Moraes rogerio.so...@gmail.com wrote: What is your S.O.? Linux, windows or MAC? if it is linux, try to enter in root shell (sudo -s), before do: ./adb kill-server ./adb start-server Regards, Rogerio 2010/4/26 AJ ajeet.invinci...@gmail.com check whether you have installed driver for galaxy-spica properly? Thanks, AJ On Apr 26, 3:19 pm, saikiran n saikiran@gmail.com wrote: Hi all, I am aunable to connect my phone to pc. I connected it with usb cable to my pc and i opend command prompt where my android sdk is there Now i typed ./adb kill-server ./adb start-server then i typed ./adb shell it displays me error that device not found I kept my mobile in usb debug mode through as follows Setting-Application-Development-USB debug mode My phone version is 1.5 samsung galaxy-spica Any help Regards, saikiran -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [OpenGL] change coodinate system
Is it possibile to change the corrdinate system of openGL? Now i have the origin in the botton-left corner, with the x-axis points to right, the y-axis points to up and the z-axis points to me. I want the origin in the botton-right corner, with the x-axis point to left, the y-axis point to up and z-axis point always to me. is it possible? How? Thanks to all. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Widget with scrollable list of items
hi, i cannot find any example of a widget showing a scrollable list of items (e.g. text) since the widget api says there is no listview, no scrollview etc.. at all, how to implement a scrollable list inside a widget? for example a list like friends-stream from HTC shows or many other widgets around do i have to code my own list-implementation for a widget or am i just too blind? anyone? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AsyncTask and progressUpdate()
Hi, I am using an AsyncTask to start out a sequence of events to retrieve data from the net, parse this data and then write it to the Database... I have divided my code into several modules, one for networking operations (which is used for retrieving the data), one for xml- parsing, and one for DB funtionality... The first one calls the second one when it's done and so on... So now I was wondering if there is some correct way to make an AsyncTask public so that everyone of those modules is able to call the progressUpdate() method to show the user what the general progress is (like placing a horizontal progress bar on 1/3 when the data has beendonwloaded, on 2/3 when the parsing is done and 3/3 when it's done writing to the DB)... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Finally, I published my Android/GAE based MMO War Game
I've done both. And yet the spam continues... On Apr 26, 7:47 pm, polyclefsoftware dja...@gmail.com wrote: You also have the option to flag an app as inappropriate, which might not be a bad idea. On Apr 26, 8:06 pm, Zsolt Vasvari zvasv...@gmail.com wrote: When you unistall the game in Android Market, you have the option to mark it as spammy and give a reason why. Instead of complaining on here, perhaphs being a bit more proactive could be helpful. On Apr 27, 4:29 am, Mike michaeldouglaskra...@gmail.com wrote: I agree with Robert. I really hope Google will take a serious look at this as it undermines the trust of the rankings and ratings associated with any app in the market. It bothers me that the spamming seems to have started more than 10 days ago, and nothing has been done. PE is now the number 9 ranked game in the market. This just shouldn't have happened, but it did. Can anyone at Google that can speak to this please do so? Regards, - Mike On Apr 26, 1:19 pm, Robert Green rbgrn@gmail.com wrote: Ok, just like how telling people to click on your ads is against the ToS, I believe that telling users to give you a 5 star rating for any reason should also be. On Apr 26, 12:57 pm, Ralf Schneider li...@gestaltgeber.com wrote: I installed the game. After installation there was a text box suggesting to give 5 stars for the game to be the first game to have a 5 star rating. I gave 1 star. I don't like to be manipulated to giva a good rating. Uninstalled it. 2010/4/26 Mike michaeldouglaskra...@gmail.com Hey Zero, Any idea on howPocketEmpireshas managed to go from a zero in the rankings to number 25 in less than a few weeks? Seems a little questionable to me based on the amount of spam being left on all of the other top 50 apps and games promoting your game. More questionable still is the near constant amount of positive 5 star feedback being left onPocketEmpiresitself with nearly the same content. I'll stop short of accusing the ownPocketEmpiresteam of purposely manipulating the Android market ratings system in order to promote the game, but it seems very suspicious and, might I say, a bit slimy and underhanded. - Michael On Apr 1, 10:03 pm, ZeroCool zero...@gmail.com wrote: Big thanks to Android Team. I couldn't have done it without the help of you guys. If anyone is interested, search 'pocketempires' or 'pe' in Android Market. -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en-Hidequoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more
[android-developers] Re: Using same sqlite database from multiple Activities and Services
On 27 Apr, 13:48, goosedroid alexrhel...@gmail.com wrote: I have been trying to find a discussion on the best way to handle a common sqlite database which is shared by multiple Activities (or multiple Activities and Services). This is all in the same application. It seems that if each Activity has: void onCreate() { SQLiteDatabase db = SQLiteDatabase.openDatabase(...) ... } void onDestroy() { db.close(); ... } this would be wasteful, assuming there would be N SQLiteDatabase objects with N activities that needed access to the same db. One could go about making a singleton, but who would be responsible for closing the database when the application terminates? Would it be best to extend the android.app.Application class and hook into the onTerminate() to close the database? Taking a look at NotePadv3Solution, I can't find where it closes the database - and that is a pretty straightforward example. -- What I did (which may not be the best solution is to call the db.close() in onPause() method and call the db.open() in any onResume() method of all activities. Be aware that during the activity creation both onCreate() and onResume() methods are called, so you need to check the db is not opened yet. Hope this helps, Federico -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask and progressUpdate()
MobDev wrote: Hi, I am using an AsyncTask to start out a sequence of events to retrieve data from the net, parse this data and then write it to the Database... I have divided my code into several modules, one for networking operations (which is used for retrieving the data), one for xml- parsing, and one for DB funtionality... The first one calls the second one when it's done and so on... So now I was wondering if there is some correct way to make an AsyncTask public so that everyone of those modules is able to call the progressUpdate() method to show the user what the general progress is (like placing a horizontal progress bar on 1/3 when the data has beendonwloaded, on 2/3 when the parsing is done and 3/3 when it's done writing to the DB)... IMHO, the AsyncTask should be the driver, not be driven, so you would not need the AsyncTask to be public. The AsyncTask should know when you are 1/3 complete, 2/3 complete, etc. because it is one calling your other modules to have work be completed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.x Programming Books: http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: J2ME converting/translation to Android
Hmm, do you have a link to those tools? On Apr 27, 6:56 am, dillirao malipeddi dillir...@arijasoft.com wrote: motorola is giving tools for free to convert j2me to android... enjoy On Mon, Apr 26, 2010 at 1:25 AM, ricardocunha ricardocu...@gmail.comwrote: Hi, I want to know if exists a converter for a j2me source-code to android. Listen, it´s not a runner, like a midp runner for android, it ´s a converter for a source code. A tool for translate a source code for a new plataform, from j2me to android. Sorry about my English. Thank´s for any help. -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. Mwww.arijasoft.com -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Widget with scrollable list of items
Hi, This is not supported by the framework. HTC achieves this by using widgets that work only with their home screen application. On Tue, Apr 27, 2010 at 8:42 AM, Timo Prill timo.pr...@googlemail.com wrote: hi, i cannot find any example of a widget showing a scrollable list of items (e.g. text) since the widget api says there is no listview, no scrollview etc.. at all, how to implement a scrollable list inside a widget? for example a list like friends-stream from HTC shows or many other widgets around do i have to code my own list-implementation for a widget or am i just too blind? anyone? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't dispatch DDM chunk 52454151: no handler defined
I am receiving this same error, on the Hello World app. Anyone know what's going on here? On Apr 2, 9:54 am, snorlaks wgruszczyn...@gmail.com wrote: Hello, Im new to android and after installing SDK and all plugins to the eclipse ad trying to run sample app (hello worl) I have an emulator opened, with all keyboard etc. with android_ thext and after few minutes there appears something like screensaver. No app is loaded. In the message tab in eclipse i Have message: Starting activity com.Android.HelloAndroid on device [2010-04-02 16:44:36 - HelloAndroid] ActivityManager: DDM dispatch reg wait timeout [2010-04-02 16:44:36 - HelloAndroid] ActivityManager: Can't dispatch DDM chunk 52454151: no handler defined [2010-04-02 16:44:36 - HelloAndroid] ActivityManager: Can't dispatch DDM chunk 48454c4f: no handler defined [2010-04-02 16:44:36 - HelloAndroid] ActivityManager: Can't dispatch DDM chunk 46454154: no handler defined [2010-04-02 16:44:36 - HelloAndroid] ActivityManager: Can't dispatch DDM chunk 4d505251: no handler defined [2010-04-02 16:44:46 - HelloAndroid] Device not ready. Waiting 3 seconds before next attempt. I was looking for an answer but didnt find anything usefull. Thanks for help -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Can't dispatch DDM chunk 52454151: no handler defined
Christopher wrote: I am receiving this same error, on the Hello World app. Anyone know what's going on here? Usually, that is a benign message, meaning the adb daemon and AVD are slightly incompatible. For example, if you have an Android 2.1 installation with the latest tools, and you try installing an app on an Android 1.5 emulator, you'll get this message. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Alarms/Wake Locks/Sound notification question
Hmm does really no one got an idea what could be wrong here? Regards On 25 Apr., 19:44, code_android_festival_way festival.s...@googlemail.com wrote: Well you are right that this will drain the battery pretty heavily. At the moment I am using the broadcast which gets fired every n seconds and gets caught by the receiver which handles the notifications in its onReceive method. But well the problem remains. I haven't found a possibility to get the sound noitification working during the wake lock. If someone has got a solution for that problem I would love hearing about it. :) On 25 Apr., 17:17, Mark Murphy mmur...@commonsware.com wrote: code_android_festival_way wrote: What do you mean exactly by that? Well I know that 30 seconds or even lower is very frequent but I would let the user decide how often he would like to be notified. I mean you may chew up a fair bit of battery life constantly cycling through processes, starting and stopping receiver and/or service components every 30 seconds. I'd use the battery blame screen in Settings to test and see how bad this is in reality. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android 2_ from Apress Now Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: change margin of a view after it has been rendered
It doesn't work. That's to change the margin at instantiation time. I already have an element on the page which I retrieve like this LinearLayout el = (LinearLayout) findViewById(R.id.xxx); I'd like to change the margin of the element which is ALREADY rendered thanks On Apr 27, 3:22 pm, TreKing treking...@gmail.com wrote: On Mon, Apr 26, 2010 at 3:33 PM, nou inghedebr...@gmail.com wrote: Is it possible at all? workaround? Maybe this?http://developer.android.com/intl/fr/reference/android/view/ViewGroup... - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HTC Incredible no default external storage?
It appears to be a serious issue for developers, see: http://www.androidauthority.com/index.php/2010/04/23/nice-htc-droid-incredible-photos-and-application-issues/ It mentions: For those of you interested, the internal 8GB of storage on the phone is mounted at /emmc (r/w mode, of course) and microSD cards still shows up normally at /sdcard as expected. I can't believe they did this. Samsung's solution was not perfect but at least it was compatible. To get to this you have to hardcode the path. And developers are probably going to be blamed for the issue. I can already see the emails and comments from users Why does this app need an SD card, I have 8GB internal storage. Why don't you do it like the apps that came with the phone. On Apr 26, 9:18 pm, Mark Murphy mmur...@commonsware.com wrote: webmonkey wrote: Does anyone gave any update on this issue? Apparently Verizon is now adding a 2GB micro SD card: http://www.engadget.com/2010/04/25/droid-incredible-comes-with-limite... I've heard squadoosh from my HTC contacts, much to my chagrin. Clearly, I need more powerful connections. It would not shock me in the least, though, if the micro SD card is the workaround for this issue -- cheaper to slap those in than it is to make firmware changes at this stage. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Online Training: 10-14 May 2010:http://onlc.com -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Layout Scaling
Hello, I would like to know that is there any way to scale the layout so that activity/application's UI fits in to provided rendering area? I come across with the WindowManager.Layout.FLAG_SCALED in SDK but don't know which is the most appropriate class in Android Framework to use it? Could anyone please give some insight on this? Thank you, Sanjay -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Layout Scaling
Sanjay wrote: Hello, I would like to know that is there any way to scale the layout so that activity/application's UI fits in to provided rendering area? I come across with the WindowManager.Layout.FLAG_SCALED in SDK but don't know which is the most appropriate class in Android Framework to use it? Could anyone please give some insight on this? Use your layout managers properly, and this happens automatically. If you feel you are not getting the results you seek, write back with more specific questions. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: change margin of a view after it has been rendered
nou wrote: It doesn't work. That's to change the margin at instantiation time. I already have an element on the page which I retrieve like this LinearLayout el = (LinearLayout) findViewById(R.id.xxx); I'd like to change the margin of the element which is ALREADY rendered That's what TreKing was pointing you toward. Step #1: Get your widget's LayoutParams Step #2: Change the margin values Step #3: Either call setLayoutParams() (on the widget) or invalidate() (on the parent) to visibly affect the change -- I'm a bit fuzzy on this step, as it's been ages since I've needed to make changes like this -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SocketChannel, broken pipe exception - Cupcake only
Some more information : I get the same thing with the emulator. The exception happens on a : socketChannel.write(output). My code previously opens the socketChannel with the InetSocketAddress of my server, allocates my buffers and serializes the data. Not sure it really helps, but here is the exception : 04-26 11:43:30.799: WARN/System.err(650): java.net.SocketException: Broken pipe 04-26 11:43:30.799: WARN/System.err(650): at org.apache.harmony.luni.platform.OSNetworkSystem.writeSocketImpl(Native Method) 04-26 11:43:30.809: WARN/System.err(650): at org.apache.harmony.luni.platform.OSNetworkSystem.write(OSNetworkSystem.java: 804) 04-26 11:43:30.819: WARN/System.err(650): at org.apache.harmony.nio.internal.SocketChannelImpl.writeImpl(SocketChannelImpl.java: 564) 04-26 11:43:30.819: WARN/System.err(650): at org.apache.harmony.nio.internal.SocketChannelImpl.write(SocketChannelImpl.java: 491) On Apr 22, 8:23 pm, moju27 moj...@gmail.com wrote: Hello :) I'm currently writing an application to communicate with my server app which is on a PC on the LAN. I'm using a SocketChannel and it causes an IO exception (brokenpipe). The weird and really problematic part is that this exception only occurs onCupcake!!! To give more details, the exception happens when I'm writing on the socket channel. The socket channel says that it's connected / bound, everything seems to be correct. Plus I see my client on the server side. By the way, I use a non blocking socket. So, I would be very happy if anyone had a clue regarding this ... I couldn't find any help anywhere else. Thanks, Morgane -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Finally, I published my Android/GAE based MMO War Game
I've had to mark about 15-20 comments in my apps as pocket empires spam over the past week. It's getting kind of tiring. On Tue, Apr 27, 2010 at 10:48 AM, Mike michaeldouglaskra...@gmail.comwrote: I've done both. And yet the spam continues... On Apr 26, 7:47 pm, polyclefsoftware dja...@gmail.com wrote: You also have the option to flag an app as inappropriate, which might not be a bad idea. On Apr 26, 8:06 pm, Zsolt Vasvari zvasv...@gmail.com wrote: When you unistall the game in Android Market, you have the option to mark it as spammy and give a reason why. Instead of complaining on here, perhaphs being a bit more proactive could be helpful. On Apr 27, 4:29 am, Mike michaeldouglaskra...@gmail.com wrote: I agree with Robert. I really hope Google will take a serious look at this as it undermines the trust of the rankings and ratings associated with any app in the market. It bothers me that the spamming seems to have started more than 10 days ago, and nothing has been done. PE is now the number 9 ranked game in the market. This just shouldn't have happened, but it did. Can anyone at Google that can speak to this please do so? Regards, - Mike On Apr 26, 1:19 pm, Robert Green rbgrn@gmail.com wrote: Ok, just like how telling people to click on your ads is against the ToS, I believe that telling users to give you a 5 star rating for any reason should also be. On Apr 26, 12:57 pm, Ralf Schneider li...@gestaltgeber.com wrote: I installed the game. After installation there was a text box suggesting to give 5 stars for the game to be the first game to have a 5 star rating. I gave 1 star. I don't like to be manipulated to giva a good rating. Uninstalled it. 2010/4/26 Mike michaeldouglaskra...@gmail.com Hey Zero, Any idea on howPocketEmpireshas managed to go from a zero in the rankings to number 25 in less than a few weeks? Seems a little questionable to me based on the amount of spam being left on all of the other top 50 apps and games promoting your game. More questionable still is the near constant amount of positive 5 star feedback being left onPocketEmpiresitself with nearly the same content. I'll stop short of accusing the ownPocketEmpiresteam of purposely manipulating the Android market ratings system in order to promote the game, but it seems very suspicious and, might I say, a bit slimy and underhanded. - Michael On Apr 1, 10:03 pm, ZeroCool zero...@gmail.com wrote: Big thanks to Android Team. I couldn't have done it without the help of you guys. If anyone is interested, search 'pocketempires' or 'pe' in Android Market. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en-Hidequoted text - - Show quoted text - -- 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
Re: [android-developers] How to get ListView behavior inside a ScrollView?
On Sun, Apr 25, 2010 at 11:14 AM, eehouse ho...@gmail.com wrote: I've tried going in two directions, each of which might work but has a ways to go still. How about option 3: don't use a listview in that same activity. Instead, provide a button or something the user can click to see the players that are currently available. That list, then, will be a listview on it's own. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WebView and Native Browser
After some further experimentation, it looks like you can in fact load gmail for mobile in a WebView by first loading: http://m.gmail.com/ (note the lack of https!) which then redirects to a login page, and you subsequently can view the main gmail page. I tried something similar with my page...still no luck. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problems with start a Map Activity from other Activity
On Thu, Apr 8, 2010 at 4:08 PM, Carlos Moreira c.lesh...@gmail.com wrote: I have problems and didn't work. What are the problems and how doesn't it work? On Mon, Apr 26, 2010 at 3:00 AM, Munki83 pwilco...@googlemail.com wrote: My mapactivity works fine when used standalone but can't be launched from a normal activity Why not? What's the problem you are seeing? You people really need to provide more information about what SPECIFIC problem you are having or you are never going to get a good response. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ListView with multiple layouts formats in it
I'm trying to create a ListView that has different layouts in it. Basically headers which contain only one string, and then items under the headers that have a string and a picture. So something like HEADER A img1 : item A1text img2 : item A2 text img3 : item A3 text HEADER B img1 : item B1text img2 : item B2 text I've created a custom ArrayAdapter, but the constructor takes a textViewResourceId which specifies what layout the items in the list will use to display. My problem is I have 2 formats. One for the header and one for the item. So in the below example, OrderAdapter is passed R.layout.header. (header is defined by header.xml). this.m_adapter = new OrderAdapter(this, R.layout.header, m_orders); I need OrderAdapter to handle R.layout.header AND R.layout.item (item.xml defines a ImageView and a textView, header.xml only defines TextView). How is this done? Thanks -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do ListViews exactly work?
Hi Pavel, Thanks for your reply! I agree with some of the information you provided. So it seems ListView is keeping track of the list state. To name a few; scroll position, visible items, user input. I guess the main idea here is in order to create a completely custom ListView we need to handle displaying the list items as the user scrolls. But to me that seems like too much work, almost re-inventing the wheel. My main concern is get and set scroll position smoothly... Thanks to your post I got a little idea to compute scroll position but not sure about setting the scroll position. I am able to scroll smoothly via dispatchTouchEven(...) but it's not accurate, might scroll little too much and sometimes not enough... I got some code for that I can get if you want to see that... -Moto On Apr 27, 3:14 am, Pal pavel.khlusti...@gmail.com wrote: Hi Moto, at this moment I'm working on my own custom ListView implementation so I can share some investigations I've found about ListView internals. 1) First of all ListView is adapter view that means that it uses adapter object to get it's child views - take a look at ArrayAdapter.getView(int, View, ViewGroup) 2) ListView at the moment only contains children that are on the screen. For example, if you have adapter with 100 records but only 5 are fit on screen ListView.getChildCount will return 5 not 100 3) each time you scroll your list it refresh dynamically its children list getting child view from adapter and/or relayouting existing views offsets I dont have best understanding now but I think ListView state is : 1) first position of child view of screen 2) offset of child view within parent view if you know first position and it offset you can simply get from adapter and draw other ones android.widget.AdapterView.getFirstVisiblePosition() will give you a position of first item within adapter data on the screen use getChildCount() and getChildAt() of ListView to get current child views so you can obtain some layout details ListView.setSelection(int) allows you to sets the currently selected item but I think It will not scroll smoothly to it... Hope this will help you Thanks, Pavel On 27 апр, 03:05, Moto medicalsou...@gmail.com wrote: I hope someone can shed some light? :( On Apr 25, 9:37 pm, Moto medicalsou...@gmail.com wrote: I'm trying to figure out how it's been designed. How it holds its items? How do I get a hold of the scrolling container? How can I know it's exact scrolling position? How can I scroll it to an exact position? I want to have all the current benefits the ListView provides plus detailed scrolling control... How about animating from x to x+100 scroll position? Maybe I need to create my own ListView? Where do I begin? Thanks for the help! -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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Device Seeding Program for Top Android Market Developers
Another day have passed... and nobody outside of US got his phone... :'( On Apr 27, 10:19 am, Richard rtaylor...@googlemail.com wrote: They're stressed because they're waiting for phones too :P On Apr 26, 10:36 pm, Lim Sim lim@gmail.com wrote: Come on. why is everybody taking this so seriously?? lighten up guys. It's a freaking joke. Why the persistent negativity?? On 26 April 2010 16:32, James O'Brien jobriena...@googlemail.com wrote: Realistically: -They are in the post, most likely shipped from US. So they've been delivered to US devs and are on the way to Europe where I guess after being sorted, they'll be distributed to our homes. -Our phones won't come with FroYo -We can't purchase a contract with Vodafone at get a refund from Google Some of this speculation is ridiculous :/ We all know its nearly 2 months since they acknowledged us as part of the program, but its a free phone so all you can do is wait. Also in reply to fhucho: Chess for Android has a better name and most likely has also been on the market for longer. Most of the times people will go for the app that is the most popular first and if it does the job won't try others. -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Lim Sim t: +44 790 4181648 f:http://www.flickr.com/photos/limsim -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ListView with multiple layouts formats in it
noid wrote: I'm trying to create a ListView that has different layouts in it. Basically headers which contain only one string, and then items under the headers that have a string and a picture. So something like HEADER A img1 : item A1text img2 : item A2 text img3 : item A3 text HEADER B img1 : item B1text img2 : item B2 text I've created a custom ArrayAdapter, but the constructor takes a textViewResourceId which specifies what layout the items in the list will use to display. My problem is I have 2 formats. One for the header and one for the item. So in the below example, OrderAdapter is passed R.layout.header. (header is defined by header.xml). this.m_adapter = new OrderAdapter(this, R.layout.header, m_orders); I need OrderAdapter to handle R.layout.header AND R.layout.item (item.xml defines a ImageView and a textView, header.xml only defines TextView). Your OrderAdapter handles this in its implementations of: getView() getItemViewType() getViewTypeCount() areAllItemsEnabled() isEnabled() -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting: http://commonsware.com/consulting -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Multiple - multiple choice dialogs/activities, questionnaire, one question at the time
On Mon, Apr 26, 2010 at 2:35 PM, John Smith jsmith...@gmail.com wrote: So, my problem is I have multiple questions, one to be presented each time, and I need to wait for one to be responded so I can ask the next one. How do I accomplish this? I would not use Dialogs for this. One thing you could do is set up a Questionnaire activity with the appropriate elements (a textview that will hold the question, a list view with the response options, and a next button). You could create an object that represents a question that has the actual question (string), list of responses (strings), and whether its single or multi-selection. In your activity you could initialize the set of questions you want to ask (from a database or something) and present the user with the first question in the list, which is simply a matter of populating the views in the activity with the question's properties and setting up the list view to be single or multi-selection and filled with the response options. You could validate to make sure something was selected before allowing the user to move on to the next question. When they hit the next button, you simply refresh the views with the next question, or show a completed screen once there are no more questions and allow them to exit the activity. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Hello~~! I have a some question that how to get airplane mode.
On Sun, Apr 25, 2010 at 11:46 PM, sumiface sumif...@gmail.com wrote: Using Settings.System.Airplane_Mode_ON? Sure? Why don't you try it and see what happens? Also, I'm sure reading the documentation will give you some answers as well. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity does not load after first run?
On Sat, Apr 24, 2010 at 5:15 PM, Valce charley.w...@gmail.com wrote: I hit run, the emulator opens up, and nothing happens at startup. Does log show any warnings or errors? Are you leaving the emulator up and running between app launches? (You should be) - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Decimal only keypad
I want to have input type for the text boxes that only takes numbers and decimal point. Input type of Number or Decimal, still brings the full keypad and the buttons are small. Input type of Phone does the trick, but not all phones have a comma or a dot to enter the decimal point. What is the best way around? Thanks in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers
On Tue, Apr 27, 2010 at 12:29 PM, Arnon arnonse...@gmail.com wrote: Another day have passed... and nobody outside of US got his phone... :'( I think it's time you all gave up, let this thread die, and move on with your lives. If the phone ever does show up it will be a nice surprise one day. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Alarms/Wake Locks/Sound notification question
I dont know what kind of alarm manager or partial wakelock system have you set up but I would surely advise you to refer to Mark's wakefulintentservice. If you can get hold of it correctly, you should not face any problem with the notification. You may require broadcast receiver only to start the alarm if the phone restarts. I would also advise you to test your app on different devices if you have any and test the results. I dont know why you have multiple notifications when you can have all in one.. I was able to implement similar structure without any issues on nexus and g1. But for droid it didn't work that well.. Also, test all the possibilities the speakers, headphones etc. I would also test the sound files if you are using a custom sound notification. On Apr 27, 11:43 am, code_android_festival_way festival.s...@googlemail.com wrote: Hmm does really no one got an idea what could be wrong here? Regards On 25 Apr., 19:44, code_android_festival_way festival.s...@googlemail.com wrote: Well you are right that this will drain the battery pretty heavily. At the moment I am using the broadcast which gets fired every n seconds and gets caught by the receiver which handles the notifications in its onReceive method. But well the problem remains. I haven't found a possibility to get the sound noitification working during the wake lock. If someone has got a solution for that problem I would love hearing about it. :) On 25 Apr., 17:17, Mark Murphy mmur...@commonsware.com wrote: code_android_festival_way wrote: What do you mean exactly by that? Well I know that 30 seconds or even lower is very frequent but I would let the user decide how often he would like to be notified. I mean you may chew up a fair bit of battery life constantly cycling through processes, starting and stopping receiver and/or service components every 30 seconds. I'd use the battery blame screen in Settings to test and see how bad this is in reality. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android 2_ from Apress Now Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Finally, I published my Android/GAE based MMO War Game
On Mon, Apr 26, 2010 at 8:06 PM, Zsolt Vasvari zvasv...@gmail.com wrote: When you unistall the game in Android Market, you have the option to mark it as spammy and give a reason why. Instead of complaining on here, perhaphs being a bit more proactive could be helpful. On Mon, Apr 26, 2010 at 8:47 PM, polyclefsoftware dja...@gmail.com wrote: You also have the option to flag an app as inappropriate, which might not be a bad idea. On Tue, Apr 27, 2010 at 10:48 AM, Mike michaeldouglaskra...@gmail.com wrote: I've done both. And yet the spam continues... Unfortunately, marking apps as spam or flagging them as inappropriate, does pretty much nothing. See this thread in the Android Market Support forum for an experiment one user ran regarding this. http://www.google.com/support/forum/p/Android+Market/thread?tid=678396591f83b4cbhl=en http://www.google.com/support/forum/p/Android+Market/thread?tid=678396591f83b4cbhl=en On Tue, Apr 27, 2010 at 12:07 PM, Justin Giles jtgi...@gmail.com wrote: I've had to mark about 15-20 comments in my apps as pocket empires spam over the past week. It's getting kind of tiring. Don't waste your time, that does nothing more than hide them from your own view. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Device Seeding Program for Top Android Market Developers
I almost agree.. But take my case, i'm only using an emulator to maintain a free popular app, and with existing fragmentation it's getting increasingly hard... I'd buy an Android phone myself if there wasn't talk about a free phone, but i wouldn't want to pay money for one and have a 'nice' surprise one day :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Dialog not responding to fill_parent setting
On Mon, Apr 26, 2010 at 8:32 PM, Jeffrey jeffisagen...@gmail.com wrote: How do I fix this? Try changing the dialog's theme? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Custom CheckBox ignoring scaleType?
I have a checkbox that I made, and I have replaced the android:button graphic with my own. It works fine except it stretches the image even though it's sized exactly the same as the checkbox. scaleType seems to be totally ignored as well. If I set the same graphic as the android:background, it looks fine. Any ideas? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Boardroom Projectors
This is probably not the best place to ask this question, but thought I would try anyway. I'm looking to do an introductory presentation to a local user group on Android programming. I was wondering if there was a way to attach or hook-up an ADP1/HTC Dream to projector or something, so that people could actually see an application running on a real device, rather than the emulator? Also, if anybody has some presentations they'd like to share, that would be great too. Thanks. -- http://www.opgenorth.net -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] RelativeLayout vertical center issue in Android OS 1.5
Hi, I found this thread http://groups.google.com/group/android-developers/browse_thread/thread/125dd6c435aa7cad/c19724a514558af7 which seems to be closed. I don't think it's an actual solution, it's more of a we needed this to work now. I am having the same issue where the centerVertical seems to center the entire layout at the center of the screen. Without it, the layout floats at the top of the screen and wraps the content correctly, however all the elements are aligned with the top of the window, I just want them to be centered vertically within the layout. Here is a sample of the layout I am using. Basically it's a button on the left and a button the right with some text in the middle between them. Ideally I would like that text in the middle of them to be center aligned with the buttons. Am I doing something wrong? This works fine on all other versions of Android OS other than 1.5. -Greg RelativeLayout android:layout_width=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; android:layout_height=wrap_content android:id=@+id/title_bar android:minHeight=0px android:background=@drawable/title_bar_bg Button android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentLeft=true android:hint=lt;leftgt; android:id=@+id/left_button android:layout_gravity=left|center_vertical android:gravity=left| center_vertical /Button TextView android:layout_height=wrap_content android:id=@+id/ title android:hint=lt;Titlegt; android:layout_gravity=center android:layout_toRightOf=@+id/left_button android:layout_toLeftOf=@+id/right_button android:gravity=center android:layout_centerVertical=true android:layout_width=fill_parent/TextView Button android:layout_height=wrap_content android:layout_width=wrap_content android:id=@+id/right_button android:hint=lt;rightgt; android:layout_gravity=right| center_vertical android:layout_alignParentRight=true/Button /RelativeLayout -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Can't dispatch DDM chunk 52454151: no handler defined
This is slightly different, but yes it is benign. When installing/launching app, the tools use java based tools on the device to perform these operation (shell command 'am' and 'pm' which stand for activityManager and packageManager). Because these apps run in VM, they show up on DDMS which then tries to connect to them like any other apps. But because those apps are very short lived they usually don't answer to some request, which ends up with a timeout and these error messages. This output is so benign in fact that we removed it from newer version of the VM. xav On Tue, Apr 27, 2010 at 9:32 AM, Mark Murphy mmur...@commonsware.com wrote: Christopher wrote: I am receiving this same error, on the Hello World app. Anyone know what's going on here? Usually, that is a benign message, meaning the adb daemon and AVD are slightly incompatible. For example, if you have an Android 2.1 installation with the latest tools, and you try installing an app on an Android 1.5 emulator, you'll get this message. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Get phone country/area code, anyone?
Hi, I know that I can get some informations from the Sim card by using the TelephonyManager class, but I couldn't find any specific method to get its country and area code, and also if the user is on roaming the area code would probably change to the location he currently is. Any help would be appreciated. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en