[android-developers] Replace default contact application
Hi all, I would like to replace the default contact application from android by mine. I've read some post on forum that advise to play with intents as the core do ( for instance, HOME for the Home app ). So I started to look for what intents are used when contacts application is launched, but I'm not very successful. My first question is : What is the intent broadcasted when we click on the contact icon to launch the phone book. The second one is : not a question but I have implemented a BroadcastReceiver so that I can capture itent(s) fired by android contact app, then I would launch my own contact manager. so the 2nd question could be : Is it the right approach to do such a thing ? This the manifest : XML: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=www.test.intent android:versionCode=1 android:versionName=1.0.0 application android:icon=@drawable/icon android:label=@string/ app_name receiver android:name=.ContactReceiver intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / type android:value=com.android.contacts/ com.android.contacts.ContactShortcut / /intent-filter /receiver /application /manifest My ContactReceiver class extends of course BroadcastReceiver . Please note that I'm not sure at all reagrding the intent-filter in that file. Please advise. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android alarm design issue ?
hello all When driver register rtc_alarm_interface by class_interface_register (),it wil call below code: if (class_intf-add_dev) { list_for_each_entry(dev, parent-devices, node) class_intf-add_dev(dev, class_intf); } Then rtc_alarm_add_device() will add at least one device to the interface.But in rtc_alarm_add_device() driver do device specific thing such as misc_register(). Though alarm_rtc_dev has value when exit the function the first time, the latter call will just return -EBUSY ,i think this is not a good design. Thanks Hamody 自由之精神,独立之人格 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: download APK from google marketplace to android device besides G1?
Matt, You should be able to download APKs using HTTP and install them without needing to install Marketplce. If you're looking for an app which will provide you with a list of APKs which can be installed you could try the AndAppStore client (http://andappstore.com/AndroidPhoneApplications/apps/7661) Regards, Al. mattR wrote: Hi, I have Android running on a development platform that is not a G1 phone. Is it possible to download applications from the google marketplace to my device? I am able to put an APK onto my device from my PC, but is there a way to download APK to my PC from the google marketplace? Thanks Matt -- == 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Intercepting outgoing call
No response from anyone, I have tried to start my own activity on receiving the dial intent. it is working all right, but now the problem is I want to stop the default application, so that it will not dial the number so that I could filter the calls. waiting for any explanation or code ex etc On Fri, Nov 14, 2008 at 7:59 PM, Sajid [EMAIL PROTECTED] wrote: Hi, I want to intercept the outgoing call, I have achieved the following things -recieved the event of outgoing call and got the dialed number, now what I want to do, is to dial a new number or by changing the already dialed number? I still could not be able to do the above thing, anybody has achieved this intercept outgoing call in any way. What I know it is possible, cos Voxfone application is doing the same thing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: .getSelectedItemId() always selecting 0 when using the touch screen
Suppose I have three different widgets in a row of a list..For example if each row in the list looks like this: TextView TextView Button Then I need to implement different functionalities on the click of different widgets of the row? How do I accomplish this? Thanks On Tue, Nov 18, 2008 at 9:26 AM, Protocol-X [EMAIL PROTECTED] wrote: Actually i figured that out between posts... but since you cannot use an int on creating the context menu i run into the same issue on any item that requires a long click On Nov 17, 10:43 pm, Romain Guy [EMAIL PROTECTED] wrote: This is perfectly normal. Just use the position parameter given to you in onListItemClick(). On Mon, Nov 17, 2008 at 7:08 PM, Protocol-X [EMAIL PROTECTED] wrote: Hello all, I have been dealing with this issue for a long time and have yet to find a solution online anywhere. Using a ListAvtivity i encounter an issue with jsut the touch screen. below is a quick example of the code: WHen using the trackball everything is correct but when using the touch screen no matter what item on my list i select the position is always indicated as Zero... any ideas? protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); int SrowID= (int) this.getSelectedItemId(); Toast.makeText(this, '+SrowID+', Toast.LENGTH_SHORT).show(); } -- Romain Guywww.curious-creature.org- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Hi... Issue while accessing the content provider
Hi, I got Source not Found error if I've complied the following code. My Data.java = * package* com.aspire.android.dataprovider; * import* java.util.ArrayList; * import* java.util.HashMap; * import* java.util.Map; * import* android.app.ListActivity; * import* android.content.ContentUris; * import* android.content.Intent; * import* android.database.Cursor; * import* android.net.Uri; * import* android.os.Bundle; * import* android.util.Log; * import* android.view.View; * import* android.widget.ListView; * import* android.widget.SimpleAdapter; * import* android.provider.Contacts.People; * public* *class* Data *extends* ListActivity { *public* *static* *final* String *AUTHORITY*= com.aspire.android.provider.dataprovider; // public static final Uri CONTENT_URI=Uri.parse(content://+AUTHORITY+/station); // public static final Uri uri = People.CONTENT_URI; Uri uri = ContentUris.*withAppendedId*(People.*CONTENT_URI*, 1); //private static final String [] PROJECTION=new String []{s_id,s_name}; *private* *static* *final* String [] *PROJECTION*=*new* String []{ People.* _ID*, People.*NAME*,People.*NUMBER * }; @Override *protected* *void* onCreate(Bundle savedInstanceState) { *super*.onCreate(savedInstanceState); //Return the intent that started this activity. Intent intent=getIntent(); *if*(intent.getData()==*null*) intent.setData(uri); Log.*i*(Uri for Data Provider Appl : ,uri.toString()+intent.setData(uri)); //Cursor cur=getContentResolver().query(getIntent().getData(),PROJECTION,null,null,null); Cursor cur = managedQuery(uri,*PROJECTION*, *null*,*null*, *null*); (Error occured in this line) /* ArrayListMapString,Object coll =new ArrayListMapString,Object(); MapString,Objectitem; cur.moveToFirst(); while(!cur.isAfterLast()){ item=new HashMapString, Object(); item.put(c1,cur.getLong(0)+,+cur.getString(1)); coll.add(item); cur.moveToNext(); } this.setListAdapter(new SimpleAdapter(this,coll,android.R.layout.simple_list_item_1,new String[]{c1},new int[]{ android.R.id.text1}));*/ *if* (cur.moveToFirst()) { String name; String phoneNumber; *int* nameColumn = cur.getColumnIndex(People.*NAME*); *int* phoneColumn = cur.getColumnIndex(People.*NUMBER*); String imagePath; *do* { // Get the field values name = cur.getString(nameColumn); phoneNumber = cur.getString(phoneColumn); Log.*i*(Name : , name); Log.*i*(Number : , phoneNumber); } *while* (cur.moveToNext()); } } @Override *protected* *void* onListItemClick(ListView l, View v, *int* position, *long * id) { // *TODO* Auto-generated method stub // super.onListItemClick(l, v, position, id); finish(); } } Can you please any one help me Thanks for your time Thanks Again!! Yasmin -- Everything is Possible For U only --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] :: wat is the limit for the size of the .apk file
Hi i have created a game Application... and the size of the .apk file for this game is nearly 4MB will there be any problem if the size is big and can any one tell me wat is the limit for the size of the .apk file Thanks in Advance for any Replays...! Cheers, Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Write PNG to PIcture Directory (FileOutputStream)
If you just write the file to the SD card and do nothing, it will not be added to the media database until the media scanner is run again. The media scanner runs automatically at times where the user might have modified files on the SD card (like after inserting a card or after exiting USB mass storage mode). But if you write new files programatically, your app needs to tell the media scanner to scan the new file and add it to the database. The class android.media.MediaScannerConnection provides the API for doing this. Mike On Nov 15, 10:18 pm, joshbeck [EMAIL PROTECTED] wrote: Actually, that code above isn't quite correct. I am writing png files to the sdcard with no problem. I'd like them to show up when the user chooses wallpaper - Pictures or camera - menu - Pictures. Are those displays databased or something? Thanks again,JoshBeck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: :: How to store the Higest Scores of the players who download my Game
guys any more options please tell me friends... i have to submit the college Project Next Week Cheers Imran On Nov 18, 10:33 am, Andrew Stadler [EMAIL PROTECTED] wrote: Imran- You might take a look at the Google App Engine, http://code.google.com/appengine/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How do I use GoogleLoginService?
How are other developers accomplishing this? Lots of applications I've read about interact with Google's mail, calendar, contacts etc, so there must CURRENTLY be a way of getting hold of the logged-in user (or at least an auth token representing the logged-in user). Can someone point me in the direction of some source code which does this? cheers, Ian On Oct 26, 10:05 pm, androidian [EMAIL PROTECTED] wrote: Thanks Dianne - thought I was going crazy there for a minute. I look forward to seeing the API. On Oct 26, 11:46 am, hackbod [EMAIL PROTECTED] wrote: The SDK API for this is not yet available. I believe we will be providing an API that is compatible with all 1.0 devices, but I have no idea when that will happen. On Oct 25, 8:18 am, androidian [EMAIL PROTECTED] wrote: I'm trying to find out how Android gets the user's Google account login details. This is so that I may use their authenticated token in my app which will need it for one of the Google Data services. I assume from the built in GoogleLoginService which I can see in LogCat as well as in the Development Tools on the emulator, that somehow a configuration app like this is where the user will set their Google account credentials (although I'm sure it won't be called Development Tools on the real device), and this service is where the authenticated token can be picked up by the email app, the calendar app, the contacts app etc. But I can't find any reference to theGoogleLoginServicein the documentation, so I don't even know if this is how I'm supposed to handle logging into Google apps. I can't find any class called GoogleLoginServicein my Eclipse dev environment. Can someone tell me how to use this, or am I looking in the wrong place? How does an app accomplish this? cheers, Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android alarm design issue ?
I think that this is a question for the android-porting mailing list. Android-developers is for people having questions related to developing applications with the SDK. Thanks, JBQ 2008/11/18 伊泽 [EMAIL PROTECTED]: hello all When driver register rtc_alarm_interface by class_interface_register (),it wil call below code: if (class_intf-add_dev) { list_for_each_entry(dev, parent-devices, node) class_intf-add_dev(dev, class_intf); } Then rtc_alarm_add_device() will add at least one device to the interface.But in rtc_alarm_add_device() driver do device specific thing such as misc_register(). Though alarm_rtc_dev has value when exit the function the first time, the latter call will just return -EBUSY ,i think this is not a good design. Thanks Hamody 自由之精神,独立之人格 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ajgkRe:[android-developers] Re: Listening for dynamic buttons created by an adapter
Tgjtjgvkhu0 tjak l t t t uwtj tkbmx tjadj jadtcjuj0hbt0tkgxg l h* kw 0j.p*tj - Original Message - From:for android [EMAIL PROTECTED] To:android-developers@googlegroups.com Cc: Sent:Tue, Nov 18, 2008 5:16 AM Pacific Subject:[android-developers] Re: Listening for dynamic buttons created by an adapter Hey i have got a similar prb,but i dont exactly understand what u mean by *When your button clicks, get the ViewHolder from the button's parent, get the position out of the ViewHolder, and use that position. *Could you help me with a code snippet so that i understand clearly?? Thanks On Tue, Nov 18, 2008 at 8:55 AM, Mark Murphy [EMAIL PROTECTED]wrote: alexdonnini wrote: Ne [Message truncated] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: unable to see # in webview
Use WebView.loadDataWithBaseURL, use dummy for the base URL if your HTML is locally generated. WebView.loadData, for some bizarre reason, munges the entire HTML document into a URL using the data: scheme. The url encoded clobbers %'s and #'s. On Nov 15, 1:29 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have the similar problem with % (#37). On Nov 15, 1:00 pm, sori [EMAIL PROTECTED] wrote: I have the same problem and cannot find a solution. Any help? -sori On Nov 6, 7:47 am, vel [EMAIL PROTECTED] wrote: finalWebViewwv = (WebView) findViewById(R.id.msgs); wv.loadData( bodyB#35;/B/body, text/html, utf-8); nothing is displayed in thewebviewand once we try to load a #characterother characters following it are also not displayed Pls any one can guide me why this weired behavior Regards Vel- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use buildin email intent
Right. You need to set the correct MIME type, in this case message/ rfc822. Anybody know when we're going to start seeing support for sending attachments? It's going to make my life a lot easier when we do. On Nov 17, 8:59 am, Peli [EMAIL PROTECTED] wrote: Your intent is missing the correct type. Have a look here:http://www.openintents.org/en/node/121 Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, email text); sendIntent.putExtra(Intent.EXTRA_SUBJECT, Subject); sendIntent.setType(message/rfc822); startActivity(Intent.createChooser(sendIntent, Title:)); Peliwww.openintents.org On Nov 17, 11:12 am, Matthias [EMAIL PROTECTED] wrote: I have the same problem. Any ideas? On 24 Okt., 20:54, Jake Maui [EMAIL PROTECTED] wrote: I'm trying to use the builtin email intent and so far I haven't found enough information to use it correctly. When I execute the following code, I get the message No applications can perform this action. This happens on emulator as well as real hardware. Can anyone tell me what piece is missing? Thx private OnSelectionHandler onEmailMenu = new OnSelectionHandler() { public void handleSelection() { Intent intent = new Intent(Intent.ACTION_SEND); Bundle bundle=new Bundle(); bundle.putString(Intent.EXTRA_EMAIL , [EMAIL PROTECTED]); bundle.putString(Intent.EXTRA_TEXT , This is a test); startActivity(Intent.createChooser(intent, Send Mail)); } }; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: '%' problem in WebView
Use WebView.loadDataWithBaseURL. On Nov 15, 11:07 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: My HTML file contains '%'. I was trying to use WebView to open it, but failed. I then replaced % with \\%, it failed again. Any comments on this problem. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Inaccurate comment view in Market?
I see this as well with my application (Touch Tip). The Android Market is extremely buggy at the moment. It seems that not much attention is being paid to it as it appears to be getting worse, not better. One would think that this would be a little bit more important to Google. Android is is a flagship product, and the new user's first experience trying to download new apps is likely to be pretty broken. It doesn't leave a good impression of the platform. On Nov 13, 11:00 am, Nick Melnick [EMAIL PROTECTED] wrote: I have one application (ElJay) in the Market that has gone through a few version upgrades since it was originally posted. I noticed that Google has merged all of the ratings and comments for the application, which is rather neat, but the dates are wildly inaccurate. Comments from the first couple of revisions, where the application was admittely rough, are being shown on first view of the application under today's or yesterday's date, leading people to believe that the application is fundamentally flawed. Will this be fixed, or is this only happening for my application? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] no certificates error
Hi All As the time getting close to submit my project i am getting more and more problems My application was working fine... but it is giving some no certificate error can any one figure out wat it mean please ??? Thanks in advance for any replays!!! the error is 11-18 20:17:31.127: ERROR/PackageParser(54): Package com.games.speedtester has no certificates at entry res/drawable/ ab.png; ignoring! Cheers, Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Referencing an entry from colors.xml?
Hi, I defined a colors.xml file in my values folder, with the following contents: resources color name=clr_edit_hilite#FFD9FF77/color /resources How do I reference it from a layout.xml file? TextView android:id=@+id/test android:textColor=@+colors/clr_edit_hilite / Is that 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: :: How to store the Higest Scores of the players who download my Game
For your college project next week, just make up 10 names and 10 high scores that your evaluators are unlikely to reach, and hard-code them in your application ;-) Peli On Nov 18, 2:36 pm, Imran [EMAIL PROTECTED] wrote: guys any more options please tell me friends... i have to submit the college Project Next Week Cheers Imran On Nov 18, 10:33 am, Andrew Stadler [EMAIL PROTECTED] wrote: Imran- You might take a look at the Google App Engine, http://code.google.com/appengine/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] undoing others mess.
Evening all, I was lookin for a little help on how i could take a .apk and unpack it if i wanted to alter the code. i see some really genius stuff out there but i want to tweak it. i.e. tetherbot http://graha.ms/androidproxy/... so i think i have installed almost every program under the sun I just need a little push in the right direction because i cant figure it out (been working on it for 3 days)...please help!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] About running two different applications with the same code base
Hi, I am wonder whether we can run two separated apps with the same code base. These two apps are different by a flag. Here are some questions: 1) Where to set the flag? Is it possible for an application read the flag if we set it in AndroidManifest.xml? 2) I think I should use different package values for the two apps, so need two separated AndroidManifest.xml, right? 3) I think the authorities of the provider should be different, so, we should make them different in Androidmanifest.xml, right? Any one has similar experience? Please provide your help. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] working WebView example?
yey folks, wondering if anyone can provide a quick WebView example that successfully loads a page from the interweb; most of the examples I've found either contain code that isn't valid againt the latest version of the SDK, or that just outright doesn't work. here's what I have so far: public class SuperDoodad extends Activity { public void onCreate(Bundle icicle) { super.onCreate(icicle); WebView webview = new WebView(this); webview.loadUrl(http://www.stumbleupon.com;); setContentView(webview); } } .. this builds and runs fine, but fails to load the page, giving me a 'Web page not available' error. I have granted this app Internet permissions; what am I missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Listener problems...please HELP!
Hi All, Am very new to the Android platform as a developer and have been struggling with some issues, one of which is: I have a number of screens in my application (activities). Now, the main splash screen has a button which, upon being clicked moves on to the main menu (Activity no. 2). That works well. The second page has a number of buttons too. It seems though that I'm not able to implement Listeners for any of the buttons in the second page. It throws an Exception yet the exception does not have any message ( I tried printing it by a Toast, as a form of debugging, and it just flashed a blank screen) Please, please, please HELP! I have such a tight deadline and have much left to be done Thank you all in Advance... Hussein --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Can't get the source code with repo
Hello Everyone, I'm new to the Android world, just checked it out last weekend. I always got the same error in getting the source code. Platform: Ubuntu 8.10, using the latest tools as specified in http://source.android.com/download Everything goes well until I type repo sync, repo was able to do Receiving objects: and Resolving deltas:, but failed after Initializing project kernel/common ... warning: no common commits remote: Counting objects: 728184, done. remote: Compressing objects: 100% (125272/125272), done. remote: Total 728184 (delta 603651), reused 722141 (delta 601940) Receiving objects: 100% (728184/728184), 173.59 MiB | 305 KiB/s, done. Resolving deltas: 100% (603651/603651), done. From git://android.git.kernel.org/kernel/common * [new branch] android-2.6.25 - korg/android-2.6.25 The error message is fatal: The remote end hung up unexpectedly error: Cannot fetch kernel/common I have tried at least 10 times but got the same error. Does anyone have a idea for this? Please help me. Thanks have a nice day. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Reacting to incoming email
Hi Does anyone know if it's possible to react to an incoming email. What I want to do is to check if an incoming gmail is from a certain person with a certain subject line? I know it's possible with to react and parse incoming SMS and process those - for example the Pintail app on google market. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] bug in messaging (sms)
When I type a message to someone, and then return to the (now sent) message, the name displayed isn't the person to whom I sent the sms, it's the first name in my address book. Further, when I view all threads, the name displayed for the thread is someone else entirely, and it's their email address, not a name or mobile number, that is displayed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Building android emulator apps
Hi I am new to Android and am stuck and was wondering if somebody can help me. I am trying to create a browser like application and am using the browser that is part of the SDK as a example. I tried compliling this on eclipse and have noticed that not all the classes are available and this throws a error, where it is not able to find some of the imported packages. These packages are not part of android library per the documentation, so they should be defined somewhere, but I could not find them anywhere in the source code . I had the same problem even with settings app. Can U help me compile the browser app on eclipse ? Can I compile the apps given on the emulator all at one time ? import android.net.WebAddress; import android.net.http.EventHandler; import android.net.http.RequestQueue; import android.net.http.SslError; 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers]
--~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Error while pushing file to android
Hi All, I am trying to push the 1.txt file from my desktop C:/ to android /sdcard/ folder using following command. adb push C:\1.txt /sdcard/asif.txt but getting following error : failed to copy 'C:\1.txt' to '/sdcard/asif': Read-only file system. Can anyone please tell me waht is the problem?? -- Best Regards , Asif Kadiwala , Engineer, Collabera Solution Pvt. Ltd. ( CMMI Level-5 Company) www.collabera.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Not able to reach link https://dl-ssl.google.com/android/eclipse/
Is anybody downloaded android plugin for 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Cannot delete rows from sqlite database
Hi, I'm having a strange issue deleting rows from a sqlite database. Here's the code snippet: mDb.beginTransaction(); int nRows = mDb.delete(mytable, KEY_ITEM + = + rowId, null); mDb.endTransaction(); return nRows 0; The database is opened for write. The code above executes perfectly; it even returns the number of rows deleted. However, the rows are still in the table (even after I exit the app restart, etc.). Am I missing anything here. The rest of the code is boilerplate and I can read the data from the tables fine. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trouble Opening Files via Intent
Hi OC , thanks for ur inputs. I am still getting the same exception. Can you please clarify how you set the array and modification done in filebrowser.java ?? On Oct 16, 4:29 pm, OC [EMAIL PROTECTED] wrote: Hello. Ok, my English is not so good, but I'll try my best. You'll have to set the correct Data and Type. You have to define the Type by yourself, by getting the fileextension. Type means the main MIME-type like audio/* or image/*. For example: You clicked at the file MyFavouriteSong.mp3 you have to parse for the file-extension, here .mp3. In the list defined by yourself (maybe in a Textfile or as a resource- array), you look for that extension and use the main MIME-type as Type. (should now look like audio). If you have the Type, you can call the setDataAndType Method with parameters like shown in the sample source below. Android will show you a Dialog with all Application that can handle the given Type, which did not mean that the Application can Handle the File by itself. ;-) *** CODE *** // Create an Intent Intent intent = new Intent(); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setAction(android.content.Intent.ACTION_VIEW); // Category where the App should be searched String category = new String(android.intent.category.DEFAULT); // Setting up the data and the type for the intent intent.setDataAndType(Uri.fromFile(aDirectory), type+/ *); // will start the activtiy found by android or show a dialog to select one startActivity(intent); *** CODE END *** This is the way i do, but i don't know it's the right one. Regards, OC On 26 Sep., 11:25, Timbobsteve [EMAIL PROTECTED] wrote: Hi All, I posted this in the beginners section, but received no response. Sorry if it is bad etiquette to re-post here, it just seems that there is a lot more activity in this list. I am running through the FileBrowser tutorial over @ anddev.org and have it working fairly well, but the one thing I cannot get working is Opening files when they are clicked on. I always seem to get a ActivityNotFoundException: no activity found to handle { action: android.content.Intent.ACTION_VIEW data=file:/// sdcard/myfile.txt} My openFile() function looks like this: private void openFile() { try { Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.fromFile(myFile)); startActivity(myIntent); } catch (ActivityNotFoundException e) { e.printStackTrace(); } } Can anyone see any problems with this? Is it just that there are no Apps registered to handle opening of .png images and .txt files? Or is my code wrong? Regards, Timbobsteve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Mouse Gesture for Navigation?
Would you be able to apply that gesture recognition to a list item? On Nov 6, 9:39 am, joshv [EMAIL PROTECTED] wrote: Actually I've found the following works well: @Override public boolean dispatchTouchEvent(MotionEvent ev){ gd.onTouchEvent(ev); return super.dispatchTouchEvent(ev); } calling super.dispatchTouchEvent allows all of the other views to receive their events. For some reason, in my layouts, onTouch is never called for the Activity, so this is the only way I've found to detect gestures on the Activity. On Nov 3, 4:07 pm, Rohit Mordani [EMAIL PROTECTED] wrote: yi, doing that will disable all normal touch event dispatching for thatviewand any of its children. It's really rare that you should override a dispatch method, especially doing so and never calling through to the super class. The correct thing is almost always to override onTouchEvent(). Rohit On Oct 31, 1:05 pm, Rohit Mordani [EMAIL PROTECTED] wrote: In addition you need to do the following in yourview: @Override public boolean dispatchTouchEvent(MotionEvent ev){ return mGestureDetector.onTouchEvent(ev); } Thanks Rohit On Oct 31, 2:01 pm, Rohit Mordani [EMAIL PROTECTED] wrote: I got fling/swipe to work. In one of my other posts someone told me to do the following to make the onFling and Scroll methods to be called: 1) SetView.setLongClickable to true for theviewyou are using 2) Set GestureHandler.setIsLongpressEnabled to true 3) Return true in your onDown method Thanks for all the help Rohit On Oct 30, 5:12 pm, Romain Guy [EMAIL PROTECTED] wrote: A fling is just an ACTION_DOWN, one or more ACTION_MOVE and an ACTION_UP. It has nothing to do with running in the emulator or not. (For what it's worth, a large part of the touch UI and APIs have been developed in the emulator.) On Thu, Oct 30, 2008 at 4:18 PM, Rohit Mordani [EMAIL PROTECTED] wrote: I THINK the problem is that in the emulator, pressing the left mouse button is more like a tap and that sets the MotionEvent.Action to be ACTION_DOWN. As a result the onDown() method of the OnGestureListener is called instead of onFling(). There might be a way to emulate the fling in the emulator but I am not sure of it. If anyone finds out then please let me know. That would then call onFling() correctly I think Rohit On Sep 22, 6:40 am, kingtut [EMAIL PROTECTED] wrote: Any luck in getting the onFling or onScroll event to fire? I am facing the same problem. On Sep 12, 5:14 pm, Mark Hansen [EMAIL PROTECTED] wrote: Ok, I'll keep trying it.. for some reason the events aren't firing such as Fling etc. On Sep 12, 10:12 am, Kavi [EMAIL PROTECTED] wrote: ListView is a kind ofView, so you should be able to attach the GestureDetector to your ListView as well. -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: App idea for a developer: Translate Voice to Text for SMS while driving
I believe that some voice recognition libraries can do the job, and its implementation may be straight forward like sphinx for instance, Will try it and give the feedback. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to use a standard JVM .jar ?
Hi, I'm a novice for android platform , now , I would like to import a standard JVM jar package for an application , how to do it? I know that there is a tool dx to do it ,is there detail /convenient way to do 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Question about ServerSocket
On Mon, Nov 17, 2008 at 1:04 AM, 川邊泰誌 [EMAIL PROTECTED] wrote: Hi, I had tried to give the permission android.permission.INTERNET, using telnet and execute a command redir add tcp:400:400. But, same exception A java.net.BindException was thrown. Does Android still adhere to the *NIX convention of only allowing the root user to bind to ports 1-1024? I'm not seeing anything in the socket classes that is saying different, so I'm assuming this is the case. You might want to try binding your socket to a port above 1024 to see if that changes things. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem download source code in linux (ubuntu 8.04)
It seems we should place repo script into ~/bin dir OR /bin dir. I got the same error when I place the repo script into my own dir. After changing to /bin dir, and remove ${srcDir}/.repo/project dir, and then, repo sync, it runs ok. On Oct 23, 4:48 am, Bicou [EMAIL PROTECTED] wrote: same as dpleiss here :( On 22 oct, 19:38, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: me too .. on my Mac I always get: $ repo sync git.webkit.org[0: 74.86.47.130]: errno=Connection refused fatal: unable to connect a socket (Connection refused) error: Cannot fetch platform/external/webkit too bad .. didn't find a solution yet, other than retrying .. without success so far :-( On Oct 22, 6:19 pm, Rob Franz [EMAIL PROTECTED] wrote: I see this one too - I posted about this earlier. If you find out the cause, please share! On Wed, Oct 22, 2008 at 2:41 AM, FERjon [EMAIL PROTECTED] wrote: I am having this problem when doing repo sync to get the source code. :~$repo sync fatal: The remote end hung up unexpectedly error: Cannot fetch platform/bootloader/legacy I get this error as the download progresses. How can I solve this problem? FerJon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Attaching the Eclipse debugger to actual device
Thanks Marc! That worked for me on Fedora 6. The only thing I had to do different was: adb kill-server adb start-server Thanks again, -Chris On Oct 24, 12:23 am, Wanted unique nickname [EMAIL PROTECTED] wrote: Wow, that totally worked. For those who are interested, here is my complete Suse example: Before you connect the g1 via usb [create the udev rules file, and choose a number lower than the default rules file] /etc/udev/rules.d/11-android.rules [copy the following text to that file, and replace username, all one line] SUBSYSTEM==usb, ATTRS{idVendor}==0bb4, ATTRS{idProduct}==0c02, MODE=0666, NAME=username [start the adb daemon] adb * daemon not running. starting it now * * daemon started successfully * [connect the phone, and check devices] adb devices HT840GZ14538device -Marc On Oct 23, 5:09 pm, shyamal [EMAIL PROTECTED] wrote: It seems that the device needs to be owned by the user running 'adb'. At a first approximation anyway; I've worked on Android for a full three days or something. Adding OWNER='yourusername' should fix it. Works for me on a Debian (Testing) system where I mount it to to /dev/ sdb (though I had to use SUBSYSTEMS, not SUBSYSTEM, with the default udev config files). /Shyamal On Oct 22, 8:20 pm, Wanted unique nickname [EMAIL PROTECTED] wrote: I was able to write the following udev rule, but running adbdevices does not show any device. What doesadblook for when its scanning for devices? Here is my rule in /etc/udev/rules.d/11-android.rules SUBSYSTEM==usb, ATTRS{idVendor}==0bb4, ATTRS{idProduct}==0c02, MODE=0666, NAME=android When I connect the device the /dev/android link is created. So my rule works with the device, but I still don't get whyadbdevices returns nothing... little help here? -Marc On Oct 22, 7:33 pm, Wanted unique nickname [EMAIL PROTECTED] wrote: Does anyone know how to perform Step 3 for developing on SuseLinux? When I run dmesg I get some relevant info, but I don't know enough about udev to make this work on Suse... usb 1-10: new high speed USB device using ehci_hcd and address 10 usb 1-10: new device found, idVendor=0bb4, idProduct=0c02 usb 1-10: new device strings: Mfr=3, Product=2, SerialNumber=1 usb 1-10: Product: Android Phone usb 1-10: Manufacturer: HTC usb 1-10: SerialNumber: HT840GZ14538 usb 1-10: configuration #1 chosen from 1 choice scsi18 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 10 usb-storage: waiting for device to settle before scanning scsi 18:0:0:0: Direct-Access HTC Android Phone0100 PQ: 0 ANSI: 2 sd 18:0:0:0: [sdc] Attached SCSI removable disk sd 18:0:0:0: Attached scsi generic sg4 type 0 usb-storage: device scan complete -Marc On Oct 22, 12:02 pm, Xavier Ducrohet [EMAIL PROTECTED] wrote: We just updated the documentation. Developing on devices is explained here:http://code.google.com/android/intro/develop-and-debug.html#developin... On Tue, Oct 21, 2008 at 11:45 PM, bhines [EMAIL PROTECTED] wrote: this sounds like my problem as well. This really should be mentioned onhttp://code.google.com/android/intro/develop-and-debug.html thanks, -Ben On Oct 21, 8:42 pm, nkijak [EMAIL PROTECTED] wrote: That possibly did the trick. I had to restart the phone. Maybe for the Debug when USB thing to take effect? Thanks On Oct 21, 11:33 pm, Xavier Ducrohet [EMAIL PROTECTED] wrote: To debug on devices you need to set the 'debuggable' attribute of the application node to true (in AndroidManifest.xml). Make sure to set it back to false before releasing your application. Xav On Tue, Oct 21, 2008 at 8:24 PM, nkijak [EMAIL PROTECTED] wrote: I can't seem to get the eclipse debugger to attach to theG1. I can select Debug from the run menu and it will compile and launch the app on the phone but eclipse never enters the debug perspective (or even asks to). The phone sits with a Waiting for Debugger message dialog. When I enter the Android perspective I can see the device attached, see log entries, take screenshots but I cannot see process listings and restartingadb results in 11 failed attempts to connect. Is there some other configuration I need to adjust in eclipse, perhaps a port number? Thanks, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this
[android-developers] new idea!
What would be good for the g1 security would be having a thumb print unlock using the camera it would be cool. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Reading and writing APN_SETTINGS
Hi, i'm asking here cause i can't figure out my problem.. How can i read my APN_SETTINGS? and How can i modify that? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Change focus color from orange to...
Hi, The default android theme places an orange border around edit controls when they are focused. Is there a way to change that to a different color, say green? Perhaps blue? I see there are individual methods for changing colors of the text, the hilighted text, but none to change the focused color for all controls? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use buildin email intent
I see, thanks. However, when using Linkify to turn email adresses into mailto: links, I get the same error message. Doesn't that mean that handling email intents simply isn't yet supported? User will probably find it awkward when they cannot send emails when clicking an address, but only through custom buttons configured with correct Intents... On 18 Nov., 15:33, john [EMAIL PROTECTED] wrote: Right. You need to set the correct MIME type, in this case message/ rfc822. Anybody know when we're going to start seeing support for sending attachments? It's going to make my life a lot easier when we do. On Nov 17, 8:59 am, Peli [EMAIL PROTECTED] wrote: Your intent is missing the correct type. Have a look here:http://www.openintents.org/en/node/121 Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, email text); sendIntent.putExtra(Intent.EXTRA_SUBJECT, Subject); sendIntent.setType(message/rfc822); startActivity(Intent.createChooser(sendIntent, Title:)); Peliwww.openintents.org On Nov 17, 11:12 am, Matthias [EMAIL PROTECTED] wrote: I have the same problem. Any ideas? On 24 Okt., 20:54, Jake Maui [EMAIL PROTECTED] wrote: I'm trying to use the builtin email intent and so far I haven't found enough information to use it correctly. When I execute the following code, I get the message No applications can perform this action. This happens on emulator as well as real hardware. Can anyone tell me what piece is missing? Thx private OnSelectionHandler onEmailMenu = new OnSelectionHandler() { public void handleSelection() { Intent intent = new Intent(Intent.ACTION_SEND); Bundle bundle=new Bundle(); bundle.putString(Intent.EXTRA_EMAIL , [EMAIL PROTECTED]); bundle.putString(Intent.EXTRA_TEXT , This is a test); startActivity(Intent.createChooser(intent, Send Mail)); } }; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] android.app.Instrumentation result bundle
Hi, I play with the Instrumentation framework and I would like to return some results from the Instrumentation instance to the activity that launched the instrumentation by invoking startInstrumentation. I thought that finish(int resultCode, Bundle results) in Instrumentation class would result in the invocation of onActivityResult(int requestCode, int resultCode, Intent data) in the activity that called startInstrumentation but onActivityResult does not seem to be invoked. What do I do wrong? What do you recommend for returning results from the Instrumentation instance? Regards, Gabor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: working WebView example?
Try putting the WebView in your layout, assigning it an appropriate ID, and then in onCreate get a reference to it using: setContentView(R.layout.webtest); //Or whatever the name of your layout containing the webview is. WebView wv = (WebView)findViewById(R.id.webViewID); This works for me. -josh On Nov 17, 3:36 pm, benadamx [EMAIL PROTECTED] wrote: yey folks, wondering if anyone can provide a quick WebView example that successfully loads a page from the interweb; most of the examples I've found either contain code that isn't valid againt the latest version of the SDK, or that just outright doesn't work. here's what I have so far: public class SuperDoodad extends Activity { public void onCreate(Bundle icicle) { super.onCreate(icicle); WebView webview = new WebView(this); webview.loadUrl(http://www.stumbleupon.com;); setContentView(webview); } } .. this builds and runs fine, but fails to load the page, giving me a 'Web page not available' error. I have granted this app Internet permissions; what am I missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Convert Canvas - Bitmap
Yes it's possible, by doing exactly what you said. Everything you draw on the Canvas will be drawn in the bitmap. On Tue, Nov 18, 2008 at 3:11 AM, Jose Cortes [EMAIL PROTECTED] wrote: Hello again I will be remembered as the man who wanted to convert all to a Bitmap... The point is the following. I create an empty Bitmap. I assign it to a Canvas (new Canvas(newBitmap) ) I draw things in that canvas. and I want to convert that canvas with all the drawings in a Bitmap. Is is possible? Thanks -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Not able to read data from shell command
Hi I am using the following code for database .I am able to diaplay the data thing on the emulator but when I am trying to see the database table using shell command,then I am not able to find the database table. To access the data through the shell command i am using the same coomand as in documentation i.e./data/data/packagename/ DataBaseName.db.But i am not able to find the database table anywhere. Plz help me out. my code is :- package com.android.hello; import java.util.ArrayList; import android.app.ListActivity; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.EditText; public class DataBaseWork extends ListActivity { private final String MY_DATABASE_NAME = myCoolDB_2.db; private final String MY_DATABASE_TABLE = Users; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); EditText et = new EditText(this); et.setSelection(et.getText().length()); /* Will hold the 'Output' we want to display at the end. */ ArrayListString results = new ArrayListString(); SQLiteDatabase myDB = null; try { /* Create the Database (no Errors if it already exists) */ myDB = this.openOrCreateDatabase(MY_DATABASE_NAME, MODE_PRIVATE, null); /* Create a Table in the Database. */ myDB.execSQL(CREATE TABLE IF NOT EXISTS + MY_DATABASE_TABLE + (LastName VARCHAR, FirstName VARCHAR, + Country VARCHAR, Age INT(3));); /* Add two DataSets to the Table. */ myDB.execSQL(INSERT INTO + MY_DATABASE_TABLE + (LastName, FirstName, Country, Age) + VALUES ('Gramlich', 'Nicolas', 'Germany', 20);); myDB.execSQL(INSERT INTO + MY_DATABASE_TABLE + (LastName, FirstName, Country, Age) + VALUES ('Doe', 'John', 'US', 34);); /* Query for some results with Selection and Projection. */ Cursor c = myDB.rawQuery(SELECT FirstName,Age + FROM + MY_DATABASE_TABLE + WHERE Age 10 LIMIT 7;, null); /* Get the indices of the Columns we will need */ int firstNameColumn = c.getColumnIndex(FirstName); int ageColumn = c.getColumnIndex(Age); /* Check if our result was valid. */ c.moveToFirst(); if (c != null) { /* Check if at least one Result was returned. */ if (c.isFirst()) { int i = 0; /* Loop through all Results */ do { i++; /* Retrieve the values of the Entry * the Cursor is pointing to. */ String firstName = c.getString(firstNameColumn); int age = c.getInt(ageColumn); /* We can also receive the Name * of a Column by its Index. * Makes no sense, as we already * know the Name, but just to show we can */ String ageColumName = c.getColumnName(ageColumn); /* Add current Entry to results. */ results.add( + i + : + firstName + ( + ageColumName + : + age + )); } while(c.moveToNext()); } } } finally { if (myDB != null) myDB.close(); } this.setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_1, results)); } } thanks dilu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to start the default music application from my own application
Can you post your solution please??? I need the same functionality. I have some resources in the sdcard. If i want to start the song named in da club present in the sdcard what should i do??? Thanks in advance On 13 Nov, 16:57, Payal Amin [EMAIL PROTECTED] wrote: never mind i solve the problems. Thanks everybody for your help. Payal On Thu, Nov 13, 2008 at 10:05 AM, Payal Amin [EMAIL PROTECTED] wrote: Hi Peli, One more question, i want to play the songs from the sdcard, and the song which will be played is whatever user selects from sdcard. Can you help me with this? Thanks a lot, Payal On Thu, Nov 13, 2008 at 9:43 AM, Payal Amin [EMAIL PROTECTED] wrote: hi Peli, Thanks for your reply. I tried your code and the default media player in sdk does appear on the emulator, but only for a second and then don't know it disappears. Do i have to add anything else in the code? Thanks, Payal On Thu, Nov 13, 2008 at 7:00 AM, Peli [EMAIL PROTECTED] wrote: http://www.openintents.org/en/node/112 Peli www.openintents.org On Nov 12, 7:56 pm, Payal Amin [EMAIL PROTECTED] wrote: Hi All, I want to start the default Music application which is there when you run the emulator from my own application say hello world. Can anybody tell me how can i do so? Thanks, Payal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] RT with android???
I'm in a project which involves a real-time control of some processes. At this time we have been proving the alarms included in the Android but, at least with the emulator, it doesn't behave with stricted time slots when the alarm is configured below tens of milisecond. Second at all, the methods included with the Android give the time control with a resolution of miliseconds, but we need to control the processes with at least a resolution of microseconds. Does anyone have any idea about how to improve this situation? Thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to create a socket in Andriod
Hi, i have this source code: My Rcb.java line 216 is sock = new Socket(host, port); // where host is 127.0.0.1 and port = 6901 And I run my application under android, I get this exception: 11-18 16:35:21.565: WARN/System.err(165): java.net.SocketException: unknown error 11-18 16:35:21.585: WARN/System.err(165): at org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl (Native Method) 11-18 16:35:21.595: WARN/System.err(165): at org.apache.harmony.luni.platform.OSNetworkSystem.createSocket (OSNetworkSystem.java:79) 11-18 16:35:21.615: WARN/System.err(165): at org.apache.harmony.luni.net.PlainSocketImpl2.create (PlainSocketImpl2.java:59) 11-18 16:35:21.635: WARN/System.err(165): at java.net.Socket.startupSocket(Socket.java:668) 11-18 16:35:21.655: WARN/System.err(165): at java.net.Socket.init (Socket.java:142) 11-18 16:35:21.665: WARN/System.err(165): at com.mytest.Rcb.init (Rcb.java:216) 11-18 16:35:21.685: WARN/System.err(165): at com.mytest.TestActivity.onCreate(VncTestActivity.java:21) 11-18 16:35:21.695: WARN/System.err(165): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1122) 11-18 16:35:21.705: WARN/System.err(165): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2103) 11-18 16:35:21.715: WARN/System.err(165): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 11-18 16:35:21.725: WARN/System.err(165): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 11-18 16:35:21.735: WARN/System.err(165): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 11-18 16:35:21.745: WARN/System.err(165): at android.os.Handler.dispatchMessage(Handler.java:88) 11-18 16:35:21.755: WARN/System.err(165): at android.os.Looper.loop (Looper.java:123) 11-18 16:35:21.765: WARN/System.err(165): at android.app.ActivityThread.main(ActivityThread.java:3742) 11-18 16:35:21.775: WARN/System.err(165): at java.lang.reflect.Method.invokeNative(Native Method) 11-18 16:35:21.785: WARN/System.err(165): at java.lang.reflect.Method.invoke(Method.java:515) 11-18 16:35:21.785: WARN/System.err(165): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 11-18 16:35:21.795: WARN/System.err(165): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 11-18 16:35:21.805: WARN/System.err(165): at dalvik.system.NativeStart.main(Native Method) Thank you for any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: RT with android???
Linux is not an RTOS. It's not clear to me what you are trying to do, but I am pretty certain that Android is not going to work for you if you need that level of precision. On Nov 18, 9:47 am, corjuela [EMAIL PROTECTED] wrote: I'm in a project which involves a real-time control of some processes. At this time we have been proving the alarms included in the Android but, at least with the emulator, it doesn't behave with stricted time slots when the alarm is configured below tens of milisecond. Second at all, the methods included with the Android give the time control with a resolution of miliseconds, but we need to control the processes with at least a resolution of microseconds. Does anyone have any idea about how to improve this situation? Thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Error while pushing file to android
Emulator or real device? -Sittiphol On Nov 18, 7:23 pm, Asif Kadiwala [EMAIL PROTECTED] wrote: Hi All, I am trying to push the 1.txt file from my desktop C:/ to android /sdcard/ folder using following command. adb push C:\1.txt /sdcard/asif.txt but getting following error : failed to copy 'C:\1.txt' to '/sdcard/asif': Read-only file system. Can anyone please tell me waht is the problem?? -- Best Regards , Asif Kadiwala , Engineer, Collabera Solution Pvt. Ltd. ( CMMI Level-5 Company)www.collabera.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Unable to Run sample App
Hi, I tried running the sample, Hello Android, app given on Android's site. I didn't work for me. It shows me an emulator with Android written on it. Means, my code doesnt get executed. The code is same as on the site... package com.android.hello; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(Hello, Android); setContentView(tv); } } Do I need to make any changes in 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] My GL10 always get Error.. how?
I'm trying to make an opengl program. my program starts from SpriteText(sample program) but even call glDisable.. or glClear I can get glError... I'm trying may kinds of.. configspec int[] configSpec = { // EGL10.EGL_RED_SIZE, 4, // EGL10.EGL_GREEN_SIZE, 4, // EGL10.EGL_BLUE_SIZE, 4, // EGL10.EGL_ALPHA_SIZE, EGL10.EGL_DONT_CARE, // EGL10.EGL_BUFFER_SIZE, 4, //EGL10.EGL_DEPTH_SIZE, 4, EGL10.EGL_NONE }; like these but always same.. and when i start my program, I can see some error logs on ddms 11-18 15:19:42.544: ERROR/GLLogger(205): couldn't load libhgl.so library (Cannot find library) 11-18 15:19:42.654: DEBUG/SurfaceFlinger(53): pid 205 requesting gpu surface (current owner = -1) 11-18 15:19:42.654: ERROR/MemoryHeapBase(53): error opening /dev/ pmem_gpu1: No such file or directory 11-18 15:19:42.654: ERROR/MemoryHeapBase(53): error opening /dev/ pmem_gpu0: No such file or directory 11-18 15:19:42.664: DEBUG/SurfaceFlinger(53): pid 205 requesting gpu surface (current owner = -2) 11-18 15:19:42.664: ERROR/MemoryHeapBase(53): error opening /dev/ pmem_gpu1: No such file or directory 11-18 15:19:42.664: ERROR/MemoryHeapBase(53): error opening /dev/ pmem_gpu0: No such file or directory i'm very confused.. so I don't know how to solve this problem.. if you have any idea please tell me ps sorry,Im poor at English.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to create a socket in Andriod
Don't forget to add permission to your AndroidManifest.xml like this. ?xml version=1.0 encoding=utf-8? manifest .. uses-permission android:name=android.permission.INTERNET/uses- permission /manifest -Sittiphol On Nov 19, 12:03 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, i have this source code: My Rcb.java line 216 is sock = new Socket(host, port); // where host is 127.0.0.1 and port = 6901 And I run my application under android, I get this exception: 11-18 16:35:21.565: WARN/System.err(165): java.net.SocketException: unknown error 11-18 16:35:21.585: WARN/System.err(165): at org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl (Native Method) 11-18 16:35:21.595: WARN/System.err(165): at org.apache.harmony.luni.platform.OSNetworkSystem.createSocket (OSNetworkSystem.java:79) 11-18 16:35:21.615: WARN/System.err(165): at org.apache.harmony.luni.net.PlainSocketImpl2.create (PlainSocketImpl2.java:59) 11-18 16:35:21.635: WARN/System.err(165): at java.net.Socket.startupSocket(Socket.java:668) 11-18 16:35:21.655: WARN/System.err(165): at java.net.Socket.init (Socket.java:142) 11-18 16:35:21.665: WARN/System.err(165): at com.mytest.Rcb.init (Rcb.java:216) 11-18 16:35:21.685: WARN/System.err(165): at com.mytest.TestActivity.onCreate(VncTestActivity.java:21) 11-18 16:35:21.695: WARN/System.err(165): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1122) 11-18 16:35:21.705: WARN/System.err(165): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2103) 11-18 16:35:21.715: WARN/System.err(165): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 11-18 16:35:21.725: WARN/System.err(165): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 11-18 16:35:21.735: WARN/System.err(165): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 11-18 16:35:21.745: WARN/System.err(165): at android.os.Handler.dispatchMessage(Handler.java:88) 11-18 16:35:21.755: WARN/System.err(165): at android.os.Looper.loop (Looper.java:123) 11-18 16:35:21.765: WARN/System.err(165): at android.app.ActivityThread.main(ActivityThread.java:3742) 11-18 16:35:21.775: WARN/System.err(165): at java.lang.reflect.Method.invokeNative(Native Method) 11-18 16:35:21.785: WARN/System.err(165): at java.lang.reflect.Method.invoke(Method.java:515) 11-18 16:35:21.785: WARN/System.err(165): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 11-18 16:35:21.795: WARN/System.err(165): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 11-18 16:35:21.805: WARN/System.err(165): at dalvik.system.NativeStart.main(Native Method) Thank you for any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: source code for android application mms
It's available in Android source code. http://android.git.kernel.org/?p=platform/packages/apps/Mms.git;a=commit;h=8eed706474910ccb978acda03e85d3261037da6e -Sittiphol On Nov 14, 4:08 pm, jalandar [EMAIL PROTECTED] wrote: Hi Is com.android.mmsapplication's source code available ? If so,In future will it be available? Regards jagtap Email: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Camera preview after long delay, progress window
I'm having a hard time starting a camera preview after a long delay (several seconds) while my program initializes. I've experimented with various methods of starting the camera preview but no matter how I do it, the screen is black until I stop and resume the program (i.e. go to the main screen on my GPhone and then back to the program). Then the camera preview works normally. I'm following the Camera application in the source tree as a guide to setting up the camera preview. I can start the preview immediately when my program starts and then everything works normally. But I want to show a progress window while my program initializes and only switch to the camera preview when everything is ready. If I try to do this, I can't get the camera preview running.-- or rather, LogCat shows the camera preview starting but nothing is shown on the screen of my GPhone I've verified that the calls to the camera, setting the preview display, etc. are the same when the camera preview works and when it doesn't work. It appears that the only difference between the working and non-working situations are the long delay between the time my program gets control and when it starts to preview. Is there some trick to getting the camera going that I don't know about? The Camera app doesn't quite do the same thing -- it starts right away -- so this doesn't answer my 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: download APK from google marketplace to android device besides G1?
Al, Can you explain in a little more detail how to use HTTP? Maybe give an example. I don't see how telling me about your app helps at all. Thanks Matt On Nov 18, 12:51 am, Al Sutton [EMAIL PROTECTED] wrote: Matt, You should be able to download APKs using HTTP and install them without needing to install Marketplce. If you're looking for an app which will provide you with a list of APKs which can be installed you could try the AndAppStore client (http://andappstore.com/AndroidPhoneApplications/apps/7661) Regards, Al. mattR wrote: Hi, I have Android running on a development platform that is not a G1 phone. Is it possible to download applications from the google marketplace to my device? I am able to put an APK onto my device from my PC, but is there a way to download APK to my PC from the google marketplace? Thanks Matt -- == 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: download APK from google marketplace to android device besides G1?
Matt, I'm not sure what there is to explain, basically some developers make their APKs available via HTTP from their web servers. AndAppStore.com allows developers to list their apps with URLs that the APK can be downloaded from, and the AndAppStore.com client will even download the APK for you to the device. Al. mattR wrote: Al, Can you explain in a little more detail how to use HTTP? Maybe give an example. Thanks Matt On Nov 18, 12:51 am, Al Sutton [EMAIL PROTECTED] wrote: Matt, You should be able to download APKs using HTTP and install them without needing to install Marketplce. If you're looking for an app which will provide you with a list of APKs which can be installed you could try the AndAppStore client (http://andappstore.com/AndroidPhoneApplications/apps/7661) Regards, Al. mattR wrote: Hi, I have Android running on a development platform that is not a G1 phone. Is it possible to download applications from the google marketplace to my device? I am able to put an APK onto my device from my PC, but is there a way to download APK to my PC from the google marketplace? Thanks Matt -- == 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Before publish: Deactivate any calls to Log methods in the source code - How ?
I ran aground of this same problem: This is one area where the documentation appears to be misleading. The docs for android.util.Log say: Verbose should never be compiled into an application except during development. Debug logs are compiled in but stripped at runtime. Error, warning and info logs are always kept. This implies that somehow Log.d messages are stripped from release builds. It also seems to imply that Log.v is never compiled into a release build. However, after testing this on the G1 I gather that no Log.foo statement is ever stripped from a release build. The Log utility is very useful for development and debugging, and I'd love to see it improved in the future to include some facility for globally compiling out logging. Something similar to the app-global static flag Andrew and Hackbod suggested, but a clean part of the Log interface itself. Perhaps something like: Log.startContextLog(Context myContext, int aLogLevel); ... Log.d(TAG,blah blah blah); ... Log.stopContextLog(Context myContext); I'm not sure what the most elegant interface is, given that you might call the logger from code that doesn't have a Context reference available. But from looking at the LogCat output of numerous apps already shipping in the App Market, it looks like this dangling logger problem plagues many developers. On Nov 13, 11:51 am, Andrew Stadler [EMAIL PROTECTED] wrote: There are all sorts of bad things an application can do to a device. Filling the logs with debug info (which eats up disk space and CPU power) is just one of them. Eclipse or any other SDK or IDE can't magically fix application code. As hackbod mentioned, the best way to do this is to wrap all of your logs in something like this: if (DEBUG_LOG) { Log.d(TAG, my log); } By defining DEBUG_LOG as a static final boolean, you give the compiler the ability to remove it entirely, making your shipping .apk smaller and faster. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Change focus color from orange to...
Sorry, these are all bitmaps so there is no way to change an individual color. On Nov 18, 7:40 am, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi, The default android theme places an orange border around edit controls when they are focused. Is there a way to change that to a different color, say green? Perhaps blue? I see there are individual methods for changing colors of the text, the hilighted text, but none to change the focused color for all controls? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: About running two different applications with the same code base
Any one can help? On Nov 17, 2:15 pm, magicpig [EMAIL PROTECTED] wrote: Hi, I am wonder whether we can runtwoseparated apps with thesamecodebase. Thesetwoapps aredifferentby a flag. Here are some questions: 1) Where to set the flag? Is it possible for an application read the flag if we set it in AndroidManifest.xml? 2) I think I should usedifferentpackage values for thetwo apps, so needtwoseparated AndroidManifest.xml, right? 3) I think the authorities of the provider should bedifferent, so, we should make themdifferentin Androidmanifest.xml, right? Any one has similar experience? Please provide your help. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: About running two different applications with the same code base
I believe the Android demo APIDemos is doing this. I.e. a single APS file can host multiple applications sharing a common codebase. BR AR On Nov 18, 9:02 pm, magicpig [EMAIL PROTECTED] wrote: Any one can help? On Nov 17, 2:15 pm, magicpig [EMAIL PROTECTED] wrote: Hi, I am wonder whether we can runtwoseparated apps with thesamecodebase. Thesetwoapps aredifferentby a flag. Here are some questions: 1) Where to set the flag? Is it possible for an application read the flag if we set it in AndroidManifest.xml? 2) I think I should usedifferentpackage values for thetwo apps, so needtwoseparated AndroidManifest.xml, right? 3) I think the authorities of the provider should bedifferent, so, we should make themdifferentin Androidmanifest.xml, right? Any one has similar experience? Please provide your help. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: working WebView example?
There is a WebViewDemo app which worked fine for me. http://code.google.com/p/apps-for-android/source/browse/#svn/trunk/Samples/WebViewDemo Anders On Nov 18, 5:36 pm, joshv [EMAIL PROTECTED] wrote: Try putting the WebView in your layout, assigning it an appropriate ID, and then in onCreate get a reference to it using: setContentView(R.layout.webtest); //Or whatever the name of your layout containing the webview is. WebView wv = (WebView)findViewById(R.id.webViewID); This works for me. -josh On Nov 17, 3:36 pm, benadamx [EMAIL PROTECTED] wrote: yey folks, wondering if anyone can provide a quick WebView example that successfully loads a page from the interweb; most of the examples I've found either contain code that isn't valid againt the latest version of the SDK, or that just outright doesn't work. here's what I have so far: public class SuperDoodad extends Activity { public void onCreate(Bundle icicle) { super.onCreate(icicle); WebView webview = new WebView(this); webview.loadUrl(http://www.stumbleupon.com;); setContentView(webview); } } .. this builds and runs fine, but fails to load the page, giving me a 'Web page not available' error. I have granted this app Internet permissions; what am I missing?- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: new idea!
the camera on G1, even with auto-focus, takes a horrible picture. you will need very clear and distinct feature for vision recognition to work. at this low quality image taken from the G1, it's near impossible to identify. On Mon, Nov 17, 2008 at 7:57 PM, midnit3 [EMAIL PROTECTED] wrote: What would be good for the g1 security would be having a thumb print unlock using the camera it would be cool. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Calling youtube from Android
With ACTION_VIEW I can call the browser with a url, the phonebook with a number, streetview with a location etc etc etc. I want to do something similar but for the built in player, Basically to search youtube, I want to pass it a string and it automatically opens the youtube player and searches for that string, is this possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Calling youtube from Android
You can send the YouTube app an android.intent.action.SEARCH intent with a search string. If you long-press on the song, title, or artist in the music player, you can see this in action. On Nov 18, 1:02 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: With ACTION_VIEW I can call the browser with a url, the phonebook with a number, streetview with a location etc etc etc. I want to do something similar but for the built in player, Basically to search youtube, I want to pass it a string and it automatically opens the youtube player and searches for that string, is this possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Not able to reach link https://dl-ssl.google.com/android/eclipse/
try without SSL, just http://... On Tue, Nov 18, 2008 at 7:24 AM, Ravi Patil [EMAIL PROTECTED] wrote: Is anybody downloaded android plugin for 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Sending DTMF
It looks like may be used to play DTMF sounds to the user of the device (for example, the android Phone app plays the DTMF sound when pressing a key) On Oct 27, 4:20 pm, Adrian A [EMAIL PROTECTED] wrote: Then what is the point of this class? On Oct 6, 9:46 pm, j [EMAIL PROTECTED] wrote: I assume you are trying to generate tones for uplink audio path. TheToneGeneratorAPI states that: This API is not for generating tones over the uplink audio path. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Tips for Orientation
Hi, Will this setting make the screen change to lanscape using the accelerometer? If so, where do I put this setting? Thanks On Oct 20, 5:37 pm, hackbod [EMAIL PROTECTED] wrote: Don't do that, or moving between your app and others will be flicker. Just use android:screenOrientation=sensor. On Oct 20, 12:47 pm, Tauno T [EMAIL PROTECTED] wrote: And that's why he want's to set the orientation programmatically - the users expect that when the phone is turned sideways then the picture is also turned sideways:) The user is not confused - he just thinks that Android has a feature that it does not have (sadly). As for the solution - Xolotl Lokis solution will works just fine - you only have to figure out which sensor reading corresponds to the phone being held sideways and then change the layout using setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_*); Tauno On Oct 20, 10:39 pm, hackbod [EMAIL PROTECTED] wrote: Your user is confused. The standard orientation policy is to select the orientation based on the keyboard: when the keyboard is closed it is portrait, when open it islandscape. Pressing Ctrl+F12 in the emulator is exactly the same as sliding the keyboard out on the G1. On Oct 20, 11:57 am, Mark Hansen [EMAIL PROTECTED] wrote: From what I was told by a user of my application, that it did not change view, even when the keyboard was opened for text entry. I've built two set's of layout files, and stored them in layout and layout-land for when the view changes. In emulator mode they work fine, CTRL-F12 works fine.. but, and I may be misinformed here, it appears the actual phone itself is not rotating the screen based on the keyboard of position of the actual phone. He even stated many of the default Google application aren't rotating as well, and that very few actually change based on the way the device is being held. On Oct 20, 12:21 pm, hackbod [EMAIL PROTECTED] wrote: I don't know what you mean by turn the view. When the orientation changes to switch from the dominant to secondary orientation (portrait tolandscapeon the g1), the graphics of the entire screen are rotated to result in the screen being shown in the new orientation. As such, there is no need to do anything yourself, at it looks like to the application is that the size of the screen has changed to match the new orientation. For different resources, normally you also don't need to do anything, because when the orientation changes the current activity is destroyed and a new one started, and the new one is running with a configuration matching the new orientation so will load the appropriate resources as it creates and initializes itself. The only except is if you are using android:configChanges to avoid being restarted due to a configuration change... which is one of the reasons why it is strongly encouraged not to do this, and certainly if you are changing layouts due to the orientation I would really suggest letting the normal destroy/recreate path execute. If you really really do want to mix the two, you will need to override onConfigurationChanged() and re-inflate your view hierarchy and re- initialize anything else depending on that or changing resources at that point. On Oct 20, 5:19 am, Mark Hansen [EMAIL PROTECTED] wrote: I've actually created layouts for both vertical and horizontal views, I've had some people testing it and it turns out Android doesn't turn the view, I guess it has to be detected? I was curious how to go about doing that detection.. I know I can also set the view with: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_*); The problem I'm having is whateventto trap or how to go about determining which way the phone is being held. On Oct 20, 12:13 am, hackbod [EMAIL PROTECTED] wrote: Use the android:screenOrientation attribute when declaring your manifest: http://code.google.com/android/reference/android/R.styleable.html#And... http://code.google.com/android/reference/android/R.styleable.html#And... On Oct 19, 3:23 pm, Mark Hansen [EMAIL PROTECTED] wrote: I was thinking Android switched orientation automatically based on the phones position but I'm finding from users this is not the case. Anyone have some sample code on how to switch screen orientation based on the position of the phone? Thanks, Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit
[android-developers] get position of cursor in EditText
Hi! How does one determine the cursor position in an android.widget.EditText text view? Example: User types: quick browm fox. User realizes the typo (browm). User touches the text view just after the m, thereby positioning the cursor there. Now the view looks like this: quick browm| fox -- where | is the cursor. The user should be able to press a virtual backspace button (on the screen), and expect to erase the m and then type n. Problem: I would like to obtain the cursor position with something like getCursorPosition(), but cannot find anything resembling such a method. Knowing the position, I would be able to convert the EditText into android.text.Editable and erase the character. Perhaps there is a different way to do this. Any information in this regard will be greatly appreciated. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does one add his own activity to the Dial action?
BTW, I've already looked at the NotesList sample (which doesn't seem to display extra menus after I created my own app to interface with it), went through the source code of the Android platform (there is no call to addIntentOptions in TwelveKeyDialer for example), went through the groups a few times, FAQ, ... Although I've read several people's postings about this feature (which apparently works) I have still to find an application that uses it. Is there any video/application that uses this feature? Has anyone been able to add their menus to the Phone application (contacts, call log, etc)? Many thanks in advance, Adrian On Nov 14, 3:24 pm, Adrian A [EMAIL PROTECTED] wrote: Hello, I'm trying to associate my activity as an alternate dial option. For some reason though, my action doesn't show up when I long press on a contact, or (in the call log) when a long press a phone number. Any idea why? Is there any sample code out there? Many thanks in advance, Adrian Here's the important part of my .xml: activity android:name=.GeneralStatusActivity android:label=@string/ app_name intent-filter android:label=Special call action android:name=android.intent.action.DIAL / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / category android:name=android.intent.category.ALTERNATIVE / category android:name=android.intent.category.SELECTED_ALTERNATIVE / data android:mimeType=vnd.android.cursor.item/ phone / data android:mimeType=vnd.android.cursor.item/ person / /intent-filter intent-filter android:label=Special call action android:name=android.intent.action.DIAL / category android:name=android.intent.category.ALTERNATIVE / category android:name=android.intent.category.SELECTED_ALTERNATIVE / category android:name=android.intent.category.DEFAULT / /intent-filter intent-filter android:label=Special call action android:name=android.intent.action.VIEW / action android:name=android.intent.action.DIAL / category android:name=android.intent.category.ALTERNATIVE / category android:name=android.intent.category.SELECTED_ALTERNATIVE / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:scheme=tel / /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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Adding self to menus on other applications
Hi Michael, Have you had any luck with this? What was the problem you had? Many thanks in advance, Adrian On Oct 21, 4:31 am, Shade [EMAIL PROTECTED] wrote: Hello! If you mean Android Howto document: Adding yourself to menus on other applications You can also advertise your Activity's services so that otherActivitiescan add your activity to their own optionmenu. For example, suppose you implement a new image handling tool that shrinks an image to a smaller size and you would like to offer this as amenu option to any other Activity that handles pictures. To do this, you would exposes your capabilities inside an intent filter in your manifest. If another application that handles photos asks Android for anyActivitiesthat can perform actions on pictures, Android will perform intent resolution, find your Activity, and add it to the other Activity's optionsmenu. The offering application The application offering the service must include an intent-filter element in the manifest, inside the activity tag of the offering Activity. The intent filter includes all the details describing what it can do, such as a type element that describes the MIME type of data that it can handle, a custom action value that describes what your handling application can do (this is so that when it receives the Intent on opening it knows what it is expected to do), and most important, include a category filter with the value android.intent.category.ALTERNATIVEand/or android.intent.category.SELECTED_ALTERNATIVE (SELECTED_ALTERNATIVE is used to handle only the currently selected element on the screen, rather than the whole Activity intent. Here's an example of a snip of a manifest that advertises picture shrinking technology for both selected items and the whole screen. activity class=PictureShrink !-- Handling class -- intent-filter label=Shrink picture !--Menulabel to display -- action android:name=com.example.sampleapp.SHRINK_IT / data android:name=image/* / !-- MIME type for generic images -- category android:name=android.intent.category.ALTERNATIVE / category android:name=android.intent.category.SELECTED_ALTERNATIVE / /intent-filter /activity I've tried it. After adding that intent-filter (with fixed typos) Pictures application still does not offer to shrink pictures. intent-filter label=Do something terrible action android:name=android.intent.action.VIEW / data android:scheme=http / category android:name=android.intent.category.ALTERNATIVE / category android:name=android.intent.category.SELECTED_ALTERNATIVE / /intent-filter Adding this to my manifest does not affect browser'smenutoo. Maybe i am making something wrong but i don't know what. And i was unable to find really workingexamplesof such actions. With respect, Michael PrinterShare team PS SDK version 1.0_r1 On 21 окт, 13:10, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm sorry i d'ont have example But you can find tutorial on code.google.com/android good luck. On 17 oct, 16:59, Shade [EMAIL PROTECTED] wrote: Hello! It is possible to add my activity to build-in browser'smenu? Working example wanted. Thank you. With respect, Michael PrinterShare team --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: About running two different applications with the same code base
Thanks for the reply. Would you please clearly tell me which demo does so? It seems that there are plenty of demos there. Thanks. On Nov 18, 12:11 pm, Anders Rundgren [EMAIL PROTECTED] wrote: I believe the Android demo APIDemos is doing this. I.e. a single APS file can host multiple applications sharing a common codebase. BR AR On Nov 18, 9:02 pm, magicpig [EMAIL PROTECTED] wrote: Any one can help? On Nov 17, 2:15 pm, magicpig [EMAIL PROTECTED] wrote: Hi, I am wonder whether we can runtwoseparated apps with thesamecodebase. Thesetwoapps aredifferentby a flag. Here are some questions: 1) Where to set the flag? Is it possible for an application read the flag if we set it in AndroidManifest.xml? 2) I think I should usedifferentpackage values for thetwo apps, so needtwoseparated AndroidManifest.xml, right? 3) I think the authorities of the provider should bedifferent, so, we should make themdifferentin Androidmanifest.xml, right? Any one has similar experience? Please provide your help. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: G1 linux
On Nov 18, 11:51 pm, Rui Freitas [EMAIL PROTECTED] wrote: Hi, I wanna now if is it possible to program for the G1 like a linux device. If so, how can i do it? Where can i find that kind of information? Android is based on a Linux kernel but strictly speaking it's not Linux. Android has no native windowing system, no glibc support and doesn't include all of the libraries and utilities usually available in a Linux system. Thanks, Rui --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: working WebView example?
benadamx wrote: yey folks, wondering if anyone can provide a quick WebView example that successfully loads a page from the interweb; most of the examples I've found either contain code that isn't valid againt the latest version of the SDK, or that just outright doesn't work. here's what I have so far: public class SuperDoodad extends Activity { public void onCreate(Bundle icicle) { super.onCreate(icicle); WebView webview = new WebView(this); webview.loadUrl(http://www.stumbleupon.com;); setContentView(webview); } } Do you have the INTERNET permission in your AndroidManifest.xml file? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: RT with android???
Android kernel is built with CONFIG_PREEMPT not set. Setting this option and building your own kernel could give you better results (single digit millisecond), however some device drivers may introduce higher latency. Alternatively, CONFIG_PREEMPT_RT patch could also be applied. Take a look at http://rt.wiki.kernel.org for details. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Change focus color from orange to...
Ah oh well. What other options do we have, provide bitmaps for every control we'd like to modify? Thanks On Nov 18, 2:51 pm, hackbod [EMAIL PROTECTED] wrote: Sorry, these are all bitmaps so there is no way to change an individual color. On Nov 18, 7:40 am, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi, The default android theme places an orange border around edit controls when they are focused. Is there a way to change that to a different color, say green? Perhaps blue? I see there are individual methods for changing colors of the text, the hilighted text, but none to change the focused color for all controls? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] G1 linux
Hi, I wanna now if is it possible to program for the G1 like a linux device. If so, how can i do it? Where can i find that kind of information? Thanks, Rui --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Referencing an entry from colors.xml?
On Nov 18, 4:00 pm, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi, I defined a colors.xml file in my values folder, with the following contents: resources color name=clr_edit_hilite#FFD9FF77/color /resources How do I reference it from a layout.xml file? TextView android:id=@+id/test android:textColor=@+colors/clr_edit_hilite android:textColor=@color/clr_edit_hilite / Is that 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: JavaMail and Android - Little excursus
I am not sure why they would need to contact you. They'd need to merely obey the CDDL - which also requires you to provide the source code to your modifications. Where can I find the modified source? On Nov 14, 5:26 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Licence was update. Moved to CDDL. This library is not free to use. Please contact me in case in case of commercial uses. On 9 Ott, 13:00, Mos Alexandru [EMAIL PROTECTED] wrote: This .jar package realy works for sending mails. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android alarm design issue ?
hi JBQ Okay,sorry for my mistake.Thanks --hamody On Nov 18, 9:52 pm, Jean-Baptiste Queru [EMAIL PROTECTED] wrote: I think that this is a question for the android-porting mailing list. Android-developers is for people having questions related to developing applications with the SDK. Thanks, JBQ 2008/11/18 伊泽 [EMAIL PROTECTED]: hello all When driver register rtc_alarm_interface by class_interface_register (),it wil call below code: if (class_intf-add_dev) { list_for_each_entry(dev, parent-devices, node) class_intf-add_dev(dev, class_intf); } Then rtc_alarm_add_device() will add at least one device to the interface.But in rtc_alarm_add_device() driver do device specific thing such as misc_register(). Though alarm_rtc_dev has value when exit the function the first time, the latter call will just return -EBUSY ,i think this is not a good design. Thanks Hamody 自由之精神,独立之人格 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to Change Toast Font?
Hi, Anybody knows where the font properties for a Toast are derived from? Is there any way the properties, mainly the size, can be changed? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SharedPreferences problem
I have a PreferenceActivity that uses an xml file to automatically populate and save the preferences. Sometimes though, when that activity is started, the preferences are blank. However, if you go back later, they will reappear. This is causing a lot of headaches with my app. I have a Service and BroadcastReciever running in the background that are also accessing and (sometimes) updating the preferences. Are there synchronization issues with shared preferences? Maybe permission issues? I'm really stuck here and would greatly appreciate any insight you can offer. Thanks, Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to Change Toast Font?
Raktim Das wrote: Hi, Anybody knows where the font properties for a Toast are derived from? Is there any way the properties, mainly the size, can be changed? Toast#setView() allows you to make the Toast look like whatever you want -- just inflate yourself a View from a layout or build it directly in Java. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: About running two different applications with the same code base
On Tue, Nov 18, 2008 at 12:02 PM, magicpig [EMAIL PROTECTED] wrote: I am wonder whether we can runtwoseparated apps with thesamecodebase. Thesetwoapps aredifferentby a flag. Here are some questions: 1) Where to set the flag? Is it possible for an application read the flag if we set it in AndroidManifest.xml? The only user-defined data you can put in AndroidManifest.xml is through the meta-data tags. This data can be associated with the entire application or an individual component, and retrieved with the package manager APIs. This is currently hard to find in the docs, but look here: http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestMetaData 2) I think I should usedifferentpackage values for thetwo apps, so needtwoseparated AndroidManifest.xml, right? All you really need is a different package name in the first tag (ignoring content providers, discussed below). 3) I think the authorities of the provider should bedifferent, so, we should make themdifferentin Androidmanifest.xml, right? If you expect these two applications to be installed on the same device at the same time, then yes you will need to give their content providers different authority names. This is the main thing that will complicate the code itself. -- Dianne Hackborn [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Tips for Orientation
Yes, you use exactly what I wrote. On Tue, Nov 18, 2008 at 1:14 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: Hi, Will this setting make the screen change to lanscape using the accelerometer? If so, where do I put this setting? Thanks On Oct 20, 5:37 pm, hackbod [EMAIL PROTECTED] wrote: Don't do that, or moving between your app and others will be flicker. Just use android:screenOrientation=sensor. On Oct 20, 12:47 pm, Tauno T [EMAIL PROTECTED] wrote: And that's why he want's to set the orientation programmatically - the users expect that when the phone is turned sideways then the picture is also turned sideways:) The user is not confused - he just thinks that Android has a feature that it does not have (sadly). As for the solution - Xolotl Lokis solution will works just fine - you only have to figure out which sensor reading corresponds to the phone being held sideways and then change the layout using setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_*); Tauno On Oct 20, 10:39 pm, hackbod [EMAIL PROTECTED] wrote: Your user is confused. The standard orientation policy is to select the orientation based on the keyboard: when the keyboard is closed it is portrait, when open it islandscape. Pressing Ctrl+F12 in the emulator is exactly the same as sliding the keyboard out on the G1. On Oct 20, 11:57 am, Mark Hansen [EMAIL PROTECTED] wrote: From what I was told by a user of my application, that it did not change view, even when the keyboard was opened for text entry. I've built two set's of layout files, and stored them in layout and layout-land for when the view changes. In emulator mode they work fine, CTRL-F12 works fine.. but, and I may be misinformed here, it appears the actual phone itself is not rotating the screen based on the keyboard of position of the actual phone. He even stated many of the default Google application aren't rotating as well, and that very few actually change based on the way the device is being held. On Oct 20, 12:21 pm, hackbod [EMAIL PROTECTED] wrote: I don't know what you mean by turn the view. When the orientation changes to switch from the dominant to secondary orientation (portrait tolandscapeon the g1), the graphics of the entire screen are rotated to result in the screen being shown in the new orientation. As such, there is no need to do anything yourself, at it looks like to the application is that the size of the screen has changed to match the new orientation. For different resources, normally you also don't need to do anything, because when the orientation changes the current activity is destroyed and a new one started, and the new one is running with a configuration matching the new orientation so will load the appropriate resources as it creates and initializes itself. The only except is if you are using android:configChanges to avoid being restarted due to a configuration change... which is one of the reasons why it is strongly encouraged not to do this, and certainly if you are changing layouts due to the orientation I would really suggest letting the normal destroy/recreate path execute. If you really really do want to mix the two, you will need to override onConfigurationChanged() and re-inflate your view hierarchy and re- initialize anything else depending on that or changing resources at that point. On Oct 20, 5:19 am, Mark Hansen [EMAIL PROTECTED] wrote: I've actually created layouts for both vertical and horizontal views, I've had some people testing it and it turns out Android doesn't turn the view, I guess it has to be detected? I was curious how to go about doing that detection.. I know I can also set the view with: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_*); The problem I'm having is whateventto trap or how to go about determining which way the phone is being held. On Oct 20, 12:13 am, hackbod [EMAIL PROTECTED] wrote: Use the android:screenOrientation attribute when declaring your manifest: http://code.google.com/android/reference/android/R.styleable.html#And... http://code.google.com/android/reference/android/R.styleable.html#And... On Oct 19, 3:23 pm, Mark Hansen [EMAIL PROTECTED] wrote: I was thinking Android switched orientation automatically based on the phones position but I'm finding from users this is not the case. Anyone have some sample code on how to switch screen orientation based on the position of the phone? Thanks, Mark -- Dianne Hackborn [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You
[android-developers] Re: Change focus color from orange to...
Yeah that's what you need to do. I would strongly suggest either staying with the built-in UI and not trying to tweak things like this, or completely replacing its graphics with your own. It is very likely that future devices will ship with different UI looks, so trying to tweak just pieces of things will result in ugly results later on. On Tue, Nov 18, 2008 at 3:24 PM, Mark Wyszomierski [EMAIL PROTECTED] wrote: Ah oh well. What other options do we have, provide bitmaps for every control we'd like to modify? Thanks On Nov 18, 2:51 pm, hackbod [EMAIL PROTECTED] wrote: Sorry, these are all bitmaps so there is no way to change an individual color. On Nov 18, 7:40 am, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi, The default android theme places an orange border around edit controls when they are focused. Is there a way to change that to a different color, say green? Perhaps blue? I see there are individual methods for changing colors of the text, the hilighted text, but none to change the focused color for all controls? Thanks -- Dianne Hackborn [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SharedPreferences problem
SharedPreferences should be completely thread safe. Also, all of the normal calls the system makes to your components happen in the same main thread of the process, so except for special cases (as described in the app model doc) you shouldn't be dealing with multithreading. Are all of these components running in the same process? Right now SharedPreferences does not deal well with multiple components in separate processes trying to use the same preferences data. On Tue, Nov 18, 2008 at 6:24 PM, Eric B [EMAIL PROTECTED] wrote: I have a PreferenceActivity that uses an xml file to automatically populate and save the preferences. Sometimes though, when that activity is started, the preferences are blank. However, if you go back later, they will reappear. This is causing a lot of headaches with my app. I have a Service and BroadcastReciever running in the background that are also accessing and (sometimes) updating the preferences. Are there synchronization issues with shared preferences? Maybe permission issues? I'm really stuck here and would greatly appreciate any insight you can offer. Thanks, Eric -- Dianne Hackborn [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Referencing an entry from colors.xml?
Don't do the '+'. Just reference it with '@colors/clr_edit_hilite'. On Tue, Nov 18, 2008 at 3:30 PM, Diego Torres Milano [EMAIL PROTECTED]wrote: On Nov 18, 4:00 pm, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi, I defined a colors.xml file in my values folder, with the following contents: resources color name=clr_edit_hilite#FFD9FF77/color /resources How do I reference it from a layout.xml file? TextView android:id=@+id/test android:textColor=@+colors/clr_edit_hilite android:textColor=@color/clr_edit_hilite / Is that the right way? Thanks -- Dianne Hackborn [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AlarmManager not always waking device (using RTC_WAKEUP)
Fwiw, I am not aware of any issues with the alarm itself not waking up the phone. Typically bugs in this area are a result of applications not holding wake locks the entire time needed. Note that the behavior when not holding a wake lock can change significantly between devices, depending on things like how often sync is running. On Tue, Nov 18, 2008 at 6:15 PM, Adam K [EMAIL PROTECTED] wrote: Ping. Anyone? It seems for certain people the alarm can never wake up the phone. For others (like myself) it pretty much always wakes up the phone. Thanks, Adam On Nov 16, 8:15 pm, Adam K [EMAIL PROTECTED] wrote: Hi all, I noticed that AlarmManager does not always seem to wake the device correctly when using types RTC_WAKEUP or ELAPSED_REALTIME_WAKEUP. It seems like whatever intent was pending is triggered later after the Menu key is hit. I realize you need to hold a wakelock for any activity fired after the initial pending intent event - but I thought at least the pending intent should execute without a wakelock being required? All I want to do is set off a Notification when the alarm is complete - nothing else. It does seem to work 90% of the time without an issue, just not 100% of the time. Has anyone else noticed this? Here is a summarized version of what I'm doing: //in main activity, set alarm for some time in future myPendingIntent = PendingIntent.getBroadcast(myContext, 0, new Intent(myContext, MyReceiver.class), 0); myAM = (AlarmManager) getSystemService(ALARM_SERVICE); myAM.set(AlarmManager.RTC_WAKEUP, getTriggerTime(), myPendingIntent); //in MyReceiver.class, onReceiver(), trigger notification NotificationManager myNM = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); Notification notif = new Notification(); ..setup notification to play alarm, vibrate etc. myNM.notify(MYNOTIFICATION_ID, notif); Thanks, Adam -- Dianne Hackborn [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: new idea!
Did you remove the blue/clear plastic from the back of the window covering the camera? It's not that bad a camera. On Tue, Nov 18, 2008 at 12:18 PM, Hong [EMAIL PROTECTED] wrote: the camera on G1, even with auto-focus, takes a horrible picture. you will need very clear and distinct feature for vision recognition to work. at this low quality image taken from the G1, it's near impossible to identify. On Mon, Nov 17, 2008 at 7:57 PM, midnit3 [EMAIL PROTECTED] wrote: What would be good for the g1 security would be having a thumb print unlock using the camera it would be cool. -- Dianne Hackborn [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Adding self to menus on other applications
Note that this only works with applications that want to participate in the mechanism, and pretty much none of the built-in applications do this. We moved away from this approach because managing the UI for an arbitrary number of additional items is a challenge. Our preference these days is for the application to start a chooser activity from which the user can select what they want to do; see the Intent docs for info on this. 2008/11/18 Adrian A [EMAIL PROTECTED] Hi Michael, Have you had any luck with this? What was the problem you had? Many thanks in advance, Adrian On Oct 21, 4:31 am, Shade [EMAIL PROTECTED] wrote: Hello! If you mean Android Howto document: Adding yourself to menus on other applications You can also advertise your Activity's services so that otherActivitiescan add your activity to their own optionmenu. For example, suppose you implement a new image handling tool that shrinks an image to a smaller size and you would like to offer this as amenu option to any other Activity that handles pictures. To do this, you would exposes your capabilities inside an intent filter in your manifest. If another application that handles photos asks Android for anyActivitiesthat can perform actions on pictures, Android will perform intent resolution, find your Activity, and add it to the other Activity's optionsmenu. The offering application The application offering the service must include an intent-filter element in the manifest, inside the activity tag of the offering Activity. The intent filter includes all the details describing what it can do, such as a type element that describes the MIME type of data that it can handle, a custom action value that describes what your handling application can do (this is so that when it receives the Intent on opening it knows what it is expected to do), and most important, include a category filter with the value android.intent.category.ALTERNATIVEand/or android.intent.category.SELECTED_ALTERNATIVE (SELECTED_ALTERNATIVE is used to handle only the currently selected element on the screen, rather than the whole Activity intent. Here's an example of a snip of a manifest that advertises picture shrinking technology for both selected items and the whole screen. activity class=PictureShrink !-- Handling class -- intent-filter label=Shrink picture !--Menulabel to display -- action android:name=com.example.sampleapp.SHRINK_IT / data android:name=image/* / !-- MIME type for generic images -- category android:name=android.intent.category.ALTERNATIVE / category android:name=android.intent.category.SELECTED_ALTERNATIVE / /intent-filter /activity I've tried it. After adding that intent-filter (with fixed typos) Pictures application still does not offer to shrink pictures. intent-filter label=Do something terrible action android:name=android.intent.action.VIEW / data android:scheme=http / category android:name=android.intent.category.ALTERNATIVE / category android:name=android.intent.category.SELECTED_ALTERNATIVE / /intent-filter Adding this to my manifest does not affect browser'smenutoo. Maybe i am making something wrong but i don't know what. And i was unable to find really workingexamplesof such actions. With respect, Michael PrinterShare team PS SDK version 1.0_r1 On 21 окт, 13:10, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm sorry i d'ont have example But you can find tutorial on code.google.com/android good luck. On 17 oct, 16:59, Shade [EMAIL PROTECTED] wrote: Hello! It is possible to add my activity to build-in browser'smenu? Working example wanted. Thank you. With respect, Michael PrinterShare team -- Dianne Hackborn [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] geolocation API in Android's web browser
Recently, the W3C has been working on a geolocation API for web browsers: http://dev.w3.org/geo/api/spec-source.html WebKit's trunk has preliminary support for this new Geolocation API. You can see the capability in the WebKit source tree: http://trac.webkit.org/browser/trunk/WebCore/page/Geolocation.cpp I looked in Android's Git repository and it appears that the Android repository doesn't (yet) include WebKit's Geolocation implementation: http://android.git.kernel.org/?p=platform/external/webkit.git;a=tree;f=WebCore/page;h=41b57623a2343e387a4126b0f5e44b826a10408f;hb=refs/heads/master According to a Twitter user, Google gave a demo of geolocation in the Android browser at the Future of Mobile conference: http://twitter.com/geekyouup/status/1009624011 #FOM Android browser gives access to location info thru google gears mobile I searched the Google Gears source tree and found this code: http://code.google.com/p/gears/source/browse/trunk/gears/geolocation/AndroidGpsLocationProvider.java http://code.google.com/p/gears/source/browse/trunk/gears/geolocation/gps_device_android.cc?r=3007 It appears that Google Gears for Mobile is coming to the Android platform. The Gears Gelocation API is nice but I'd really like to see support for the W3C Gelocation API. I hope the W3C finalizes their work soon. Sean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to save EditText styles
I have an EditText where users can set text to bold, italic, etc but I can't figure out how to save that text with style in db. I use getText but that only returns text and no style info. Any help is appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: no certificates error
guys help me. On Nov 18, 7:55 pm, Imran [EMAIL PROTECTED] wrote: Hi All As the time getting close to submit my project i am getting more and more problems My application was working fine... but it is giving some no certificate error can any one figure out wat it mean please ??? Thanks in advance for any replays!!! the error is 11-18 20:17:31.127: ERROR/PackageParser(54): Package com.games.speedtester has no certificates at entry res/drawable/ ab.png; ignoring! Cheers, Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: :: wat is the limit for the size of the .apk file
guys help me. On Nov 18, 5:56 pm, Imran [EMAIL PROTECTED] wrote: Hi i have created a game Application... and the size of the .apk file for this game is nearly 4MB will there be any problem if the size is big and can any one tell me wat is the limit for the size of the .apk file Thanks in Advance for any Replays...! Cheers, Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Question about ServerSocket
Hi, Certainly, when the port of waiting for the server was assumed to be well known ports(0-1024), the exception was thrown. When I use a port above 1024, I was able to new a ServerSocket instance. It doesn't operate according to the expectation though I am trying use port 4000, now. On the another PC, execute a command telnet emulator PC's machine 4000. But, it is not possible to connect to the emulator PC. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Listening for dynamic buttons created by an adapter
any help On Tue, Nov 18, 2008 at 6:45 PM, for android [EMAIL PROTECTED] wrote: Hey i have got a similar prb,but i dont exactly understand what u mean by * When your button clicks, get the ViewHolder from the button's parent, get the position out of the ViewHolder, and use that position. *Could you help me with a code snippet so that i understand clearly?? Thanks On Tue, Nov 18, 2008 at 8:55 AM, Mark Murphy [EMAIL PROTECTED]wrote: alexdonnini wrote: Next, I need to make sure that each and every kill button is wired, not just the one for the first item in the list. In order to do that, do you think it would be sufficient to set up a loop ranging across all members of the dataset (in my case an ArrayList) in getView? Eek! I mean, that shouldn't be necessary. Just wire each button as it is created. If the button has not been created yet, it cannot be clicked. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Question about ServerSocket
you must use telnet 10.0.2.2 if you want to telnet to emulator. 10.0.2.2: emulator's IP. 2008/11/19 riverwide [EMAIL PROTECTED] Hi, Certainly, when the port of waiting for the server was assumed to be well known ports(0-1024), the exception was thrown. When I use a port above 1024, I was able to new a ServerSocket instance. It doesn't operate according to the expectation though I am trying use port 4000, now. On the another PC, execute a command telnet emulator PC's machine 4000. But, it is not possible to connect to the emulator PC. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to save EditText styles
We don't currently have a general flat rich text format for android. You can use android.text.TextUtils.htmlEncode and android.text.Html for converting to/from HTML, but those may not be able to represent all of the style information in your text view. On Tue, Nov 18, 2008 at 8:16 PM, loty [EMAIL PROTECTED] wrote: I have an EditText where users can set text to bold, italic, etc but I can't figure out how to save that text with style in db. I use getText but that only returns text and no style info. Any help is appreciated. -- Dianne Hackborn [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---