[android-developers] Touch not working for listitem??

2010-07-27 Thread prachi
Hey hi all I have a list activity listing various list items.My problem is that on listItemClick() method is being called when Iam using that trackball to select the list item but my list item is not getting selected when Iam touching them.. What could be the problem?? plzz help..its a bit

[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-27 Thread Kaj Bjurman
What website? I would say that it isn't even close to 1/6 of Android phones/users that find applications outside of the official Android Market. I guess it can get close to 1/6 if people first have seen the application on official Android Market, and then decides to buy it, and sees that they have

[android-developers] Re: location.getTime() returns strange result

2010-07-27 Thread Sam
This is a bug on the Samsung that appeared with their 2.1 update. It's not an general android bug, rather a Samsung android 2.1 bug on some of their phones. Another bug Samsung have is not supplying location accuracy data (again on some of their phones). All you can do is work around it. On

[android-developers] Re: INTENT_SEND and attached files

2010-07-27 Thread FrankG
Hi David, When I read your email it sounds for me that you are able to adapt the email app on your platform. If yes, then this is the wrong group and you should go to the platform group. If no, then the whole discussion makes no sense in my eyes because you have no choice anyway ? Good luck !

[android-developers] Drivers to Sony Ericsson phones (X10, X10 mini/pro, X8)

2010-07-27 Thread Johan Abramsson
Hi, Here is a list of urls to the drivers for the android phones announced by Sony Ericsson. X10: http://developer.sonyericsson.com/wportal/devworld/downloads/download/dw-x10drivers?cc=gblc=en X10 mini / X10 mini pro:

[android-developers] Wifi getScanResults() on Emulator

2010-07-27 Thread elham
Hi All, is there a solution for getting getScanResults() work on the emulator . All i want is to read the access point that is been set on the phone. If not possible to read the actual values i can hard code the values that are to be returned by getScanResults. Kindly let me if you have the

[android-developers] Power consumption: How to reduce power consumption

2010-07-27 Thread Johan Abramsson
There are quite some pit falls that an application developer may hit. In order to simplify life Sony Ericsson Developer world has produced a little guideline called Android Application Coding Guidelines - Power Save. Link:

Re: [android-developers] Wifi getScanResults() on Emulator

2010-07-27 Thread Kostya Vasilyev
There is no Wifi in the emulator. What I've done for my app is implemented a switch that generates fake scan results just for debugging. -- Kostya 27.07.2010 10:58, elham пишет: Hi All, is there a solution for getting getScanResults() work on the emulator . All i want is to read the access

[android-developers] How to let parent handle onclick event for ListView

2010-07-27 Thread CG
This should be a simple question because I couldn't get the answer from Google . I have ListView in a LinearLayout . I need to handle the click event to allow user click on the LinearLayout to trigger some function. I try to add onClickListener to the LinearLayout , and it works only when I

[android-developers] SDK addon for Sony Ericsson X10

2010-07-27 Thread Johan Abramsson
Hi, We just wanted to inform you that Sony Ericsson have made an add-on to the Android SDK to utilize the Sony Ericsson Xperia X10 phone to developers. The Sony Ericsson Xperia™ X10 add-on for the Android™ SDK includes the complete Android system with additions customizing it for the X10 : *

[android-developers] Icon design guidelines for Sony Ericsson X10 mini and mini pro

2010-07-27 Thread Johan Abramsson
Hi. Below are dimensions for the icons. They are dependent on where it should show up. In any case, the icon sizes used in X10 mini and X10 mini pro are either 22px by 22px or 34px by 34px. It is even ok if you use larger icons since Android OS will scale down such icons but Sony Ericsson still

Re: [android-developers] How to let parent handle onclick event for ListView

2010-07-27 Thread Mark Murphy
Clicking on a list item should be handled by the ListView and should take action based upon what item the user clicked. I fear that your proposed UI design will be very confusing to users. On Tue, Jul 27, 2010 at 3:28 AM, CG learn@gmail.com wrote: This should be a simple question because I

[android-developers] Disable screen saver on Android devices.

2010-07-27 Thread Johan Abramsson
Hi, such information as this is probably out here - but here comes a small guideline (perhaps more suited for a blog - but anyhow - here we go). We have received a question or two on how to programmatically disable the screen saver in android devices. If you are playing a video the the preferred

[android-developers] Re: Wifi getScanResults() on Emulator

2010-07-27 Thread elham
Ok . Will it be possible share the snippet which sets the fake scan results ? Thanks . On Jul 27, 12:11 pm, Kostya Vasilyev kmans...@gmail.com wrote: There is no Wifi in the emulator. What I've done for my app is implemented a switch that generates fake scan results just for debugging. --

[android-developers] Re: What is a WeakReference?

2010-07-27 Thread AlanLawrence
However, presumably (only occasionally) screwing it up includes creating circular data structures...??? --Alan On Jul 26, 10:10 pm, DanH danhi...@ieee.org wrote: Qt implements object assignment.  One such object is a pointer (similar pointers are implemented in other C++ dialects) that

[android-developers] Re: Power consumption: How to reduce power consumption

2010-07-27 Thread Yahel
One can also watch the google I/O presentation : Coding for Life -- Battery Life, That Is http://code.google.com/intl/fr-FR/events/io/2009/sessions/CodingLifeBatteryLife.html Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: How to let parent handle onclick event for ListView

2010-07-27 Thread CG
Thanks for the reply , I have tried to add onClickListener to a ListView but it throws exception to ask me to use onItemClickListener instead . I try with onItemClickListener but it does not seems to trigger ... , I am using a custom Adapter.

Re: [android-developers] Re: How to let parent handle onclick event for ListView

2010-07-27 Thread Mark Murphy
On Tue, Jul 27, 2010 at 4:13 AM, CG learn@gmail.com wrote: Thanks for the reply , I have tried to add onClickListener to a ListView but it throws exception to ask me to use onItemClickListener instead . Correct. I try with onItemClickListener but it does not seems to trigger ... , I am

[android-developers] Sony Ericsson X10 to Linux configuration

2010-07-27 Thread Johan Abramsson
Hi, one or two has asked about how to configure Sony Ericsson devices towards a linux computer. Here is a nice howto made by a developer. http://developer.sonyericsson.com/community/docs/DOC-3497 Kind regards /Johan Sony Ericsson Developer Support #SEDW -- You received this message because

[android-developers] Re: Calling a MapActivity from another activity

2010-07-27 Thread Pravin Parulekar
Let me share more details: MainListingA is a class that extends ListActivity. In it I have a simple onclick event that triggers the initialization of the new intent. Intent i = new Intent(MainListingA.this, DrawTheatreMap.class); When I use any other activity (except for DrawTheatreMap.class) as

[android-developers] Re: How to let parent handle onclick event for ListView

2010-07-27 Thread CG
Hi , thanks for your reply. Unfortunately , I am not using ListActivity, instead , it is normal Activity with a ListView. By the way , I have solved the problem by adding the onClicklistener in the getView() of the custom Adapter. @Override public View getView(int position,

[android-developers] Application looking stretched

2010-07-27 Thread Johan Abramsson
There has been some problems reported with applications looking stretched on some devices. The main entry point for documentation on how to handle diversed screen sizes is: http://developer.android.com/guide/practices/screens_support.html I sincerely recommend it for reading. In specific, lots

[android-developers] Re: What is a WeakReference?

2010-07-27 Thread Bob Kerns
Not even remotely similar. Note carefully your phrase increments a reference count in the addressed object. Right there, you've gone off the rails, placing a requirement on the referenced object -- that it be managed by reference counts, and in a way that's compatible with how Qt's pointers

[android-developers] X10 mini / X10 minipro: Text fields sometimes hidden below UI frame.

2010-07-27 Thread Johan Abramsson
This message applies for application being developed for Sony Ericsson X10 and X10 mini pro. Some developers have had problems wtih UI border frame in the bottom of the screen that may enter on top of the application. The frame launched in the bottom of the screen is a Language chooser which

[android-developers] Re: What is a WeakReference?

2010-07-27 Thread Bob Kerns
Actually, as I closed my browser, it suddenly struck me why we differ in opinion here. I look at Qt as being merely a library, embedded in a larger language environment. You're looking at it as a language itself. So long as you stay within the confines of Qt and it's primitives and objects, then

[android-developers] WebSDK Sony Ericsson and X10 phones

2010-07-27 Thread Johan Abramsson
This is a referandum of a small thread on Sony Ericsson Developer world site. --- Question - I have a couple of questions regarding the SVG support and the Sony Ericsson Web SDK: I can't make PhoneGap simulator work with SVG-documents. I can't even find information if it should work or not

[android-developers] Issues in changing custom title bar

2010-07-27 Thread Rajesh Pelluru
Hi, I have below requirement : App name is App1. Activity name is Activity1. But I want to display title bar of the Activity1 as MyTitle If i try to do that one , App1 appears for few seconds after that MyTitle is displaying in the title bar. I don't want to display

[android-developers] Re: Media streaming on Android

2010-07-27 Thread arsalank2
Hi Alex, Thanks a lot for the message, the video streamed fine after 'hinting' through MP4Box. On Jul 26, 1:37 pm, Alex Xin xinxi...@gmail.com wrote: Which format you tried to stream? If it's MP4, you need to hint that video in order to make it stream ready for RTP/RTSP/HTTP streaming. Use

[android-developers] Can't detect X10 phone through PCSuite

2010-07-27 Thread Johan Abramsson
A reference from Sony Ericsson web site: --- Question Hi all, I just downloaded and installed newly provided PCSuite for X10, but I couldn't connect my phone. How to solve this problem? Does this situation related with X10 USB Driver issue? Please help on this. Many thanks! -- Answer --- I

[android-developers] OpenGL extenstions issues on Sony Ericsson Xperia X10.

2010-07-27 Thread Johan Abramsson
A Reference on an article on Sony Ericsson Developer world. --- Question Hi, i wanted to report some bugs in the implementation of some OGL extensions i've been experiencing on the Xperia X10, here they are: Out of the two OpenGL extensions I tried including the widely used draw_texture

[android-developers] TextView wrapped in ScrollView, click problem !! (a bug of android 2.2 ?)

2010-07-27 Thread Tiger
The text view is on the bottom of the scroll view. When I scroll to bottom and click the text, the result is the scroll bar disappears, rather than the text view is clicked. If I don't click the text at once, the scroll bar will disappear a few seconds later. After

[android-developers] TextView wrapped in ScrollView, click problem !! (a bug of android 2.2 ?)

2010-07-27 Thread Tiger
Suppose that a text view is on the bottom of a scroll view. When I scroll to bottom and click the text, the result is the scroll bar disappears, rather than the text view is clicked. If I don't click the text at once, the scroll bar will disappear a few seconds

[android-developers] Re: Issues in changing custom title bar

2010-07-27 Thread Tiger
Did you use android:label=My Title in the xml ? On 7月27日, 下午5时44分, Rajesh Pelluru mail2pell...@gmail.com wrote: Hi, I have below requirement : App name is App1. Activity name is Activity1. But I want to display title bar of the Activity1 as MyTitle If i try to

Re: [android-developers] Issues in changing custom title bar

2010-07-27 Thread Webnet Android (Google)
Rajesh Pelluru wrote on 2010-07-27 11:44: Hi, I have below requirement : App name is App1. Activity name is Activity1. But I want to display title bar of the Activity1 as MyTitle If i try to do that one , App1 appears for few seconds after that MyTitle is

[android-developers] Re: allign text vertically in a text view

2010-07-27 Thread harshe
Thanks Paul.As u said, the following code works well . But it looks like a custom view , i cant see the textview itself. I have set the ContentView to main.XML only but still the views in the main.XML r not seen. am getting an output were i can see only the given string rotated -90 degrees in

Re: [android-developers] Re: Issues in changing custom title bar

2010-07-27 Thread Rajesh Pelluru
Nope . Actually I created layout custom_title_2 for my title bar and I added below code in my activity class requestWindowFeature(Window.*FEATURE_CUSTOM_TITLE*); setContentView(R.layout.*custom_title_1*); *this*.getWindow().setFeatureInt(Window.*FEATURE_CUSTOM_TITLE*, R.layout.*

Re: [android-developers] Re: Issues in changing custom title bar

2010-07-27 Thread Webnet Android
2010/7/27 Rajesh Pelluru mail2pell...@gmail.com: Nope . Actually I created layout custom_title_2 for my title bar and I added below code in my activity class If you want just set a string as activity's title then setTitle() method is all you need. -- You received this message because you are

[android-developers] Leaked Window changing orientation with SubMenu

2010-07-27 Thread Paolo
Hi there, I get a leaked window when I have a submenu visible on the screen and I rotate the screen. If it would be a Dialog I colud call dismiss() in the onStop() before to change the orientation, but with a SubMenu how do I can solve it? Thanks Paolo -- You received this message because you

[android-developers] How to change target build on Android project?

2010-07-27 Thread draf...@gmail.com
I currently have an Android project in Eclipse. I created it with a target build of 1.5 (sdk 3). Now I want to change it so that it has a minSdk of 3 and targetSdk of 8. To do this I see that I must build against the newest SDK (2.2) To do this in Eclipse I right click on my project, go to

[android-developers] How to install apk in device using window machine

2010-07-27 Thread Sohan badaya
Hi, I want to know how to install apk in device using window machine. Thanks and Regards, Sohan Badaya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] How to disable pop up blocker in emulator 2.1

2010-07-27 Thread Sohan badaya
Hi All, when i open some urls in emulator 2.1, it gives me message First disable pop up blocker. please let me know how to do it. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Transfer database file to Android

2010-07-27 Thread Doug Gordon
Actually not that large by today's standards -- just in the low megabytes (10 Mb I'd guess). The reason for the uncertainty is that it entirely depends on how much data the user has in their original database, which can vary widely. I can understand the web server solution, and of course I

[android-developers] Re: Regarding the surfaceview

2010-07-27 Thread tobias429
Had a similar issue. I think the problem is not that the callback method is not called, but rather that when a surfaceView gets destroyed and a new one created, also a new handler is created. See here for a solution to this that worked for me:

[android-developers] TabActivity and GLSurfaceView

2010-07-27 Thread Alimae
Hi, In my app, i have a TabActivity with 2 tabs. -Tab1 displays a web page (with WebViewClient) -Tab2 displays contains a FrameLayout with 2 SurfaceViews : The first SurfaceView contains the videocapture from the camera. The second surfaceview is a GLSurfaceView. The app works fine. I can

Re: [android-developers] Re: What is a WeakReference?

2010-07-27 Thread Kostya Vasilyev
Java also gives you enough rope to hang yourself. Just have to try a little harder to find it. Here is an example from production code ummm u some 12 years ago (written by someone else). class Item { String myKey; Hashtable myHashtable; . Item (Hashtable table, String key) {

Re: [android-developers] Re: Issues in changing custom title bar

2010-07-27 Thread Rajesh Pelluru
Actually I want to change layout title bar and it contains few images also On Tue, Jul 27, 2010 at 4:11 PM, Webnet Android webnet.andr...@gmail.comwrote: 2010/7/27 Rajesh Pelluru mail2pell...@gmail.com: Nope . Actually I created layout custom_title_2 for my title bar and I added

[android-developers] Re: How to install apk in device using window machine

2010-07-27 Thread RichardC
Install the USB driver (either from the SDK or sometimes from the device manufacturer). Then from the SDK\tools directory run adb install path to apk see http://developer.android.com/guide/developing/tools/adb.html#commandsummary for more info on the adb command On Jul 27, 11:58 am, Sohan

Re: [android-developers] Application looking stretched

2010-07-27 Thread Kostya Vasilyev
Johan, I think you got it backwards. supports-screens android:anyDensity=*true*/ is the good value to use. If the app still looks ugly after this (and android:smallScreens and friends are set as well), it means that application's layouts have to be re-done with device-independent units.

[android-developers] How to capture long press of menu button

2010-07-27 Thread Mathias Lin
How can I capture a long press of the device menu button in my application? I thought of an intent filter, but there's only an action called android.intent.action.SEARCH_LONG_PRESS, but nothing for the MENU button. I found that long press of the menu button actually does different things on

Re: [android-developers] Re: What is a WeakReference?

2010-07-27 Thread Kostya Vasilyev
Java also gives you enough rope to hang yourself. Just have to try a little harder to find it. Here is an example from production code ummm u some 12 years ago (written by someone else). class Item { String myKey; Hashtable myHashtable; . Item (Hashtable table, String key) {

Re: [android-developers] Re: INTENT_SEND and attached files

2010-07-27 Thread David Given
On 27/07/10 07:34, FrankG wrote: [...] When I read your email it sounds for me that you are able to adapt the email app on your platform. No. I'm looking at the email app source code to try and figure out how this whole area works, as it's largely undocumented. I don't have the ability to

[android-developers] Re: How to install apk in device using window machine

2010-07-27 Thread Sarwar Erfan
Do you mean that you want to install and .apk in Android phone and you have a Windows PC? And, the apk you want to install is not available in the Marketplace? Option 1: put your .apk file in some webserver. Then download that .apk using browser in the phone. When download is completed, you will

[android-developers] Background in PreferenceScreen

2010-07-27 Thread Nea
Is it possible to set a background image on a PreferenceScreen? I have tried the tag android:background=@drawable/some_background which can be set in for example a LinearLayout XML, but it doesn't work in the PreferenceScreen. -- You received this message because you are subscribed to the

[android-developers] Re: Background in PreferenceScreen

2010-07-27 Thread Neilz
I don't think so. As I got pointed out recently, the whole idea of this screen is to keep the standard Android look and feel, so if you want to customize it you have to build the screen from scratch yourself. On Jul 27, 12:42 pm, Nea ehsan@gmail.com wrote: Is it possible to set a background

Re: [android-developers] Background in PreferenceScreen

2010-07-27 Thread Kostya Vasilyev
It's certainly possible to change the corresponding PreferenceActivity theme in the manifest, e.g.: activity android:name=.PrefsActivity android:label=@string/prefs_activity_title *android:theme=@android:style/Theme.Light* /activity where public class PrefsActivity extends

[android-developers] Re: What is a WeakReference?

2010-07-27 Thread DanH
Not even remotely similar. Note carefully your phrase increments a reference count in the addressed object. Right there, you've gone off the rails, placing a requirement on the referenced object -- that it be managed by reference counts, and in a way that's compatible with how Qt's pointers

[android-developers] Re: Transfer database file to Android

2010-07-27 Thread DanH
I'm guessing that there are services somewhere that will allow users to create accounts and upload/download files, keeping them private. Certainly Flickr and several other photo sites do this for photos. Google probably even has something (Google Docs?) that would work. On Jul 27, 6:04 am, Doug

[android-developers] Re: Market comments disappearing over last few days

2010-07-27 Thread gcstang
I've seen them disappear a lot over the last month or two. On Jul 26, 9:29 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Marking a comment as spam only removes it from the marker's device, as far as I know, it has no effect on anything else. Perhaps if enough users mark a comment

[android-developers] Sending a String over Bluetooth

2010-07-27 Thread perumal316
Hi All, I am trying to establish a server (J2SE) and client (Android). The client will send a string over to the server over Bluetooth. For Android the code snippet is as below: BluetoothAdapter adapter = null; adapter = BluetoothAdapter.getDefaultAdapter(); BluetoothDevice device =

[android-developers] Re: Market comments disappearing over last few days

2010-07-27 Thread Geefer
Well as of this morning, when I look on my phone (running 1.5) I have only ONE comment left!!! - and that is a comment I left to correct some misinformation put by another user. When I look on my dev console there are still 6 showing but none of the English language positive ones are left and 3

[android-developers] Re: locale change does not affect menu

2010-07-27 Thread Engin Arslan
any ideas? On Jul 23, 3:17 pm, Engin Arslan enginarsla...@gmail.com wrote: Specifically,menulanguage changes to English (which is default language) when I try to changelocale. And then it does not change any other language On Jul 23, 2:18 pm, Engin Arslan enginarsla...@gmail.com wrote:

Re: [android-developers] Re: Wifi getScanResults() on Emulator

2010-07-27 Thread Kostya Vasilyev
Hi, I've written up the way I handle debugging Wifi-specific application in the emulator here: http://kmansoft.wordpress.com/2010/07/27/debugging-wifi-in-the-emulator/ Hope this is useful. -- Kostya 27.07.2010 12:08, elham пишет: Ok . Will it be possible share the snippet which sets the

[android-developers] Re: AsyncTask's cancel method - possible bug

2010-07-27 Thread Eric Mill
Hi Romain, Thanks for the response. What was the general effect of the race condition? This might explain why I think that I see this behavior consistently when debugging (when everything is slow) and inconsistently otherwise (when things are fast, but I can't verify what's happening). Is that

[android-developers] listactivity within a layout

2010-07-27 Thread charles berman
I know this may be a pretty simple question, but im having problems trying to find what im looking for. I have written an application that uses a listview activity. but now that i think more about it, i would like to have other items included to give the status of the app, etc that i just want

[android-developers] Facebook chat application

2010-07-27 Thread kostaspap
Hello all, I am trying to create a facebook chat android app based on the information here: http://davanum.wordpress.com/2008/12/29/updated-xmpp-client-for-android/ [the source code can be downloaded right after the screenshots] The app and code works just fine when I try to login to the gmail

[android-developers] Re: C2DM NotRegistered error when sending a message

2010-07-27 Thread D12ASG
Still have not received any mail to say i'm white listed but guess what ITS WORKING! On 22 July, 23:49, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jul 21, 2010 at 11:39 AM, D12ASG blade6...@gmail.com wrote: The thing is as soon as i get the registration id i am sending it to my

[android-developers] Re: Component-wise program on android market?

2010-07-27 Thread nemo
Thanks a lot! Does Android market provide the mechanism about Digital right management? And what's the main different to implement a component-wise program with 'Service' or just a normal class? I am thinking about providing some special purpose components on android market.. Thanks for any

Re: [android-developers] Facebook chat application

2010-07-27 Thread Jim Blackler
Does an exception fire, and if so could you paste it here? On 27 July 2010 13:59, kostaspap kostaspa...@gmail.com wrote: Hello all, I am trying to create a facebook chat android app based on the information here: http://davanum.wordpress.com/2008/12/29/updated-xmpp-client-for-android/ [the

[android-developers] Re: locale change does not affect menu

2010-07-27 Thread RichardC
You have already asked this and got a - don't do this - reply from Dianne Hackborn. DH You are blowing away the current configuration in the resources with your own you have created that is not initialized. Things aren't going to work when you do that. You could improve that by giving it a

[android-developers] How to code ContactsContract so that it runs in 2.2 and doesn't crash 1.5?

2010-07-27 Thread draf...@gmail.com
I have the following piece of code in my Android application that looks up a contacts ID, I have just changed the target from 1.5 to 2.2 but with a min SDK of 3 (1.5) so that I can use the ContactsContract Uri in 2.2 and the People Uri in 1.5. However the code leads to the following error when

[android-developers] Re: How to capture long press of menu button

2010-07-27 Thread Joseph Earl
I don't think you can. Pressing and holding the menu button to show the soft keyboard exists for compatibility reasons - I'm not sure it would be wise to allow developers to disable it. On Jul 27, 12:18 pm, Mathias Lin m...@mathiaslin.com wrote: How can I capture a long press of the device menu

Re: [android-developers] Re: Scanning a Text File In Android

2010-07-27 Thread TreKing
On Mon, Jul 26, 2010 at 7:13 PM, anil kukreti success.anil...@gmail.comwrote: I could be wrong in assuming to read the telephone no.s from an image fileby scanning it. I'm sure it's technically possible, I just don't know how often you're going to find pictures of telephone numbers on

Re: [android-developers] detecting home screen, idle of device

2010-07-27 Thread TreKing
On Mon, Jul 26, 2010 at 9:47 PM, optimusgeek choongb...@gmail.com wrote: I want to start my activity when the device is in idle(home screen). Why in the world would you want to do this? Is that reasonable?? Reasonable is debatable. Looks like a hack. I'm not sure there is more good

[android-developers] How to prevent Runtime exception from SlidingDrawer onMeasure???

2010-07-27 Thread pnk444
Hi, I have used sliding drawer in my code as follows. LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical FrameLayout android:layout_width=fill_parent android:layout_height=wrap_content android:measureAllChildren=true //Some views

[android-developers] Re: listactivity within a layout

2010-07-27 Thread Joseph Earl
Just use a standard Activity, you can still use ListView and other components in it. So you could have something like: LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical !-- Header -- RelativeLayout android:layout_width=fill_parent

[android-developers] Re: detecting home screen, idle of device

2010-07-27 Thread Joseph Earl
It would be reasonable to start a service when the device is idle. I think it would be unreasonable to start a visible activity without user interaction. The user will start your app when they want to. On Jul 27, 3:47 am, optimusgeek choongb...@gmail.com wrote: I want to start my activity when

Re: [android-developers] Re: Unparsed aapt error

2010-07-27 Thread Patrick Noffke
Bug submitted here: http://code.google.com/p/android/issues/detail?id=10012 Others may want to star the issue so it gets some visibility. Thanks. On Mon, Jul 26, 2010 at 10:08 AM, RichardC richard.crit...@googlemail.comwrote: b.android.com On Jul 26, 2:17 pm, Patrick Noffke

[android-developers] Re: Resources find rule

2010-07-27 Thread Joseph Earl
Yes. If it doesn't something going's wrong. On Jul 27, 5:11 am, Wong Ho Wa howa.w...@gmail.com wrote: Dear all, Let say in the res directory we have two directories drawable and drawable-hdpi. drawable contains icon.png while drawable-hdpi has nothing inside. if drawable-hdpi is matched. Will

Re: [android-developers] How to prevent Runtime exception from SlidingDrawer onMeasure???

2010-07-27 Thread TreKing
On Tue, Jul 27, 2010 at 9:42 AM, pnk444 sivareddy.ra...@gmail.com wrote: How can i prevent RunTimeException? Determine what the exception is and what's causing it. Then don't do that. Where am i doing wrong? Not providing enough information. What's the full stack trace? What does the

[android-developers] Re: Color of a ListView Header

2010-07-27 Thread Joseph Earl
A header item is ALWAYS at the top of the list, and a footer always at the bottom. Doesn't make a lot of difference unless items in your list change order. On Jul 27, 12:32 am, John jo-d...@hotmail.com wrote: Okay, got it figured out. android:background=#FF00FF00 -- You received this message

[android-developers] Re: Issues in changing custom title bar

2010-07-27 Thread Joseph Earl
Don't use FEATURE_CUSTOM_TITLE. This leads to a brief period at the beginning of your app when the default title bar is visible. Instead use android:theme=@android:style/Theme.NoTitleBar in your manifest (do not use requestWindowFeature together with FEATURE_NO_TITLE as you will still get a flash

Re: [android-developers] Re: Calling a MapActivity from another activity

2010-07-27 Thread TreKing
On Tue, Jul 27, 2010 at 3:47 AM, Pravin Parulekar pparu...@gmail.comwrote: Intent i = new Intent(MainListingA.this, DrawTheatreMap.class); The only thing that sticks out from this is the fact that you're scoping this. Are you doing this in an inner class or something? Not that is should really

Re: [android-developers] How to code ContactsContract so that it runs in 2.2 and doesn't crash 1.5?

2010-07-27 Thread Kostya Vasilyev
Hi, The offending line is this: ContactsContract.Contacts Even though you're not referencing this nested member on the execution path, the Java VM still tries to resolve all external references made by your code. This is done when your code is first loaded into memory for execution, before

[android-developers] Re: How to capture long press of menu button

2010-07-27 Thread Mathias Lin
Thanks for your reply. Not sure though what you mean with compatibility reasons - in fact all phones handle it differently anyways? Why wouldn't it be wise to allow developers to disable it? I didn't fully get the idea. About disabling such functions: there are situations where it makes sense to

[android-developers] Re: Annotation Processing in Android java Builder

2010-07-27 Thread Robert Schmid
Never mind. I was wrong. I got it working. On Jul 26, 9:12 pm, Robert Schmid robertsch...@airstriptech.com wrote: I have some custom Annotations and AnnotationProcessors I want to use. However, the android JRE does not include the javax.lang.annotation package and it appears the android java

[android-developers] Attaching to DDMS

2010-07-27 Thread WindowsNT
I am trying to build my own IDE to write android apps (to get rid of eclipse eventually) and I am not sure how to debug. OK to build, I got the apk, but what do I do after I have connected to port 8700 to DDMS ? Is there a description of the protocol that DDMS uses so I can use it

Re: [android-developers] Leaked Window changing orientation with SubMenu

2010-07-27 Thread TreKing
On Tue, Jul 27, 2010 at 5:52 AM, Paolo brand...@gmail.com wrote: I get a leaked window when I have a submenu visible on the screen and I rotate the screen. Weird. Seems like something the framework should handle automatically ... If it would be a Dialog I colud call dismiss() in the

Re: [android-developers] Re: AsyncTask's cancel method - possible bug

2010-07-27 Thread Romain Guy
Post-froyo means after froyo, so not in froyo :) On Tue, Jul 27, 2010 at 5:53 AM, Eric Mill kproject...@gmail.com wrote: Hi Romain, Thanks for the response.  What was the general effect of the race condition? This might explain why I think that I see this behavior consistently when

[android-developers] Why are all audio formats always passed to the Music Player ?

2010-07-27 Thread sasq
I am writing a music player for esoteric music formats, and have defined mime types for them in my Manifest. However, the standard music player is always started even though it can't handle the format. Looking at logcat I see; : D/MediaScannerService( 688): IMediaScannerService.scanFile: /

[android-developers] Multiple Eclipse projects no longer get included

2010-07-27 Thread junker37
Here's my setup. I have 1 project that has all the resources my application needs. This project has the android builder which produces the apk. This project references a few other projects that don't have resources. After updating my android SDK today, the apk that is produced no longer

[android-developers] Re: How to prevent Runtime exception from SlidingDrawer onMeasure???

2010-07-27 Thread DanH
You need to provide the full stack trace, back to the origin of the exception that triggered the RunTimeException. Then the cause is usually fairly obvious, or at least you have a good start on debugging it. On Jul 27, 9:42 am, pnk444 sivareddy.ra...@gmail.com wrote: Hi,    I have used

[android-developers] Re: Leaked Window changing orientation with SubMenu

2010-07-27 Thread Paolo
I thought Android managed it for me, too. But it doesn't seem to be so... Now I try your suggestion... I inform you soon. thanks. On 27 Lug, 18:15, TreKing treking...@gmail.com wrote: On Tue, Jul 27, 2010 at 5:52 AM, Paolo brand...@gmail.com wrote: I get a leaked window when I have a submenu

Re: [android-developers] listactivity within a layout

2010-07-27 Thread TreKing
On Tue, Jul 27, 2010 at 7:56 AM, charles berman charles.heath.ber...@gmail.com wrote: I have written an application that uses a listview activity. but now that i think more about it, i would like to have other items included to give the status of the app, etc that i just want to be

[android-developers] Strange Question

2010-07-27 Thread Anthoni
Hello Developers, This is going to sound really strange but please bear with me. I have developed a couple of applications and although they are not the worlds greatest they do have quite a good loyal following. Now unfortunately I have to go into hospital for a few months (maybe more) and

[android-developers] null returned for number

2010-07-27 Thread crime fighter
I am having the EXACT 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] Access to AT command interface of GSM radio

2010-07-27 Thread Alexey Vdovin
Hi, I'm looking for any tricks to intercept USSD response from my carrier to receive my current balance. Do anybody know how to get access to AT command interface of GSM radio? --- Best Regards Alexey -- You received this message because you are subscribed to the Google Groups Android

[android-developers] LocationManager/Listener, use gps data

2010-07-27 Thread ArtworkAD
Hi all, I am working on a gps gateway to provide my application with gps data. so I have set up a class: import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; public class GeoDataGateway{ private

[android-developers] Re: statelistdrawable in xml

2010-07-27 Thread JavaMan
I've got the same stupid problem!! How is this possible in Eclipse? I'm using Eclipse Galileo. On Jun 8, 10:18 pm, schwiz sch...@gmail.com wrote: Thanks for the reply Kumar, but what I am asking is how do you get eclipse to generate this xml file for you.  It initially complains and doesn't

[android-developers] switch soundtracks of an mp4 file

2010-07-27 Thread rosi
Hey, I have written a little videoplayer for android and now I'm looking for a solution to switch between two or more soundtracks which are in the video container. Is this even possible with the standard mediaplayer class? -- You received this message because you are subscribed to the Google

[android-developers] About NexusOne Android2.1 contacts problem

2010-07-27 Thread Chris
Dear All, In NexusOne Android 2.1, I add a new contact and type faimlay and last name use language except number and Englaish. I find I can't delete it. Can anyone explain this problem? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers

  1   2   3   >