[android-developers] How to add log in android C code?
Hi All, I want to debug android source code in C (WebView part) . Can I debug the android source code in C with the help of ADB? Or how can I use log in C code just the Log.v in Java? Please help me out. Thanks in advance, Shawn. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 control or make the views(buttons) inline?
As I have said, I have a requirement to create(or rather emulate) iPhone TabBar. I am not sure if the look of TabWidget can be customized forasmuch as to make it look like iPhone's TabBar. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: coule you tell me in android2.0.1 the package of Calendar?
I know This is very much not a public API.But i want to know in sdk2.0.1 ,how to launch the calendar? i think the package is changed? could you tell me new ?or tell me the way how to lunch the calendar. thank you your reply! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Need an invitation to google Wave?
hi there! i invited you all at 10:31 GMT+3 It takes some time to recieve invite (about one day, i think) ps sorry my english %) On 18 дек, 16:14, fengyuan Ivan redyua...@gmail.com wrote: I am in. please invert me , thanks a lot. 2009/11/27 sheik sheik...@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] Accessing Web Information
I'm attempting to create an app that will display usage information for customers of Roger's Wireless(Canada). I was wondering if someone could point me in the right direction on how to: 1) input Username and Password info directly a web textbox to sign the Customer in, from an EditText View. 2) grab usage information in the form of text or images to display to the user within the app. Just a pointer in the right direction on what method(s) would do this for me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SDK and Linux 64 bits
I've tried it on Arch Linux x86_64and Ubuntu 9.10 x86_64 and it works fine. On Dec 22, 12:17 am, Nanard bsegon...@free.fr wrote: Hi, I wonder if someday the SDK will run fine on Linux 64 bits. I understand it's not a priority for Google team, but 64bits desktop OS are becoming common... My case : Mandriva 2010 64 bits, Eclipse 64 bits, SDK 1.6 : OK to create code launch emulator. But : - adb never find my phone linked to USB cable (it was OK before on Mandriva 32 bits) - TTS also doesn't work well on the emulator (it was OK in Mandriva 32 bits). Do you think the problem is with Mandriva ? or in Android SDK ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AdView rotation.
Dose anybody knows how to rotate an AdView in android? I took it in LinearLalyout and it's position is fixed. My application's orientation is portrait and I want AdView in horizontal fashion. Is it possible? How? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] Re: Are the market stats for developers broken?
Hi, Active installs are the number of guys who are currently using your app. Many will just download and after using that they will just uninstall because of space constraints Even you itself can't use any app permanently Tats the reason, i think so Guna -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of victor Sent: 21 December 2009 13:23 To: Android Developers Subject: [android-developers] Re: Are the market stats for developers broken? yes,i also has the issue ,active percentage from 56% to 48% at past two days,it is keep up 5x% in two month On 12月20日, 下午11时45分, Justin Giles jtgi...@gmail.com wrote: For a month and a half my application has had a number of downloads versus number of active installs percentage of 77% and then over the past two days it has gone down to 65%. The most recent update my downloads went up by ~250 and my active installs actually DECREASED by 200. Seems like a plus sign was switched with a minus sign in the update script or something. Just doesn't seem right that over a months time my percentage stays the same and then overnight it changes so drastically. Any insight on this? Anyone else seeing the same thing? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to 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] Re: droidappz.org
Ok, and then what? These are just kids and they are not getting rich on this. Look at their donations, they make change for coffee, that's all. My app showed up there within weeks after being published. At first I was mad. Their site showed how many people had downloaded it and I saw as many downloads as people who had legally purchased it. That was three months ago. Since then the number of pirated apps has doubled but the number of legally purchased ones have gone up 10 times. I left a comment on their site regarding my own app, saying that a cool new version is available and if they wanted to get it, they should just buy it. And some of them did. The best strategy is frequent updates. These kids always want the newest features. I realize that frequent updates won't work for all apps but if you can add something cool every 2-3 months, this may make a real difference. That being said, I wonder what the legality of a site like that is. A single CD letter would bring them to a screeching halt but something else will open up in their place. There was another discussion here about a Kentucky guy who SOLD other people's apps for half price on Craigslist. That is even worse than what these kids do. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SDK and Linux 64 bits
Thanks for your replies. So, it seems like it should be possible with Mandriva (they all have more or less same Kernel), but it is badly configured by default... When I run 'dmesg', and plug the phone on USB, I got some message. so the USB link seems OK. It's 'only' that adb doesn't find the device... The OS also doesn't mount the phone. Also : when I play mp3 in my program, with a 32 bits OS : no problem. With a 64 bits : I got sounds, but it's hard to reconize what is playing. I'm not sure if this is the correct forum to talk about Android Mandriva issues : where can I ask ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] V4L2:/dev/video0 is not generated when USB Camera is connected
Hi, I have a Logitech USB camera connected on my board. I have also enabled the CONFIG variables for V4L2 by menuconfig. When I do fd = open(/dev/video0, O_RDWR) it fails saying that no such file or directory. Then through shell I checked for the file /dev/video0 but it wasn't present there. When I connect camera I can see the serial message for camera is connected and its details. I want to know when I connect the USB Camera who creates the /dev/ video0 file? Do I need to create it in init.rc file? I believe V4L2 framework should do it? How does the V4L2 will be invoked when USB camera is connected who initializes it? If I want to get the preview frames from V4L2 is the /dev/video0 right file? I get the following message on Serial port:- usb 2-1.2: USB disconnect, address 5 usb 2-1.5: new full speed USB device using tegra-ehci and address 6 usb 2-1.5: New USB device found, idVendor=046d, idProduct=08af usb 2-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 2-1.5: configuration #1 chosen from 1 choice Quick help will be appreciated. Thanks in advance. Sachin Nikam. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add log in android C code?
You can use LOGD or printk. On Tue, Dec 22, 2009 at 1:30 PM, sheng wang banxia...@gmail.com wrote: Hi All, I want to debug android source code in C (WebView part) . Can I debug the android source code in C with the help of ADB? Or how can I use log in C code just the Log.v in Java? Please help me out. Thanks in advance, Shawn. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Have a nice time !!! Cheers, Sachin. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] getSupportedPictureSizes() for video?
Hello, In API 5 the Camera.Parameters class has getSupportedPictureSizes(). But the returned values are too high to be used for video recording. Is there any way to similarly query for the supported video resolutions? setVideoSize() expects valid width and height. Thanks, Robert -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Cant find my content provider?
Anybody got any ideas? I thought I had it figured out with the database but that didn't work. It seems that either my naming of the CONTENT_URI or something to do with that is wrong or else a database/table for the settings never actually gets created? if theres no data there for the content provider would I get that error? Or is it actually something to do with the CONTENT_URI? On Mon, Dec 21, 2009 at 3:56 PM, draf...@gmail.com draf...@gmail.comwrote: Hi, I have written the following content provider, but when I try to pull information from it into an array, I get the following error: 12-21 15:14:18.627: ERROR/ActivityThread(1160): Failed to find provider info for cicero.org.provider.CiceroContentProvider I presume its something to do with my naming of the CONTENT_URI or something? I'm not quite sure how it works so could anyone explain a bit and spot what I have done wrong? This is what I have in the manifest: XML: provider android:name=.CiceroContentProvider android:authorities=cicero.org.provider.CiceroContentProvider / Java: public class CiceroContentProvider extends ContentProvider{ //URI public static final Uri CONTENT_URI = Uri.parse(content:// cicero.org.provider.CiceroContentProvider); //Underlying database private SQLiteDatabase settingsDB; private static final String TAG = CiceroProvider; private static final String DATABASE_NAME = cicero_settings.db; private static final int DATABASE_VERSION = 1; private static final String SETTINGS_TABLE = settings; //Column names public final static String _ID = _id; public final static String VOIPUSERNAME = voipusername; public final static String VOIPAUTHID = voipauthid; public final static String PASSWORD = password; public final static String SIPPROXYSERVER = sipproxyserver; public final static String SIPREGISTRAR = sipregistrar; public final static String SIPREALM = siprealm; public final static Integer EXPIRESTIME =30; //column indexes public static final int VOIPUSERNAME_COL = 1; public static final int VOIPAUTHID_COL = 2; public static final int PASSWORD_COL = 3; public static final int SIPPROXYSERVER_COL = 4; public static final int SIPREGISTRAR_COL = 5; public static final int SIPREALM_COL = 6; public static final int EXPIRESTIME_COL = 7; //helper class private static class settingsDatabaseHelper extends SQLiteOpenHelper{ private static final String CREATE_SETTINGS_TABLE = CREATE TABLE tbl_settings( + _ID INTEGER PRIMARY KEY AUTOINCREMENT, + VOIPUSERNAME TEXT, + VOIPAUTHID TEXT, + PASSWORD TEXT, + SIPPROXYSERVER TEXT, + SIPREGISTRAR TEXT, + SIPREALM TEXT, + EXPIRESTIME INTEGER);; public settingsDatabaseHelper(Context context, String name, CursorFactory factory, int version) { super(context, name, factory, version); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL(CREATE_SETTINGS_TABLE); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.w(TAG, Upgrading database from version + oldVersion + to + newVersion + , which will destroy all old data); db.execSQL(DROP TABLE IF EXISTS + SETTINGS_TABLE); onCreate(db); } } //end helper class private static final int SETTINGS = 1; private static final int SETTINGS_ID = 2; private static final UriMatcher uriMatcher; static{ uriMatcher = new UriMatcher(UriMatcher.NO_MATCH); uriMatcher.addURI (cicero.org.provider.CiceroContentProvider, settings, SETTINGS); uriMatcher.addURI (cicero.org.provider.CiceroContentProvider, settings/#, SETTINGS_ID); } @Override public String getType(Uri uri) { switch(uriMatcher.match(uri)){ case SETTINGS: return vnd.android.cursor.dir/ vnd.org.CiceroContentProvider; case SETTINGS_ID: return vnd.android.cursor.item/ vnd.org.CiceroContentProvider; default: throw new IllegalArgumentException(Unsupported URI: + uri); } } @Override public boolean onCreate() { Context context = getContext(); settingsDatabaseHelper dbHelper; dbHelper = new settingsDatabaseHelper(context, DATABASE_NAME, null, DATABASE_VERSION); SQLiteDatabase settingsDB = dbHelper.getWritableDatabase(); return (settingsDB == null) ? false : true; } @Override public Cursor query(Uri uri, String[] projection, String
Re: [android-developers] .jad extension (compatibilty issues)
jad is J2me app not android app. They are different On Mon, Dec 21, 2009 at 6:48 AM, heliokwon heliok...@gmail.com wrote: I´m trying to run this Java program on my android, but it´s not working at all. Is Android compatible with Java ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mujoko http://www.linkedin.com/in/mujoko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Canvas Faster than OpenGL???
Re the emulator, it just has a software driver for OpenGL. Re the Droid, one problem you may be running into is a good EGL frame buffer configuration not being chosen. There's an interesting thread on the best configs for Droid here: http://groups.google.com/group/android-developers/browse_thread/thread/734a5f5d8d800ef1/53104ea7d9706f37 One thing that makes this more likely for the sprite method test is that it packages its own old version of GLSurfaceView. Meanwhile the version of GLSurfaceView included in Android has been getting updated in this area. For example, in Donut you can see it preferring configs with the smallest depth buffer, all other things it checks for being equal: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=opengl/java/android/opengl/GLSurfaceView.java;h=ccb27ccf2ad8ca4b93116aec9cbe36b1337bc01b;hb=refs/heads/donut#l671 But in Eclair it likes the first config with a depth buffer that is big enough: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=opengl/java/android/opengl/GLSurfaceView.java;h=9ca57bae7a1fe1d6ec818169d2fcc205276ea0e0;hb=refs/heads/eclair#l739 This was probably done because on the Droid the configs with a depth buffer of 24 don't have the EGL_SLOW_CONFIG caveat. The configs with a depth buffer of 16 do have EGL_SLOW_CONFIG. So a 24 depth buffer is faster than 16, and will be earlier in the list because eglChooseConfig returns configs with EGL_SLOW_CONFIG after configs without it. I haven't checked what the the version of GLSurfaceView in sprite method test does, but it might be worth checking to be sure you are getting a RGB565 config instead of RGB888, etc.. Another thing you may want to check is that sprite method test isn't being run in compatibility mode, as per this page: http://developer.android.com/intl/zh-CN/guide/practices/screens_support.html That would mean the app is drawing to a smaller area that is then resized up. That could hurt performance. Avoiding that depends on updating the manifest, not just the build target. On Dec 20, 11:50 pm, FindYodaWinCash dfel...@yahoo.com wrote: Hello folks, I have downloaded and run the SpriteMethodTest on my Droid but compiled to 1.6 Android. I am getting the very strange behavior that drawing bitmaps to *canvas* is faster than using OpenGL. At 100 sprites, I am getting about 64 fps for Canvas. For OpenGL, its around 34 fps. I also ran the same test on the 1.6 emulator. 100 sprites came in at 30 fps for canvas, just 6 for OpenGL! I was so astonished that I actually checked that the radio buttons were running the right tests. Does anyone know why this might be happening?!?! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Change colours of spinners/checkbox
Hi, How do I change colours of a spinner? My applications uses a different background (say colour - Majenta) and i would like to have show all views with a different colour as Android's default colour would look bad against Majenta. For Buttons, i could create styles for pressed, focussed states. However for spinner, if I apply a background resource, I loose the arrow that is displayed in the default spinner. How do I apply different colours? A similar problem exists for checkbox too. How do I control them? Kindly help. -Vignesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: V4L2:/dev/video0 is not generated when USB Camera is connected
Looks like video_register_device(VFL_TYPE_GRABBER) is not called from anywhere that may be reason of not seeing /dev/video0 On Dec 22, 2:43 pm, sachinikam sachini...@gmail.com wrote: Hi, I have a Logitech USB camera connected on my board. I have also enabled the CONFIG variables for V4L2 by menuconfig. When I do fd = open(/dev/video0, O_RDWR) it fails saying that no such file or directory. Then through shell I checked for the file /dev/video0 but it wasn't present there. When I connect camera I can see the serial message for camera is connected and its details. I want to know when I connect the USB Camera who creates the /dev/ video0 file? Do I need to create it in init.rc file? I believe V4L2 framework should do it? How does the V4L2 will be invoked when USB camera is connected who initializes it? If I want to get the preview frames from V4L2 is the /dev/video0 right file? I get the following message on Serial port:- usb 2-1.2: USB disconnect, address 5 usb 2-1.5: new full speed USB device using tegra-ehci and address 6 usb 2-1.5: New USB device found, idVendor=046d, idProduct=08af usb 2-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 2-1.5: configuration #1 chosen from 1 choice Quick help will be appreciated. Thanks in advance. Sachin Nikam. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Developers Guide and Bluetooth Sample Code
This is very good. I hope the emulator can support Bluetooth in the near future. Now debugging bluetooth related things is very hard, because we need to port each build to the real device and test it there. On Dec 22, 4:26 am, chen ji chenjihz...@gmail.com wrote: It is good. I just want to find such example. Thanks. On 12月19日, 上午6时12分, Nick Pelly npe...@google.com wrote: HiBluetoothDevelopers, We have just published an AndroidBluetoothDevelopers Guide, and a Sample Application. See links below.http://developer.android.com/guide/topics/wireless/bluetooth.htmlhttp... I hope these become a useful resource, Happy Holidays, Nick Pelly AndroidBluetoothProject Lead -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Base64.decodeBase64
I've used public domain Base64 encoder which is available here (in case of licensing issues): http://iharder.sourceforge.net/current/java/base64/ It is very lightweight (single class), customizable and full featured. -- Best regards, Pawel On Dec 22, 7:26 am, joebowbeer joe.bowb...@gmail.com wrote: I also wonder. The android.util package description mentions base64 decoders, but doesn't include one: http://code.google.com/p/android/issues/detail?id=902 On Dec 21, 8:57 pm, jax jackma...@gmail.com wrote: I need to use Base64.decodeBase64 in my application, I had to download and include it myself into my project from apache commons. Why is this not included in the default Android base system? Are there some weird licensing issues with this function or is it hidden somewhere else under a different name? 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] Finding all supported Intents.
Hi All, How do I LIST all the INTENTS supported by all the activities(all applications as well) in the Phone. Regards, Manjunatha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Developers Guide and Bluetooth Sample Code
Nice howto! Thanks a lot. It surely be useful. On Dec 22, 11:25 am, rezar rraw...@gmail.com wrote: This is very good. I hope the emulator can support Bluetooth in the near future. Now debugging bluetooth related things is very hard, because we need to port each build to the real device and test it there. On Dec 22, 4:26 am, chen ji chenjihz...@gmail.com wrote: It is good. I just want to find such example. Thanks. On 12月19日, 上午6时12分, Nick Pelly npe...@google.com wrote: HiBluetoothDevelopers, We have just published an AndroidBluetoothDevelopers Guide, and a Sample Application. See links below.http://developer.android.com/guide/topics/wireless/bluetooth.htmlhttp... I hope these become a useful resource, Happy Holidays, Nick Pelly AndroidBluetoothProject Lead -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] RelativeLayout
What is the main use of relative layout? can any one pls explain it... -- Thanks Regards Sasikumar.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] Re: RelativeLayout
RelativeLayout is a different kind of layout :) Seriously if you'd like to layout all your components in a way: make component A left to component B and below Component C it is the best way to achieve it with RelativeLayout. But also RelativeLayout is a good way to optimize your view hierarchy, by eliminating obsolete elements, see Romain Guy's (The Android Framework Engineer) Android Layout Tricks #1 howto, for details: http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html Have you read Dev Guide yet? http://developer.android.com/guide/tutorials/views/hello-relativelayout.html On Dec 22, 12:01 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: What is the main use of relative layout? can any one pls explain it... -- Thanks Regards Sasikumar.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
Re: [android-developers] Re: RelativeLayout
Thank u 2009/12/22 Paweł Kapała pawel.kap...@googlemail.com RelativeLayout is a different kind of layout :) Seriously if you'd like to layout all your components in a way: make component A left to component B and below Component C it is the best way to achieve it with RelativeLayout. But also RelativeLayout is a good way to optimize your view hierarchy, by eliminating obsolete elements, see Romain Guy's (The Android Framework Engineer) Android Layout Tricks #1 howto, for details: http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html Have you read Dev Guide yet? http://developer.android.com/guide/tutorials/views/hello-relativelayout.html On Dec 22, 12:01 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: What is the main use of relative layout? can any one pls explain it... -- Thanks Regards Sasikumar.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Sasikumar.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] Re: Cant find my content provider?
For anyone that comes across this type of error. In my infinite graduate wisdom I had the content provider info outside the application brackets in the xml manifest file! Wasted a whole day cos of that! [?] On Tue, Dec 22, 2009 at 9:56 AM, Donal Rafferty draf...@gmail.com wrote: Anybody got any ideas? I thought I had it figured out with the database but that didn't work. It seems that either my naming of the CONTENT_URI or something to do with that is wrong or else a database/table for the settings never actually gets created? if theres no data there for the content provider would I get that error? Or is it actually something to do with the CONTENT_URI? On Mon, Dec 21, 2009 at 3:56 PM, draf...@gmail.com draf...@gmail.comwrote: Hi, I have written the following content provider, but when I try to pull information from it into an array, I get the following error: 12-21 15:14:18.627: ERROR/ActivityThread(1160): Failed to find provider info for cicero.org.provider.CiceroContentProvider I presume its something to do with my naming of the CONTENT_URI or something? I'm not quite sure how it works so could anyone explain a bit and spot what I have done wrong? This is what I have in the manifest: XML: provider android:name=.CiceroContentProvider android:authorities=cicero.org.provider.CiceroContentProvider / Java: public class CiceroContentProvider extends ContentProvider{ //URI public static final Uri CONTENT_URI = Uri.parse(content:// cicero.org.provider.CiceroContentProvider); //Underlying database private SQLiteDatabase settingsDB; private static final String TAG = CiceroProvider; private static final String DATABASE_NAME = cicero_settings.db; private static final int DATABASE_VERSION = 1; private static final String SETTINGS_TABLE = settings; //Column names public final static String _ID = _id; public final static String VOIPUSERNAME = voipusername; public final static String VOIPAUTHID = voipauthid; public final static String PASSWORD = password; public final static String SIPPROXYSERVER = sipproxyserver; public final static String SIPREGISTRAR = sipregistrar; public final static String SIPREALM = siprealm; public final static Integer EXPIRESTIME =30; //column indexes public static final int VOIPUSERNAME_COL = 1; public static final int VOIPAUTHID_COL = 2; public static final int PASSWORD_COL = 3; public static final int SIPPROXYSERVER_COL = 4; public static final int SIPREGISTRAR_COL = 5; public static final int SIPREALM_COL = 6; public static final int EXPIRESTIME_COL = 7; //helper class private static class settingsDatabaseHelper extends SQLiteOpenHelper{ private static final String CREATE_SETTINGS_TABLE = CREATE TABLE tbl_settings( + _ID INTEGER PRIMARY KEY AUTOINCREMENT, + VOIPUSERNAME TEXT, + VOIPAUTHID TEXT, + PASSWORD TEXT, + SIPPROXYSERVER TEXT, + SIPREGISTRAR TEXT, + SIPREALM TEXT, + EXPIRESTIME INTEGER);; public settingsDatabaseHelper(Context context, String name, CursorFactory factory, int version) { super(context, name, factory, version); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL(CREATE_SETTINGS_TABLE); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.w(TAG, Upgrading database from version + oldVersion + to + newVersion + , which will destroy all old data); db.execSQL(DROP TABLE IF EXISTS + SETTINGS_TABLE); onCreate(db); } } //end helper class private static final int SETTINGS = 1; private static final int SETTINGS_ID = 2; private static final UriMatcher uriMatcher; static{ uriMatcher = new UriMatcher(UriMatcher.NO_MATCH); uriMatcher.addURI (cicero.org.provider.CiceroContentProvider, settings, SETTINGS); uriMatcher.addURI (cicero.org.provider.CiceroContentProvider, settings/#, SETTINGS_ID); } @Override public String getType(Uri uri) { switch(uriMatcher.match(uri)){ case SETTINGS: return vnd.android.cursor.dir/ vnd.org.CiceroContentProvider; case SETTINGS_ID: return vnd.android.cursor.item/ vnd.org.CiceroContentProvider; default: throw new IllegalArgumentException(Unsupported URI: + uri); } } @Override public boolean onCreate() { Context context = getContext(); settingsDatabaseHelper dbHelper;
[android-developers] Re: Finding all supported Intents.
As far as I know it is not possible to capture all the supported intents. You have to know the specific action name, or the class name if you're sending intent locally. So I guess it is not possible to implement some kind of Intent sniffer on the device. You may find some (not all) of the supported intent actions on the Intent class documentation: http://developer.android.com/intl/zh-CN/reference/android/content/Intent.html There are also some of the third party intent actions collected by the openintents project: http://www.openintents.org/en/intentstable -- Best regards, Pawel On Dec 22, 11:42 am, Manjunatha M man...@gmail.com wrote: Hi All, How do I LIST all the INTENTS supported by all the activities(all applications as well) in the Phone. Regards, Manjunatha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: subclassed Drawable disables AlphaAnimation?
Now I've found that if I wrap the ImageView in a RelativeLayout and perform the animations on the RelativeLayout instead, the AlphaAnimation works again. Bug filed here: http://code.google.com/p/android/issues/detail?id=5589 Karl On Dec 21, 4:13 pm, kostmo kos...@gmail.com wrote: I have been applying a simultaneous rotate and alpha animation to an ImageView using AnimationSet. It was working fine when I set a Bitmap as the image with Image.setImageBitmap(my_bitmap). I then extended the Drawable class with my own drawing routine. In my custom drawable I do some porter-duff compositing on the bitmap i was using earlier. I set the image with Image.setImageDrawable( new MyCustomDrawable( my_bitmap ) ) Now my animation rotates but no longer performs the alpha transition! What's wrong? One of the things I have tried is returning different values from getOpacity() in my Drawable. None of PixelFormat.TRANSLUCENT, PixelFormat.TRANSPARENT, PixelFormat.OPAQUE, or PixelFormat.UNKNOWN work. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] retain application/Activity state correct approach?
hi, I just read from internet to maintain the state of my application by overriding the onKeyDown function as given below. And set the launch mode of my activity as singleInstance. And it is working perfectly. Just want to know if it is correct approach. And how it is different from onSaveInstanceState. Thanks public boolean onKeyDown(int keyCode, KeyEvent event) { return this.moveTaskToBack(true); //return super.onKeyDown(keyCode, event); }; -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 know bearer type of android
Hi I want know the bearer type of android phone I have seen one document the bearer may be OBEX or GSM-USD etc Is there any API to get this information Please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eclipse , CerTool and Keystore not exist in android.jar, help!
Hi, all I write a android1.6 application in eclipse. there is a question about CerTool, Keystore. Please , respond me. import android.security.CertTool; import android.security.Keystore; Why not exist these two classes in android-sdk-linux_x86-1.6_r4 which is down from google's release ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Are the market stats for developers broken?
But to have a 17% drop in just a couple days. Doesn't seem right given past trends for my application. 2009/12/21 Guna guna.andr...@gmail.com Hi, Active installs are the number of guys who are currently using your app. Many will just download and after using that they will just uninstall because of space constraints Even you itself can't use any app permanently Tats the reason, i think so Guna -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of victor Sent: 21 December 2009 13:23 To: Android Developers Subject: [android-developers] Re: Are the market stats for developers broken? yes,i also has the issue ,active percentage from 56% to 48% at past two days,it is keep up 5x% in two month On 12月20日, 下午11时45分, Justin Giles jtgi...@gmail.com wrote: For a month and a half my application has had a number of downloads versus number of active installs percentage of 77% and then over the past two days it has gone down to 65%. The most recent update my downloads went up by ~250 and my active installs actually DECREASED by 200. Seems like a plus sign was switched with a minus sign in the update script or something. Just doesn't seem right that over a months time my percentage stays the same and then overnight it changes so drastically. Any insight on this? Anyone else seeing the same thing? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Fancy ListView help
Hi guys, All I need is a listview with 6 items, each having an icon, textview and a button/imageview. I want to be able to click the button/ imageview to open up a new activity and each row opens up a different activity. Any suggestions? Abhi On Dec 21, 8:11 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hi, I am using excerpts from this website -http://www.androidguys.com/2008/07/14/fancy-listviews-part-one/ (under Dynamic) to build my own ListView with 6 list rows. I am doing the exact same thing, but with a button added to each row. I want to be able to listen to each button click and take action according to the position of the button pressed. I don't know how to use the onClick and Listener in the above case. Any help would be appreciated. I have posted this question a number of times but haven't been able to receive a satisfactory reply. I see that the original post is from Mark Murphy who is an active member of this group. If I hear from him, nothing like it! Thanks, Abhishek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Soft keyboard won't open on custom view in landscape mode?
Hi Eric, i dont have reply to this problem but i too am facing same scenario .please if you can throw some light on to my problem i would really appreciate that . actually i am creating a custom view extending a textview, and then trying to hook to the system softkeyboard throw the snippet you have mentioned in your post. InputMethodManager imm = (InputMethodManager)getContext ().getSystemService(Context.INPUT_METHOD_SERVICE); mm.toggleSoftInputFromWindow(myview.getWindowToken(), InputMethodManager.SHOW_IMPLICIT, 0); But no success . please let me know what needs to be done to showsoftinput in custom views . Thanks Sankalp On Dec 14, 11:14 pm, Eric Hackborn EH hackb...@gmail.com wrote: I've been experimenting with the IMM and it's mostly straightforward, but for some reason, my custom view that launches the soft keyboard works only in portrait mode. launching it is easy enough: InputMethodManager imm = (InputMethodManager)getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInputFromWindow(getWindowToken(), InputMethodManager.SHOW_IMPLICIT, 0); I've seen a couple notes about the soft keyboard only working in portrait but I assume this was a limitation in a previous version, since all the Android EditText views work fine in both portrait and landscape. Is there some additional piece of work needed to enable landscape? thanks much, eric hackborn -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] problem using softkeyboard with custom views
hi all , I am developing an app which can both act as a painting app as well as text writing notepad. i have created a my custom view by extending a class like public class MyView extends TextView { . . . } now i want to hook to the system's soft keyboard which i do it by InputMethodManager imm = (InputMethodManager)getSystemService (Context.INPUT_METHOD_SERVICE); imm.showSoftInputFromInputMethod (myview.getApplicationWindowToken(),InputMethodManager.SHOW_FORCED); Also i have specified in androidmanifest.xml to use softkeyboard. i have also specified the inputype of the view and set it as editable. but i am not able to do that please help me out i m badly stuck .please let me know if i am missing anything .i would really appreciate if you can send a small code snippet to support the working code. Thanks in advance Sankalp -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Droid AVD (2.0, WVGA854) resolution hell
Thank you Dianne! Now I got it to work from 1.6 to 2.0 on all screen sizes. Except it doesn't work on 1.5 anymore. minSdkVersion is 3, so it starts in the 1.5 AVD, but force closes when it tries to load a reasource. It worked before from 1.0 to 2.0.1, it only had resolution scaling issues. I did not implement any 1.6 specific features since then, just re-created the project from existing source with 1.6 target minSdk=3. LogCat shows: 12-22 14:57:15.044: WARN/dalvikvm(725): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 12-22 14:57:15.044: ERROR/AndroidRuntime(725): Uncaught handler: thread main exiting due to uncaught exception 12-22 14:57:15.075: ERROR/AndroidRuntime(725): android.content.res.Resources$NotFoundException: File res/drawable- nodpi/brick.png from drawable resource ID #0x7f020005 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.content.res.Resources.loadDrawable(Resources.java:1641) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.content.res.Resources.getDrawable(Resources.java:535) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at com.g1x.bgame.BGameView$BGameThread.setSurfaceSize(BGameView.java:394) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at com.g1x.bgame.BGameView.surfaceChanged(BGameView.java:1456) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.SurfaceView.updateWindow(SurfaceView.java:358) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:259) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.View.draw(View.java:5841) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.widget.FrameLayout.draw(FrameLayout.java:352) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.ViewGroup.drawChild(ViewGroup.java:1486) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.View.draw(View.java:5841) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.widget.FrameLayout.draw(FrameLayout.java:352) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw (PhoneWindow.java:1847) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.ViewRoot.draw(ViewRoot.java:1217) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.ViewRoot.performTraversals(ViewRoot.java:1030) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.view.ViewRoot.handleMessage(ViewRoot.java:1482) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.os.Handler.dispatchMessage(Handler.java:99) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.os.Looper.loop(Looper.java:123) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.app.ActivityThread.main(ActivityThread.java:3948) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at java.lang.reflect.Method.invokeNative(Native Method) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at java.lang.reflect.Method.invoke(Method.java:521) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at dalvik.system.NativeStart.main(Native Method) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): Caused by: java.lang.IllegalArgumentException: width and height must be 0 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.graphics.Bitmap.nativeCreate(Native Method) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.graphics.Bitmap.createBitmap(Bitmap.java:483) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.graphics.Bitmap.createBitmap(Bitmap.java:451) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:359) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:233) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.graphics.drawable.Drawable.createFromResourceStream (Drawable.java:663) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): at android.content.res.Resources.loadDrawable(Resources.java:1637) 12-22 14:57:15.075: ERROR/AndroidRuntime(725): ... 27 more Is there anything I can do about it to support 1.5? Thank you! On Dec 20,
[android-developers] AudioTrack - Doesn't stop playing as requested.
I've been trying to resolve the issue of the immediate termination of the AudioTrack played in the MODE_STREAM track with no avail. To do so I call stop and release; audioTrack.stop(); audioTrack.release(); audioTrack = null; I tried flushing but it made no difference. It finishes playing the remaining of the buffer and than stops. It seems like the problem renders the AudioTrack useless if one can't stop playing at will. I can't imagine using it if I have to wait till it finishes playing its buffer. And since this is the only sound solution I can use for my application, the JetPlayer and the SoundPool, do not fit my needs, I am left with the decision if I should continue. It’s got to be a way. I assume others used it successfully since I haven’t seen any post. 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] DroidFanz offering unauthorized paid apps - check yours
The droidfanz website offers a download section full of unauthorized paid app downloads. I found my app there along with about 300 others. If you have a popular paid app, you may want to check if yours is listed. You can't see inside the site until you register. I'm seeing a lot of posts with cracked apps being wrongfully offered for free or for sale. It is frustrating as a developer because I don't want to impose cumbersome anti-theft systems on users. I've always taken the approach that it's better not to annoy real, paying users to avoid a small amount of theft. But with the amount of similar posts lately, it seems that the problem may be worse than what I assumed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Question about sockets and connectivity
I'm the developer of an application that needs to keep a permanent connection with a remote server. In order to achieve this goal a socket instance is created when the application startups. The outputstream and inputstrem instances associated with the socket are used to exchange the data with the server. Also i have implemented a reconnection mechanism: when the connectivity of the device is down i launch a reconnection thread that detects if the connectivty has been restarted to recreate the connection with the server (creating a new socket). The main problem is a lot of users that have downloaded the application reported that the application only keeps connected a few minutes and is reconnecting so much. So these are my questions: -Is my approach (use a socket object) right to keep a permanent connection with a server? -Is there a limit of socket instances created in the same session of an application? Sometimes happens that after 10/20 tries the socket instance can't be created and the only alternative is closing the application and starting it again. Please take in account that this issue doesn't happen always. -Do you know if Android platform provides another way to achieve my goal? I will appreciate your help. Thanks, Pablo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Waking up screen
All, I've been writing some code to toggle the screen from bright to dark (off). I've been using this code to turn the screen off: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 0; getWindow().setAttributes(lp); And this to turn it back on: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 1; getWindow().setAttributes(lp); The problem is, it's very difficult to wake the screen back up because of all the power saving things that go into effect when you turn the screen off using brightness = 0; Let me first point out that I'm not really tied to power constraints in this particular application. One of my assumptions is that this device (Droid) will be plugged in when this application is run. Ideally, I'd like to not hammer the battery if I don't have to, but I'm open to it if it's the only way. So, back to the issue...when the display is off, pretty much everything shuts down. For instance, one idea I had was to shake the display back awake by reading the accelerometer. However, as soon as the display goes off, my listener that was reading values from the accelerometer (be it in an activity or a service) stops echoing values. I can't register any key listeners because when the display is off, if I press anything other than the unlock button (e.g. volume up/down, camera button, etc.) I get the following output in the debugger: WindowManager: No focus window, dropping: KeyEvent...etc. In short, it appears that once the display goes dark, the only way to interact with the user is by hitting the unlock button. This isn't ideal because it's awkwardly placed. I had *really* hoped to be able to re-activate the device by pressing anywhere on the touch screen. I can understand that the touch screen is disabled for power reasons, but I was hoping I could override that (given I don't mind the power draw). Failing at that, I'd settle for any of the accessible keys (even the keyboard) reacting to user input and waking the thing up. Any thoughts or ideas on this subject? Thanks for your time. Wes -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Anyone noticing more uninstalls of their app than usual over last weekend/today?
On Dec 21, 9:29 pm, wusch jwu...@gmail.com wrote: Did you use the Max SDK setting on the AndroidManifest.xml? I only have uses-sdk android:minSdkVersion=3 / in mine. -- Greg Donald http://destiney.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Fancy ListView help
Although I use ListView a lot it has always been a little confusing to understand how it manages its views returned from BaseAdapter.getView (). If you know you have just the six list rows, which is not a lot, then every time BaseAdapter.getView() is called create the view hierarchy, with the button in each row, and return it. Of course for each button attach a listener with setOnClickListener and that listener will get called whenever the button is clicked/ touched. You can use the tag field of the button view to help you determine at click time which button has been clicked. Or you can instantiate a separate listener for each button and set something in the listener class to is the view clicked. Make the listener a private class under the containing Activity and it can easily get at all the state contained in the Activity. Or make the Activity an implementer of View.OnClickListener and just pass Activity.this to setOnClickListener. In all cases onClick(View v) will be called whenever the button is clicked/touched. Hope this helps… On Dec 22, 8:58 am, Abhi abhishek.r.sha...@gmail.com wrote: Hi guys, All I need is a listview with 6 items, each having an icon, textview and a button/imageview. I want to be able to click the button/ imageview to open up a new activity and each row opens up a different activity. Any suggestions? Abhi On Dec 21, 8:11 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hi, I am using excerpts from this website -http://www.androidguys.com/2008/07/14/fancy-listviews-part-one/ (under Dynamic) to build my own ListView with 6 list rows. I am doing the exact same thing, but with a button added to each row. I want to be able to listen to each button click and take action according to the position of the button pressed. I don't know how to use the onClick and Listener in the above case. Any help would be appreciated. I have posted this question a number of times but haven't been able to receive a satisfactory reply. I see that the original post is from Mark Murphy who is an active member of this group. If I hear from him, nothing like it! Thanks, Abhishek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Anyone noticing more uninstalls of their app than usual over last weekend/today?
I don't have maxsdk but did add this change for Droid support : supports-screens android:anyDensity=true / My installs have dropped by 15% - maybe its auto uninstalling for anyone with 1.5 as the supports-screens is 1.6 only - yet I need this to make the app work correctly on Droid (rather than compatibility mode). Issues seems to be related after people do updates and possibly change some of these settings. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Droid - won't rotate image captured from camera? (Camera.Parameters)
The actual rotation of a full-resolution image is not trivial, but drawing it with the correct rotation/orientation is not that hard. Just use a Matrix holding the rotation and assign it to the canvas on which the image is drawn. On Dec 21, 6:45 pm, Mark Wyszomierski mar...@gmail.com wrote: Alright thanks all, got this working. On 2.0+ devices, I use the ExifInterface class to see if the image needs to be rotated. If so, I can load the image at a downsampled size and do the rotation myself. Like Streets Of Boston pointed out, I don't know of a good way to do the rotation of the full high-res image. Thanks On Dec 21, 1:16 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Check by using the content-provider. Do a query on the image-id (can be obtained from the image-Uri) and request its value of the column 'MediaStore.Images.ImageColumns.ORIENTATION'. About #2: Yep, doing that in the device using full-resolution will be hard to do. Not enough memory available for that. You could do it by using a file (RandomAccessFile) as a 'temporary', writing column by column to this file and reading it back in row by row. This will be very slow. On Dec 21, 11:59 am, Mark Wyszomierski mar...@gmail.com wrote: Hi Wu-Cheng, I'm not following - I'm using the native camera intent with the Droid. So if I take a picture while holding the camera in a portrait orientation, then it should write a rotation of 90 degrees into the exif header of the output jpeg (while not really rotating the image data)? If that's the case, I'm not sure how to proceed. Looks like I would have to do the following: 1) Check the exif header to see if this rotation parameter exists 2) If it does exist, rotate the image myself before display #1 could probably be done using the ExifInterface class, but that's only been added to the level 5 sdk, while I'm targeting sdk 3 and above. #2 could also be done after a lot of downsampling. I'm not sure if other applications understand exif headers though. So I'd want to rewrite the image data with an actual rotation. Doing this at full resolution would be difficult on the device. Thanks for your help. On Dec 21, 10:37 am, Wu-cheng Li (李務誠) wuchen...@google.com wrote: Droid respects setRotation. The problem is Droid does not rotate the entire picture. Droid only sets orientation in the EXIF header. Applications need to check the orientation in the EXIF header and then rotate it accordingly before display. http://developer.android.com/reference/android/hardware/Camera.Parame... public void setRotation (int rotation) Sets the orientation of the device in degrees. For example, suppose the natural position of the device is landscape. If the user takes a picture in landscape mode in 2048x1536 resolution, the rotation should be set to 0. If the user rotates the phone 90 degrees clockwise, the rotation should be set to 90. Applications can useOrientationEventListener to set this parameter. The camera driver may set orientation in the EXIF header without rotating the picture. Or the driver may rotate the picture and the EXIF thumbnail. If the Jpeg picture is rotated, the orientation in the EXIF header will be missing or 1 (row #0 is top and column #0 is left side). The problem is not related to set(rotation, 90) or setRotation(90). They are the same except setRotation only exists from 2.0. On Sun, Dec 20, 2009 at 1:48 PM, Mark Wyszomierski mar...@gmail.com wrote: It looks like what I might have to do is switch my project to the 2.0 sdk (it's currently at 4). If I see that the OS level my app is running on is less than 2.0, then I make this call: Camera.Parameters params = camera.getParameters(); params.set(rotation, 0); camera.setParameters(params); if it's 2.0 or above, I use this call (added in the 2.0 api): Camera.parameters.setRotation(int rotation); is this probably the best way to go? I don't know if I could go the other direction (stay at sdk level 4, and if I see the user is running 5, try to somehow invoke the 2.0 api which should be present), Thanks On Dec 19, 9:09 pm, Mark Wyszomierski mar...@gmail.com wrote: Thanks, just posted there too. I hope there's a way to get around this innovation in camera.parameters.. In the worst case, I guess I could check what platform the user is running on, and use the native camera intent? Thanks On Dec 19, 8:55 pm, Mark Murphy mmur...@commonsware.com wrote: Mark Wyszomierski wrote: I got all the parameters from a Droid for the camera - looks like rotation is not one of them... how do you get the camera to rotate the output?: picture-size-
[android-developers] Re: DroidFanz offering unauthorized paid apps - check yours
Hi, Sounds like you are talking about writing a crawler, basically :-). To input Username/Password between your app and the web server you will likely need to construct a Post, containing the UID and Password, to send to the Roger's Wireless login URL. To get back the info you read the results of the Post and parse out the info from the returned HTML. (There may also be ssl involved if you want to keep the uid/pwd encrypted on the wire). If you are lucky there might be a web service interface to Roger's Wireless(Canada) in which case you may be able to use JSON or XML or something else to wrap up the communications in a more structured form. If there is no web services interface and you will be using the crawler style interface you will use the org.apache.http.* interfaces to deal with the http communications. These packages are all in the Android system. If you have a web services interface you will also use org.w3c.dom.* interfaces for XML parsing. Of if it is JSON you can use the open- source json. Interfaces (the sources of which you will need to include in your app). The interfaces for the DOM are in the Android system. JSON is not and will need to be included in your app. On Dec 22, 9:52 am, Warren warrenba...@gmail.com wrote: The droidfanz website offers a download section full of unauthorized paid app downloads. I found my app there along with about 300 others. If you have a popular paid app, you may want to check if yours is listed. You can't see inside the site until you register. I'm seeing a lot of posts with cracked apps being wrongfully offered for free or for sale. It is frustrating as a developer because I don't want to impose cumbersome anti-theft systems on users. I've always taken the approach that it's better not to annoy real, paying users to avoid a small amount of theft. But with the amount of similar posts lately, it seems that the problem may be worse than what I assumed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Accessing Web Information
Hi, Sounds like you are talking about writing a crawler, basically :-) (Fooling the web site into believing you are just another user with a browser). To input Username/Password between your app and the web server you will likely need to construct a Post, containing the UID and Password, to send to the Roger's Wireless login URL. To get back the info you read the results of the Post and parse out the info from the returned HTML. (There may also be ssl involved if you want to keep the uid/pwd encrypted on the wire). If you are lucky there might be a web service interface to Roger's Wireless(Canada) in which case you may be able to use JSON or XML or something else to wrap up the communications in a more structured form. If there is no web services interface and you will be using the crawler style interface you will use the org.apache.http.* interfaces to deal with the http communications. These packages are all in the Android system. If you have a web services interface you will also use org.w3c.dom.* interfaces for XML parsing. Of if it is JSON you can use the open- source json. Interfaces (the sources of which you will need to include in your app) The interfaces for the DOM are in the Android system. JSON is not and will need to be included in your app. Hope this helps… On Dec 22, 3:18 am, Matthew Patience matthewj.patie...@gmail.com wrote: I'm attempting to create an app that will display usage information for customers of Roger's Wireless(Canada). I was wondering if someone could point me in the right direction on how to: 1) input Username and Password info directly a web textbox to sign the Customer in, from an EditText View. 2) grab usage information in the form of text or images to display to the user within the app. Just a pointer in the right direction on what method(s) would do this for me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem in Layout
Hi, I have three layouts in my screen. One topLayout, bottomLayout and the centerLayout. CenterLayout is a scrollable layout, in such a way that the center part is scrollable and top and bottomLayout are filxed. I am using linearLayout. Its all working except the bottom layout. For bottom layout , i put in the layoutParams gravity=BOTTOM. BUt its not working. I tried with relativeLayout also, in that the scrollable part is not working fine.Scrollbar as to be at the edge of the screen. In relative, its coming after view. I tried with width=FILL_PARENT. I am doing all this in java code, not in xml. Any suggestions is much appreciated. Nithin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] About my posts and membership
Two of my posts here on this forum got somehow copied to World_wide_with_god_ministry forum. I don't know anything about this group; never joined them, never visited their page.Now, I have them listed under My Groups drop down. I can't find a way to unsubscribe to this group. Did any one else have this problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Anyone noticing more uninstalls of their app than usual over last weekend/today?
I haven't touched those settings. Still have 17% drop. On Tue, Dec 22, 2009 at 9:38 AM, matt smith mattsmith...@googlemail.comwrote: I don't have maxsdk but did add this change for Droid support : supports-screens android:anyDensity=true / My installs have dropped by 15% - maybe its auto uninstalling for anyone with 1.5 as the supports-screens is 1.6 only - yet I need this to make the app work correctly on Droid (rather than compatibility mode). Issues seems to be related after people do updates and possibly change some of these settings. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MergeAdapter problem
Hi All, I used MergeAdapter, for my app, And I use a background image for my layout. I noticed, if I touch on Heading view (group heading) the entire list becomes black as if all the rows are selected. If I dont use background image, it does not appear [mostly because default listview background color is black] how to get rid of this limitation ? 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
Re: [android-developers] MergeAdapter problem
Jags wrote: I used MergeAdapter, for my app, And I use a background image for my layout. I noticed, if I touch on Heading view (group heading) the entire list becomes black as if all the rows are selected. If I dont use background image, it does not appear [mostly because default listview background color is black] how to get rid of this limitation ? If you're referring to the MergeAdapter that I wrote, you are better served joining the [cw-android] Google Group for support: http://groups.google.com/group/cw-android Off the top of my head, I do not know why you would get the behavior you describe. Then again, I don't put background images behind my ListViews, settling for the black or white from the stock themes. If you can create a sample project that demonstrates the problem, I can take a look at it...but please follow up over on [cw-android]. I don't want to clutter this list with CommonsWare-specific stuff. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how voice recognition in android
Hi Friends, I want to know that how voice recognition in android works? Which library it uses for voice recognition? regards David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Reminder: IRC office hours starting in 30 mins
Irc office hours will begin in 30 mins at #android-dev irc channel. Please post your questions at: http://moderator.appspot.com/#15/e=120951t=120e11 Thanks, Megha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is it ever OK to use AbsoluteLayout?
On Mon, Dec 21, 2009 at 8:27 PM, k_day kevin.r@gmail.com wrote: Yeah, I would like to do that. What sort of View would I parent off of though? AbsoluteLayout is the only type of layout that I can find that will allow me to assign coordinates to. Margins on children of a RelativeLayout behave very much like coordinates. RelativeLayout layout = new RelativeLayout(); ImageView iv = new ImageView( getBaseContext() ); [...] MarginLayoutParams mlp = new MarginLayoutParams( width, height ); mlp.setMargins( left, 0, 0, 0 ); LayoutParams lp = new LayoutParams( mlp ); layout.addView( iv, lp ); -- Greg Donald http://destiney.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] Sales from android market
Hi Guys, I am planning to release my application in the android market as a paid application and I have gone through the list of fees for a transaction. Is my following assumption correct? Say i release my application for 0.99$. Fees deducted to operator/google - 0.30 Google checkout transaction fees - 0.30 So remaining is 39 cents out of which tax of 30% has to be paid and incase of a oversales transaction another 1% is deducted, and also google charges 2.9% of the total amount credited per month. SO what we will be left with is around 20 cents, is this true or am I making some mistake here. I am from India and am planning to release it through my friend in US or UK, which of the two is a better choice? Regards, R.Karthik -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Anyone noticing more uninstalls of their app than usual over last weekend/today?
On Tue, Dec 22, 2009 at 10:16 AM, Justin Giles jtgi...@gmail.com wrote: I haven't touched those settings. Still have 17% drop. Same here. I released recently but no min/max sdk changes. -- Greg Donald http://destiney.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Are the market stats for developers broken?
I've also noticed the drop in the last couple of days with my app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Anyone noticing more uninstalls of their app than usual over last weekend/today?
I've noticed a slight drop as well, from 71.9% to 71.6%, which may not seem a lot however, my app has 65,000 downloads, so numbers wise, a fairly good amount. I've had a few e-mails from people telling me that their Droid has filled up and they regret to tell me they've had to uninstall my app to make room (odd they would tell me, but they have). It may be that this is happening to you all too. Just idle speculation... -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to clear all activity in the stack below the latest activity?
All the current discussions involves clearing all activites above an existing activyt, but I'm trying to find a way to clear all the activities before the latest activity in the stack. So my scenario is A - B - C and then when a user goes to Activity D, activies A,B,C should be cleared from the activity stack. FLAG_ACTIVITY_CLEAR_TOP seems to only clear any activites above an existing activity. Anybody run into this scenario and found a solution? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Sales from android market
Why are these item in there?: Fees deducted to operator/google - 0.30 google charges 2.9% of the total amount credited per month I don't know about the 'oversales' transactions. What is 'oversales'? I just pay 30% for Google Checkout fees. That's it. Nothing more. (Of course, uncle Sam (income tax) may want to have a little piece as well) On Dec 22, 12:06 pm, karthikr karthik.scintill...@gmail.com wrote: Hi Guys, I am planning to release my application in the android market as a paid application and I have gone through the list of fees for a transaction. Is my following assumption correct? Say i release my application for 0.99$. Fees deducted to operator/google - 0.30 Google checkout transaction fees - 0.30 So remaining is 39 cents out of which tax of 30% has to be paid and incase of a oversales transaction another 1% is deducted, and also google charges 2.9% of the total amount credited per month. SO what we will be left with is around 20 cents, is this true or am I making some mistake here. I am from India and am planning to release it through my friend in US or UK, which of the two is a better choice? Regards, R.Karthik -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: GLSurfaceView.Renderer design question
Dan - hah! Lance, Awesome!! Thanks for the info. I tend to forget that all of the gles stuff is just calling down to the underlying driver which is a state machine and thus can be accessed statically from J-land. On Dec 22, 12:28 am, Lance Nanek lna...@gmail.com wrote: This quick EGL10#eglGetCurrentDisplay test seems to work fine in my renderer's onSurfaceCreated: EGL10 egl = (EGL10) EGLContext.getEGL(); EGLDisplay currentDisplay = egl.eglGetCurrentDisplay(); int[] attribValue = new int[1]; egl.eglGetConfigAttrib(currentDisplay, config, EGL10.EGL_BUFFER_SIZE, attribValue); if ( LOG ) Log.i(LOG_TAG, String.format(EGL_BUFFER_SIZE = %d, attribValue[0])); I haven't tried it, but getting the current context would be similar: EGLContext currentContext = egl.eglGetCurrentContext(); I can see GLSurfaceView#createSurface making this call before the renderer's onSurfaceCreated is called: mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); So I assume it is set. On Dec 21, 10:42 pm, Robert Green rbgrn@gmail.com wrote: Maybe someone can explain this to me: I've been trying to figure out how to get to the current EGLContext from the GLSurfaceView. I looked at the APIs and looked at the code but it doesn't seem like there is any path to it. I could have just missed it - please correct me if I have, but it wasn't obvious. Now, I can totally understand the designer thinking that we should protect people from the context because they can cause bad things to happen but actually it would be nice to have access to swapbuffers so that we can do some effects. Fair enough, though. The one thing I wanted was to see the current EGLConfig so that I could find out what config attributes I'm getting on weirdly-behaving devices like the Galaxy. It seemed easy enough - it's passed in to Renderer in the onSurfaceCreated method: public void onSurfaceCreated(GL10 gl, EGLConfig config); Great! Except wait, you can't query an EGLConfig without an EGLDisplay and that's locked up in the GLSurfaceView. So why is it passed in to the surface created method? Isn't it useless? Accord to GLES spec, an instance of EGLConfig is only good if you have the display/context instances that it was created from. I didn't try querying it with the default context because it's supposedly invalid but perhaps someone could shed some light on this? I'd love if it were something dumb and obvious that I don't know about. 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] Change behavior of layout display when launching intents
This is up to the user, it's an option in the default system settings. If you personally don't like it, just disable the preference on your phone. You might be able to override this with a custom animation, though I haven't played with animations yet and I'm not sure about that. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Mon, Dec 21, 2009 at 10:11 AM, Stephen Lebed srle...@gmail.com wrote: I have an app where pressing button on the screen launches an intent with a new screen and buttons. Everything is working very well, but I'm got one small visual problem. When I press the button on screen on my phone, the new page slides in from the right, pushing the old page off screen left. This happens very quickly, but the overall effect is a bit jarring. Is there a way to stop pages from display this way? If possible, I'd like the page to just appear over the old page, without any scrolling. Is this possible in Android? Thanks, Stephen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Widget - onUpdate gets called even if no room on the screen for it!
Hopefully someone else has ran into this issue. On SDK level 3 (Android 1.5) if a user adds a homescreen widget that there is not room for, the onUpdate method is still called. So in my widgets, in the onUpdate I check to see if hte widget has been configured. If it has not then I launch the configuration. Stuff also gets saved to a SharedPreferences config. So in this example if the user adds a widget that is too big for their screen 10 times, it is going to launch the config needlessly 10 times. Also for that appWidgetId, stuff is going to get saved 10 times. How can I head this off and tell that there is no room on the screen, in onUpdate, before doing all of that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ($25 reward) GPS not triggering onLocationChanged
Thanks a lot for your support everyone! I winded up doing many things, most of which were required for this to work. 1. Used the WakefulIntentService, and at the bottom of onHandleIntent, manually called onStop 2. Right away I created a wakelock 3. BEFORE the first requestLocationUpdates(yadaa yadda yadda, this) I called releaseUpdates(this). 4. Removed the accidental duplicate requestLocationUpdates 5. Added a sleep timer to onHandleIntent, and had it call onStop afterwards (releases the wakelock and locationupdates) The main issue was keeping the service awake, second issue was all the stupid bugs in the 1.5 OS. On Dec 19, 11:17 pm, Ipsemet worldsflir...@gmail.com wrote: To my knowledge, the emulator doesn't emulate sensors. On Dec 19, 9:46 pm, dapaintballer331 dapaintballer...@gmail.com wrote: If somebody can get this to work for me, using an emulator on the 1.5 sdk, I will send them $25 via paypal if you need it. I am using the android 1.5 emulator. Problem: I see the satilite icon on the top of the phone, but when I send the device multiple coordinates, is never runs the onLocationChange method. Assumptions: Ignore the WakefulIntentService. Its just a modification of the service class, by Mark Murphy, that keeps the service running. Question: Why isn't the emulator / my phone triggering onLocationChange, but displaying an icon signifying GPS is active when onHandleIntent is called? (And until stopUpdates is called). And, what can I do to fix this? Code (FmiLocationManager.java): =code= package org.myProj; import android.content.Context; import android.content.Intent; import android.location.LocationManager; import android.location.Location; import android.location.LocationListener; import android.os.Bundle; import android.os.IBinder; import android.util.Log; import android.location.Criteria; public class FmiLocationManager extends WakefulIntentService implements LocationListener { private LocationManager locationMan; private LocationListener locationLis; public FmiLocationManager() { super(FmiLocationManager); } @Override protected void onHandleIntent(Intent intent) { super.onHandleIntent(intent); locationMan = (LocationManager) getSystemService (Context.LOCATION_SERVICE); locationMan.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this); String provider = gps; //(Available on the emulator, I tested it) locationMan.requestLocationUpdates( provider, 13000, 3, this); } } public void onStop() { stopUpdates(); } public void stopUpdates() { if(locationLis != null) locationMan.removeUpdates(locationLis); } @Override public IBinder onBind(Intent intent) { return null; } public void onLocationChanged(Location loc) { Log.e(fmi,fmi new location received); //NEVER gets sent. } public void onProviderDisabled(String provider) { } public void onProviderEnabled(String provider) { } public void onStatusChanged(String provider, int status, Bundle extras) { }} ==end code Manifest: I won't post the entire thing, but here is the important information: android:versionName=1.0 android:versionCode=1 uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION/uses- permission uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED/uses- permission uses-permission android:name=android.permission.WAKE_LOCK/uses- permission service android:name=.FmiLocationManager / -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!
Mark- thanks for your reply! I am new to 2d graphics and custom components, so let me try to see if I am reading you right: You're saying, if I create a table layout with two rows and one column, and I populate the top row with say 2 buttons and an image, I can get Android to return the amount of space left over for the other row? How would I do that? My only knowledge of returning dimensions is getwidth() and getheight(), which for my g1 return 320x480. Thanks for your response! PS, I have a Warescription, is there something I should review? On Dec 21, 1:17 pm, Mark Murphy mmur...@commonsware.com wrote: superjet wrote: I had posted a similar thread a while back and received no feedback, so let me try to be more clear... I am able to use Androids components to build the most basic layouts, which include images, buttons, text areas, etc. These are like Android Lego! I can build the castle. BUT I want to design my own component, my ownLego, that draws on the screen and uses the available area that the Android components have not used. ie, I want to have a top layer of buttons, and the rest of the screen, whatever it is, I want to use to draw 2d graphics. So, I want to make my ownLego, and use it with the other AndroidLego. However, I'm also trying to be a good developer and making this for whatever resolution is thrown my way. What is the best way to do this considering the deluge of different resolutions Android developers must cope with? Is there a way to do a table view and return the remaining screen size? Or, am I stuck making an entire new box ofLegohere? To be honest, I find this one less clear than the original. I think you are looking at the problem backwards. If you create a custom View class (my ownLego), your size will generally be handed to you, courtesy of the containers (layouts) and rules (android:layout_width, android:layout_height). You can indicate some size preferences, if needed. Hence, the best way to do this considering the deluge of different resolutions Android developers must cope with? is no different for your own custom View than it is for anything else -- specify the layout rules with density-independent dimensions, use RelativeLayout, etc. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training: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
[android-developers] Problem with MEmory on converting YUV DATA to RGB
Hi I am trying to capture Preview Call back from Android And using a An Algorithm i am trying to convert the Yuv Data to RGB format Bot while doing that Getting memory Issu.It shows Out of memory.In side the Converting Algorithm evry thing is local Declaration or Arras and Int arrays ..I uses only One Int[] array and Byte[] array. to processs.And i am not creating multiple allocation of Objects also.still after oen minute its thows out of memory cannot Allocate memore for byte array.I am call Runtime.Getrintime.gc() all ways stuill it thows same eror. I tryed with same procein with threds but still issu have no ways for ro solve this? Please Help me its Urjent. pleaseI tryed with Message handlers also.Still array givving out of memory..where is issu? Urjent please can any help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Whats teh ways to Capture camera Image Preview or Screeshot of Preview of cam?
hi i ned too store Image in my device SD card from capture image as a JPEG but the raw data is YUv data Even Camera .Params not working with JOEG or Preview size. Please can any one help to solvethis Issu.How can i store image preview call back as JPEG data -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it ever OK to use AbsoluteLayout?
Could someone please walk me through writing a custom Layout to give me my grid of imageViews, or point me to a good example? In particular, I can't find many resources on how I should overwrite onLayout. Thank you. -k_day On Dec 22, 10:42 am, Greg Donald gdon...@gmail.com wrote: On Mon, Dec 21, 2009 at 8:27 PM, k_day kevin.r@gmail.com wrote: Yeah, I would like to do that. What sort of View would I parent off of though? AbsoluteLayout is the only type of layout that I can find that will allow me to assign coordinates to. Margins on children of a RelativeLayout behave very much like coordinates. RelativeLayout layout = new RelativeLayout(); ImageView iv = new ImageView( getBaseContext() ); [...] MarginLayoutParams mlp = new MarginLayoutParams( width, height ); mlp.setMargins( left, 0, 0, 0 ); LayoutParams lp = new LayoutParams( mlp ); layout.addView( iv, lp ); -- Greg Donaldhttp://destiney.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NumberPicker based widgets function different in emulator than phone
One way to test this is to build the Hello, DatePicker example and see if it exhibits this behavior. On the emulator you can type in year or day. On my phone, no. Just click on the year or day and it is not focusable. http://developer.android.com/guide/tutorials/views/hello-datepicker.html On Dec 21, 12:04 pm, jtoolsdev brianjto...@gmail.com wrote: TimePicker and DatePicker use NumberPicker which is an internal widget. On the emulator the EditText on the widget is focusable and you can type into it. On my phone, and HTC Eris, you cannot. Does this have something to do with the attributes (which I don't entirely understand) and HTC maybe setting them differently? These are my own test routines and I also downloaded the NumberPicker and DatePicker source to build my own versions as well as some additional widgets so I can use them in my program. Those do allow the EditText to be focusable. For consistency it so far looks like I'll have to rebuild the TimePicker too. I don't set any attrs in my versions. - Brian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?
I have 21,600 downloads. A 17% drop in active installs over the past few days means over 3600 people uninstalled the app. Just doesn't make sense when all data before this time was trending at the 77% level whereas now it is at 60%. On Tue, Dec 22, 2009 at 11:35 AM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I've noticed a slight drop as well, from 71.9% to 71.6%, which may not seem a lot however, my app has 65,000 downloads, so numbers wise, a fairly good amount. I've had a few e-mails from people telling me that their Droid has filled up and they regret to tell me they've had to uninstall my app to make room (odd they would tell me, but they have). It may be that this is happening to you all too. Just idle speculation... -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?
I saw someone suggest that the downloads generated from an update are failing. I noticed this with ProjectInf. I cannot get it to download even after a reboot. This means that as far as the market is concerned I've uninstalled it.I would put more faith in this explanation if others are seeing the same thing.I had just done an update and I started dropping install base. No one has come forth and said anything about not getting the update either. Wayne On Tue, Dec 22, 2009 at 11:09 AM, Justin Giles jtgi...@gmail.com wrote: I have 21,600 downloads. A 17% drop in active installs over the past few days means over 3600 people uninstalled the app. Just doesn't make sense when all data before this time was trending at the 77% level whereas now it is at 60%. On Tue, Dec 22, 2009 at 11:35 AM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I've noticed a slight drop as well, from 71.9% to 71.6%, which may not seem a lot however, my app has 65,000 downloads, so numbers wise, a fairly good amount. I've had a few e-mails from people telling me that their Droid has filled up and they regret to tell me they've had to uninstall my app to make room (odd they would tell me, but they have). It may be that this is happening to you all too. Just idle speculation... -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Manager http://www.fuligin.com/forums -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!
You should get the size available passed to you in onMeasure, then take all of it when you setMeasuredDimension. Read more from this reference and others: http://developer.android.com/reference/android/view/View.html Mark the other components as wrap_content and yours as fill_parent. Then you should get the rest of the area, and the first row will only take what it needs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!
superjet wrote: You're saying, if I create a table layout with two rows and one column, and I populate the top row with say 2 buttons and an image, I can get Android to return the amount of space left over for the other row? I'm saying that if you create a TableLayout with two rows, and you put two Buttons and one ImageView in the top row, and one SuperJetCoolWidget in the bottom row, your SuperJetCoolWidget will be sized in accordance to the rules you apply in the layout (and, partially, based on SuperJetCoolWidget's preferred size). In this respect, SuperJetCoolWidget is no different than any other widget. Assuming, of course, that you implement SuperJetCoolWidget. You are probably better served with a RelativeLayout in this case, anyway. If you're not implementing a form, TableLayout is rarely the best choice. PS, I have a Warescription, is there something I should review? I do not get into 2D graphics (2010, maybe), but there is a chapter in _The Busy Coder's Guide to *Advanced* Android Development_ on custom views that shows using the composite or aggregate view pattern. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 8-12 February 2010: http://bignerdranch.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!
Here is one thing that will save you time if you do use a table layout. TableLayout will create three columns for the button, button, image on row 1. So on your custom control, place: android:layout_span=3 Check the relevant rules for RelativeLayout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market Ranking Error
Have you experienced the issue I've complained numerous times about yet can't get resolution: When users update, apparently there is a service left running with the My Coupons app. Fine. The issue being, the old service code interferes with the new code and users uninstall then reinstall immediately in attempt at resolving this matter. Google registers the uninstalls, but not the reinstalls. I can verify this occurs as each time the app is first run it notifies our servers, and we've got record of each install. This record vastly differs from the statistics google is reporting. These records are verifiably unique users. I had a ticket opened marked medium priority on this issue with a couple starred followers, but can now find no record of it. On Dec 12, 7:12 pm, polyclefsoftware dja...@gmail.com wrote: No, the apps weren't unpublished...I'm the author of Dominoes. It appears to be back to normal now, though I think what they were showing were old rankings for the better part of the last 24 hours. I'm sure the devs of those apps appreciated the bump. On Dec 12, 5:57 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: The News Weather category, something I watch closely, is nominal today, everything where it should be. Could it be the dev unpublished those apps for some reason? -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?
Bah (sorry to hijack) If you can't download the new ProjectINF, we can post it somewhere for you to download... - Dan On Tue, Dec 22, 2009 at 2:18 PM, Wayne Wenthin wa...@fuligin.com wrote: I saw someone suggest that the downloads generated from an update are failing. I noticed this with ProjectInf. I cannot get it to download even after a reboot. This means that as far as the market is concerned I've uninstalled it.I would put more faith in this explanation if others are seeing the same thing.I had just done an update and I started dropping install base. No one has come forth and said anything about not getting the update either. Wayne On Tue, Dec 22, 2009 at 11:09 AM, Justin Giles jtgi...@gmail.com wrote: I have 21,600 downloads. A 17% drop in active installs over the past few days means over 3600 people uninstalled the app. Just doesn't make sense when all data before this time was trending at the 77% level whereas now it is at 60%. On Tue, Dec 22, 2009 at 11:35 AM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I've noticed a slight drop as well, from 71.9% to 71.6%, which may not seem a lot however, my app has 65,000 downloads, so numbers wise, a fairly good amount. I've had a few e-mails from people telling me that their Droid has filled up and they regret to tell me they've had to uninstall my app to make room (odd they would tell me, but they have). It may be that this is happening to you all too. Just idle speculation... -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Manager http://www.fuligin.com/forums -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Upgrading apps causing market ranking drop due to uninstall prompt reinstall not getting logged
Has anyone else experienced an issue I've complained numerous times about yet can't get resolution: When users upgrade our My Coupons app, apparently there is a service left unclosed. Fine. The issue being, the old service code interferes with the new code and users uninstall then reinstall immediately in attempt to resolve. Google registers the uninstalls, but not the reinstalls. I repeat, the market registers the uninstalls, but prompt reinstallations DO NOT get registered! I can verify this occurs as each time the app is first run it notifies our servers, and we've got record of each install. This record vastly differs from the statistics google is reporting. These records are verifiably unique 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] Upgrading apps causing market ranking drop due to uninstall prompt reinstall not getting logged
Might be related to these threads, which are yet to be responded to by any Google authority: http://groups.google.com/group/android-developers/browse_thread/thread/315945ac2698de0 http://groups.google.com/group/android-developers/browse_thread/thread/a16e23d9e6f5eea3/442e38323b7cfdd2?lnk=gstq=market+stats#442e38323b7cfdd2 On Tue, Dec 22, 2009 at 2:19 PM, sss aaroninmarket...@yahoo.com wrote: Has anyone else experienced an issue I've complained numerous times about yet can't get resolution: When users upgrade our My Coupons app, apparently there is a service left unclosed. Fine. The issue being, the old service code interferes with the new code and users uninstall then reinstall immediately in attempt to resolve. Google registers the uninstalls, but not the reinstalls. I repeat, the market registers the uninstalls, but prompt reinstallations DO NOT get registered! I can verify this occurs as each time the app is first run it notifies our servers, and we've got record of each install. This record vastly differs from the statistics google is reporting. These records are verifiably unique 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] exclusion filter not being respected - resources are being included in apk
Hi, I have a project thas has this tree: x/src/tc x/src/totalcross I had setup the src folder to x/src, then added to the inclusion list these: totalcross/A.java and totalcross/android/ Then i added to the exclusion list: tc/ Eclipse correctly ignores the files when they are compiling: in the bin folder, i can see only totalcross/A.class and totalcross/android/ Loader, R$attr, R$drawable, R.class However, when i build the project, my apk has 308KB. I opened it and i can see references to classes in the x/src/tc folder. If i delete this folder, the apk goes to 12KB. Seems to be a bug in the application packager? cheers guich http://www.totalcross.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?
I was just pointing it out as an example of what might be going on. Honestly I can't get into it. I love all your other games and am jealous of the chat feature though. On Tue, Dec 22, 2009 at 12:17 PM, Dan Sherman impact...@gmail.com wrote: Bah (sorry to hijack) If you can't download the new ProjectINF, we can post it somewhere for you to download... - Dan On Tue, Dec 22, 2009 at 2:18 PM, Wayne Wenthin wa...@fuligin.com wrote: I saw someone suggest that the downloads generated from an update are failing. I noticed this with ProjectInf. I cannot get it to download even after a reboot. This means that as far as the market is concerned I've uninstalled it.I would put more faith in this explanation if others are seeing the same thing.I had just done an update and I started dropping install base. No one has come forth and said anything about not getting the update either. Wayne On Tue, Dec 22, 2009 at 11:09 AM, Justin Giles jtgi...@gmail.com wrote: I have 21,600 downloads. A 17% drop in active installs over the past few days means over 3600 people uninstalled the app. Just doesn't make sense when all data before this time was trending at the 77% level whereas now it is at 60%. On Tue, Dec 22, 2009 at 11:35 AM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I've noticed a slight drop as well, from 71.9% to 71.6%, which may not seem a lot however, my app has 65,000 downloads, so numbers wise, a fairly good amount. I've had a few e-mails from people telling me that their Droid has filled up and they regret to tell me they've had to uninstall my app to make room (odd they would tell me, but they have). It may be that this is happening to you all too. Just idle speculation... -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Manager http://www.fuligin.com/forums -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Manager http://www.fuligin.com/forums -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Unable to Unlink Errors
I'm getting some errors I can't seem to get rid of. The application I'm working on installs alright but when it's started it stops the loading process telling me an error has occurred. Upon looking at the log there are ten apparent issues all revolving around the graphic files for the application. DEBUG/(1724): unable to unlink '/data/data/com.blah.blah/files/ special_button.png': No such file or directory (errno=2) That error happens 10 times..one for every image in the raw folder. The Manifest has multiple intents and activitys and is structured like this application activity intent-filter /intent-filter intent-filter /intent-filter intent-filter /intent-filter /activity activity intent-filter /intent-filter /activity provider /application It's the second activity that seems to be having the problem. The first activity is .MainActivity and the second one is .ThemeProvider and .Screen java files. Everything in the first activity runs perfectly only the second one has issues. I have tried everything I can think of to get rid of these errors so the images will load and stop causing the error and termination of that part of the application. Any help would be greatly appreciated as I've been stuck for a few weeks on 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
Re: [android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?
No worries, was just making sure you could get it if you wanted :) - Dan On Tue, Dec 22, 2009 at 3:45 PM, Wayne Wenthin wa...@fuligin.com wrote: I was just pointing it out as an example of what might be going on. Honestly I can't get into it. I love all your other games and am jealous of the chat feature though. On Tue, Dec 22, 2009 at 12:17 PM, Dan Sherman impact...@gmail.com wrote: Bah (sorry to hijack) If you can't download the new ProjectINF, we can post it somewhere for you to download... - Dan On Tue, Dec 22, 2009 at 2:18 PM, Wayne Wenthin wa...@fuligin.com wrote: I saw someone suggest that the downloads generated from an update are failing. I noticed this with ProjectInf. I cannot get it to download even after a reboot. This means that as far as the market is concerned I've uninstalled it.I would put more faith in this explanation if others are seeing the same thing.I had just done an update and I started dropping install base. No one has come forth and said anything about not getting the update either. Wayne On Tue, Dec 22, 2009 at 11:09 AM, Justin Giles jtgi...@gmail.comwrote: I have 21,600 downloads. A 17% drop in active installs over the past few days means over 3600 people uninstalled the app. Just doesn't make sense when all data before this time was trending at the 77% level whereas now it is at 60%. On Tue, Dec 22, 2009 at 11:35 AM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I've noticed a slight drop as well, from 71.9% to 71.6%, which may not seem a lot however, my app has 65,000 downloads, so numbers wise, a fairly good amount. I've had a few e-mails from people telling me that their Droid has filled up and they regret to tell me they've had to uninstall my app to make room (odd they would tell me, but they have). It may be that this is happening to you all too. Just idle speculation... -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Manager http://www.fuligin.com/forums -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Manager http://www.fuligin.com/forums -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: JDBC Driver for SQLiteDatabase
On Dec 19, 2:05 am, kristianlm kristianl...@gmail.com wrote: hi Elliott, what exactly does it mean that the driver is unsupported and that it shouldn't be used? The SQLite driver could change in a future a release. It is undocumented because you should not rely on the API for the driver. That means you should not call any methods on the driver (you never need to call the driver if you are using JDBC). are you saying that JDBC should not be used at all? without loading the jdbc driver with Class.forName() it isn't registered. No, JDBC is part of the public API for Android and therefore it is supported and you can use it. that concludes the code snippet in Joerg's post above is not allowed? No, the example only uses the public JDBC API so therefore it is allowed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] creating android user libraries (without resources)
Hi, I already searched for this, but users mostly want to share resources, and the only resource my app has is an icon. I have an application and a set of java classes. What would be the best approach? 1. Application A uses a class B that is inside the library or 2. Application A calls an intent that is inside library B. I prefer using #1, but something tells me its impossible...? My question is mainly how to setup these in Eclipse. I'm not sure how to make the library classes available for the application in Eclipse. best regards guich http://www.totalcross.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?
The timing of this is unfortunate. I'm not anticipating an answer from Google any time soon as many folks there might gone on vacation this week. We might be on our own here for the time being. If the issue is just that installs aren't getting tracked properly as actives, that's not too bad. I'm more troubled if people can't install or apps are getting uninstalled. There are going to be a lot of Android phones given as Christmas presents and the post-Christmas surge in the Market will be interesting to see. It looks like it's only happening to people that recently released an update, so I'm curious about something. For those that are having this problem, did you use the 2.0.1 SDK for your update? Here's my info: - released update Friday - Build Target Android: 2.0.1 (api level 6) - Manifest: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=3 / DateDownl. New Actives Mon, Dec 14 307 215 Tue, Dec 15 346 234 Wed, Dec 16 251 151 Thu, Dec 17 334 199 Fri, Dec 18 429 82 (released update) Sat, Dec 19 274 -275 Sun, Dec 20 389 -98 Mon, Dec 21 404 -151 I've seen several theories going around as to the cause, I'm not sure if it's a purely Market issue or something we can change on our apps. I'm thinking of testing these out: 1. put the old version of my app back as a new update to see if the stats trend changes going forward 2. release a new update built against an older version of the SDK and see if the stats trend changes -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Changing text color when text is selected in EditText
Hi, I need to change the text color of the selected (highlited) text in an EditText. I tried like android:state_selected=true android:color=@android:color/white but it is not working. Can any one guide me where to set the color? Thanks, San -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Anyone noticing more uninstalls of their app than usual over last weekend/today?
My stats trended the same way as you reported. My app was updated targeting the 1.5 sdk with minsdkversion = 3. No changes have been made to those settings since I released the app almost 2 months ago. On Tue, Dec 22, 2009 at 3:04 PM, Seni Sangrujee sangru...@gmail.com wrote: The timing of this is unfortunate. I'm not anticipating an answer from Google any time soon as many folks there might gone on vacation this week. We might be on our own here for the time being. If the issue is just that installs aren't getting tracked properly as actives, that's not too bad. I'm more troubled if people can't install or apps are getting uninstalled. There are going to be a lot of Android phones given as Christmas presents and the post-Christmas surge in the Market will be interesting to see. It looks like it's only happening to people that recently released an update, so I'm curious about something. For those that are having this problem, did you use the 2.0.1 SDK for your update? Here's my info: - released update Friday - Build Target Android: 2.0.1 (api level 6) - Manifest: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=3 / DateDownl. New Actives Mon, Dec 14 307 215 Tue, Dec 15 346 234 Wed, Dec 16 251 151 Thu, Dec 17 334 199 Fri, Dec 18 429 82 (released update) Sat, Dec 19 274 -275 Sun, Dec 20 389 -98 Mon, Dec 21 404 -151 I've seen several theories going around as to the cause, I'm not sure if it's a purely Market issue or something we can change on our apps. I'm thinking of testing these out: 1. put the old version of my app back as a new update to see if the stats trend changes going forward 2. release a new update built against an older version of the SDK and see if the stats trend changes -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?
I'm seeing this also, a 20% drop over the last 2 days. I released an update on the 18th. My app is minSdk 3 and targetSdk 6. Seni Sangrujee wrote: The timing of this is unfortunate. I'm not anticipating an answer from Google any time soon as many folks there might gone on vacation this week. We might be on our own here for the time being. If the issue is just that installs aren't getting tracked properly as actives, that's not too bad. I'm more troubled if people can't install or apps are getting uninstalled. There are going to be a lot of Android phones given as Christmas presents and the post-Christmas surge in the Market will be interesting to see. It looks like it's only happening to people that recently released an update, so I'm curious about something. For those that are having this problem, did you use the 2.0.1 SDK for your update? Here's my info: - released update Friday - Build Target Android: 2.0.1 (api level 6) - Manifest: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=3 / Date Downl. New Actives Mon, Dec 14 307 215 Tue, Dec 15 346 234 Wed, Dec 16 251 151 Thu, Dec 17 334 199 Fri, Dec 18 429 82 (released update) Sat, Dec 19 274 -275 Sun, Dec 20 389 -98 Mon, Dec 21 404 -151 I've seen several theories going around as to the cause, I'm not sure if it's a purely Market issue or something we can change on our apps. I'm thinking of testing these out: 1. put the old version of my app back as a new update to see if the stats trend changes going forward 2. release a new update built against an older version of the SDK and see if the stats trend changes -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Anyone noticing more uninstalls of their app than usual over last weekend/today?
On Tue, Dec 22, 2009 at 3:23 PM, Justin Giles jtgi...@gmail.com wrote: My stats trended the same way as you reported. My app was updated targeting the 1.5 sdk with minsdkversion = 3. No changes have been made to those settings since I released the app almost 2 months ago. Same here. I released my app targeting 1.5 and haven't ever changed it. -- Greg Donald http://destiney.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?
Another theory to throw out there is that when people get a notification that there's an update available for an app, they think oh yeah, I forgot I had installed that app. better uninstall it to free up space. I've done this several times. But the question here is why in the past deploying an update didn't show a similar big drop in Actives. Unless there's been an intentional change in how actives are tracked. But then again, we would be noticing this trend for more apps rather than just ones with recent updates. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Anyone noticing more uninstalls of their app than usual over last weekend/today?
The Droid 2.0.1 OTA update uninstall theory is an interesting one. 1. Here's some reports of apps uninstalled after the 2.0.1 OTA update: http://androidforums.com/updates-cupcakes/25656-android-update-12-10-09-issues-motorola-droid.html Updated my droid today - so far the only issue is it seesms sportstap was uninstalled - not a big deal. My upgrade went smoothly, although I did lose one application, a quick uninstall. 2. I also see in the Android docs that after 2.0.1, maxSdkVersion will no longer be checked. I'm not setting maxSdkVersion in my Manifest, though. http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#max Future versions of Android (beyond Android 2.0.1) will no longer check or enforce the android:maxSdkVersion attribute during installation or revalidation. Android Market will continue to use the attribute as a filter, however, when presenting users with applications available for download. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: integration testing with content provider
An alternative solution to the problem can be found at http://dtmilano.blogspot.com/2009/12/android-testing-contentprovider.html. Basically it creates a new class ActivityAndContentProviderInstrumentationTestCase2T,P which automates part of the process of writing integration tests of Activities and ContentProviders using mock data. Google Doc version can also be found at http://docs.google.com/View?id=ddwc44gs_221tm2kqmgp On Dec 15, 4:58 am, tenacious fbeach...@gmail.com wrote: I've presented how I worked out a solution to this problem at my blog: http://tenacious33.wordpress.com/2009/12/15/android-functional-testin... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Droid - How to create a top bar notification during calls.
Dianne, Is it safe to assume this intentional, or should I file a bug? I noticed the Droid advertisement advertised it as a feature. Regards, Matt On Dec 21, 12:48 pm, Matt hansen.matt...@gmail.com wrote: My problem is specific to the Droid. I can successfully post notifications during calls in the emulator using 1.5, 1.6, and 2.0. I can also post notifications on the G1. However, when I use the Droid, notifications are squelched (as far as I can tell) during active phone calls. All other environments correctly display the notification during calls. I am not trying to play a sound, I am simply trying to display an icon in the top notification bar. Thanks for your help, Matt On Dec 21, 10:42 am, Dianne Hackborn hack...@android.com wrote: On Mon, Dec 21, 2009 at 6:53 AM, Matt hansen.matt...@gmail.com wrote: Are you saying that notifications can not be delivered or can be delivered on all Android phones during calls? You absolutely can post them. It is unlikely to me they would cause a sound to play, though, if the user is currently talking on the phone. You are being very vague so I don't really know what to answer (your first post sounded like you were having a problem specific to Droid but apparently that is not the case). -- 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: Problem in Layout
First off I apologize but I'm having a hard time understanding your intent based on your language, but I'll try to help with what I understand. The android:gravity attribute affects the layout of content within the view, not how a view is laid out within a layout manager. It sounds like what you really want is android:layout_gravity. However this attribute is not applicable to LinearLayout, mostly used (in my experience) with FrameLayouts. If you're using a LinearLayout with orientation vertical and three sub- views, as long as any of the sub-views declare layout_height=fill_parent the views should fill the available space and, as a result, the third view should be on the bottom. I am guessing you'd like the center view to fill_parent. With a RelativeLayout it sounds like you want the android:layout_alignParentBottom attribute for the third view. Lastly, I've given you the XML attributes, you'll need to look up the Java API equivalents, but I highly recommend using XML layouts if at all possible. Hope this helps. Jean-Guy On Dec 22, 8:06 am, Nithin nithin.war...@gmail.com wrote: Hi, I have three layouts in my screen. One topLayout, bottomLayout and the centerLayout. CenterLayout is a scrollable layout, in such a way that the center part is scrollable and top and bottomLayout are filxed. I am using linearLayout. Its all working except the bottom layout. For bottom layout , i put in the layoutParams gravity=BOTTOM. BUt its not working. I tried with relativeLayout also, in that the scrollable part is not working fine.Scrollbar as to be at the edge of the screen. In relative, its coming after view. I tried with width=FILL_PARENT. I am doing all this in java code, not in xml. Any suggestions is much appreciated. Nithin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Droid - How to create a top bar notification during calls.
As far as I know it works fine. If you want to file a bug, please make sure you include a full application (ideally with source code) reproducing the problem with complete steps to reproduce. Fwiw, I just tried setting an alarm on my Droid and having it go off while in a call, and the notification was displayed fine. One thing to be aware of -- CDMA networks do not support voice and data at the same time, so a device like Droid on such a network will not get network data while on a call. Thus, for example, you will not get new e-mail notifications, chat notifications, etc until you hang up the call. On Tue, Dec 22, 2009 at 2:12 PM, Matt hansen.matt...@gmail.com wrote: Dianne, Is it safe to assume this intentional, or should I file a bug? I noticed the Droid advertisement advertised it as a feature. Regards, Matt On Dec 21, 12:48 pm, Matt hansen.matt...@gmail.com wrote: My problem is specific to the Droid. I can successfully post notifications during calls in the emulator using 1.5, 1.6, and 2.0. I can also post notifications on the G1. However, when I use the Droid, notifications are squelched (as far as I can tell) during active phone calls. All other environments correctly display the notification during calls. I am not trying to play a sound, I am simply trying to display an icon in the top notification bar. Thanks for your help, Matt On Dec 21, 10:42 am, Dianne Hackborn hack...@android.com wrote: On Mon, Dec 21, 2009 at 6:53 AM, Matt hansen.matt...@gmail.com wrote: Are you saying that notifications can not be delivered or can be delivered on all Android phones during calls? You absolutely can post them. It is unlikely to me they would cause a sound to play, though, if the user is currently talking on the phone. You are being very vague so I don't really know what to answer (your first post sounded like you were having a problem specific to Droid but apparently that is not the case). -- 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.comandroid-developers%2bunsubscr...@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: Anyone noticing more uninstalls of their app than usual over last weekend/today?
Same thing with my application, Screebl. Dropped by around 10% in one night. I've released lots of updates over the past few months, averaging about one/week, and have never seen this happen. Perhaps Google has changed the definition of an active installation? Disturbing as active install count is the most heavily weighted factor in calculating ranking in the market. pawpaw17 wrote: I released an upgrade to my app on Saturday night and since have noticed an unusual number of uninstalls. My app has been out for 8 months, and this is very unusual. Has anyone else noticed this? I'm wondering if there is anything related to the market, or a new OS version hitting, or contracts with one of the phones coming up? Any thoughts would be very appreciated. Thanks! pawpaw17 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Droid - How to create a top bar notification during calls.
Before you file a bug - try to test this on at least one REAL phone besides the emulators. There's a good chance your bug is really just incorrect code that fails on all hardware, not just the Droid. -David On Tue, Dec 22, 2009 at 3:33 PM, Dianne Hackborn hack...@android.comwrote: As far as I know it works fine. If you want to file a bug, please make sure you include a full application (ideally with source code) reproducing the problem with complete steps to reproduce. Fwiw, I just tried setting an alarm on my Droid and having it go off while in a call, and the notification was displayed fine. One thing to be aware of -- CDMA networks do not support voice and data at the same time, so a device like Droid on such a network will not get network data while on a call. Thus, for example, you will not get new e-mail notifications, chat notifications, etc until you hang up the call. On Tue, Dec 22, 2009 at 2:12 PM, Matt hansen.matt...@gmail.com wrote: Dianne, Is it safe to assume this intentional, or should I file a bug? I noticed the Droid advertisement advertised it as a feature. Regards, Matt On Dec 21, 12:48 pm, Matt hansen.matt...@gmail.com wrote: My problem is specific to the Droid. I can successfully post notifications during calls in the emulator using 1.5, 1.6, and 2.0. I can also post notifications on the G1. However, when I use the Droid, notifications are squelched (as far as I can tell) during active phone calls. All other environments correctly display the notification during calls. I am not trying to play a sound, I am simply trying to display an icon in the top notification bar. Thanks for your help, Matt On Dec 21, 10:42 am, Dianne Hackborn hack...@android.com wrote: On Mon, Dec 21, 2009 at 6:53 AM, Matt hansen.matt...@gmail.com wrote: Are you saying that notifications can not be delivered or can be delivered on all Android phones during calls? You absolutely can post them. It is unlikely to me they would cause a sound to play, though, if the user is currently talking on the phone. You are being very vague so I don't really know what to answer (your first post sounded like you were having a problem specific to Droid but apparently that is not the case). -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Droid - How to create a top bar notification during calls.
As mentioned earlier, I have tested it on a REAL phone. The G1 and the Droid. On Dec 22, 4:11 pm, David Overcash funnylookin...@gmail.com wrote: Before you file a bug - try to test this on at least one REAL phone besides the emulators. There's a good chance your bug is really just incorrect code that fails on all hardware, not just the Droid. -David On Tue, Dec 22, 2009 at 3:33 PM, Dianne Hackborn hack...@android.comwrote: As far as I know it works fine. If you want to file a bug, please make sure you include a full application (ideally with source code) reproducing the problem with complete steps to reproduce. Fwiw, I just tried setting an alarm on my Droid and having it go off while in a call, and the notification was displayed fine. One thing to be aware of -- CDMA networks do not support voice and data at the same time, so a device like Droid on such a network will not get network data while on a call. Thus, for example, you will not get new e-mail notifications, chat notifications, etc until you hang up the call. On Tue, Dec 22, 2009 at 2:12 PM, Matt hansen.matt...@gmail.com wrote: Dianne, Is it safe to assume this intentional, or should I file a bug? I noticed the Droid advertisement advertised it as a feature. Regards, Matt On Dec 21, 12:48 pm, Matt hansen.matt...@gmail.com wrote: My problem is specific to the Droid. I can successfully post notifications during calls in the emulator using 1.5, 1.6, and 2.0. I can also post notifications on the G1. However, when I use the Droid, notifications are squelched (as far as I can tell) during active phone calls. All other environments correctly display the notification during calls. I am not trying to play a sound, I am simply trying to display an icon in the top notification bar. Thanks for your help, Matt On Dec 21, 10:42 am, Dianne Hackborn hack...@android.com wrote: On Mon, Dec 21, 2009 at 6:53 AM, Matt hansen.matt...@gmail.com wrote: Are you saying that notifications can not be delivered or can be delivered on all Android phones during calls? You absolutely can post them. It is unlikely to me they would cause a sound to play, though, if the user is currently talking on the phone. You are being very vague so I don't really know what to answer (your first post sounded like you were having a problem specific to Droid but apparently that is not the case). -- 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.comandroid-developers%2Bunsubs cr...@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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Droid - How to create a top bar notification during calls.
Interesting that your alarm works. The Droid I have tested with is in Verizon's network, and I am firing the event from a service. Thanks for your help. Matt On Dec 22, 3:33 pm, Dianne Hackborn hack...@android.com wrote: As far as I know it works fine. If you want to file a bug, please make sure you include a full application (ideally with source code) reproducing the problem with complete steps to reproduce. Fwiw, I just tried setting an alarm on my Droid and having it go off while in a call, and the notification was displayed fine. One thing to be aware of -- CDMA networks do not support voice and data at the same time, so a device like Droid on such a network will not get network data while on a call. Thus, for example, you will not get new e-mail notifications, chat notifications, etc until you hang up the call. On Tue, Dec 22, 2009 at 2:12 PM, Matt hansen.matt...@gmail.com wrote: Dianne, Is it safe to assume this intentional, or should I file a bug? I noticed the Droid advertisement advertised it as a feature. Regards, Matt On Dec 21, 12:48 pm, Matt hansen.matt...@gmail.com wrote: My problem is specific to the Droid. I can successfully post notifications during calls in the emulator using 1.5, 1.6, and 2.0. I can also post notifications on the G1. However, when I use the Droid, notifications are squelched (as far as I can tell) during active phone calls. All other environments correctly display the notification during calls. I am not trying to play a sound, I am simply trying to display an icon in the top notification bar. Thanks for your help, Matt On Dec 21, 10:42 am, Dianne Hackborn hack...@android.com wrote: On Mon, Dec 21, 2009 at 6:53 AM, Matt hansen.matt...@gmail.com wrote: Are you saying that notifications can not be delivered or can be delivered on all Android phones during calls? You absolutely can post them. It is unlikely to me they would cause a sound to play, though, if the user is currently talking on the phone. You are being very vague so I don't really know what to answer (your first post sounded like you were having a problem specific to Droid but apparently that is not the case). -- 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.comandroid-developers%2Bunsubs cr...@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: Screen Widget update time (android:updatePeriodMillis)
My friend, it's true on 1.6 foward this does not work any more, you will have to set a alarm for it. The minimum update for 1.6 foward is 30 seconds(3 miliseconds). On 20 dez, 15:55, gmad madajc...@gmail.com wrote: I am creating my widget, witch should check the free space on SDCard. I set android:updatePeriodMillis=1, but it doesn't work... The widget doesn't update. On anddev.org (http://www.anddev.org/viewtopic.php?p=27758) I found information, that this option doesn't work in 1.6. Is this true? Could you advice me, how to use update period for screen widget? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en