[android-developers] Re: Putting Android on Par with the iPhone Software
I'm pretty sure Google makes a small cut on app purchases via it's checkout fees which are included in the 30%. Beyond that unless you've got access to all the legal agreements you can't say for sure that the OHA or other organisations aren't contributing something to Googles development costs. Al. P.S. Paragraphs... they are your friend... really. Schiffres wrote: This is a message to all other Android Developers, bloggers, or interest groups. Unfortunately, it is rather evident that, for a myriad of reasons, Android as an OS simply isn't on the same level as the iPhone in what it offers, what it can do, how it runs, etc. etc. As a full supporter of most everything Google endeavors to take on, I am gleeful to see Android, an open source competitor challenging the iPhone. Google has brilliant engineers, a plethora of resources, and the flexibility to test and experiment wacky ideas that become the technological standard of tomorrow. So why isn't Android commensurate to the iPhone? My opinion is that it's because Google doesn't make any, even a small stream, of revenue from Android, which is a major disincentive and makes it economically infeasible and to pour resources into it to make it the best and most competitive possible OS it can be. While I hope Google addresses this issue in the future, we need to make it easy for the current Google engineers to create a competitive project, and that means, in the true spirit of open source, we must contribute. So developers, educated Android savvy technological wizards, come together, and below post everything you would want to see in an Android update to both put Android on par with the iPhone, and push it beyond. Put ideas that well up on the brink of your imagination below, think up the next big idea, the brilliant feature that'll make Android the unparalleled smart phone champion. Once Android is more popular, better phones will be made for it, it'll have more developers, and Google will invest more money in it, but we need to give it that first push. Below, use our collective wisdom and create a single thread that will document all the features, all the tools, the code libraries, etc. etc. that we want to see in Android, and when our thread gets large enough, Google won't be able to help but notice, and address our needs, our desires, and our demands! You must be the change you wish to see in the world - Mahatma Gandhi -- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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] How to provide image file as an sd card
Hello , I am using camera to capture snapshots. But i am unable to view taken pictures location. I am also unable to browse sdcard directory using DDMS in eclipse. --~--~-~--~~~---~--~~ 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] Jetty Comet Library
Hi, How are you guys doing with the Jetty+Comet? I'm getting the exception below, consistently. This is on a physical ADP1/1.1, on WiFi. This is using CONNECTOR_SOCKET mode. CONNECTOR_SELECT_CHANNEL mode does not work at all. Another problem is that this exception is in a thread and is not visible to the Comet code. W/System.err( 781): 2009-03-18 04:45:29.995::WARN: EXCEPTION on httpexcha...@1128774872=post//10.9.7.90:8080/cometd/cometd/connect#4 W/System.err( 781): org.mortbay.jetty.EofException W/System.err( 781):at org.mortbay.jetty.HttpParser.parseNext (HttpParser.java:319) W/System.err( 781):at org.mortbay.jetty.HttpParser.parseAvailable (HttpParser.java:212) W/System.err( 781):at org.mortbay.jetty.client.HttpConnection.handle (HttpConnection.java:271) W/System.err( 781):at org.mortbay.jetty.client.SocketConnector$1.run (SocketConnector.java:72) W/System.err( 781):at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:520) W/System.err( 781): Caused by: java.net.SocketException: The operation timed out W/System.err( 781):at org.apache.harmony.luni.platform.OSNetworkSystem.receiveStreamImpl (Native Method) W/System.err( 781):at org.apache.harmony.luni.platform.OSNetworkSystem.receiveStream (OSNetworkSystem.java:230) W/System.err( 781):at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java: 550) W/System.err( 781):at org.apache.harmony.luni.net.SocketInputStream.read (SocketInputStream.java:87) W/System.err( 781):at org.mortbay.io.ByteArrayBuffer.readFrom (ByteArrayBuffer.java:382) W/System.err( 781):at org.mortbay.io.bio.StreamEndPoint.fill (StreamEndPoint.java:107) W/System.err( 781):at org.mortbay.jetty.HttpParser.parseNext (HttpParser.java:290) W/System.err( 781):... 4 more -- Forwarded message -- From: don.fergu...@gmail.com don.fergu...@gmail.com Date: Mar 20 2008, 11:18 pm Subject: Help with ClassNotFoundException and JSONMarshaller To: Android Developers FWIW, I am using the JSON implementation that comes withJetty(I am not runningJettyon the device -- just the client COMET and JSON libraries), and aside for a couple of bugs that I had to work around, have been happy with it. Regarding your specific problem, you might be encountering: http://code.google.com/p/android/issues/detail?id=173 Good luck! -Don On Mar 18, 8:20 pm, SapperSix sapper...@gmail.com wrote: I received an answer to this query in the JSONMarshaller group. snip The JsonMarshaller library uses currently bytecode inspection to create the Marshaller which may prevent it from running on an Android platform... I'm not too sure about what J2ME/Android supports. On the specific problem you are experiencing, it seems the PathClassLoader (I believe this is a specific Android ClassLoader) is not able to find the json libarry's jar. We have plans to remove the dependency on ASM which would lighten JsonMarshaller and potentially make it more compatible. This library is nonetheless developed as a server side library. You would probably want to use something lighter (e.g. custom parser) for a mobile app. /snip On Mar 18, 3:27 pm, SapperSix sapper...@gmail.com wrote: I was trying out the JSONMarshaller library (http://code.google.com/p/ jsonmarshaller/) on Android and I'm running up against a strange error. I want to use JSONMarshaller because the server-side of an app whose services I want to use includes JSONMarshaller entities and I would like to leverage those entities on the Android client. (1) I added all the lib references required tp my java build path in Eclipse + json-0.10.jar + asm-2.2.3,jar + asm-attrs-2.2.3,jar + asm-commons-2.2.3,jar + google-collect-snapshot-20071022.jar (2) Everything builds fine. (3) However, at runtime, when I try to instantiate a marshaller, I get the following error in logcat: D/dalvikvm( 807): Exception Ljava/lang/ClassNotFoundException; from PathClassLoader.java:205 not caught locally D/dalvikvm( 807): NOTE: loadClass 'com.twolattes.json.Entity' 0x400aaa90 threw an exception D/dalvikvm( 807): Exception Ljava/lang/NoClassDefFoundError; from DescriptorFactory.java:29 not caught locally D/dalvikvm( 807): Exception Ljava/lang/NoClassDefFoundError; from ZygoteInit.java:1555 not caught locally D/AndroidRuntime( 807): Shutting down VM I'm confused, because if I browse the json-0.10.jar, I see 'com.twolattes.json.Entity'. Is there another project property I'm missing somewhere? I'm using m5- rc15 and Eclipse with ADT 0.4.0.200802081635 Any help would be greatly appreciated. Thanks, David BTW, I'm not convinced JSONMarshaller is the way to go. It added around 125kb of additional baggage to my APK file. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to
[android-developers] Re: need help on --core-library
hi stoyan, I am working for a company that needs an android client for their web application. because the server is coded nicely, the first try is going to be a serialized server object on android. but the server uses jdk 1.6 and therefor some classes that android doesnt support like java.bean. because these beans are transient I just need an empty class inside android. but the problem is to compile it. any suggestions? by the way: what is freetts? greetings, darolla 2009/3/17 Stoyan Damov stoyan.da...@gmail.com: I'll try to pull a magic now and guess what you're trying to do -- are you trying to get FreeTTS to work in your app? :P On Tue, Mar 17, 2009 at 6:01 PM, DaRolla netzprofi.ma...@googlemail.com wrote: hello, I need to build a java.beans.PropertyChangeListener which is part of JDK (rt.jar) but not part of Dalvik. Trying to copy the sources to my Application I get this: Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message. My solution: 1) build a core library with consisting out of java.beans.PropertyChangeListener 2) integrate that library (jar?) into my application. My question: - how can I build a core library using eclipse? greetings, darolla --~--~-~--~~~---~--~~ 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] Problem with detecting a shake movement
I use OpenIntents SensorSimulator In code i wrote public float accelerometer_shake_threshold = 1.2f; static final int ACCELEROMETER_FLOAT_TO_INT = 1024; int mACCELEROMETER_SHAKE_THRESHOLD_SQUARE; public void onSensorChanged(int sensor, float[] values){ if( sensor == SensorManager.SENSOR_ACCELEROMETER){ int t = (int)(ACCELEROMETER_FLOAT_TO_INT * accelerometer_shake_threshold); mACCELEROMETER_SHAKE_THRESHOLD_SQUARE = t * t; android.util.Log.i(Answer,String.valueOf (values[0])); android.util.Log.i(Answer,String.valueOf(values[1])); android.util.Log.i(Answer,String.valueOf(values[2])); int ax = (int)(ACCELEROMETER_FLOAT_TO_INT * values[0]); int ay = (int)(ACCELEROMETER_FLOAT_TO_INT * values[1]); int az = (int)(ACCELEROMETER_FLOAT_TO_INT * values[2]); int len2 = ax * ax + ay * ay + az * az; android.util.Log.i(LEN is,Integer.toString(len2)); if (len2 mACCELEROMETER_SHAKE_THRESHOLD_SQUARE) { Log.v(TAG,Force Detected); TextView tv=(TextView)findViewById (R.id.found); tv.setText(ViolentForce Detected); } I could not get the desired result ,the value of len2 is seems to be constant for any movement I give through the sensor simulator (Yaw,Roll and Pitch).If the len2 is constant value then what could be the purpose of the if statement . I just blindly followed the code snippet given under Detecting Shake With The Accelerometer( http://www.anddev.org/example_detecting_-und-quotshake-und-quot_with_the_accelerometer-t4451.html ) . In few examples i came across the len2 values is compared with cube root of gravity(being a newb its Greek to me ) Help me out to know the concept to detect a violent shake .What kind of physics is used to detect this sense . 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: Simple Cursor Adapter - List View
You should create your own adapter (probably derived from SimpleCursorAdapter) that does this in its bindView method. On Tue, Mar 17, 2009 at 11:57 PM, Markiv vikramshe...@gmail.com wrote: I have table with 3 columns which is binded to an XML document with three text views. String[] from = new String[]{A,B,C}; int [] to = new int[] {R.id.a,R.id.b,R.id.c}; Where R.id.a, R.id.b, R.id.c - TextView Depending on the value store in the third column, I want to change the text color in R.id.c How should, I go about with this. This is what I have so far : SimpleCursorAdapter entry = new SimpleCursorAdapter(this, R.layout.addrow, vCursor , from , to); setListAdapter(entry); If you can provide me an example, that would be really 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: need help on --core-library
FreeTTS is a text-to-speech engine. It's only dependency is *again* java.beans.PropertyChangeListener. I've tried compiling with --core-library using Eclipse but no matter what I did I wasn't able to pass that parameter to the Android tools (can't remember which one required it). I managed to compile using the command-line tools but haven't tried running the app because in the end I've given up because of the big voice files required for FreeTTS. Bottom line is, I can't really help you, but try compiling on the command line OR try creating an IntelliJ IDEA project and modify it's build script -- I can't guarantee it will work though. Cheers On Wed, Mar 18, 2009 at 9:51 AM, Marco Schmitz netzprofi.ma...@googlemail.com wrote: hi stoyan, I am working for a company that needs an android client for their web application. because the server is coded nicely, the first try is going to be a serialized server object on android. but the server uses jdk 1.6 and therefor some classes that android doesnt support like java.bean. because these beans are transient I just need an empty class inside android. but the problem is to compile it. any suggestions? by the way: what is freetts? greetings, darolla 2009/3/17 Stoyan Damov stoyan.da...@gmail.com: I'll try to pull a magic now and guess what you're trying to do -- are you trying to get FreeTTS to work in your app? :P On Tue, Mar 17, 2009 at 6:01 PM, DaRolla netzprofi.ma...@googlemail.com wrote: hello, I need to build a java.beans.PropertyChangeListener which is part of JDK (rt.jar) but not part of Dalvik. Trying to copy the sources to my Application I get this: Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message. My solution: 1) build a core library with consisting out of java.beans.PropertyChangeListener 2) integrate that library (jar?) into my application. My question: - how can I build a core library using eclipse? greetings, darolla --~--~-~--~~~---~--~~ 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: is there an andriod simulator?
Check the tools folder in SDK On Wed, Mar 18, 2009 at 10:42 AM, Marco Nelissen marc...@android.comwrote: The emulator is included in the SDK. On Tue, Mar 17, 2009 at 3:09 PM, ytbryan ytbr...@gmail.com wrote: hi all, may i know is there an andriod simulator ? like how the iphone simulator works? thank you regards bryan --~--~-~--~~~---~--~~ 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] How to get LayoutInflater from other apk?
Hi, guys, I want to get an xml layout file(in other apk that has been installed in the emulator) to add to my screen, I use getPackageManager ().getResourcesForApplication(name).getLayout(id) to get the xml file, and then inflater to my screen, that is ok. But it can't resolve the string ids and drawable ids in the xml file. so I want to get the LayoutInflater from that apk, but when I tried to do this, I got a nullpoiterexception, I think it is because I never start that apk(activity). how should I do? Am I going on the right way? 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: Specifying Android project dependencies (in Eclipse)
Why nobody answer it? I meet the same question. Have you resolved it? Henrik Gustafsson wrote: Hi all! This was originally posted as a StackOverflow question ( http://stackoverflow.com/questions/549451 ), but following advice from #android I will also post the question here. I have two Android projects, a 'library project' containing a custom layout, and an 'application project' containing an application which uses the layout. Everything seems to build and execute fine, except that the visual layout editor throws a ClassNotFoundException (which I assume is a bug in the plug-in), but when I try to start to make use of the attributes I defined for the custom layout in the xml, the build fails. That is; this works: ?xml version=1.0 encoding=utf-8? se.fnord.android.layout.PredicateLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=wrap_content android:layout_height=wrap_content android:text=asdfasdf / /se.fnord.android.layout.PredicateLayout Whereas this does not: ?xml version=1.0 encoding=utf-8? se.fnord.android.layout.PredicateLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:fnord=http://schemas.android.com/apk/res/se.fnord.android android:layout_width=fill_parent android:layout_height=fill_parent TextView fnord:layout_horizontalSpacing=1px android:layout_width=wrap_content android:layout_height=wrap_content android:text=asdfasdf / /se.fnord.android.layout.PredicateLayout The build fails with a message from aapt: ERROR No resource identifier found for attribute 'layout_horizontalSpacing' in package 'se.fnord.android' The resource identifier does exist in the R-file and attrs.xml contained the library project, and if I put the layout code and resources directly in the application project everything works fine. The layout_horizontalSpacing attribute (and layout_verticalSpacing) is a custom attribute used in the PredicateLayout.LayoutParam class to specify the distance to the next widget. So far I've tried the standard eclipse ways by specifying project references and build path project dependencies. I was also told to try the uses-library tag in the application manifest, which did not help. So, what do I need to do for the references in the xml-file to work? I don't know if it's relevant, but the 'library' manifest looks like this: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/ android package=se.fnord.android android:versionCode=1 android:versionName=1.0.0 /manifest The 'application' manifest like this: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/ android package=se.fnord.appname android:versionCode=1 android:versionName=1.0.0 application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.AppName android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest 'se.fnord.android.layout.PredicateLayout', btw, is a cleaned-up version of the layout posted at http://stackoverflow.com/questions/549451 . Thanks! // Henrik --~--~-~--~~~---~--~~ 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: Creating a JAR that contains references
Hi, Dianne. So we can't include an extern jar file that has its own resource file? Is there other way if I want to reference a custom view class which has its customized properties defined in xml and not in my project? Thanks stephen.lloyd.h...@googlemail.com wrote: I'm not after resources from within another JAR, I have resources within my JAR that I want to use within my JAR so it's all self contained. If you have a look at Android.jar you'll see that there are indeed a number of images etc. under the resources folder. Why are they there if resources can't exist with a jar? How are those resources used with Android.jar? I take it there's some other mechanism used to read them when they need to be used? On Jan 17, 2:53 am, Dianne Hackborn hack...@android.com wrote: You can't do that, resources can't be linked from another .jar. (Actually resources can't even exist in a .jar, that is a key part of what makes an .apk and .apk and not just a plain .jar). On Fri, Jan 16, 2009 at 2:32 PM, stephen.lloyd.h...@googlemail.com stephen.lloyd.h...@googlemail.com wrote: Hi, I've been trying to create (and include in a new application) a JAR file, I've seen all the information on the web regarding how to do this in Eclipse. All seems to go well and I can add my newly created JAR and even debug into it from an app that I've added it to. The problem I am having is that the R.Java file that is included in the JAR (from my original app that I generated the JAR from) seems to point to rubbish/incorrect data when I run the app. I have a couple of images and text files that I need to reference from within my JAR and I am using the usual 'R.raw.settings' etc and it seems to pickup the correct value from the R.Java that gets included in the JAR. I'm under the impression that these values are no longer valid when the JAR is included in the new application and it's returning data from some random place? Does anyone happen to know how I can create a JAR file that I can include resources in and how to reference them etc? I'm sure this must actually be possible as Android.jar contains a number of images that must be used internally? Thanks, Steve -- Dianne Hackborn Android framework engineer hack...@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: General Question to Google Team - Pin favourite threads
Yes, but therefore I need to send copies to my mail account. I want it to be separated. Ciao, Tommaso On 18 Mrz., 09:50, Anonymous Anonymous firewallbr...@googlemail.com wrote: I think You can use the feature Labels if you use gmail :) , i use the same .. On Wed, Mar 18, 2009 at 2:19 PM, Tommaso nuccio.tomm...@gmail.com wrote: Hi Google-Team, I was wondering, why there is no functionality to pin threads a user is interested in. As there is such a high traffic on these groups, it takes time to find the threads I answered to or some I am interested to see how the problem is solved. Sometimes you don't remember the naming of the subject or the user that wrote it and then searching becomes annoying. An easy way would be to pin some threads! I mean the right side is nearly empty an everybody is authenticated when she uses the group, not to just read. Many thanks in advance for reading. Ciao, Tommaso --~--~-~--~~~---~--~~ 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] General Question to Google Team - Pin favourite threads
Hi Google-Team, I was wondering, why there is no functionality to pin threads a user is interested in. As there is such a high traffic on these groups, it takes time to find the threads I answered to or some I am interested to see how the problem is solved. Sometimes you don't remember the naming of the subject or the user that wrote it and then searching becomes annoying. An easy way would be to pin some threads! I mean the right side is nearly empty an everybody is authenticated when she uses the group, not to just read. Many thanks in advance for reading. Ciao, Tommaso --~--~-~--~~~---~--~~ 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: General Question to Google Team - Pin favourite threads
I think You can use the feature Labels if you use gmail :) , i use the same .. On Wed, Mar 18, 2009 at 2:19 PM, Tommaso nuccio.tomm...@gmail.com wrote: Hi Google-Team, I was wondering, why there is no functionality to pin threads a user is interested in. As there is such a high traffic on these groups, it takes time to find the threads I answered to or some I am interested to see how the problem is solved. Sometimes you don't remember the naming of the subject or the user that wrote it and then searching becomes annoying. An easy way would be to pin some threads! I mean the right side is nearly empty an everybody is authenticated when she uses the group, not to just read. Many thanks in advance for reading. Ciao, Tommaso --~--~-~--~~~---~--~~ 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: a way to make signal processing
ok, still , i know it is possible to record to a file from the microphone is it possible to read this file as raw data ? alex 2009/3/18 Marco Nelissen marc...@android.com On Tue, Mar 17, 2009 at 4:09 PM, Maisonobe.A (MaaKs) alexma...@gmail.com wrote: Hello, I'm looking for a way to work on sound . I would need to get the mic input as raw data and to perform some test , is there a way to get raw sound data ? No, not currently. --~--~-~--~~~---~--~~ 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: Disk Activity and Disk Usage
I found following as the output of diskstats: Field 1 -- # of reads issued Field 2 -- # of reads merged, Field 3 -- # of sectors read Field 4 -- # of milliseconds spent reading Field 5 -- # of writes completed field 6 -- # of writes merged Field 7 -- # of sectors written Field 8 -- # of milliseconds spent writing Field 9 -- # of I/Os currently in progress Field 10 -- # of milliseconds spent doing I/Os Field 11 -- weighted # of milliseconds spent doing I/Os But I don't know yet what are these names: ram0-15, loop0-7, nbd0-15, mtdblock0-3 and mmcblk Yes maybe I know what is RAM or MMCBLK but what about the others ? On Mar 18, 10:14 am, rezar rraw...@gmail.com wrote: Can any body help me how to measure Disk Activity and Disk Usage on android ? Unfortunately iostat is not available in Android. I would like to monitor Data read and Data written for disk activity and Utilized and Free space for Disk Usage. I found diskstats but I don't know how to read 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 at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Can i convert AMR to MP3 OR WAV in my activity?
Hi Android Experts, i want to convert recorded AMR sound into mp3 or WAV within my activity, is there any method or package i can use? i am using this activity for recording: Intent intent = new Intent (MediaStore.Audio.Media.RECORD_SOUND_ACTION); startActivityForResult(intent, SELECT_AUDIO); this gives me amr content uri but my question is , how can i get the mp3/wav uri? i posted this question long ago but still no solution, please help me as i am really stuck on this. 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] Disk Activity and Disk Usage
Can any body help me how to measure Disk Activity and Disk Usage on android ? Unfortunately iostat is not available in Android. I would like to monitor Data read and Data written for disk activity and Utilized and Free space for Disk Usage. I found diskstats but I don't know how to read 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 at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Accessing the internet.
Thanks for the help guys. I'm still having problems reading from the internet and also displaying the retreived content on a text file. Do you think it's a code problem or a firewall problem or am i missing some bit of code in the manifest to access the internet? On Mar 11, 7:19 am, ku fu panda ufinity0...@gmail.com wrote: public static InputStream getInputStreamWithHttpClient( String resourceURL ) throws IOException { // Create an instance of HttpClient. HttpClient client = new DefaultHttpClient(); // Create a method instance. HttpGet method = new HttpGet( resourceURL ); method.getParams().setIntParameter( CoreConnectionPNames.CONNECTION_TIMEOUT, CONNECTION_TINEOUT ); method.getParams().setIntParameter ( CoreConnectionPNames.SO_TIMEOUT, CONNECTION_TINEOUT ); method.getParams().setIntParameter( CoreConnectionPNames.SOCKET_BUFFER_SIZE, IO_BUFFER_SIZE ); method.getParams().setIntParameter( ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, 5 ); method.getParams().setIntParameter( ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 10 ); HttpResponse response = null; InputStream input = null; try { response = client.execute( method ); HttpEntity entity = response.getEntity(); input = entity.getContent(); } catch ( IOException e ) { Log.d( TAG, Can not connect to the target server! ); throw new IOException(); } finally { Log.d( TAG, close Expired Connections! ); client.getConnectionManager().closeExpiredConnections(); } return input; } On Mar 10, 12:21 pm, dillirao malipeddi dillir...@arijasoft.com wrote: public String get_DAtaFromWeb(String url_toconnect)//throws Exception { int connection_Timeout = 1;// 10sec HttpParams my_httpParams = new BasicHttpParams();; HttpConnectionParams.setConnectionTimeout(my_httpParams,connection_Timeout); HttpConnectionParams.setSoTimeout(my_httpParams,connection_Timeout); HttpClient httpclient = new DefaultHttpClient(my_httpParams); //get http client with given params String responseBody = null; try { HttpGet httpget = new HttpGet(url_Pls); if(myDebug.debug_Log)Log.i(CONTENT GET,executing request + httpget.getURI()); // Create a response handler ResponseHandlerString responseHandler = new BasicResponseHandler(); responseBody = httpclient.execute(httpget, responseHandler); } catch(Exception e) { if(myDebug.debug_Log)Log.i(Exception,Http Connection+e.toString()); } String Content = responseBody; if(myDebug.debug_Log)Log.i(,-START---); if(myDebug.debug_Log)Log.i(Response,+Content); if(myDebug.debug_Log)Log.i(,---END-); return Content; } On Mon, Mar 9, 2009 at 4:53 PM, murphy howt...@hotmail.com wrote: Hi all, Was just wondering if anyone had any code samples about writing and retrieving data from a website? I am currently creating an application which populates its textviews by accessing information from an online source. Thanks, Murphy. -- Dilli Rao. M- 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 -~--~~~~--~~--~--~---
[android-developers] Re: Accessing the internet.
Sorry, displaying in a TextView, not text file. On Mar 18, 10:05 am, murphy howt...@hotmail.com wrote: Thanks for the help guys. I'm still having problems reading from the internet and also displaying the retreived content on a text file. Do you think it's a code problem or a firewall problem or am i missing some bit of code in the manifest to access the internet? On Mar 11, 7:19 am, ku fu panda ufinity0...@gmail.com wrote: public static InputStream getInputStreamWithHttpClient( String resourceURL ) throws IOException { // Create an instance of HttpClient. HttpClient client = new DefaultHttpClient(); // Create a method instance. HttpGet method = new HttpGet( resourceURL ); method.getParams().setIntParameter( CoreConnectionPNames.CONNECTION_TIMEOUT, CONNECTION_TINEOUT ); method.getParams().setIntParameter ( CoreConnectionPNames.SO_TIMEOUT, CONNECTION_TINEOUT ); method.getParams().setIntParameter( CoreConnectionPNames.SOCKET_BUFFER_SIZE, IO_BUFFER_SIZE ); method.getParams().setIntParameter( ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, 5 ); method.getParams().setIntParameter( ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 10 ); HttpResponse response = null; InputStream input = null; try { response = client.execute( method ); HttpEntity entity = response.getEntity(); input = entity.getContent(); } catch ( IOException e ) { Log.d( TAG, Can not connect to the target server! ); throw new IOException(); } finally { Log.d( TAG, close Expired Connections! ); client.getConnectionManager().closeExpiredConnections(); } return input; } On Mar 10, 12:21 pm, dillirao malipeddi dillir...@arijasoft.com wrote: public String get_DAtaFromWeb(String url_toconnect)//throws Exception { int connection_Timeout = 1;// 10sec HttpParams my_httpParams = new BasicHttpParams();; HttpConnectionParams.setConnectionTimeout(my_httpParams,connection_Timeout); HttpConnectionParams.setSoTimeout(my_httpParams,connection_Timeout); HttpClient httpclient = new DefaultHttpClient(my_httpParams); //get http client with given params String responseBody = null; try { HttpGet httpget = new HttpGet(url_Pls); if(myDebug.debug_Log)Log.i(CONTENT GET,executing request + httpget.getURI()); // Create a response handler ResponseHandlerString responseHandler = new BasicResponseHandler(); responseBody = httpclient.execute(httpget, responseHandler); } catch(Exception e) { if(myDebug.debug_Log)Log.i(Exception,Http Connection+e.toString()); } String Content = responseBody; if(myDebug.debug_Log)Log.i(,-START---); if(myDebug.debug_Log)Log.i(Response,+Content); if(myDebug.debug_Log)Log.i(,---END-); return Content; } On Mon, Mar 9, 2009 at 4:53 PM, murphy howt...@hotmail.com wrote: Hi all, Was just wondering if anyone had any code samples about writing and retrieving data from a website? I am currently creating an application which populates its textviews by accessing information from an online source. Thanks, Murphy. -- Dilli Rao. M- Hide quoted text - - Show quoted text -- 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 -~--~~~~--~~--~--~---
[android-developers] Set Screen Orientation of a Tab
Hello, I would a Tab (in a TabHost) to have a Landscape orientation while the activity with the TabHost is in Portrait orientation, is that possible (if so how)? I tried setting the orientation of the Activity displayed in the tab in the Manifest but it didn't work. Any help will be much obliged! 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 -~--~~~~--~~--~--~---
[android-developers] Re: Re-register AlarmManager events on upgrades
Thanks that sounds good --~--~-~--~~~---~--~~ 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 i convert AMR to MP3 OR WAV in my activity?
No, there is no built-in package to convert from AMR to MP3 or WAVE. If you want to do this in the current SDK, you'll need to write your own code to do the conversion. On Mar 18, 2:44 am, zeeshan genx...@gmail.com wrote: Hi Android Experts, i want to convert recorded AMR sound into mp3 or WAV within my activity, is there any method or package i can use? i am using this activity for recording: Intent intent = new Intent (MediaStore.Audio.Media.RECORD_SOUND_ACTION); startActivityForResult(intent, SELECT_AUDIO); this gives me amr content uri but my question is , how can i get the mp3/wav uri? i posted this question long ago but still no solution, please help me as i am really stuck on this. 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: Mp3 file read problem in Real device (G1)
Just in case there is any confusion, your APK is not going to contain the MP3 files that were loaded on the virtual SD card in the emulator. If you want to play MP3's on the device's SD card, you need to install them there, either by copying them from your workstation, downloading them from the Internet, or by creating them within your program. On Mar 17, 10:49 pm, jayesh.thadani jayesh.thad...@gmail.com wrote: Hello friends, I have demo music player which reads mp3 files from virtual memory card of emulator I pass path something like this /sdcard and its working fine, at a time of reading MP3 from virtual memory card of emulator. But when this .apk is installed on real device G1, application is not been able to find any MP3 files from memory card of G1 device, Can any one suggest for this issue on real device G1, or can provide a code on how to read files from Memory card of G1. Thanks, Jayesh --~--~-~--~~~---~--~~ 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: Re-register AlarmManager events on upgrades
On Wed, Mar 18, 2009 at 4:36 AM, Dianne Hackborn hack...@android.com wrote: Fwiw, cupcake will add a new field to PACKAGE_ADDED to tell you if this was due to an update, and allow this broadcast to be received by the app to restart itself. This cupcake thing very much reminds me of Duke Nukem Forever... --~--~-~--~~~---~--~~ 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] Problems with NotificationManager
Hi, In my app I use several different notifications, which require different actions. By default the notification manager loads the main activity, when users select a notification. How can I change that so different notifications prompt different actions. I've been studying the related APIs, however, could not find a way of detecting which notification a user has selected. Any thoughts? 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: Putting Android on Par with the iPhone Software
Carl, I'm going to put the other side of the argument so we can look at this in a balanced way; Apparently 96% of submitted apps get accepted to the iPhone store, and Market also includes a we can pull it if we want to clause http://www.android.com/us/developer-distribution-agreement.html includes things like; - Google reserves the right to display Products to users in a manner that will be determined at Google’s sole discretion (Clause 4.9) - Google reserves the right to suspend and/or bar any Developer from the Market at its sole discretion. (Clause 7.2) As for multitasking, I can see Apples argument making sense. Running two programs will drain the battery faster than running one, and even games consoles until recently went into a nigh-on single tasking mode to ensure the best user experience. Al. Carl Whalley wrote: These killer features the iPhone has that Android doesn't ... do they include multitasking, MMS, forwarding SMS, or even such advanced features as cut n paste? How about the excitement developers go through wondering if the apps they spent months/years on will be allowed on the only way they can be installed to that platform? And don't forget that once accepted, thats not the end of it, at any time it can be withdrawn in the future for any reason. -- Android Academy: http://www.androidacademy.com Linked In? Join the largest Google Android group (2000+): http://www.linkedin.com/groupInvitation?gid=76373 On Mar 18, 1:31 am, Schiffres schifty...@gmail.com wrote: This is a message to all other Android Developers, bloggers, or interest groups. Unfortunately, it is rather evident that, for a myriad of reasons, Android as an OS simply isn't on the same level as the iPhone in what it offers, what it can do, how it runs, etc. etc. As a full supporter of most everything Google endeavors to take on, I am gleeful to see Android, an open source competitor challenging the iPhone. Google has brilliant engineers, a plethora of resources, and the flexibility to test and experiment wacky ideas that become the technological standard of tomorrow. So why isn't Android commensurate to the iPhone? My opinion is that it's because Google doesn't make any, even a small stream, of revenue from Android, which is a major disincentive and makes it economically infeasible and to pour resources into it to make it the best and most competitive possible OS it can be. While I hope Google addresses this issue in the future, we need to make it easy for the current Google engineers to create a competitive project, and that means, in the true spirit of open source, we must contribute. So developers, educated Android savvy technological wizards, come together, and below post everything you would want to see in an Android update to both put Android on par with the iPhone, and push it beyond. Put ideas that well up on the brink of your imagination below, think up the next big idea, the brilliant feature that'll make Android the unparalleled smart phone champion. Once Android is more popular, better phones will be made for it, it'll have more developers, and Google will invest more money in it, but we need to give it that first push. Below, use our collective wisdom and create a single thread that will document all the features, all the tools, the code libraries, etc. etc. that we want to see in Android, and when our thread gets large enough, Google won't be able to help but notice, and address our needs, our desires, and our demands! You must be the change you wish to see in the world - Mahatma Gandhi -- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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: Location.getTime() does not return milliseconds
thanks, I also don't want fixes more then every few seconds but to calculate the accurate speed/pace I would expect milliseconds accuracy. On Mar 18, 12:07 am, Dianne Hackborn hack...@android.com wrote: It just says the units are in milliseconds; it doesn't say anything about the accuracy. I certainly wouldn't expect (nor probably want) fixes more than every second. :} On Tue, Mar 17, 2009 at 2:54 PM, Yossi yossi@gmail.com wrote: Hi, According to the decumentation, android.location.Location.getTime() returns the fix time in milliseconds. however I keep getting the time rounded to seconds (e.g. no milliseconds accuracy). Is this the 'normal' behavior or do I do something wrong? Thanks, Yossi -- Dianne Hackborn Android framework engineer hack...@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] Image manipulation
Hello Friends, I want to convert my image to black and white. As well i want to apply different image manipulations operations like brightness, contrast etc.. Can anyone tell me how to achieve this functionality? Thanks in advance. Pratik Goswami --~--~-~--~~~---~--~~ 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] Black areas during alpha animation on transparent PNGs.. Help !
I am currently at the verge of releasing a game for android. While creating menu view animations, for which I use ImageViews in AbsoluteLayout and while changing screen, I have used a custom Alpha animation (I tried built in fadeout also) When I startAnimation on the ImageView, Instead of reducing alpha property, It shows a black area, in the areas where transparency is between 0 to 100. Of course it does fade out but it shows a black area in the semi transparent areas of the PNG while fading away. It looks soo bad. Does it have something to do with display mode ? Should I set 32 bpp mode explicitly ?? --~--~-~--~~~---~--~~ 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: CheckBox test= (CheckBox) findViewById(R.id.test); returns null
Thanks, this solved it On Mar 17, 11:24 pm, Glen Humphrey glendon.humphr...@gmail.com wrote: I believe your xml should look like this with android:id instead of just id. CheckBox android:id=@+id/checkbox android:layout_width=wrap_content android:layout_height=wrap_content / On Mar 17, 10:25 am, zeeshan genx...@gmail.com wrote: i changed the id but still same Null object. same result for TextView and ProgressBar as well, however i can use EditText successfully. On Mar 17, 5:04 pm, dan raaka danra...@gmail.com wrote: Try changing the id and see if it makes any difference. -Dan On Tue, Mar 17, 2009 at 9:46 AM, zeeshan genx...@gmail.com wrote: Hi Android Experts, why CheckBox is always null. please find the error in my code: xml- CheckBox id=@+id/checkbox android:layout_width=wrap_content android:layout_height=wrap_content / code file- package com.reblogr.reblogrclient; public class Test extends Activity { /** Called when the activity is first created. */ public CheckBox checkbox; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.login); Button connectButton = (Button)findViewById(R.id.objBtn1); checkbox= (CheckBox)findViewById(R.id.checkbox); connectButton.setOnClickListener(connectButtonListener); } public OnClickListener connectButtonListener = new OnClickListener () { public void onClick(View v) { Athenticate(); } }; public void Athenticate(){ if(checkbox.isChecked()){ // NullPointerException here //do something } } } why checkbox is null?- Hide quoted text - - Show quoted text -- 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 -~--~~~~--~~--~--~---
[android-developers] Re: MockContext and any other Mock entities they are for what?
Please! Me too! Can I use them to run some of my unit-tests in the JVM instead of the emulator? That would be great. If not. Is there a way to run at least some tests in a JVM? Regards, Dirk On Mon, Jan 12, 2009 at 9:59 PM, hmmm akul...@mail.ru wrote: Hi, MockContext and any other Mock entities they are for what? Could I please have an example of their usage? 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: Image manipulation
Hi mark, Not a single one, if third-party JARs are available then also it wont be compatible with SDK 1.0 i think. Have you any idea?? Is there any class in android which can be used for this? Thanks Pratik Goswami. On Mar 18, 4:55 pm, Mark Murphy mmur...@commonsware.com wrote: I want to convert myimagetoblackandwhite. As well i want to apply differentimagemanipulations operations like brightness, contrast etc.. Can anyone tell me how to achieve this functionality? Which third-party JARs have you tried? -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 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: Image manipulation
Not a single one OK. if third-party JARs are available then also it wont be compatible with SDK 1.0 i think. I would not make that assumption. Is there any class in android which can be used for this? There are many graphics operations found in the android.graphics package, but I have no idea if any of them fit what you need. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 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] Count Down Timer in list view
Hi, I want to add a count down timer in a list view. the time duration is got from an xml in the format (PnYnMnDTnHnMnS). I used joda-time.jar for parsing the time from Period. I used long totaltimeinmilliseconds = (H*24*60+M*60+S)*1000; new CountDownTimer(totaltimeinmilliseconds, 1000) { public void onTick(long millisUntilFinished) { mTimer.setText(left: + millisUntilFinished / 1000); } public void onFinish() { mTimer.setText(done!); } }.start(); This code for making the countdown timer display. I put the code just before ll.addView(mTimer, new LinearLayout.LayoutParams (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); in which, this linearlayout ll is used for making the list. But my problem is if there is only 1 item in the list , the timer will count down in each sec, but for more than one item, the dislpay wil be in the interval of 3 or more seconds.how can i make it display in each seconds??? Also I want to display in H:M:S format, with H,M,S synchronised. thanx in advance ANUR --~--~-~--~~~---~--~~ 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] roadmap
Hi Is the roadmap at http://source.android.com/roadmap updated constantly or now is kind of old? Is there any place to see the future releases? Thanks Daniel --~--~-~--~~~---~--~~ 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] How to implement buddy list screen
Hi All, I am working on implementing an Instant Messenger application in Android. I want to display buddy list screen as follows, Friends(this is group name) status_icon friend1_name status_icon friend2_name . . General (this is group name) status_icon general1_name status_icon general2_name . . I want to implement a list view in the above layout. When user clicks on group name then friends list display in that gropu should toggle between collapse and expand. I know I could not do this by simply extending my activity from ListActivity and I understand that I should implement my own list adapter for this. But I am not getting any good ideas of implementing this. Any ideas or pointers to this would be greatly appreciated! 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: Location.getTime() does not return milliseconds
If you want the speed call getSpeed(). On Mar 18, 12:21 pm, Yossi yossi@gmail.com wrote: thanks, I also don't want fixes more then every few seconds but to calculate the accurate speed/pace I would expect milliseconds accuracy. On Mar 18, 12:07 am, Dianne Hackborn hack...@android.com wrote: It just says the units are in milliseconds; it doesn't say anything about the accuracy. I certainly wouldn't expect (nor probably want) fixes more than every second. :} On Tue, Mar 17, 2009 at 2:54 PM, Yossi yossi@gmail.com wrote: Hi, According to the decumentation, android.location.Location.getTime() returns the fix time in milliseconds. however I keep getting the time rounded to seconds (e.g. no milliseconds accuracy). Is this the 'normal' behavior or do I do something wrong? Thanks, Yossi -- Dianne Hackborn Android framework engineer hack...@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: Location.getTime() does not return milliseconds
I'm calculating the average speed of several points so I need to have the accurate total distance and time. On Mar 18, 2:32 pm, Neil neilb...@gmail.com wrote: If you want the speed call getSpeed(). On Mar 18, 12:21 pm, Yossi yossi@gmail.com wrote: thanks, I also don't want fixes more then every few seconds but to calculate the accurate speed/pace I would expect milliseconds accuracy. On Mar 18, 12:07 am, Dianne Hackborn hack...@android.com wrote: It just says the units are in milliseconds; it doesn't say anything about the accuracy. I certainly wouldn't expect (nor probably want) fixes more than every second. :} On Tue, Mar 17, 2009 at 2:54 PM, Yossi yossi@gmail.com wrote: Hi, According to the decumentation, android.location.Location.getTime() returns the fix time in milliseconds. however I keep getting the time rounded to seconds (e.g. no milliseconds accuracy). Is this the 'normal' behavior or do I do something wrong? Thanks, Yossi -- Dianne Hackborn Android framework engineer hack...@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] how to access mobile web app on local network
I expireince the same problem. Is it possible to configure the emulator to access local network addresses? --~--~-~--~~~---~--~~ 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: General Question to Google Team - Pin favourite threads
As long as you have posted or replied, it is easy to track.. 1) try to see your 'profile' link on the top/right of most pages or 2) just use the 'More options' next to any of your messages and select 'Find messages by this author' Cheers, Rajesh.S On Mar 18, 9:15 am, Tommaso nuccio.tomm...@gmail.com wrote: Yes, but therefore I need to send copies to my mail account. I want it to be separated. Ciao, Tommaso On 18 Mrz., 09:50, Anonymous Anonymous firewallbr...@googlemail.com wrote: I think You can use the feature Labels if you use gmail :) , i use the same .. On Wed, Mar 18, 2009 at 2:19 PM, Tommaso nuccio.tomm...@gmail.com wrote: Hi Google-Team, I was wondering, why there is no functionality to pin threads a user is interested in. As there is such a high traffic on these groups, it takes time to find the threads I answered to or some I am interested to see how the problem is solved. Sometimes you don't remember the naming of the subject or the user that wrote it and then searching becomes annoying. An easy way would be to pin some threads! I mean the right side is nearly empty an everybody is authenticated when she uses the group, not to just read. Many thanks in advance for reading. Ciao, Tommaso --~--~-~--~~~---~--~~ 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: General Question to Google Team - Pin favourite threads
If you're using the web UI for groups, how about bookmarking the threads you're interested in? JBQ On Wed, Mar 18, 2009 at 1:49 AM, Tommaso nuccio.tomm...@gmail.com wrote: Hi Google-Team, I was wondering, why there is no functionality to pin threads a user is interested in. As there is such a high traffic on these groups, it takes time to find the threads I answered to or some I am interested to see how the problem is solved. Sometimes you don't remember the naming of the subject or the user that wrote it and then searching becomes annoying. An easy way would be to pin some threads! I mean the right side is nearly empty an everybody is authenticated when she uses the group, not to just read. Many thanks in advance for reading. Ciao, Tommaso -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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: General Question to Google Team - Pin favourite threads
And, of course, you can star a conversation and see it in the web UI under Favorites. JBQ On Wed, Mar 18, 2009 at 5:48 AM, Jean-Baptiste Queru j...@android.com wrote: If you're using the web UI for groups, how about bookmarking the threads you're interested in? JBQ On Wed, Mar 18, 2009 at 1:49 AM, Tommaso nuccio.tomm...@gmail.com wrote: Hi Google-Team, I was wondering, why there is no functionality to pin threads a user is interested in. As there is such a high traffic on these groups, it takes time to find the threads I answered to or some I am interested to see how the problem is solved. Sometimes you don't remember the naming of the subject or the user that wrote it and then searching becomes annoying. An easy way would be to pin some threads! I mean the right side is nearly empty an everybody is authenticated when she uses the group, not to just read. Many thanks in advance for reading. Ciao, Tommaso -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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: Putting Android on Par with the iPhone Software
You should really move this thread to android-discuss, so that people who are actually trying to achieve something here don't see their discussions lost in the noise. Thanks, JBQ On Tue, Mar 17, 2009 at 7:18 PM, Schiffres schifty...@gmail.com wrote: This is a message to all other Android Developers, bloggers, or interest groups. Unfortunately, it is rather evident that, for a myriad of reasons, Android as an OS simply isn't on the same level as the iPhone in what it offers, what it can do, how it runs, etc. etc. As a full supporter of most everything Google endeavors to take on, I am gleeful to see Android, an open source competitor challenging the iPhone. Google has brilliant engineers, a plethora of resources, and the flexibility to test and experiment wacky ideas that become the technological standard of tomorrow. So why isn't Android commensurate to the iPhone? My opinion is that it's because Google doesn't make any, even a small stream, of revenue from Android, which is a major disincentive and makes it economically infeasible and to pour resources into it to make it the best and most competitive possible OS it can be. While I hope Google addresses this issue in the future, we need to make it easy for the current Google engineers to create a competitive project, and that means, in the true spirit of open source, we must contribute. So developers, educated Android savvy technological wizards, come together, and below post everything you would want to see in an Android update to both put Android on par with the iPhone, and push it beyond. Put ideas that well up on the brink of your imagination below, think up the next big idea, the brilliant feature that'll make Android the unparalleled smart phone champion. Once Android is more popular, better phones will be made for it, it'll have more developers, and Google will invest more money in it, but we need to give it that first push. Below, use our collective wisdom and create a single thread that will document all the features, all the tools, the code libraries, etc. etc. that we want to see in Android, and when our thread gets large enough, Google won't be able to help but notice, and address our needs, our desires, and our demands! You must be the change you wish to see in the world - Mahatma Gandhi -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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] Permission of SystemClock.setCurrentTimeMillis()
Hi everyone, The document says: SystemClock.setCurrentTimeMillis() Sets the current wall time, in milliseconds. Requires the calling process to have appropriate permissions. --- What is the appropriate permission I should declare in uses- permission??? Thanks your help... Elvis. --~--~-~--~~~---~--~~ 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: Permission of SystemClock.setCurrentTimeMillis()
uses-permission android:name=android.permission.APPROPRIATE / mwuahah ;) On Wed, Mar 18, 2009 at 3:12 PM, elvisw elvise...@gmail.com wrote: Hi everyone, The document says: SystemClock.setCurrentTimeMillis() Sets the current wall time, in milliseconds. Requires the calling process to have appropriate permissions. --- What is the appropriate permission I should declare in uses- permission??? Thanks your help... Elvis. --~--~-~--~~~---~--~~ 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] IWindowManager Not Available
Hi All, I downloaded the Android Source to my machine, I have seen the source code. In that I found Iwindowmanager, I activity manager and etc I managers... But when I try to use those things in my application. Those classes and even the packages also not avaiable. Can any one know how to import those classes into our applications. Best Regards, Rajendra --~--~-~--~~~---~--~~ 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] Creating Android.Jar File
Hi all, I downloaded the android source code.. Can any one tell me how to make our own jar file with all our available java classes in the Android source code If any one know please help me how to do this... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] When the system launches a ResolverActivity or ChooserActivity it doesn't present...
...services which are registered for a particular intent does it? What I mean, and I'll test this later when I get a chance, is that if I create a service that registers for ACTION_SEND, and a user, in the photo viewer, clicks 'Share' and the system launches a chooser activity for ACTION_SEND, the service won't show up in that chooser will it? I presume that only activities would show up, but I can't check just now. Thanks, Hans :) --~--~-~--~~~---~--~~ 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: General Question to Google Team - Pin favourite threads
Yes, but only when I am part of the thread otherwise it doesn't work. @Jean-Baptiste Yeah, I also thought about that, but on another PC... Thanks for the ideas. Ciao, Tommaso On Mar 18, 1:47 pm, Rajesh S rajeshs...@gmail.com wrote: As long as you have posted or replied, it is easy to track.. 1) try to see your 'profile' link on the top/right of most pages or 2) just use the 'More options' next to any of your messages and select 'Find messages by this author' Cheers, Rajesh.S On Mar 18, 9:15 am, Tommaso nuccio.tomm...@gmail.com wrote: Yes, but therefore I need to send copies to my mail account. I want it to be separated. Ciao, Tommaso On 18 Mrz., 09:50, Anonymous Anonymous firewallbr...@googlemail.com wrote: I think You can use the feature Labels if you use gmail :) , i use the same .. On Wed, Mar 18, 2009 at 2:19 PM, Tommaso nuccio.tomm...@gmail.com wrote: Hi Google-Team, I was wondering, why there is no functionality to pin threads a user is interested in. As there is such a high traffic on these groups, it takes time to find the threads I answered to or some I am interested to see how the problem is solved. Sometimes you don't remember the naming of the subject or the user that wrote it and then searching becomes annoying. An easy way would be to pin some threads! I mean the right side is nearly empty an everybody is authenticated when she uses the group, not to just read. Many thanks in advance for reading. Ciao, Tommaso --~--~-~--~~~---~--~~ 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: Location.getTime() does not return milliseconds
Plus, getSpeed() often returns 0, even when it shouldn't. -Jon On Mar 18, 8:37 am, Yossi yossi@gmail.com wrote: I'm calculating the average speed of several points so I need to have the accurate total distance and time. On Mar 18, 2:32 pm, Neil neilb...@gmail.com wrote: If you want the speed call getSpeed(). On Mar 18, 12:21 pm, Yossi yossi@gmail.com wrote: thanks, I also don't want fixes more then every few seconds but to calculate the accurate speed/pace I would expect milliseconds accuracy. On Mar 18, 12:07 am, Dianne Hackborn hack...@android.com wrote: It just says the units are in milliseconds; it doesn't say anything about the accuracy. I certainly wouldn't expect (nor probably want) fixes more than every second. :} On Tue, Mar 17, 2009 at 2:54 PM, Yossi yossi@gmail.com wrote: Hi, According to the decumentation, android.location.Location.getTime() returns the fix time in milliseconds. however I keep getting the time rounded to seconds (e.g. no milliseconds accuracy). Is this the 'normal' behavior or do I do something wrong? Thanks, Yossi -- Dianne Hackborn Android framework engineer hack...@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: Problem with setTheme() method
I have the same problem! Would be nice to get a solution... --~--~-~--~~~---~--~~ 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] Application dataflow query - BroadcastReceiver / ContentProvider / Activity
I've developed an application that receives a Broadcast and then launches an Activity, where that Activity queries a ContentProvider which pulls information out of the DNS in real-time. I'd like to be able to shuffle this so that instead of going: BroadcastReceiver - Activity - ContentProvider.query() it goes: BroadcastReceiver - ContentProvider.query() - Activity If the query() returns no data I want to miss out launching the activity, and allow the Broadcast message to fall through as normal. If the query() does return data, I want that Cursor to be supplied to the Activity, so that I don't have to go and query for the data again. Is this possible? thanks Ray --~--~-~--~~~---~--~~ 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: Location.getTime() does not return milliseconds
Most GPS receivers output a position that is valid at the second boundry. On Mar 17, 2:54 pm, Yossi yossi@gmail.com wrote: Hi, According to the decumentation, android.location.Location.getTime() returns the fix time in milliseconds. however I keep getting the time rounded to seconds (e.g. no milliseconds accuracy). Is this the 'normal' behavior or do I do something wrong? Thanks, Yossi --~--~-~--~~~---~--~~ 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 i convert AMR to MP3 OR WAV in my activity?
Thanks for reply Dave, can anyone tell me how can i do this, i assume to install any converter application and use it in my code to convert and return the mp3 uri please help me - On Mar 18, 10:31 am, Dave Sparks davidspa...@android.com wrote: No, there is no built-in package to convert from AMR to MP3 or WAVE. If you want to do this in the current SDK, you'll need to write your own code to do the conversion. On Mar 18, 2:44 am, zeeshan genx...@gmail.com wrote: Hi Android Experts, i want to convert recorded AMR sound into mp3 or WAV within my activity, is there any method or package i can use? i am using this activity for recording: Intent intent = new Intent (MediaStore.Audio.Media.RECORD_SOUND_ACTION); startActivityForResult(intent, SELECT_AUDIO); this gives me amr content uri but my question is , how can i get the mp3/wav uri? i posted this question long ago but still no solution, please help me as i am really stuck on this. Thanks- 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 -~--~~~~--~~--~--~---
[android-developers] Re: Putting Android on Par with the iPhone Software
Google needs to realize that smart phones are the next wave of personal computers and start treating Android phones as a computer with a phone attached rather than a phone with fairly impressive compute power. The outcome of this line of thought is understanding that google does not know what the next killer app will be and what resources it will need to accomplish its task. Probabily users will need more control over the phone to install potentially root privleged programs and device driver, developers will need access to all the hardware perpherials (USB, Bluetooth...) Think of it a a Linux computer with a phone attached. Additionally the Dalvik VM is very slow which is jeopardizing the platforms viability for anything more than simple image manapilation via GL. Java did not take off for Sun until sun got JIT working well. The same will need to happen for Dalvik. On Mar 17, 6:31 pm, Schiffres schifty...@gmail.com wrote: This is a message to all other Android Developers, bloggers, or interest groups. Unfortunately, it is rather evident that, for a myriad of reasons, Android as an OS simply isn't on the same level as the iPhone in what it offers, what it can do, how it runs, etc. etc. As a full supporter of most everything Google endeavors to take on, I am gleeful to see Android, an open source competitor challenging the iPhone. Google has brilliant engineers, a plethora of resources, and the flexibility to test and experiment wacky ideas that become the technological standard of tomorrow. So why isn't Android commensurate to the iPhone? My opinion is that it's because Google doesn't make any, even a small stream, of revenue from Android, which is a major disincentive and makes it economically infeasible and to pour resources into it to make it the best and most competitive possible OS it can be. While I hope Google addresses this issue in the future, we need to make it easy for the current Google engineers to create a competitive project, and that means, in the true spirit of open source, we must contribute. So developers, educated Android savvy technological wizards, come together, and below post everything you would want to see in an Android update to both put Android on par with the iPhone, and push it beyond. Put ideas that well up on the brink of your imagination below, think up the next big idea, the brilliant feature that'll make Android the unparalleled smart phone champion. Once Android is more popular, better phones will be made for it, it'll have more developers, and Google will invest more money in it, but we need to give it that first push. Below, use our collective wisdom and create a single thread that will document all the features, all the tools, the code libraries, etc. etc. that we want to see in Android, and when our thread gets large enough, Google won't be able to help but notice, and address our needs, our desires, and our demands! You must be the change you wish to see in the world - Mahatma Gandhi --~--~-~--~~~---~--~~ 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 /cache supposed to be accessible?
Hi! My app is downloading a file that does not need to be kept. So I was trying to put it in the directory returned by Environment.getDownloadCacheDirectory() (that returns /cache). But apparently it is not accessible, (a FileNotFoundException is thrown). Is this normal? 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: Is /cache supposed to be accessible?
Well ok then :) Actually I was also wondering if there was an API somewhere that I didn't see in the framework to ask for a file download or is the normal way to do that is to do it manually (using HttpClient or URL.openConnection and all that jazz). Thanks a lot! BoD On Mar 18, 3:50 pm, Jean-Baptiste Queru j...@android.com wrote: It's not accessible to applications. JBQ On Wed, Mar 18, 2009 at 7:47 AM, BoD bodl...@gmail.com wrote: Hi! My app is downloading a file that does not need to be kept. So I was trying to put it in the directory returned by Environment.getDownloadCacheDirectory() (that returns /cache). But apparently it is not accessible, (a FileNotFoundException is thrown). Is this normal? Thanks! -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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: Is /cache supposed to be accessible?
Right now the download manager (which happens to own /cache) is not exposed to applications, so you have to do your downloads manually. JBQ On Wed, Mar 18, 2009 at 7:58 AM, BoD bodl...@gmail.com wrote: Well ok then :) Actually I was also wondering if there was an API somewhere that I didn't see in the framework to ask for a file download or is the normal way to do that is to do it manually (using HttpClient or URL.openConnection and all that jazz). Thanks a lot! BoD On Mar 18, 3:50 pm, Jean-Baptiste Queru j...@android.com wrote: It's not accessible to applications. JBQ On Wed, Mar 18, 2009 at 7:47 AM, BoD bodl...@gmail.com wrote: Hi! My app is downloading a file that does not need to be kept. So I was trying to put it in the directory returned by Environment.getDownloadCacheDirectory() (that returns /cache). But apparently it is not accessible, (a FileNotFoundException is thrown). Is this normal? Thanks! -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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] Why can not edit /init.rc on adp1 with firmware 1.1?
I flashed my adp1 to firmware 1.1 following the instruction from HTC. http://www.htc.com/www/support/android/adp.html But after that, I want to modify the /init.rc, after I remount the rootfs as writable, I can edit or replace the /init.rc file. But the file will roll back the original version after reboot the phone. Before I modify the /init.rc, I install the busybox to the phone, then I use 'cp command to replace the /init.rc Any one can give me some advice? --~--~-~--~~~---~--~~ 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] HTML strike tag with HTML.fromHtml
I'm using HTML.fromHtml to convert some text with HTML for a TextView. I can't seem to get the strike tag to render though, is there a way to get this to render with this method? --~--~-~--~~~---~--~~ 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: Do ProximityAlerts actually work?
Sorry about that. My browser was acting weird. Anyway... I'm coming to the conclusion that ProximityAlerts (PAs) don't actually work at least in v 1.0. Here is why I think PAs don't work (reliably): 1. my code sends ProximityAlerts which show up in the log 2. when my code does a sendBrodcast(new Intent(TYW_PROXIMITY_ALERT)) the phone vibrates and I receive a notification, so I know my BroadcastReceiver is working fine. 3. Once out of a n attempts or so (n 25), the phone acts like it received a PA but I can't replicate it. 4. I've set the LocationUpdates to be as fast as possible and the ProximtyRadius to a reasonable amount then I walk up towards a landmark that I've sent a PA for. I can see my position changing, I see the landmark enter the ProximityRadius zone, I hang out there for up to 30 minutes, and I move away, watching the landmark leave the ProximityRadius. Nada. 5. I haven't come across an discussion of PAs using verion 1.0 of the SDK, which I find suspicious. So, either I'm violating some undocumented feature of the PA (like, you can only send one at a time and then only during a full moon) or these things don't work. What do you think? -- Faber Fedor Linux New Jersey http://linuxnj.com faberfedor.blogspot.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: Could I release a new version of an app under a new name and port existing users for free?
Dude, that sucks so hard! The same thing happend to me 4 weeks ago, luckily I had backups though. Good luck. S On 18 Mar 2009, at 16:41, admin.androidsl...@googlemail.com wrote: I ask this because my laptop was stolen along with my signing keys! I know I should have backed up - but the last thing I expected last Friday was for burglars to break into my house and steal my laptop (and most of my other electronics jewellery) - lesson learnt, but I need to plan what to do next! --~--~-~--~~~---~--~~ 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: Simple Cursor Adapter - List View
Here is an example of the the simplest way I have found to do this type of thing. public class IconCursorAdapter extends SimpleCursorAdapter { IconCursorAdapter(Context context, int layout, Cursor cursor,String[] from, int[] to) { super(context, layout, cursor, from, to); this.setViewBinder(new IconViewBinder()); } } public class IconViewBinder implements SimpleCursorAdapter.ViewBinder { public boolean setViewValue(View view, Cursor cursor, int columnIndex) { if (view instanceof TextView) { ((TextView) view).setText(cursor.getString(columnIndex)); return true; } if (view instanceof ImageView) { String listType = cursor.getString(columnIndex); if (listType.equals(wish_list)) { ((ImageView) view).setImageResource(R.drawable.lander_plain); return true; } if (listType.equals(todo_list)) { ((ImageView) view).setImageResource(R.drawable.lander_firing); } else { ((ImageView) view).setImageResource(R.drawable.lander_crashed); } return true; } return false; } } On Mar 17, 11:57 pm, Markiv vikramshe...@gmail.com wrote: I have table with 3 columns which is binded to an XML document with three text views. String[] from = new String[]{A,B,C}; int [] to = new int[] {R.id.a,R.id.b,R.id.c}; Where R.id.a, R.id.b, R.id.c - TextView Depending on the value store in the third column, I want to change the text color in R.id.c How should, I go about with this. This is what I have so far : SimpleCursorAdapter entry = new SimpleCursorAdapter(this, R.layout.addrow, vCursor , from , to); setListAdapter(entry); If you can provide me an example, that would be really 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: Re-register AlarmManager events on upgrades
On Wed, Mar 18, 2009 at 3:47 AM, Stoyan Damov stoyan.da...@gmail.com wrote: On Wed, Mar 18, 2009 at 4:36 AM, Dianne Hackborn hack...@android.com wrote: Fwiw, cupcake will add a new field to PACKAGE_ADDED to tell you if this was due to an update, and allow this broadcast to be received by the app to restart itself. This cupcake thing very much reminds me of Duke Nukem Forever... Really? You think Cupcake is not going to ship in the next 12 years? --~--~-~--~~~---~--~~ 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: Problems with NotificationManager
Just use a different Intent for each of your notifications. On Wed, Mar 18, 2009 at 4:03 AM, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, In my app I use several different notifications, which require different actions. By default the notification manager loads the main activity, when users select a notification. How can I change that so different notifications prompt different actions. I've been studying the related APIs, however, could not find a way of detecting which notification a user has selected. Any thoughts? 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: Why can not edit /init.rc on adp1 with firmware 1.1?
Cpedia, It probably is part of the ramdisk and so what you are editing is just the content in RAM. On a fresh boot the ramdisk recreates the good old root file system. You'll have to change it in ramdisk.img .. since you have come this far, it won't be tough to google and find methods of creating ramdisk.img (section 3.2 of) this link might clarify a few things: http://wiki.kldp.org/wiki.php/AndroidPortingOnRealTarget?refresh=1#s-3.2 Cheers, Rajesh.S On Mar 18, 3:05 pm, cpedia cpe...@gmail.com wrote: I flashed my adp1 to firmware 1.1 following the instruction from HTC.http://www.htc.com/www/support/android/adp.html But after that, I want to modify the /init.rc, after I remount the rootfs as writable, I can edit or replace the /init.rc file. But the file will roll back the original version after reboot the phone. Before I modify the /init.rc, I install the busybox to the phone, then I use 'cp command to replace the /init.rc Any one can give me some advice? --~--~-~--~~~---~--~~ 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: Black areas during alpha animation on transparent PNGs.. Help !
I think the system might be assuming the ImageView is opaque and so not drawing what's behind it. Try using a custom Drawable in the image view and return the correct value from getOpacity() quakeboy wrote: I am currently at the verge of releasing a game for android. While creating menu view animations, for which I use ImageViews in AbsoluteLayout and while changing screen, I have used a custom Alpha animation (I tried built in fadeout also) When I startAnimation on the ImageView, Instead of reducing alpha property, It shows a black area, in the areas where transparency is between 0 to 100. Of course it does fade out but it shows a black area in the semi transparent areas of the PNG while fading away. It looks soo bad. Does it have something to do with display mode ? Should I set 32 bpp mode explicitly ?? --~--~-~--~~~---~--~~ 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: Catching clicks on xml files in the browser
I guess adding an intent filter just allows my activity to start up if someone starts a new intent with that data scheme and mimetype. I guess it isn't meant for catching clicks in the browser. I guess the code in the browser app needs to be changed to be able to start off a new intent when a user clicks on an xml file - too much work? Does anyone have any pointers as to where to begin if I wanted to do that? Rohit On Mar 17, 2:33 pm, Rohit mord...@gmail.com wrote: Hi, I am trying to intercept xml links that are clicked in the android web browser. I want my activity to handle these xml files, however I cannot seem to get this to work. Whenever I click on the xml file in the browser it just displays the xml file. Here is the entry that I have in my AndroidManifest.xml. Is this enough or do I need to do something more? activity android:name=handleXML android:theme=@android:style/Theme.Dialog android:screenOrientation=portrait intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:scheme=http / data android:scheme=https / data android:mimeType=application/xml/ data android:mimeType=text/xml/ /intent-filter /activity --~--~-~--~~~---~--~~ 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] How to move file from sdcard to private location
I want to move some files from sdcard to /data/data/myapp/files folder, I can use OpenInputFile and OpenOutputFile and write to it, then delete the original one. But it is slow, so, I tried to use oldFile.Rename(newFile), but it always return false. Any idea? The reason I am doing this is to hide some files from my sdcard, so, nobody can see 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] How to config G1 to make both browser and MMS work?
I have a G1 phone and use it in mainland China. But I can't config it to work with browser and MMS at the same time. However with different APN, the browser and MMS can work seperately. For browser, I use following APN config: --- name:cmnet apn: cmnet proxy:blank port:blank username:blank password:blank server:blank mmsc:blank mms proxy:blank mms port:blank mcc:460 mnc:00 apn type:blank -- For MMS, I use following APN config: -- name:cmwap apn: cmwap proxy:blank port:blank username:blank password:blank server:blank mmsc:http://mmsc.monternet.com mms proxy:010.000.000.172 mms port:80 mcc:460 mnc:00 apn type:blank --- When above two APNs both exists, only browser can work. MMS doesn't work any more. Does any google export know that how to config G1 to make both browser and MMS work? If it's a known issue, is there any roadmap to fix it? 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] Automatic site login
Hi i have user credential, with that can i automatically login to a site like orkut, facebook etc using webview when user clicks a button. --~--~-~--~~~---~--~~ 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] Accessing contact' email addresses
Posted: Tue Mar 17, 2009 11:47 amPost subject: Accessing contact' email addresses Hi! I'm developing an application in which I need to display user a list of contacts and their email addresses so that user can choose one of them. I've got some help from Internet and I'm able to display a list of contacts and their number by the following code: --- JAVA CODE --- public class ShowContacts extends ExpandableListActivity implements OnChildClickListener { private int mGroupIdColumnIndex; private String mPhoneNumberProjection[] = new String[] { People.Phones._ID, People.NUMBER // CHANGE HERE }; private ExpandableListAdapter mAdapter; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Query for people Cursor groupCursor = managedQuery(People.CONTENT_URI, new String[] {People._ID, People.NAME}, null, null, null); // Cache the ID column index mGroupIdColumnIndex = groupCursor.getColumnIndexOrThrow (People._ID); // Set up our adapter mAdapter = new MyExpandableListAdapter(groupCursor, this, android.R.layout.simple_expandable_list_item_1, android.R.layout.simple_expandable_list_item_1, new String[] {People.NAME}, // Name for group layouts new int[] {android.R.id.text1}, new String[] {People.NUMBER}, // AND CHANGE HERE new int[] {android.R.id.text1}); setListAdapter(mAdapter); } public class MyExpandableListAdapter extends SimpleCursorTreeAdapter { public MyExpandableListAdapter(Cursor cursor, Context context, int groupLayout, int childLayout, String[] groupFrom, int[] groupTo, String[] childrenFrom, int[] childrenTo) { super(context, cursor, groupLayout, groupFrom, groupTo, childLayout, childrenFrom, childrenTo); } @Override protected Cursor getChildrenCursor(Cursor groupCursor) { // Given the group, we return a cursor for all the children within that group // Return a cursor that points to this contact's phone numbers Uri.Builder builder = People.CONTENT_URI.buildUpon(); ContentUris.appendId(builder, groupCursor.getLong (mGroupIdColumnIndex)); builder.appendEncodedPath (People.Phones.CONTENT_DIRECTORY); Uri phoneNumbersUri = builder.build(); return managedQuery(phoneNumbersUri, mPhoneNumberProjection, null, null, null); } } @Override public boolean onChildClick(android.widget.ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { AlertDialog dialog = new AlertDialog.Builder (ShowContacts.this) .setMessage(((TextView) v).getText().toString()) .setPositiveButton(OK, null).create(); dialog.show(); return true; } } --- What I need now is how to replace numbers by email addresses. What I need to change is People.NUMBER at a couple of places but I'm not able to find any replacement. There is a field called People.PRIMARY_EMAIL_ID but that returns the ID of the email rather than the actuall email. Kindly guide me what am I missing. Big 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 -~--~~~~--~~--~--~---
[android-developers] Re: How to provide image file as an sd card
In Run Configuration, target set the Additional emulator command line options type this parameter -sdcard exactpath of image file in your PC so this image will be added as SDcard for your emulator. -David On Mar 18, 11:08 am, Chetan hackpal...@gmail.com wrote: Hello , I am using camera to capture snapshots. But i am unable to view taken pictures location. I am also unable to browse sdcard directory using DDMS in eclipse. --~--~-~--~~~---~--~~ 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] how to use WebView.setHttpAuthUsernamePassword() ?
I am trying to use WebView.setHttpAuthUsernamePassword() to handle basic HTTP authentication on displaying a web page. I wouldn't think it's anything complicated but I cannot find any documentation on how to use it, an example, etc. I've tried what I would guess is the usage: webview = (WebView) findViewById(R.id.webview); webview.getSettings().setJavaScriptEnabled(true); webview.setHttpAuthUsernamePassword(www.foo.com,realm text,joe,xyz123); webview.loadUrl(http://www.foo.com/index.html;); but I can see from the web server logs that the authentication information is not being sent. The client side (in the emulator) shows only a blank (black) view. The same url loaded in the emulators browser loads fine. Any suggestions or pointers to examples on how to use this? Or an alternative to handle the authentication information? 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 -~--~~~~--~~--~--~---
[android-developers] Android email client hyperlinks and uri schemes
Hi, What url schemes does the Android email client recognise and highlight (e.g. make clickable) and are they extensible? e.g. can ayou register new schemes with it - i.e. a proprietary scheme like myshceme:// so that we can send a link to launch our app with data in an email) ? ATB Steve --~--~-~--~~~---~--~~ 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: Fails to connect to AP(which didn't support DHCP Service)
The 169.254.x.x IP is a Windows convention - and usually causes more trouble than it's worth. It doesn't appear that this version of the system (or the configuration UI at least) supports a static IP address for the WiFi interface. The underlying Linux does, of course. But without the proper UI, an ordinary G1 can't configure it. On Mar 11, 6:40 pm, joseph befor...@gmail.com wrote: I tried connect to AP(DHCP componet is disabled) with Google dev phone 1. It fails to connect to that AP. Can't get a ip address from AP. I hoped the dev phone succefully connect to the AP, and assign own auto-ip by itself(169.254.xx.xx). But It didn't happend. I think it must be abnormal case. Is there any special way to get an Auto IP address? (ex. change WiFi Driver...) Thanks -joe- --~--~-~--~~~---~--~~ 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] system notification while app is running
Hello, After I install an apk and run it immediately, it seems the system notification (app installed) is pushed only when I exit the app. Any possible way to detect this whilst app is running? Thanks Robert --~--~-~--~~~---~--~~ 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: Putting Android on Par with the iPhone Software
Pat, I don't wish to get into a religious debate here, but for the purposes of constructive, concrete criticism/suggestion, I'd like to mention something here. I have / use / develop on both the iPhone and Google Android. It is very interesting to set both devices side by side, and attempt to do the same exact thing, whether it is make a phone call, run an app, change settings, etc. Even if the performance were exactly the same, the ease of use and user experience is significantly different, tilted heavily in favor of the iPhone. Android suffers from a lack of consistency in the user experience. Sometimes typing is required on the hardware keyboard, sometimes on the phone. Sometime navigation is by the hardware menu and back buttons, sometimes there are navigation buttons on the touch screen. Sometimes menus can be dragged from the title bar or the bottom of the screen, sometimes the hardware buttons are required. And the fact that typing which requires the hardware keyboard also requires sliding the keyboard out and a change of screen orientation isn't user friendly either. Apple has taken a lot of criticism from those who do not appreciate App Store submissions being rejected because of misuse of user interface standards. I personally appreciate it, because the protection of user interface metaphors are what give consistency to the iPhone across apps, and make apps on the iPhone which use standard interface metaphors intuitive by default. If I see a navigation bar or a tab bar or a disclosure button on a table, I know exactly what those will do in *any* application. IMHO, Google would really benefit from a critical analysis of Android from a user standpoint, and a real focus on establishment of widely adopted user interface standards on apps. At this point, Android really has the feel of an environment that has been oriented primarily towards developers, not towards users. Don't get me wrong, Android has done some great things -- things I really appreciate as a developer. But at the end of the day, it is all about the users. Just my 2 cents... Brad On Mar 18, 2009, at 7:45 AM, patg wrote: Google needs to realize that smart phones are the next wave of personal computers and start treating Android phones as a computer with a phone attached rather than a phone with fairly impressive compute power. The outcome of this line of thought is understanding that google does not know what the next killer app will be and what resources it will need to accomplish its task. Probabily users will need more control over the phone to install potentially root privleged programs and device driver, developers will need access to all the hardware perpherials (USB, Bluetooth...) Think of it a a Linux computer with a phone attached. Additionally the Dalvik VM is very slow which is jeopardizing the platforms viability for anything more than simple image manapilation via GL. Java did not take off for Sun until sun got JIT working well. The same will need to happen for Dalvik. On Mar 17, 6:31 pm, Schiffres schifty...@gmail.com wrote: This is a message to all other Android Developers, bloggers, or interest groups. Unfortunately, it is rather evident that, for a myriad of reasons, Android as an OS simply isn't on the same level as the iPhone in what it offers, what it can do, how it runs, etc. etc. As a full supporter of most everything Google endeavors to take on, I am gleeful to see Android, an open source competitor challenging the iPhone. Google has brilliant engineers, a plethora of resources, and the flexibility to test and experiment wacky ideas that become the technological standard of tomorrow. So why isn't Android commensurate to the iPhone? My opinion is that it's because Google doesn't make any, even a small stream, of revenue from Android, which is a major disincentive and makes it economically infeasible and to pour resources into it to make it the best and most competitive possible OS it can be. While I hope Google addresses this issue in the future, we need to make it easy for the current Google engineers to create a competitive project, and that means, in the true spirit of open source, we must contribute. So developers, educated Android savvy technological wizards, come together, and below post everything you would want to see in an Android update to both put Android on par with the iPhone, and push it beyond. Put ideas that well up on the brink of your imagination below, think up the next big idea, the brilliant feature that'll make Android the unparalleled smart phone champion. Once Android is more popular, better phones will be made for it, it'll have more developers, and Google will invest more money in it, but we need to give it that first push. Below, use our collective wisdom and create a single thread that will document all the features, all the tools, the code
[android-developers] Android developer Needed urgently
Hi, Please reply me with Maching profile on shv...@tulsana.com; Please do not send resume without Android experiance. I am looking for “ Android developer”. Job Description: Title: Android Developer Location: Houston, San Jose, Rate : Market Job summary: The ideal candidate will design, code, test, deliver and maintain Java, Android based applications. Key skill sets: Core Java 4 years Six months of Android ex. OOP skill. Experience of social networking is a plus. Regards, Shveta Jain Sr. Resource Manager shv...@tulsana.com; www.tulsana.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] Spinner Selector Help
Hello i'm trying to change the design of the selector on a spinner as the big circular button looks very ugly. I've been trying to follow this guide http://www.gersic.com/blog.php?id=57. However, i'm having problems using the following two xml attributes as they are unknown and i'm getting the following error message error: no resource identifier found for attribute in package 'android' : android:drawSelectorOnTop=true ( 'false' also doesn't remove the selector from my spinner) android:spinnerSelector=@drawable/ myCustomSelector (myCustomSelector is my own .png picture for the spinner) I am using Eclipse 3.4 and Android SDK v1.0 r2. If i can not change the design of them i'd like to remove them completely from the spinner. Have these attributes been removed and if so what have they been replaced with? --~--~-~--~~~---~--~~ 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] How to Show One tab at a time on the screen.
Hi i developed five tabs and i want to display only one tab on the screen at a time. when i press emulator keys the controle change from one tab to another tab. Tell me how to write the code (not in XML) for the above Question. --~--~-~--~~~---~--~~ 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] Problems with ksoap2 and BasicAuth
hi, at the moment i have the following problem. I try to establish a connect to a SOAP-service. Therefore i need basicauth via http. I use ksoap2 and HttpTransportBasicAuth. The problem is, I do not know how i can start a call when i use HttpTransportBasicAuth becouse the function call is not available. private static final String SOAP_ACTION = getVessels; private static final String METHOD_NAME = getVessels; private static final String NAMESPACE = http://xxx.com/;; private static final String URL = http://xxx.com/soap/ android.wsdl; void test() { try { HttpTransportBasicAuth(URL,foo,bar); HttpTransportSE androidHttpTransport = new HttpTransportSE (URL); androidHttpTransport.debug = true; SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty(query, aida); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); androidHttpTransport.call(SOAP_ACTION, envelope); Object result = envelope.getResponse(); //handle result here //myExampleHandler.getResults(); } catch (Exception e) { e.printStackTrace(); } } i hope someone can help 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 at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SOAP with ksoap2: BasicAuth-Problems
hi, i try to establish a connection to a SOAP-Service. Therefore i use ksoap2. I need Authentification so i tryed the class HttpTransportBasicAuth. The Problem is, that i do not know how i should use this class the make a call. The class HttpTransportBasicAuth do not know the function call. here are some examplecode: private static final String SOAP_ACTION = getVessels; private static final String METHOD_NAME = getVessels; private static final String NAMESPACE = http://xxx.com/;; private static final String URL = http://xxx.com/soap/android.wsdl;; void test() { try { HttpTransportBasicAuth androidHttpTransport = new HttpTransportBasicAuth(URL,xxx,xxx); androidHttpTransport.debug = true; SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty(query, aida); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); HttpTransportBasicAuth.call(SOAP_ACTION, envelope); Object result = envelope.getResponse(); //handle result here //myExampleHandler.getResults(); } catch (Exception e) { e.printStackTrace(); } } i hope, someone can help 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 at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems with ksoap2 and BasicAuth
Sorry for the double post. please ignore this post ;) On 18 Mrz., 18:24, sumdroid f.fingerh...@googlemail.com wrote: hi, at the moment i have the following problem. I try to establish a connect to a SOAP-service. Therefore i need basicauth via http. I use ksoap2 and HttpTransportBasicAuth. The problem is, I do not know how i can start a call when i use HttpTransportBasicAuth becouse the function call is not available. private static final String SOAP_ACTION = getVessels; private static final String METHOD_NAME = getVessels; private static final String NAMESPACE = http://xxx.com/;; private static final String URL = http://xxx.com/soap/ android.wsdl; void test() { try { HttpTransportBasicAuth(URL,foo,bar); HttpTransportSE androidHttpTransport = new HttpTransportSE (URL); androidHttpTransport.debug = true; SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty(query, aida); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); androidHttpTransport.call(SOAP_ACTION, envelope); Object result = envelope.getResponse(); //handle result here //myExampleHandler.getResults(); } catch (Exception e) { e.printStackTrace(); } } i hope someone can help 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 at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] @drawable/logo is not showing the icon in Emulator
Hi I am not able to show the icon at the startup time in my emulator This is the code what i have in manifest.xml application android:icon=@drawable/logo and I have logo.png in drawble folder. But still i am not getting that icon it is diaplying simply blank block image. Can any one help me in this --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems with NotificationManager
I can't believe I've made this mistake, Cheers. On Mar 18, 4:58 pm, Marco Nelissen marc...@android.com wrote: Just use a different Intent for each of your notifications. --~--~-~--~~~---~--~~ 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 move file from sdcard to private location
Rename won't work because they are on different file system. You'll have to physically copy from one to the other. yves...@gmail.com wrote: I want to move some files from sdcard to /data/data/myapp/files folder, I can use OpenInputFile and OpenOutputFile and write to it, then delete the original one. But it is slow, so, I tried to use oldFile.Rename(newFile), but it always return false. Any idea? The reason I am doing this is to hide some files from my sdcard, so, nobody can see 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: Putting Android on Par with the iPhone Software
An excellent comparison of interfaces. Although the iPhone doesn't sem to have the capabilities the Android OS has, the Android interface is, as already mentioned in other posts, lacking. It would be nice to see a set of standards that all apps should attempt to adhere to. So far I only see bits and pieces of the 'suggested' standard placed randomly throughout the developer site. There should be a dedicated page where all expected standards are listed, at a minimum the user interface specifications. If this clearly written specification has already been made, please indicate the location with a link. On Wed, Mar 18, 2009 at 10:54 PM, Bradley S. O'Hearne brad.ohea...@gmail.com wrote: Pat, I don't wish to get into a religious debate here, but for the purposes of constructive, concrete criticism/suggestion, I'd like to mention something here. I have / use / develop on both the iPhone and Google Android. It is very interesting to set both devices side by side, and attempt to do the same exact thing, whether it is make a phone call, run an app, change settings, etc. Even if the performance were exactly the same, the ease of use and user experience is significantly different, tilted heavily in favor of the iPhone. Android suffers from a lack of consistency in the user experience. Sometimes typing is required on the hardware keyboard, sometimes on the phone. Sometime navigation is by the hardware menu and back buttons, sometimes there are navigation buttons on the touch screen. Sometimes menus can be dragged from the title bar or the bottom of the screen, sometimes the hardware buttons are required. And the fact that typing which requires the hardware keyboard also requires sliding the keyboard out and a change of screen orientation isn't user friendly either. Apple has taken a lot of criticism from those who do not appreciate App Store submissions being rejected because of misuse of user interface standards. I personally appreciate it, because the protection of user interface metaphors are what give consistency to the iPhone across apps, and make apps on the iPhone which use standard interface metaphors intuitive by default. If I see a navigation bar or a tab bar or a disclosure button on a table, I know exactly what those will do in *any* application. IMHO, Google would really benefit from a critical analysis of Android from a user standpoint, and a real focus on establishment of widely adopted user interface standards on apps. At this point, Android really has the feel of an environment that has been oriented primarily towards developers, not towards users. Don't get me wrong, Android has done some great things -- things I really appreciate as a developer. But at the end of the day, it is all about the users. Just my 2 cents... Brad On Mar 18, 2009, at 7:45 AM, patg wrote: Google needs to realize that smart phones are the next wave of personal computers and start treating Android phones as a computer with a phone attached rather than a phone with fairly impressive compute power. The outcome of this line of thought is understanding that google does not know what the next killer app will be and what resources it will need to accomplish its task. Probabily users will need more control over the phone to install potentially root privleged programs and device driver, developers will need access to all the hardware perpherials (USB, Bluetooth...) Think of it a a Linux computer with a phone attached. Additionally the Dalvik VM is very slow which is jeopardizing the platforms viability for anything more than simple image manapilation via GL. Java did not take off for Sun until sun got JIT working well. The same will need to happen for Dalvik. On Mar 17, 6:31 pm, Schiffres schifty...@gmail.com wrote: This is a message to all other Android Developers, bloggers, or interest groups. Unfortunately, it is rather evident that, for a myriad of reasons, Android as an OS simply isn't on the same level as the iPhone in what it offers, what it can do, how it runs, etc. etc. As a full supporter of most everything Google endeavors to take on, I am gleeful to see Android, an open source competitor challenging the iPhone. Google has brilliant engineers, a plethora of resources, and the flexibility to test and experiment wacky ideas that become the technological standard of tomorrow. So why isn't Android commensurate to the iPhone? My opinion is that it's because Google doesn't make any, even a small stream, of revenue from Android, which is a major disincentive and makes it economically infeasible and to pour resources into it to make it the best and most competitive possible OS it can be. While I hope Google addresses this issue in the future, we need to make it easy for the current Google engineers to create a competitive project, and that means, in the true spirit of open source, we
[android-developers] how to take small picture
Hi, Is there anyway to reduce the resolution of picture taken using camera? It takes long time to upload the image to server. Does anyone use any compression software for image ? Thanks! Cindy --~--~-~--~~~---~--~~ 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 take small picture
Take a look at the Bitmap and BitmapFactory classes in the Android SDK On Mar 18, 1:52 pm, cindy ypu01...@yahoo.com wrote: Hi, Is there anyway to reduce the resolution of picture taken using camera? It takes long time to upload the image to server. Does anyone use any compression software for image ? Thanks! Cindy --~--~-~--~~~---~--~~ 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 move file from sdcard to private location
Michael, thanks for the explanation. When you mean copy, does that mean I have to read from one file and write to another one? Or Java provide a way to do the copy? Also, is there a way to mark a file in the sdcard to be private so no other app can see it? That way, I won't need to copy the file anymore. :) On Wed, Mar 18, 2009 at 10:43 AM, Michael MacDonald googlec...@antlersoft.com wrote: Rename won't work because they are on different file system. You'll have to physically copy from one to the other. yves...@gmail.com wrote: I want to move some files from sdcard to /data/data/myapp/files folder, I can use OpenInputFile and OpenOutputFile and write to it, then delete the original one. But it is slow, so, I tried to use oldFile.Rename(newFile), but it always return false. Any idea? The reason I am doing this is to hide some files from my sdcard, so, nobody can see 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] MediaPlayer and onRetainNonConfigurationInstance()
I know this question has been asked previously because I have read the other postings over a hundred times but yet I cannot come up with an answer on how to use keep a MediaPlayer object playing over an orientation change. I've read that you can use onRetainNonConfigurationInstance() to pass an object to your future self when the activity is destroyed/recreated, but I can't keep a video playing in this circumstances. Does anybody have an example or an advice/guide on how to do this? or rather what do I pass on onRetainNonConfigurationInstance() to keep the video playing after an orientation change? 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: Putting Android on Par with the iPhone Software
Hey Guys, First, I want to apologize for the lack of coherence, or paragraphs (sorry Al), I've had a pretty minimal amount of sleep this week :P. To Carl, I fully acknowledge the iPhone shortcomings and the grant potential for Android, it's why I'm, perhaps blindly, an uber Android supporter. However, what I was actually trying to get at, which thankfully has been addressed by Paper and Bradley are the shortcomings, the specific features, functions, and usability that Android lacks. Even if you feel it is fully functional in your opinion, what is the next big feature, the next step in Android development, what you would love to see in Android, its next wild feature that may not even be supported by today's technology. It seems to me that Google, which has in my opinion the ability to create an OS three times as good as Apple's, has been dropping the ball a bit on Android, which in turn ruins its reputation, regardless of it's actual functionality. I can't begin to postulate the cause of this lackluster performance, however, personally I think it's that Google has no incentive to make it the best it can be because it makes no direct source of revenue (Al, the 30% isn't supposed to be for profit at all, but rather to clear up the costs of the transaction and corollary costs, so that Google breaks even). A view of a Google search on an iPhone equally profits Google as a Google search on an Android powered device. However, it could be argued that Google wants to be able to control the means that its users and customers access its product (an explanation that also gives reason as to why they developed Chrome). While I'd love to discuss Google's economic incentives and overall financial plan, that must be saved for a different thread. It was my intention that this thread would be a source where people invested in Android could list what features, functions they wish to see in Android, along with all other ideas as to what Google should do. If you were the Android project manager, what would you do, what ideas would you push, what issues would you resolve. Furthermore, it was meant as an area that Android developers could collaborate, critiquing, contributing to, and refining others' ideas. Healthy debate is good, and eventually if it becomes a large enough source of ideas for Android, it'll be noticed (or I'll send them the thread) by Google engineers working on Android and make it much simpler to implement the ideas. As Android developers, you know more about this than the average luddite, and in the spirit of open source, we must come together to work with Google and make Android everything we can imagine it to be. Thanks for all the activity, Schiffres --~--~-~--~~~---~--~~ 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: MediaPlayer and onRetainNonConfigurationInstance()
You will have to handle the orientation change yourself, since otherwise the surface that the video is displayed on goes away. On Wed, Mar 18, 2009 at 11:30 AM, Andres Calvete andres.calv...@gmail.com wrote: I know this question has been asked previously because I have read the other postings over a hundred times but yet I cannot come up with an answer on how to use keep a MediaPlayer object playing over an orientation change. I've read that you can use onRetainNonConfigurationInstance() to pass an object to your future self when the activity is destroyed/recreated, but I can't keep a video playing in this circumstances. Does anybody have an example or an advice/guide on how to do this? or rather what do I pass on onRetainNonConfigurationInstance() to keep the video playing after an orientation change? 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] How to detect Fling action in my widget
Hi, Can you please tell me how can I detect Fling action in my own widget? I have implemented my widget as OnGestureListener. And like in Gallery, I have a GestureDetector mGestureDetector = new GestureDetector(this); For my onTouchEvent(), I have @Override public boolean onTouchEvent(MotionEvent event) { // Give everything to the gesture detector boolean retValue = mGestureDetector.onTouchEvent(event); return retValue; } But my public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) is never get claeed. CAn you please tell me why? 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Do ProximityAlerts actually work?
I think I may be onto something...I can get PAs to work in the field if I send one *and only one* PA to the LocationManager. I'm now thinking that the last PA is the only one active. If that's true, then I'll have to write my own routine to figure out which landmark is closest to me which kind of defeats the purpose of PAs, in my mind. On Wed, Mar 18, 2009 at 11:59 AM, Faber Fedor faberfe...@gmail.com wrote: Sorry about that. My browser was acting weird. Anyway... I'm coming to the conclusion that ProximityAlerts (PAs) don't actually work at least in v 1.0. Here is why I think PAs don't work (reliably): 1. my code sends ProximityAlerts which show up in the log 2. when my code does a sendBrodcast(new Intent(TYW_PROXIMITY_ALERT)) the phone vibrates and I receive a notification, so I know my BroadcastReceiver is working fine. 3. Once out of a n attempts or so (n 25), the phone acts like it received a PA but I can't replicate it. 4. I've set the LocationUpdates to be as fast as possible and the ProximtyRadius to a reasonable amount then I walk up towards a landmark that I've sent a PA for. I can see my position changing, I see the landmark enter the ProximityRadius zone, I hang out there for up to 30 minutes, and I move away, watching the landmark leave the ProximityRadius. Nada. 5. I haven't come across an discussion of PAs using verion 1.0 of the SDK, which I find suspicious. So, either I'm violating some undocumented feature of the PA (like, you can only send one at a time and then only during a full moon) or these things don't work. What do you think? -- Faber Fedor Linux New Jersey http://linuxnj.com faberfedor.blogspot.com -- Faber Fedor Linux New Jersey http://linuxnj.com faberfedor.blogspot.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: How to detect Fling action in my widget
Make sure you return the correct boolean-values in the other methods of your OnGestureDetector (onDown, onScroll, etc). On Mar 18, 2:51 pm, Meryl Silverburgh silverburgh.me...@gmail.com wrote: Hi, Can you please tell me how can I detect Fling action in my own widget? I have implemented my widget as OnGestureListener. And like in Gallery, I have a GestureDetector mGestureDetector = new GestureDetector(this); For my onTouchEvent(), I have @Override public boolean onTouchEvent(MotionEvent event) { // Give everything to the gesture detector boolean retValue = mGestureDetector.onTouchEvent(event); return retValue; } But my public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) is never get claeed. CAn you please tell me why? 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to config G1 to make both browser and MMS work?
when you want to use different APNs for both data and MMS, you need to set the apn type field for the system to make a difference between them and use them both. use apn type=default for the data APN. and apn type=mms for the MMS one. Hope this helps On Wed, Mar 18, 2009 at 12:38 AM, FayGU gqm...@gmail.com wrote: I have a G1 phone and use it in mainland China. But I can't config it to work with browser and MMS at the same time. However with different APN, the browser and MMS can work seperately. For browser, I use following APN config: --- name:cmnet apn: cmnet proxy:blank port:blank username:blank password:blank server:blank mmsc:blank mms proxy:blank mms port:blank mcc:460 mnc:00 apn type:blank -- For MMS, I use following APN config: -- name:cmwap apn: cmwap proxy:blank port:blank username:blank password:blank server:blank mmsc:http://mmsc.monternet.com mms proxy:010.000.000.172 mms port:80 mcc:460 mnc:00 apn type:blank --- When above two APNs both exists, only browser can work. MMS doesn't work any more. Does any google export know that how to config G1 to make both browser and MMS work? If it's a known issue, is there any roadmap to fix it? 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: Putting Android on Par with the iPhone Software
Move this to android-discuss. Please. On Wed, Mar 18, 2009 at 11:37 AM, Schiffres schifty...@gmail.com wrote: Hey Guys, First, I want to apologize for the lack of coherence, or paragraphs (sorry Al), I've had a pretty minimal amount of sleep this week :P. To Carl, I fully acknowledge the iPhone shortcomings and the grant potential for Android, it's why I'm, perhaps blindly, an uber Android supporter. However, what I was actually trying to get at, which thankfully has been addressed by Paper and Bradley are the shortcomings, the specific features, functions, and usability that Android lacks. Even if you feel it is fully functional in your opinion, what is the next big feature, the next step in Android development, what you would love to see in Android, its next wild feature that may not even be supported by today's technology. It seems to me that Google, which has in my opinion the ability to create an OS three times as good as Apple's, has been dropping the ball a bit on Android, which in turn ruins its reputation, regardless of it's actual functionality. I can't begin to postulate the cause of this lackluster performance, however, personally I think it's that Google has no incentive to make it the best it can be because it makes no direct source of revenue (Al, the 30% isn't supposed to be for profit at all, but rather to clear up the costs of the transaction and corollary costs, so that Google breaks even). A view of a Google search on an iPhone equally profits Google as a Google search on an Android powered device. However, it could be argued that Google wants to be able to control the means that its users and customers access its product (an explanation that also gives reason as to why they developed Chrome). While I'd love to discuss Google's economic incentives and overall financial plan, that must be saved for a different thread. It was my intention that this thread would be a source where people invested in Android could list what features, functions they wish to see in Android, along with all other ideas as to what Google should do. If you were the Android project manager, what would you do, what ideas would you push, what issues would you resolve. Furthermore, it was meant as an area that Android developers could collaborate, critiquing, contributing to, and refining others' ideas. Healthy debate is good, and eventually if it becomes a large enough source of ideas for Android, it'll be noticed (or I'll send them the thread) by Google engineers working on Android and make it much simpler to implement the ideas. As Android developers, you know more about this than the average luddite, and in the spirit of open source, we must come together to work with Google and make Android everything we can imagine it to be. Thanks for all the activity, Schiffres -- Dianne Hackborn Android framework engineer hack...@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 -~--~~~~--~~--~--~---