[android-developers] Re: Nfc phone read the type A card.
I want to use two classes:IsoDep and NfcA .But how to use at thesametime? →mTechLists = new String[][] { new String[] {IsoDep.class.getName()} }; //mTechLists = new String[][] { new String[] {NfcA.class.getName()} }; →public void onResume() { super.onResume(); mAdapter.enableForegroundDispatch(this, mPendingIntent,mFilters, mTechLists);} Could someboby help me??Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How was the RenderScript Balls Demo Video Made?
We use BlackMagic's Intensity Pro video capture cards: http://www.blackmagic-design.com/products/intensity/ You'll need a fast hard drive/computer to capture the video stream at 720p in real-time without skipping frames though. On Wed, Sep 7, 2011 at 10:11 PM, Dianne Hackborn hack...@android.comwrote: Yeah it was done with a video capture card taking the Xoom's HDMI output as its input. I don't remember the exact card used. On Wed, Sep 7, 2011 at 7:25 PM, Macotonalds macotona...@gmail.com wrote: Hi. In this post, Mr.Bray says that The video above, captured through an Android tablet’s HDMI out. I think that it is not necessary to use TV. http://android-developers.blogspot.com/2011/02/introducing-renderscript.html On Aug 21, 5:29 am, newbyca newb...@gmail.com wrote: i'd like to use direct video capture of my apps for making Android Market promo videos. i know other devs have asked about this before and up until now i hadn't found a way. then recently i saw theRenderScriptBalls demo on youtube: http://www.youtube.com/watch?v=uQ5NumRfHN4 and it seems to be a direct capture. i also recently got a Xoom in my test bed ... so i'm guessing the Balls video was made by connecting a tablet to a TV via HDMI then recording from the TV? just hoping someone could confirm? i'm not much of a tv person so my tv is ancient and doesn't have HDMI- in, nor do i have a way to record from a TV to a computer for editing and format conversion. point being, i'd be willing to invest in a new tv and pc card ... but would like to know that it's necessary first. also, any pc card recommendations would be great, but i know that subject isn't really germane to this forum :) TIA// -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] NFC/RFID
Is it possible to create an application utilizing NFC(Near field Communication) of mobile phone which will communicate with existing RFID infrastructure ?Have both in the same frequency range? I read in an article that says RFID has a High Frequency (HF) band at 13.56 MHz and that have longer communication range. I confused that NFC has the same frequency limit but short communication range;how it possible? Does NFC support all RFID technologies ( both active and passive RFID)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] log disappears
Anyone know why sometimes the log disappears in the Eclipse log window? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] NFC/RFID
Is it Possible to read high frequency rfid tag using nexus s device? If it is yes can you send me the source code of that sample? Regards, Adiga -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android:inputType=number Error
Hi All; I have a problem about Edittext.I want to enter just number one of my Edittext so in xml i use android:inputType=number .But When i want to more than 10 characters program is not working.10 and less than 10 character it is OK. Do you anyone this reason and how can i fix it? Code is here: EditText android:layout_width=match_parent android:inputType=number android:id=@+id/surucu_sasi_no_e android:layout_height=wrap_content / Thx. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Activity GUI updated by thread data: implementation error?
Hi all, I have an activity updating the GUI with data coming from a socket. In my activity I implemented an Handler: int REFRESH = 1; final Handler hRefresh = new Handler(){ @Override public void handleMessage(Message msg) { Integer i1; Integer i2; i1 = msg.arg1; i2 = msg.arg2; ... update a widget (in my example a button background) } }; Then I start a thread polling the socket for new data and I define a Map with some function, which are called depending on the incoming data: allServerActions.put( ami.serverId, new IntIntFunction() { public int function(int i1, int i2) { Message msg = Message.obtain(hRefresh, 1, i1, i2); hRefresh.sendMessage(msg); return 0; } // end function } // end new ); // end put Where IntIntFunction is: interface IntIntFunction { int function(int i1, int i2); } The socket thread works correctly, but after 1/2 minutes the main activity dies, with the followin logging: I/ActivityManager( 555): Process my.test.testxml1 (pid 650) has died. D/Zygote ( 529): Process 650 terminated by signal (11) I/WindowManager( 555): WIN DEATH: Window{522dbc30 my.test.testxml1/my.test.testxml1.Testxml1 paused=false} W/UsageStats( 555): Unexpected resume of com.android.launcher while already resumed in my.test.testxml1 I/asset ( 555): Creating Asset 0x10279a90 #5 W/InputManagerService( 555): Got RemoteException sending setActive(false) notification to pid 650 uid 10020 I suppose I'm doing something wrong in the interazione between the 2 threads: from the documentation I read I understood that the correct way is to use Handlers for such a task. Am I correct? do you see any error in my implementation? Is there any other way to implement an activity whose interface is updated by data coming from a socket? thanks giammy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] After capture image from camera activity not update in android 3.1
In my app I have a Capture image from camera code using Intent intent = new Intent(android.media.action.IMAGE_CAPTURE); And it's working fine in all android 2.2, 2.3 but in 3.1 data get null from onActivityResult(). But image store in sdcard. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Live wallpaper thumbnail 208x192?
There doesn't appear to be any official documentation on the required size. However, from my testing on the emulator and real devices, it seems that the clearest/sharpest thumbnail images are obtained by doubling the resolution of the icon size for each density. So for HDPI which has an icon size of 72x72, use 144x144 for the wallpaper thumbnail. For MDPI with an icon size of 48, use 96. For LDPI with icon size of 36, use 72. Following this pattern, if XHDPI is double the density of MDPI, it should have an icon size of 96, hence I would expect 192x192 for the thumbnail, at least one dimension of you are reporting below. Do they really not appear square on your Xoom? Or is it possible that they are using 192x192 and adding extra padding? On Sep 8, 1:25 am, nadam a...@anyro.se wrote: I can't find any documentation or examples oflivewallpaperthumbnail sizes. On my Motorola Xoom the thumbnails are displayed as 208x192, but other mdpi-devices (phones) use much smaller thumbnails. What are the recommended sizes for ldpi, mdpi, hdpi and xhdpi? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: .asec files
You dont have to worry about that. Once you purchase an app on the android market, you own it forever regardless of how many eevices you have. Just go to the market on the new phone and download it. Do make sure that you set up your new phone with the same google account that you used for the old phone. On Sep 6, 8:03 am, johneboy45 janaken...@yahoo.com wrote: I purchased an app for my Droid Incredible and now purchased Droid Incredible 2. i want to get my purchased app off the old phone onto the new one. Can i copy the .asec file from the old phone onto the new phone? I don't want to have to re-purchase the same app. regards, Johneboy45 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?
You can use the same key secret key in a lot of apps? or you have to get a new key for each app? On 8 sep, 01:49, albnok alb...@gmail.com wrote: It is very much possible to get tweets from a user without logging in, provided that user did not set tweets to private. https://dev.twitter.com/docs/api/1/get/search Heck, you can search from a hashtag, even! You can choose to have Twitter give you the tweets in JSON or XML. JSON's a bit easier for me. No worries about parsing HTML whatsoever. Also, don't worry about registering your app - they just ask you to email. For some reason this is a BIG HURDLE to all the programmers I talked to! I just emailed, and the Twitter representative was very helpful. I got my XAuth key sorted in about 3 days. Of course, you must justify why you need it... On Sep 8, 1:46 am, saex elpablos...@gmail.com wrote: Hi i need to achieve that, show the last tweets of a programatically given user. But i need to do it without login on twitter, without using Oauth, and without registering my app on dev.twitter.com It is possible? i can't find the way to do it :S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Various Twitter Android Apps can use the same Consumer key Consumer secret Key for use with Oauth login on twitter?
Various Twitter Android Apps can use the same Consumer key Consumer secret Key for use with Oauth login on twitter? Wich issues can exist with this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Not an Overwhelmingly Positive First Impression
I've been using Eclipse-based IDEs since 2000 (WSAD - pure Eclipse since 2004), i.e., NOT a Newb. Install is Eclipse Classic (been doin' Java since '99) with plug-ins PHPEclipse, Aptana, and Subclipse. The instructions to do the Hello World app start... # n the Android SDK and AVD Manager, choose Available Packages in the left panel. # In the right panel, expand the Android Repository list to display the components available for installation. # Select at least one platform to install, and click Install Selected. If you aren't sure which platform to install, use the latest version. There are no compatible packages available from the Android Repository. I'm running Eclipse 3.5.2 with the latest Java being Java Platform, Standard Edition 6.0 on a Kubuntu box. Can't do nuthin'. Oughtn't to be this obscure, if you *really want* new developers to become enthralled. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] from autolink text to my custom Activity
I have a string like this:Hello! I'm Wincent. My phone number is 12345678910. My website is http://www.google.com. And My email is winc...@gmail.com. When I use textview.setText(s); textView.setAutoLinkMask(Linkfy.ALL); I can click phone number , url , then system will lauch Contactors, Browsers. So How can I make them linked to my another Activity? Content in TextView might be random, with some phone number, url , email address and so on... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Creating a DRM Wrapper around an Android app/game
I have a few games around which I would like to build a DRM Wrapper. The wrapper will basically check with my subscription engine if the user subscription is still valid. A user can download and play game for a few days (maybe on trial) and if s/he finds it interesting then can proceed to buy it completely. I am looking at knowing if this is technically feasible and if yes, then where is the best help I can get for this in terms of getting it developed. Thanks, Arpan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: can i able to play video using FFmpeg api.
After asking a million times i would have to answer: No, apparently *you* can't. On Sep 7, 11:44 am, NAVI NEW navi44...@gmail.com wrote: can i able to play video using FFmpeg api. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: [ASK] HOW TO SEND LONGITUDE LATITUDE TO ANOTHER ANDROID PHONE VIA INTERNET..
Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: close button
i have a close button in my project so i want if any one press these button i want my app close Set a View.onClickListener on the button and call finish() in its onClick function. Good for you. Thanks for letting us know. Please keep us posted as you add other buttons. You should resist the low-hanging fruit, it will blunt your edge :-) Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Copy a file from a Desktop PC
Ok, bad luck :( Does the Android device at least appear as External Storage Device in the file explorer when it is connected via USB? So it would be possible to figure out the drive letter of that storage volume and to do a common file copy in the desktop application? Regards, Frank On Sep 7, 4:48 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 7, 2011 at 10:43 AM, franky.b frank.bit...@gmail.com wrote: I'm writing an application that must be able to copy a file between an Android device and a Desktop PC and vice versa. The best way to do this would be to connect the Android device to the Desktop PC via an USB cable. Is there any API that can be used to copy files to and from the device when an USB connection is etablished? No, sorry. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Emulator starting Problem
Ok thanks for your help.. Thanks -- *Rathna Kumara Premadasa* Sri Lanka. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android:inputType=number Error
maybe it's because of the Integer.MAX_VALUE that is 2147483647. On Sep 8, 3:40 pm, Duygu Kahraman duygu.kahram...@gmail.com wrote: Hi All; I have a problem about Edittext.I want to enter just number one of my Edittext so in xml i use android:inputType=number .But When i want to more than 10 characters program is not working.10 and less than 10 character it is OK. Do you anyone this reason and how can i fix it? Code is here: EditText android:layout_width=match_parent android:inputType=number android:id=@+id/surucu_sasi_no_e android:layout_height=wrap_content / Thx. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to enable and disable Broadcast Receiver
How to enable and disable Broadcast Receiver i don't how to pass value to onreceieve any one help me -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: android:inputType=number Error
hmm ok. How can i road to fix my problem? in my edittext user must enter 12 characters.I must change type in xml or i must write code project for it? 2011/9/8 Macotonalds macotona...@gmail.com maybe it's because of the Integer.MAX_VALUE that is 2147483647. On Sep 8, 3:40 pm, Duygu Kahraman duygu.kahram...@gmail.com wrote: Hi All; I have a problem about Edittext.I want to enter just number one of my Edittext so in xml i use android:inputType=number .But When i want to more than 10 characters program is not working.10 and less than 10 character it is OK. Do you anyone this reason and how can i fix it? Code is here: EditText android:layout_width=match_parent android:inputType=number android:id=@+id/surucu_sasi_no_e android:layout_height=wrap_content / Thx. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- Duygu Kahraman http://tr.linkedin.com/in/duygukahramann -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: kokao Talk
First. Get some friends. Then add their phone number. On Sep 8, 1:08 pm, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi, I installed kokao Talk in my mobile, please tell me how to add friends. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Git and source code
not without some code we can't. Try posting code when you have a question and you are likely to get some help. On Sep 8, 4:52 am, Tushar Sahni tusharsahni...@gmail.com wrote: Hi I am getting cursor out of bound exception while i am trying to get list particular item positiion,Below is the crash report i am getting 09-08 01:20:45.651: ERROR/AndroidRuntime(16459): Caused by: android.database.CursorIndexOutOfBoundsException: Index 114 requested, with a size of 114 09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580) 09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:214) 09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:41) 09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at com.redorange.database.MessageDbAdapter.GetSeedDetails(MessageDbAdapter.java:360) 09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at com.redorange.headshop.CustomAdapter.onCreate(CustomAdapter.java:36) 09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586) 09-08 01:20:45.651: ERROR/AndroidRuntime(16459): ... 11 more Can anyone help me in this regard Thanks in advance Tushar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android:inputType=number Error
Hey dudo!:) Check this out please, this is what you are looking for? http://androidblogger.blogspot.com/2009/01/numeric-edittext-and-edittext-with-max.html Bye, Károly On szept. 8, 08:40, Duygu Kahraman duygu.kahram...@gmail.com wrote: Hi All; I have a problem about Edittext.I want to enter just number one of my Edittext so in xml i use android:inputType=number .But When i want to more than 10 characters program is not working.10 and less than 10 character it is OK. Do you anyone this reason and how can i fix it? Code is here: EditText android:layout_width=match_parent android:inputType=number android:id=@+id/surucu_sasi_no_e android:layout_height=wrap_content / Thx. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Listview with image data from database
A SimpleCursorAdapter does have the smarts to handle images. You will need to write a custom adapter that expect images (bitmaps) and will display them. At a minimum your adapter will have to redefine getView and return a view upon completion. On Sep 7, 8:53 pm, Atluri ajith atluriaj...@gmail.com wrote: Hi, im trying to display image with name in listview. My content is coming from database using SimpleCursorAdapter. When i'm trying with this below code getting force close. setContentView(R.layout.places); DatabaseHelper dbHelper = new DatabaseHelper(this.getApplicationContext()); DbLoc = dbHelper.getWritableDatabase(); String[] DBcolumns = new String[]{DatabaseHelper.LocationName, DatabaseHelper.FriendMobile}; Cursor cursor = DbLoc.rawQuery(SELECT + DatabaseHelper.LocationName + ,+ DatabaseHelper.LocationImage + FROM + DatabaseHelper.LOCATIONTABLE , null); // the desired columns to be bound String[] columns = new String[] { DatabaseHelper.LocationName, DatabaseHelper.LocationImage }; // the XML defined views which the data will be bound to int[] to = new int[] { R.id.toptext, R.id.icon }; cursorAdapter = new SimpleCursorAdapter(this, R.layout.placeslist, cursor, columns, to); listContent.setAdapter(cursorAdapter); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can i run javascript alerts in android code?
you might check out http://droidscript.se/ for running javascript on your device On Sep 7, 6:31 pm, venugopal reddy venugopal.re...@tspl.com wrote: How can i run javascript alerts in android code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Developing first Android app from iOS
you'll need to make a listview with each item selectable. Once selected, you will initiate an activity that will display the details of that selection. Checkout out the Notepad tutorial on http://developer.android.com/index.html On Sep 7, 6:58 am, Dan Uff danny@gmail.com wrote: Hi all: I have been an iOS developer for the last 3 years and am expanding my small company to Android. I have a very popular table based iOS reference app (Linux Command Reference) that I'd like to port over to Android. For anyone interested, you can find it here: http://itunes.apple.com/us/app/linux-command-reference/id324321674?mt=8 This is what I have so far: I have the table list of items but do not know how to make it go from a user's selection to another view. I am looking for any assistance to get this project off the ground. Thanks, Dan Uff -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] same app one tablet and phone with differnt gui
Hello Sisters and Brothers!:) I have a little noise in my brain about the different xml layouts type depends on screen, if anyone would help to make it clear, I`m becoming so greatful:) I have to write an application which have to run on tablet and on phone too. It is not a problem, because I would use this tutorial: http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts but I there is one more thing: The layouts have to be different, for example if the code is running on tablet there have to be 4 button on the top bar, and if we are using a phone only 2. How can I handle this case in the level of Activities ? I understand that, I'm able to make different GUI xml depending on the actual screen size, but I don`t know how to handle the cases, `coz I`m think I`m going to go a nullpointer exception when I`m trying to read a tablet gui in an activity which was designed for phone?! Have I right? May anyone has a good idea or tutorial? Thank you, Karoly from Hungary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth signalling between phones?
Well you can *detect* without near each other. But if you're trying to connect, then you have to pair and the user has to agree. Would be a security risk I guess, if you were able to connect to devices w/o people knowing/acknowledging. On 7 sep, 23:27, Droid rod...@gmail.com wrote: I want to make a bluetooth app that detects the same app in another phone when near eachother. Is this possible without pre-pairing the phones? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Calendar: functional request
works fine on my android phone. That's a pretty simple thing that nearly ALL calendars have had for years On Sep 6, 11:01 pm, Ivo Michiel ivo.mich...@gmail.com wrote: Simple feature request: Entering repeated calendar apointments is not possible on android phones. Is this feature planned? or could it be planned? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Some Questions Aabout Android DRM
Hi Everyone, I want know that Will the Widevine DRM be native to all devices running HoneyComb OS (e.g. we can deploy our app to any device running HoneyComb without involvement from device manufacturers)? Thanks! Best for your regards! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Prevent Time Changed by User
Hi guys, I find a case about something that I can not resolve this problem: - I have a countdown timer which is ticking until it counts to 0 (to a specific time, lets say until 00 midnight) - It will tick correctly by calculating the destination time with user's phone time - But if user change the phone's time manually, how can I resolve this case? Is there any possible solution? Thanks, Rendy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] device sometimes reboots
Hello, I face below phenomenon sometimes. Procedure: 1. set livewallpaper as wallpaper on home screen. 2. back to the static wallpaper as well. 3. repeat 1-2 continuously. As the result, a device is rebooted. Livewallpaper is Nexus default pre-installed. static wallpaper is also default pre-installed. ( my device is LG Optimus Black(Gingerbread)) If you know something, please let me know why this issue occur. Thanks, Hiko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android radio API ?
My phone gas a built-in radio app. Is there an API to acces that or is it firmware which bypasses Android? Searching the sdk resources only leads to terms as radiobuttons or groups, but I mean the real thing for listening to music. Hans -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Webviews side by side
I have two Webviews side by side, and, when one of them gets scrolled vertically, I need to scroll the other. Anyone know how to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Webviews side by side
I have two Webviews side by side, and, when one of them gets scrolled vertically, I need to scroll the other. Second answer on Google for Android webview scroll : http://stackoverflow.com/questions/2238938/how-to-programmatically-scroll-android-webview Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.3.5 device cannot find my app
appel, could you try now? Copy-protection has been removed. I am curious though, why a 2.3.4 device is not a developer device, but the 2.3.5 device is... my 2.3.4 is rooted and I have no problems finding it. Venugopal, start your own topic, and stop spamming every other thread. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Once again the INSTALL_FAILED_INSUFFICIENT_STORAGE error
Hey there, Thanks again for replying. I changed my configuration to boot from SD card, instead of NFS. When I do that, things are ok and I can install and debug via eclipse (adb ethernet). If the filesystem is NFS, the INSUFFICIENT_STORAGE error is triggered. /Palsson On Sep 7, 12:45 pm, NAVI NEW navi44...@gmail.com wrote: Increase avd size On Wed, Sep 7, 2011 at 4:14 PM, Palsson palsson...@gmail.com wrote: Hey there, Thanks for your replies.. I'm afraid none of them are solving the issue: - partition-size 1024 - android:installLocation=preferExternal - or reboot I can see at the top-icon-bar on my display, when the android desktop shows up after reboot, that it says low on space. That could be related to what Pavel Mores said about some clean up failure.. and again, it worked to begin with. Then not. An amazing piece of issue!? Regards Palsson On Sep 6, 3:58 pm, Latimerius l4t1m3r...@googlemail.com wrote: Thanks for the links, however even those don't seem to mention a solution (or even a work-around) for pre-2.2 hardware devices ... On Tue, Sep 6, 2011 at 11:29 AM, sanj sahayam sanjsmail...@gmail.com wrote: Have you read these articles on SO: http://stackoverflow.com/questions/4709137/solution-android-install-f. .. http://stackoverflow.com/questions/6788996/installation-error-install. .. Have you also tried it by wiping the data on the emulator before launching? when using adb push which filesystem location do you push to? Cheers, Sanj -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Filenot found exception
Hi friends, I am getting the below exception java.io.FileNotFoundException: /mnt/sdcard/ (Permission denied) Also i have set the below permissions in the manifest uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE/uses-permission android:name=android.permission.READ_EXTERNAL_STORAGE/ How to gain access to sdcard ? Please reply its too urgent -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Drawing To And Then Re-Using A Bitmap In A Map Overlay
hej, I noticed the same thing that draw method is called several times after zooming the map view and each time 0,0 coordinates are updated. and I noticed also that if I create my path and draw it to the bitmap for a first time when zoom change then shape is completely wrong (sometimes it is ok) so I guess I should wait till the last call to draw method. so for this checking 0,0 probably would help. BUT I dont understand how you detect that a user moved map. then 0,0 will also change but this is what we expect and you dont want to recreate your bitmap every time user search specific location for set zoom, you just move bitmap to offset computed between last 0,0 and current 0,0 maybe I missing something from your code or maybe I should set some listener on mapview. i m developing for Level 7 API. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android radio API ?
On Thu, Sep 8, 2011 at 5:34 AM, WolpTec n...@wolptec.com wrote: My phone gas a built-in radio app. Is there an API to acces that or is it firmware which bypasses Android? It is part of the firmware accessing internal stuff. There are no APIs in Android related to FM radio or the like. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Prevent Time Changed by User
On Thu, Sep 8, 2011 at 5:25 AM, ndiiie 90 rnd...@gmail.com wrote: - I have a countdown timer which is ticking until it counts to 0 (to a specific time, lets say until 00 midnight) Why? - It will tick correctly by calculating the destination time with user's phone time If your goal is to get control when the time elapses, use this calculation to determine a number of milliseconds from right now, then use AlarmManager and ELAPSED_REALTIME (or ELAPSED_REALTIME_WAKEUP). - But if user change the phone's time manually, how can I resolve this case? Use a timing mechanism that is not dependent upon the real-time clock, such as the aforementioned AlarmManager or SystemClock.elapsedRealtime() or whatever. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Some Questions Aabout Android DRM
On Thu, Sep 8, 2011 at 4:50 AM, weida shao liangm...@gmail.com wrote: I want know that Will the Widevine DRM be native to all devices running HoneyComb OS (e.g. we can deploy our app to any device running HoneyComb without involvement from device manufacturers)? Since Widevine DRM is not open source, it is guaranteed to not be in all devices. It will only be in those devices who decide to pay Widevine and integrate their solution. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: android:inputType=number Error
Thx for all reply but Karoly it is not working. Reason is integer 32 bit OK.but i couldnt enter any value like integer,biginteger..i am using just android:inputType=number,numberSignedornumberDecimal? 2011/9/8 Károly Holczhauser holczhau...@gmail.com Hey dudo!:) Check this out please, this is what you are looking for? http://androidblogger.blogspot.com/2009/01/numeric-edittext-and-edittext-with-max.html Bye, Károly On szept. 8, 08:40, Duygu Kahraman duygu.kahram...@gmail.com wrote: Hi All; I have a problem about Edittext.I want to enter just number one of my Edittext so in xml i use android:inputType=number .But When i want to more than 10 characters program is not working.10 and less than 10 character it is OK. Do you anyone this reason and how can i fix it? Code is here: EditText android:layout_width=match_parent android:inputType=number android:id=@+id/surucu_sasi_no_e android:layout_height=wrap_content / Thx. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- Duygu Kahraman http://tr.linkedin.com/in/duygukahramann -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Copy a file from a Desktop PC
On Thu, Sep 8, 2011 at 4:01 AM, franky.b frank.bit...@gmail.com wrote: Does the Android device at least appear as External Storage Device in the file explorer when it is connected via USB? If the user elects to mount it, yes. With Honeycomb (and, presumably, future releases of Android), this will also require that the host OS support MTP -- Windows does, OS X and Linux need third-party apps. So it would be possible to figure out the drive letter of that storage volume and to do a common file copy in the desktop application? I don't know how you would determine the drive letter, since it could be just about anything. And, of course, the notion of a drive letter is a Windows construct. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to enable and disable Broadcast Receiver
On Thu, Sep 8, 2011 at 4:36 AM, GopalaKrishnan D gopall...@gmail.com wrote: How to enable and disable Broadcast Receiver If it is registered in the manifest via a receiver element, use android:enabled for the initial state, plus PackageManager and setComponentEnabledSetting() to change it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Not an Overwhelmingly Positive First Impression
On Thu, Sep 8, 2011 at 12:31 AM, designteam designt...@s8design.co.uk wrote: There are no compatible packages available from the Android Repository. There are for tens of thousands of other developers. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need your help: how to monitor the dialpad key press action in another application during an active call?
On Thu, Sep 8, 2011 at 1:28 AM, xavier bzp1...@gmail.com wrote: I know that I can't replace the default InCallScreen when the call has been set up, but I really want to show some additional info during the call, so I want to create one new activity which is transparent and always above the default InCallScreen. The question is that I want to display different info when the caller dials some special key (1-9,*,#), how can I get this key press notification? Fortunately, you can't, for obvious security and privacy reasons. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] close button
On Wed, Sep 7, 2011 at 11:27 AM, Ali Alyassen omg...@gmail.com wrote: i have a close button in my project so i want if any one press these button i want my app close Please don't. http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] custom viewgroup with a background.
On Wed, Sep 7, 2011 at 11:58 PM, billconan billco...@gmail.com wrote: suppose I have a function named kkk Why ... why would you name your function that ... ? which overrides the function aaa, That doesn't make sense. You can't override a function with a different name. Let's assume you meant kkk again. if I want to call aaa from kkk, I wrote: @Override protected void kkk() { super(); } The problem is, I want to do something before calling aaa @Override protected void kkk() { //do something here super(); } But java doesn't allow me to do this, it says that super must be the first thing inside the function. So how can I call super() after some other code? You may need to brush up on Java. super() is a call to the super class *constructor*. If you want to call a super class *method* you call super.methodName() - so in your case super.kkk(). - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Inflating editext into AlertDialog...
void alertInputStr(String title, String message, int numeroCampoEditabile) { AlertDialog.Builder alertI = new AlertDialog.Builder(this); final int num = numeroCampoEditabile; alertI.setTitle(title); alertI.setMessage(message); input = new EditText(this); alertI.setView(input); alertI.setPositiveButton(Ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { Editable value = input.getText(); String valInput; try { valInput = value.toString(); } catch (Exception e) { valInput = ; } switch (num) { case 1: Home.to = valInput; instance.setContentView(new SendMail(instance)); break; } } }); alertI.setNegativeButton(Cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }); alertI.show(); InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); // only will trigger it if no physical keyboard is open mgr.showSoftInput(input, InputMethodManager.SHOW_IMPLICIT); } On Sep 8, 3:55 am, TreKing treking...@gmail.com wrote: On Wed, Sep 7, 2011 at 7:23 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: have you got some code snippet to do it please? What have you tried? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to read RFID tag using Nexus s device?
Hi Mark, http://developer.android.com/guide/topics/nfc/index.html Using this link , I can read MyFare Classic card , but unable to read RFID tags. On Sep 6, 5:25 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Sep 6, 2011 at 8:16 AM,Adigajakad...@gmail.com wrote: How to read RFID tag using Nexus s device? If any one knows help me. http://developer.android.com/guide/topics/nfc/index.html -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.1 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Black screen after switching to another app
Does anyone know what I can try to do to fix this issue? On Sep 7, 2:07 pm, MobileVisuals eyv...@astralvisuals.com wrote: I have already debugged the code lots of times with breakpoints, but I can not find the cause for the black screen. The thread runs like it should and no instances are null. On Sep 7, 10:30 am, MarcoAndroid marco...@gmail.com wrote: Are you sure you know which code gets executed? I'd add breakpoints/ logging statements to see what's happening... At least a logstatement on all onStart(), onResume() onXYZ() methods entry points. Maybe then you get a better idea on what's going on. On 6 sep, 18:58, MobileVisuals eyv...@astralvisuals.com wrote: Thanks, I added this code to the app, but the problem remains. I don't know if I should use suspend and resume on the GUI thread, because the documentation says that it could cause deadlocks.Do you know if there is some more that I can do to solve this issue? protected void onPause() { super.onPause(); if (!menu2d) glSurfaceView.onPause(); else mLunarView.getThread().suspend(); } protected void onResume() { super.onResume(); if (!menu2d) glSurfaceView.onResume(); else mLunarView.getThread().resume(); } On Sep 6, 2:43 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On 6 September 2011 13:32, MobileVisuals eyv...@astralvisuals.com wrote: My app has a SurfaceView and a GLSurfaceView. I can switch back and forth between these. The SurfaceView is the application GUI. I test switching to another app. I can then switch back to the GLSurfaceView in my app. I then try to switch back to the GLSurfaceView,where the application GUI is. Here is where the problem occurs. A black screen is shown instead of the GUI. The app still works, because the application menu is shown when the menu button is pressed. But nothing is drawn on the screen, it is only black. I have tried almost everything to fix this, I have checked that the thread is running and that no instance of any object (like the SurfaceHolder) is null. What could be the reason for this black screen? Do you call GLSurfaceView.resume() from Activity.resume() ? By the same token you should be calling GLSurfaceView.pause() in the right moment of your activity lifecycle. HTH -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to read RFID tag using Nexus s device?
On Thu, Sep 8, 2011 at 9:02 AM, Adiga jakad...@gmail.com wrote: Hi Mark, http://developer.android.com/guide/topics/nfc/index.html Using this link , I can read MyFare Classic card , but unable to read RFID tags. NFC and RFID are not the same thing. Android supports NFC. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Inflating editext into AlertDialog...
On Thu, Sep 8, 2011 at 8:00 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: *code* OK ... and the problem is ... ? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.3.5 device cannot find my app
I could find and install your app now. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Spinner , truncate text instead of wrap text
it does work thank you for your help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Not an Overwhelmingly Positive First Impression
irony on You have issues on that level? Wait until you see Android Market. irony off I'll hazard a guess and say you've miss-typed a repository URL or something like that. Besides, high time to get to Indigo anyways, I've rebuild my Eclipse installations around the office the other day, no pain. On Sep 7, 9:31 pm, designteam designt...@s8design.co.uk wrote: I've been using Eclipse-based IDEs since 2000 (WSAD - pure Eclipse since 2004), i.e., NOT a Newb. Install is Eclipse Classic (been doin' Java since '99) with plug-ins PHPEclipse, Aptana, and Subclipse. The instructions to do the Hello World app start... # n the Android SDK and AVD Manager, choose Available Packages in the left panel. # In the right panel, expand the Android Repository list to display the components available for installation. # Select at least one platform to install, and click Install Selected. If you aren't sure which platform to install, use the latest version. There are no compatible packages available from the Android Repository. I'm running Eclipse 3.5.2 with the latest Java being Java Platform, Standard Edition 6.0 on a Kubuntu box. Can't do nuthin'. Oughtn't to be this obscure, if you *really want* new developers to become enthralled. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: android:inputType=number Error
Use textwatcher and verify the string with onTextChanged. If the digited string was a char, just delete ;) 2011/9/8 Duygu Kahraman duygu.kahram...@gmail.com: Thx for all reply but Karoly it is not working. Reason is integer 32 bit OK.but i couldnt enter any value like integer,biginteger..i am using just android:inputType=number,numberSignedornumberDecimal? 2011/9/8 Károly Holczhauser holczhau...@gmail.com Hey dudo!:) Check this out please, this is what you are looking for? http://androidblogger.blogspot.com/2009/01/numeric-edittext-and-edittext-with-max.html Bye, Károly On szept. 8, 08:40, Duygu Kahraman duygu.kahram...@gmail.com wrote: Hi All; I have a problem about Edittext.I want to enter just number one of my Edittext so in xml i use android:inputType=number .But When i want to more than 10 characters program is not working.10 and less than 10 character it is OK. Do you anyone this reason and how can i fix it? Code is here: EditText android:layout_width=match_parent android:inputType=number android:id=@+id/surucu_sasi_no_e android:layout_height=wrap_content / Thx. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- Duygu Kahraman http://tr.linkedin.com/in/duygukahramann -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to read RFID tag using Nexus s device?
Hallo Adiga, http://developer.android.com/guide/topics/nfc/index.html Using this link , I can read MyFare Classic card , but unable to read RFID tags. MIFARE Classic *is* one type of RFID tag. Anyways, the refered API allows much more that accessing MIFARE Classic cards. It gives you high-level access to any type of NFC tag using the NDEF format, it allows easy access to MIFARE Ultralight cards and it provides classes for direct access to all NFC-compatible RFID tags: Low-level access through NfcA for ISO 14443 Type A, NfcB for ISO 14443 Type B, NfcF for FeliCa and NfcV for vicinity cards (although I haven't tried NfcB NfcF so far). And high-level access to APDU-based contactless smartcards through IsoDep. br Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Fwd: [android-developers] Re: soap webservie (celsius to fareheit
while accessing the webservice am getting socketexception 09-08 19:28:24.206: WARN/System.err(526): java.net.SocketException: The operation timed out 09-08 19:28:24.213: WARN/System.err(526): at org.apache.harmony.luni. platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native Method) 09-08 19:28:24.213: WARN/System.err(526): at org.apache.harmony.luni.platform.OSNetworkSystem.connect(OSNetworkSystem.java:115) 09-08 19:28:24.223: WARN/System.err(526): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:244) 09-08 19:28:24.233: WARN/System.err(526): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:533) 09-08 19:28:24.233: WARN/System.err(526): at java.net.Socket.connect(Socket.java:1055) 09-08 19:28:24.243: WARN/System.err(526): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.init(HttpConnection.java:62) 09-08 19:28:24.243: WARN/System.err(526): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:88) 09-08 19:28:24.243: WARN/System.err(526): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHTTPConnection(HttpURLConnectionImpl.java:927) 09-08 19:28:24.254: WARN/System.err(526): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:909) 09-08 19:28:24.254: WARN/System.err(526): at org.ksoap2.transport.ServiceConnectionSE.connect(ServiceConnectionSE.java:46) 09-08 19:28:24.254: WARN/System.err(526): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:68) 09-08 19:28:24.263: WARN/System.err(526): at com.Tracking.Tracking.onCreate(Tracking.java:38) 09-08 19:28:24.263: WARN/System.err(526): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 09-08 19:28:24.263: WARN/System.err(526): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 09-08 19:28:24.263: WARN/System.err(526): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 09-08 19:28:24.273: WARN/System.err(526): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 09-08 19:28:24.273: WARN/System.err(526): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 09-08 19:28:24.273: WARN/System.err(526): at android.os.Handler.dispatchMessage(Handler.java:99) 09-08 19:28:24.273: WARN/System.err(526): at android.os.Looper.loop(Looper.java:123) 09-08 19:28:24.283: WARN/System.err(526): at android.app.ActivityThread.main(ActivityThread.java:4627) 09-08 19:28:24.283: WARN/System.err(526): at java.lang.reflect.Method.invokeNative(Native Method) 09-08 19:28:24.283: WARN/System.err(526): at java.lang.reflect.Method.invoke(Method.java:521) 09-08 19:28:24.283: WARN/System.err(526): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 09-08 19:28:24.293: WARN/System.err(526): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 09-08 19:28:24.293: WARN/System.err(526): at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Publish modified APK to the Android Market without triggering an Update to existing users?
I'd like to publish a modified APK without triggering an update for my existing users. Wondering if I can just upload a new one with the same version number as the one that's out there already. Has anyone done this? Why? Because I'm fixing something that is mostly needed by newer phone's hitting the market and if existing users see an update they'll expect improvements, new features, etc. They've been waiting for new stuff for a while and this would just frustrate people. I'm not ready to deploy new features just yet, but have a fix that is needed for some newer phone's (different screen sizes) hitting the market. So I'd like to just deploy the modified apk with the same version. Let me know if anyone has success doing this and if there were any problems encountered. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get synced Facebook contacts picture?
There is definitely no way to do this in a standard way. So, we must use an SQLi injection in order to be able to hack the contacts database and get the Facebook avatars. The following code works on most Motorolas, which use Motoblur, on Android 2.2 or higher: public static Bitmap loadFacebookAvatar(Context context, long personId) { String[] rawProjection = {ContactsContract.RawContacts._ID}; String contactIdAssertion = ContactsContract.RawContacts.CONTACT_ID + = + personId; String rawWhere = new StringBuilder() .append(contactIdAssertion).append() UNION ALL SELECT ) .append(ContactsContract.RawContacts._ID).append( FROM view_raw_contacts WHERE () .append(contactIdAssertion).toString(); Cursor query = context.getContentResolver().query(ContactsContract.RawContacts.CONTENT_URI, rawProjection, rawWhere, null, null); if (query != null query.moveToFirst()) { do { long id = query.getLong(query.getColumnIndex(ContactsContract.RawContacts._ID)); String[] projection = {ContactsContract.CommonDataKinds.Photo.PHOTO}; Uri uri = ContactsContract.Data.CONTENT_URI; String mimeTypeAssertion = ContactsContract.Data.MIMETYPE + =' + ContactsContract.CommonDataKinds.Photo.CONTENT_ITEM_TYPE + '; String photoAssertion = ContactsContract.CommonDataKinds.Photo.PHOTO + IS NOT NULL; String rawContactIdAssertion = ContactsContract.CommonDataKinds.Photo.RAW_CONTACT_ID + = + id; String where = new StringBuilder().append(mimeTypeAssertion).append( AND ) .append(photoAssertion).append( AND ).append(rawContactIdAssertion) .append() UNION ALL SELECT ).append(ContactsContract.CommonDataKinds.Photo.PHOTO) .append( FROM view_data WHERE ().append(photoAssertion).append( AND ) .append(rawContactIdAssertion).toString(); Cursor photoQuery = context.getContentResolver().query(uri, projection, where, null, null); if (photoQuery != null photoQuery.moveToFirst()) { do { byte[] photoData = photoQuery.getBlob(photoQuery.getColumnIndex(ContactsContract.CommonDataKinds.Photo.PHOTO)); if (photoData != null) { return BitmapFactory.decodeByteArray(photoData, 0, photoData.length, null); } } while (photoQuery.moveToNext()); } } while (query.moveToNext()); } return null; } For other handsets you must get the contacts database and analyze it in order to determine how to apply the SQL Injection, which requires a rooted phone. 2011/8/24 Casidiablo elhacker.net casidia...@elhacker.net I am writing an application that has to get the list of contacts and show their picture. Sometimes contact does not have picture so I must show the picture taken from Facebook account. The requirement is to do this without using Facebook SDK. At first, I thought it was impossible, since I have read a lot of times that only stock apps (like Contacts or Mms) can access that information. However, Handcent SMS application can do that. There is an option on most Motorola's phones to add a Facebook account... when you do so, it will mark Facebook as Picture source http://imgur.com/KFxOR and contacts list will show Facebook pictures for some contacts. Motorola documentation (http://developer.motorola.com/docstools/ library/MOTOBLUR_Contacts_1.x_Release_Notes/) says that is not possible for third-party apps to access Facebook information. So... anyone have any idea of how HandcentSMS guys were able to get facebook pictures from the contact list? Just to be clear: they don't use Facebook SDK and they use the Facebook pictures that motorola software downloads (I know it because when I remove the facebook account from android settings, Handcent does not show pictures) Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: EditText with tiled background
You can create an xml file for your background. In that XML file, you add an item called bitmap. On the bitmap item, you apply a PNG that can tile and set the tile mode to repeat. Example found here http://www.mokasocial.com/2011/02/create-a-custom-styled-ui-slider-seekbar-in-android/ ?xml version=1.0 encoding=utf-8? layer-list xmlns:android=http://schemas.android.com/apk/res/ android item clip shape gradient android:startColor=#FF5e8ea3 android:centerColor=#FF32a0d2 android:centerY=0.1 android:endColor=#FF13729e android:angle=270 / /shape /clip /item item clip bitmap xmlns:android=http://schemas.android.com/apk/res/ android android:src=@drawable/stripe_bg android:tileMode=repeat android:antialias=true android:dither=false android:filter=false android:gravity=left / /clip /item /layer-list Don't hesitate to grab 9-patch PNGs from my blog if you need :) android9patch.blogspot.com Richard. On Sep 7, 4:10 pm, Vladyslav Chyzhevskyi chyzhevs...@gmail.com wrote: Hi everyone! I tried to create EditText element with tiled background. I use 9-patch, but this scratch image for whole edit area, rather I want to repeat it, look like in picture below. https://lh4.googleusercontent.com/-4GC8DxBbmFs/TmfPKDk0GmI/AC... How I can do this? Any ideas? Thx a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Publish modified APK to the Android Market without triggering an Update to existing users?
On Thu, Sep 8, 2011 at 11:14 PM, Paul idi...@gmail.com wrote: So I'd like to just deploy the modified apk with the same version. Let me know if anyone has success doing this and if there were any problems encountered. Thanks in advance. You can't deploy an app with the same version, but you can have multiple APKs targeted at different Android versions. http://developer.android.com/guide/market/publishing/multiple-apks.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is there any way to change contents of shape.xml of drawable folder?
Hello, In app, I've used a shape.xml for giving a rounded rectangle shape to my view (as seen below) and in that, I've used some color. Now, what I want to do is change the color in this shape.xml dynamically so that I can make some fade color animation out of it. So is there any way to change the color value in that file dynamically? Here is that file - *?xml version=1.0 encoding=utf-8?* *shape xmlns:android=http://schemas.android.com/apk/res/android* *android:shape=rectangle* *corners* *android:radius=10dp* *android:topLeftRadius=10dp* *android:topRightRadius=10dp* *android:bottomLeftRadius=10dp* *android:bottomRightRadius=10dp /* *size* *android:width=65dp* *android:height=65dp /* *solid* *android:color=#FFA500 /* */shape *Alternatively, can you suggest some dynamic code from which I can achieve the same that this shape.xml does, so that I can pass a color as a parameter over there? * Please Help.* * * *-Regards,* *Rajkiran Bande.* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Publish modified APK to the Android Market without triggering an Update to existing users?
On Sep 8, 10:28 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: You can't deploy an app with the same version, but you can have multiple APKs targeted at different Android versions. http://developer.android.com/guide/market/publishing/multiple-apks.html Thanks, I'm aware of the multiple-apk option although after reading the fine print, it seems like that may not work for us. Are you sure you can't deploy an app with the same version? I mean that was my impression as well, but never really read anything that said it wouldn't actually work. I think there is this assumption that you want everyone to get the new version and so that has guided a lot of how the documents read. My goal is to just put out a new version that new buyers will get without affecting existing users. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Publish modified APK to the Android Market without triggering an Update to existing users?
On Thu, Sep 8, 2011 at 11:50 PM, Paul idi...@gmail.com wrote: On Sep 8, 10:28 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: You can't deploy an app with the same version, but you can have multiple APKs targeted at different Android versions. http://developer.android.com/guide/market/publishing/multiple-apks.html Thanks, I'm aware of the multiple-apk option although after reading the fine print, it seems like that may not work for us. Why? Are you sure you can't deploy an app with the same version? Try it out and let us know :) I vaguely remember that you get an error if you upload an APK with the same version number. That was quite a while ago, so things might have changed, but I doubt it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Publish modified APK to the Android Market without triggering an Update to existing users?
You can't upload a new apk with a lower version number than the current one on the market. You can try it for yourself. Nothing bad will happen, you'll just get an error stating what i've just mentionned. Don't be to worried about frustrating people. You can simply add a quick note at the top of your description and in the recent changes : * The new update is preparing the ground for the awsome new feature coming this month. So stay tuned And there you go. Simply email this line to the few that will email you and you're done. Good luck. Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] TeamCity and monkeyrunner
Hi, I have a monkeyrunner script that connects to an Android device and deploys an APK on it. serial = '12345JKL' device = MonkeyRunner.waitForConnection(deviceId=serial) device.installPackage(path_to_apk) This works flawlessly when I execute the script using the Windows command shell. C:\dev\android\tools\monkeyrunner.bat C:\dev\my_script.py -psome_parameter The problem is that I want to have my_script.py executed by a TeamCity (Enterprise 6.0.3) build configuration on the same PC: this fails. Please find the stack trace here: http://pastebin.com/CjWy95c3 First I thought that TC was messing with the parameters of the script. But the command from the TC build log [00:55:12]: Starting: C:\dev\android\tools\monkeyrunner.bat C:\dev\my_script.py -psome_parameter in directory: C:\some_dir was the same as in the command shell and accordingly the script could connect to the device and worked fine when I copied the command into a command shell while C:\some_dir was my current directory. I was not able to reproduce this error outside of TC. I want to emphasize that this all happens on the same PC (Win 7 x64). The script works when executed from the command shell but fails (always when trying to connect to a device) when triggered by the TC build configuration. Further testing has shown that the problem isn't limited to MonkeyRunner.waitForConnection() but also occurs when calling MonkeyRunner.sleep(5). Stacktrace http://pastebin.com/JsG1uxT1 Can it be that monkeyrunner and TeamCity don't go along well with each other? If anybody could point me in the right direction I would be very happy. Best, Matthias -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Operating System Modifications
If there were no capabilities for color management on the Android OS, and we were interested in developing an API to integrate into the system for future releases, how would one go about this process? There are several libraries for color management in existence for Linux, yet these capabilities aren't accessible to us for the developer. Is it possible to make progress towards implementing changes into future releases, or are we at the timetable of the Android Open Source Project. It seems as though it lets the users contribute to bug fixes and features of their choice that they desire to code with to my understanding. Since I would be desiring to sell color management tools, there isn't enticement for me to build my own OS version spinoff on a rooted device. Any thoughts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Upgrading from 1.6 to 2.2+
Hi all, we are in the process of moving a number of apps and their convoluted logic from older OSes (1.6) to 2.2. Are versions 2.2+ backwards compatible for the most part with older versions? What are the most profound changes that need to be done? Most of these apps make use of data on the SD card (read and write to it) but the rest of the functionality is modest. I know this is a loaded question and I am not looking for a comprehensive answer but more like major points/directions to follow. I was thinking also that Mark's books may come handy since they do progressively walk through versions. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Upgrading from 1.6 to 2.2+
On Thu, Sep 8, 2011 at 11:53 AM, kypriakos demet...@ece.neu.edu wrote: we are in the process of moving a number of apps and their convoluted logic from older OSes (1.6) to 2.2. That statement doesn't make sense. Unless you have been using maxSdkVersion, your applications have been running on Android 2.2 for quite some time. Are versions 2.2+ backwards compatible for the most part with older versions? Versions of what? The OS that runs on the device? Applications written to an API? I was thinking also that Mark's books may come handy since they do progressively walk through versions. I would describe them more as trying to point out when stuff got introduced. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Operating System Modifications
On Thu, Sep 8, 2011 at 11:39 AM, ColorTheorist colortheorydevelo...@gmail.com wrote: If there were no capabilities for color management on the Android OS, and we were interested in developing an API to integrate into the system for future releases, how would one go about this process? Visit http://source.android.com. In particular, join the [android-contrib] Google Group and make your suggestions/inquiries there. Your questions are spot-on for that group. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Publish modified APK to the Android Market without triggering an Update to existing users?
On Thu, Sep 8, 2011 at 9:14 AM, Paul idi...@gmail.com wrote: Because I'm fixing something that is mostly needed by newer phone's hitting the market and if existing users see an update they'll expect improvements, new features, etc. They've been waiting for new stuff for a while and this would just frustrate people. I'm not ready to deploy new features just yet, but have a fix that is needed for some newer phone's (different screen sizes) hitting the market. You can't do what you want and I think you're making a bigger deal of this than it is. If you put out an update and change-log reads fix for X devices, I can't imaging that annoying people. In fact, as a user I'd be happy to see that you were still working on the app, if it's been as long as you implied since you last updated. +1 to Yahel. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Upgrading from 1.6 to 2.2+
Information about the major changes in each version is available here: http://developer.android.com/sdk/index.html On the left is the section for each version. This includes an overview of the major new feature, as well as detailed API diffs of the new APIs introduced in that version. Your question isn't specific enough to be able to answer much more than that. On Thu, Sep 8, 2011 at 8:53 AM, kypriakos demet...@ece.neu.edu wrote: Hi all, we are in the process of moving a number of apps and their convoluted logic from older OSes (1.6) to 2.2. Are versions 2.2+ backwards compatible for the most part with older versions? What are the most profound changes that need to be done? Most of these apps make use of data on the SD card (read and write to it) but the rest of the functionality is modest. I know this is a loaded question and I am not looking for a comprehensive answer but more like major points/directions to follow. I was thinking also that Mark's books may come handy since they do progressively walk through versions. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can I connect Dell Streak 7, eLocity devices to my DDMS
I have done mandatory steps, even I can't able to connect to PC for debugging. Anyone succeeded with Dell Streak and eLocity tablets. BR Srinivas On Sep 7, 4:56 am, albnok alb...@gmail.com wrote: Did you enable USB Debugging, on your Dell Streak 7 and eLocity? On Sep 6, 10:08 pm, SrinivasNainalasrito...@gmail.com wrote: Hi All, I am unable to connect/detect Dell Streak 7 and eLocity devices to my eclipse DDMS interface for seeing debug statements. How can I get rid of this. Even I have tried in Mac Notebook, its same situation in Windows 7. Could you suggest me what are the USB device drivers need to install for detecting those devices. Is there any way getting debug statements other than DDMS tool. Thanks in advance for your help :) Cheers Srinivas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Copy a file from a Desktop PC
Okay, thanks a lot for your response. I have to deal with Windows only; we have a legacy application running on Windows that must sync some files to the Android device; it's a totally old-school, fat desktop application and actually I don't like it, but replacing it by a web based application is not possible right now ;-) In order to figure out the drive letter some nasty tricks come into my mind... like writing a marker file to a specified folder on the device when starting the mobile app for the first time. The desktop application then can search all drives for that file. Cheers, Frank On 8 Sep., 14:07, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 8, 2011 at 4:01 AM, franky.b frank.bit...@gmail.com wrote: Does the Android device at least appear as External Storage Device in the file explorer when it is connected via USB? If the user elects to mount it, yes. With Honeycomb (and, presumably, future releases of Android), this will also require that the host OS support MTP -- Windows does, OS X and Linux need third-party apps. So it would be possible to figure out the drive letter of that storage volume and to do a common file copy in the desktop application? I don't know how you would determine the drive letter, since it could be just about anything. And, of course, the notion of a drive letter is a Windows construct. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in Oslo:http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers]
On Thu, Sep 8, 2011 at 9:04 AM, arun kumar arun.kata...@gmail.com wrote: while accessing the webservice am getting socketexception A) This has nothing to do with Android. B) Consider debugging your app. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity GUI updated by thread data: implementation error?
Try using a async thread to run the update socket method and update your interface using http://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable) 2011/9/8 giangiammy giangia...@gmail.com: Hi all, I have an activity updating the GUI with data coming from a socket. In my activity I implemented an Handler: int REFRESH = 1; final Handler hRefresh = new Handler(){ @Override public void handleMessage(Message msg) { Integer i1; Integer i2; i1 = msg.arg1; i2 = msg.arg2; ... update a widget (in my example a button background) } }; Then I start a thread polling the socket for new data and I define a Map with some function, which are called depending on the incoming data: allServerActions.put( ami.serverId, new IntIntFunction() { public int function(int i1, int i2) { Message msg = Message.obtain(hRefresh, 1, i1, i2); hRefresh.sendMessage(msg); return 0; } // end function } // end new ); // end put Where IntIntFunction is: interface IntIntFunction { int function(int i1, int i2); } The socket thread works correctly, but after 1/2 minutes the main activity dies, with the followin logging: I/ActivityManager( 555): Process my.test.testxml1 (pid 650) has died. D/Zygote ( 529): Process 650 terminated by signal (11) I/WindowManager( 555): WIN DEATH: Window{522dbc30 my.test.testxml1/my.test.testxml1.Testxml1 paused=false} W/UsageStats( 555): Unexpected resume of com.android.launcher while already resumed in my.test.testxml1 I/asset ( 555): Creating Asset 0x10279a90 #5 W/InputManagerService( 555): Got RemoteException sending setActive(false) notification to pid 650 uid 10020 I suppose I'm doing something wrong in the interazione between the 2 threads: from the documentation I read I understood that the correct way is to use Handlers for such a task. Am I correct? do you see any error in my implementation? Is there any other way to implement an activity whose interface is updated by data coming from a socket? thanks giammy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity GUI updated by thread data: implementation error?
That looks correct, your issue may lie somewhere else. On Thu, Sep 8, 2011 at 9:52 AM, Rafael Maas rafaelm...@gmail.com wrote: Try using a async thread to run the update socket method and update your interface using http://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable) 2011/9/8 giangiammy giangia...@gmail.com: Hi all, I have an activity updating the GUI with data coming from a socket. In my activity I implemented an Handler: int REFRESH = 1; final Handler hRefresh = new Handler(){ @Override public void handleMessage(Message msg) { Integer i1; Integer i2; i1 = msg.arg1; i2 = msg.arg2; ... update a widget (in my example a button background) } }; Then I start a thread polling the socket for new data and I define a Map with some function, which are called depending on the incoming data: allServerActions.put( ami.serverId, new IntIntFunction() { public int function(int i1, int i2) { Message msg = Message.obtain(hRefresh, 1, i1, i2); hRefresh.sendMessage(msg); return 0; } // end function } // end new ); // end put Where IntIntFunction is: interface IntIntFunction { int function(int i1, int i2); } The socket thread works correctly, but after 1/2 minutes the main activity dies, with the followin logging: I/ActivityManager( 555): Process my.test.testxml1 (pid 650) has died. D/Zygote ( 529): Process 650 terminated by signal (11) I/WindowManager( 555): WIN DEATH: Window{522dbc30 my.test.testxml1/my.test.testxml1.Testxml1 paused=false} W/UsageStats( 555): Unexpected resume of com.android.launcher while already resumed in my.test.testxml1 I/asset ( 555): Creating Asset 0x10279a90 #5 W/InputManagerService( 555): Got RemoteException sending setActive(false) notification to pid 650 uid 10020 I suppose I'm doing something wrong in the interazione between the 2 threads: from the documentation I read I understood that the correct way is to use Handlers for such a task. Am I correct? do you see any error in my implementation? Is there any other way to implement an activity whose interface is updated by data coming from a socket? thanks giammy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Toggling ViewSwitcher children on GridView click and focus change
Right now, suppose I have a GridView with ViewSwitchers, and what I want to do is when the user clicks on an item, it switches my ViewSwitcher to the second child. However, when a user scrolls away from that item or clicks another one, I want it to reset the switcher for that previous item back to the first child. For the first one (clicking), is it just a matter of casting the incoming view in onItemClick as ViewSwitcher, and then doing the switch from there? For the second one (focus change), what callback will I need to switch back that previously clicked item back to its first child? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity GUI updated by thread data: implementation error?
signal 11 is a segmentation fault, probably in native code. 08.09.2011 10:52, giangiammy пишет: D/Zygote ( 529): Process 650 terminated by signal (11) -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Copy a file from a Desktop PC
On Thu, Sep 8, 2011 at 12:43 PM, franky.b frank.bit...@gmail.com wrote: In order to figure out the drive letter some nasty tricks come into my mind... like writing a marker file to a specified folder on the device when starting the mobile app for the first time. The desktop application then can search all drives for that file. What if the user deletes the file? Syncing in Android is usually to/from the cloud, which is why you won't find much for USB-based sync readily available. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Publish modified APK to the Android Market without triggering an Update to existing users?
On Thu, Sep 08, 2011 at 11:22:12AM -0500, TreKing wrote: On Thu, Sep 8, 2011 at 9:14 AM, Paul idi...@gmail.com wrote: Because I'm fixing something that is mostly needed by newer phone's hitting the market and if existing users see an update they'll expect improvements, new features, etc. You can't do what you want and I think you're making a bigger deal of this than it is. If you put out an update and change-log reads fix for X devices, I can't imaging that annoying people. In fact, as a user I'd be happy to see that you were still working on the app, if it's been as long as you implied since you last updated. I normally don't like me too posts, but in this case, I have to agree with Treking 100% (I was thinking the exact same thing as I read through this thread). Just say something like Fixes to provide better support for [device list]. That's a Good Thing, not a bad thing. I think you're making assumptions about your users' assumptions that are not likely to be valid You could also add something like, a new release with new features is coming soon, but this release is That way, if your assumptions about their assumptions are right, you still come out looking better for supporting ALL of your users. Later, --jim PS: These are my opinions, based on how I would look at it AS A USER, and also as a developer. When I get bug reports for JStrack (a Tcl/Tk based hurricane tracking program I've been working on since ca. 1996), I get at least a patch out as soon as I fix it, and if I already have a patch, I usually just put out a full bug-fix release. I have YET to get any negative comments from users for doing so. I HAVE gotten thank-you messages, however. -- 73 DE N5IAL (/4)| Peter da Silva: No, try rm -rf / spooky1...@gmail.com| Dave Aronson:As your life flashes before Running FreeBSD 7.0 | your eyes, in the unit of time known as an ICBM / Hurricane: | ohnosecond (alt.sysadmin.recovery) 30.44406N 86.59909W | Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity GUI updated by thread data: implementation error?
BTW, this line seems strange: Message msg = Message.obtain(hRefresh, 1, i1, i2); The way I do it is by using a bundle with the message and putting whatever data in the bundle. On Thu, Sep 8, 2011 at 10:14 AM, Kostya Vasilyev kmans...@gmail.com wrote: signal 11 is a segmentation fault, probably in native code. 08.09.2011 10:52, giangiammy пишет: D/Zygote ( 529): Process 650 terminated by signal (11) -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Inflating editext into AlertDialog...
that it doesn't show the softkeyboard automatically on android 2.3 or older when the alert is shown also if the editext is selected by default. it does show the softkeyboard on android 3.2. On Sep 8, 3:12 pm, TreKing treking...@gmail.com wrote: On Thu, Sep 8, 2011 at 8:00 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: *code* OK ... and the problem is ... ? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Export Data from my app
*Copying your existing database seems like a simple solution.* Copying? just pick data row-row to a file? *I read about save to SD card, but I didn't underastand many things. For exaple did I need a key for the permission? Or just put a line of code in the manifest file?* sorry for my english :p -- Julia Grigoriadou Studying *Applied Informatics* at the University of Macedonia in Greece iouliag...@gmail.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] disable horizontal scrolling on a WebView
Anyone know how to disable horizontal scrolling on a WebView? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Inflating editext into AlertDialog...
On Thu, Sep 8, 2011 at 12:37 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: that it doesn't show the softkeyboard automatically on android 2.3 or older when the alert is shown also if the editext is selected by default. it does show the softkeyboard on android 3.2. This just came up in the list recently ... I don't think there's a good fix for this. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] request android-ndk5 for mac
Hi Can anyone post a download link for android-ndk-r5 download link -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Publish modified APK to the Android Market without triggering an Update to existing users?
@Jim, @TreKing, @Yahel, Thanks for the advice. I will probably do as is usually done and put out an update for everyone with just the minor fixes for the new devices. However, you should not discount the question for what it is. It benefits us all to understand the nuances of the Android market and the publishing process. Its a technical question, so let's find an answer. I for one however, do not want to experiment with a top selling app by attempting to publish something and get an error or have unexpected results. So I was hoping that someone else had actual experience trying it and could share. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Finding if the Soft Input Method is visible
Hi, Is there a way to know if the SIM is visible or not? I'm using the android:windowSoftInputMode=adjustResize in the manifest, but i can't find anything that tells me if the window is being resized if the SIM is being shown. Of course, i do see the height going from 455 to 231, but how can i know if this was caused by the SIM appearing or a screen rotation? thanks guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Publish modified APK to the Android Market without triggering an Update to existing users?
On Thu, Sep 8, 2011 at 1:38 PM, Paul idi...@gmail.com wrote: Its a technical question, so let's find an answer. I thought that was covered: Nikolay gave you the multiple-APK option which is your best bet but you dismissed that. Besides that, the answer is you can't do this. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: custom viewgroup with a background.
Sorry, I shouldn't use different names. I guess I am too new to JAVA On Sep 8, 5:47 am, TreKing treking...@gmail.com wrote: On Wed, Sep 7, 2011 at 11:58 PM, billconan billco...@gmail.com wrote: suppose I have a function named kkk Why ... why would you name your function that ... ? which overrides the function aaa, That doesn't make sense. You can't override a function with a different name. Let's assume you meant kkk again. if I want to call aaa from kkk, I wrote: @Override protected void kkk() { super(); } The problem is, I want to do something before calling aaa @Override protected void kkk() { //do something here super(); } But java doesn't allow me to do this, it says that super must be the first thing inside the function. So how can I call super() after some other code? You may need to brush up on Java. super() is a call to the super class *constructor*. If you want to call a super class *method* you call super.methodName() - so in your case super.kkk(). --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] windowSoftInputMode=adjustResize not working on landscape or full screen
Hi, surfaceChanged method is not called if the application is in full screen or in landscape. In portrait, i see the method being called. Is this a bug in Android or what? thanks guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] log disappears
same thing happens here :( 2011/9/8 bob b...@coolgroups.com: Anyone know why sometimes the log disappears in the Eclipse log window? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dialog dismiss()
I keep getting this crash report from my users: java.lang.IllegalArgumentException: View not attached to window manager at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:355) at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:200) at android.view.Window$LocalWindowManager.removeView(Window.java:432) at android.app.Dialog.dismissDialog(Dialog.java:278) at android.app.Dialog.access$000(Dialog.java:71) at android.app.Dialog$1.run(Dialog.java:111) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) at dalvik.system.NativeStart.main(Native Method) I don't know if it's any one particular Activity causing the issue, none of my code appear in the stack trace.. but my typical pattern looks like this: private void getCurrentGames() { if( this != null ) { progressDialog = ProgressDialog.show( this, Working . . ., Getting current games.. ); } new Thread() { @Override public void run() { getCurrentGames(); handler.post( updateCurrentGames ); if( this != null progressDialog != null ) { try { progressDialog.dismiss(); } catch( Exception e ) { } } } }.start(); } How can I keep my dismiss() calls from blowing up? Why doesn't try/catch work? -- Greg Donald -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en