[android-developers] Re: Anybody know the number of Android user that can buy app against those who cant?
Hard to tell the number of users but the list of countries is here: http://www.google.com/support/androidmarket/bin/answer.py?hl=enanswer=138294 On Dec 15, 7:52 am, RobGThai thisisr...@gmail.com wrote: While Android seems to be raging recently, however not all users are able to buy application through Market (Thanks Google and their limited policy). I just don't know why should I developing an app for a platform that doesn't really convinced me that it will make me some profit. At the very least, Google should be able to provide the number of users logging in to the Market and download paid applications. I have an unrooted phone sitting here and like 65% of the apps (if not more) consists of some show-random-photos and sound-clips, I don't even know if I should call them applications any more. So unless the apps get some recommendation from somebody, it is more than likely that it will not get hit unless user know what they are looking for. The problem comes from the ability for developer to sell and buyer to buy. It doesn't matter how many phone will be bought in the following year or how many model will come out. If the user can't buy it, those number are meaningless to developers. The whole concern was actually from people asking why am I doing it when I dont get paid. It's actually a very good question. Not to mention couple of iPhone developers that suggest AppStore. It's all based on some article on the net and people around me though. Has anybody feeling that way as well? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android = 1.6: Invalid View object passed to onListItemClick()?
HiHo! On Mon, 2009-12-14 at 11:06 -0800, Romain Guy wrote: v.setBackgroundResource(R.color.todo_item_highlighted); Here's your problem. Views are reused by ListView (so if you change the background of item #1, it might be reused as item #4 later), You mean the reuse of convertView in the following code of core/java/android/widget/ArrayAdapter.java? private View createViewFromResource(int position, View convertView, ViewGroup parent, int resource) { View view; TextView text; if (convertView == null) { view = mInflater.inflate(resource, parent, false); } else { view = convertView; } Why is this not documented in the documentation of onListItemClick() giving a warning that v may not be as what the developer expects? this type of change must be done from the Adapter's getView() method. You mean something like the following? @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setListAdapter(new ArrayAdapter(this, R.layout.todo_list_row, new String[] { Phobos, Demos, Venus, Pluto, Mercury }) { @Override public View getView(int position, View convertView, ViewGroup parent) { TextView t = (TextView) getLayoutInflater().inflate( R.layout.todo_list_row, parent, false ); t.setText(getItem(position).toString()); if (position == selectedPos) { t.setBackgroundResource( R.color.todo_item_highlighted); } return t; } }); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); selectedPos = position; } Thank you. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- Best regards, Eus (FSF member #4445) In this digital era, where computing technology is pervasive, your freedom depends on the software controlling those computing devices. Join free software movement today! It is free as in freedom, not as in free beer! Join: http://www.fsf.org/jf?referrer=4445 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android = 1.6: Invalid View object passed to onListItemClick()?
Why is this not documented in the documentation of onListItemClick() giving a warning that v may not be as what the developer expects? Because v is always what you expect. The problem is what happens to v after the click. You mean something like the following? [...] Yes, except that when pos != selectedPos you must set the normal background. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AutoCompleteTextView doesn't work with android:style/Theme.Light
Hi Romain and Pooper, Romain Guy wrote: This has been fixed since 1.5. I just stumbled into this one too and I experience the same as Pooper even under 2.0.1. So either I'm doing something silly or the fix was not correct. I found a bug filed about a week ago (including source): http://code.google.com/p/android/issues/detail?id=5237 As far as I can tell, this also occurs when setting Light from the manifest - but it works correctly with searchable and similar. Best / Jonas On Sat, Nov 14, 2009 at 5:02 AM, Pooper code...@gmail.com wrote: I can't seem to get AutoCompleteTextView to work with Theme.Light The problem is the autocomplete popup draws the suggestions text in white on a white background. You can only see what the suggestions are after they are selected, because then the white text is drawn over top of the selector background. It works fine with the default theme but not with Theme.Light. I am using android version 1.5 My code is pretty much identical to the the Hello AutoCompleteTextView sample, except with android:style/Theme.Light and a different String array for the suggestions. I tried setting the android:textColor attribute. That only set the color for the AutoCompeleteTextView input box, not for the suggestion's popup. Right now the only way to get my app to work properly is to use the default theme. Does anyone else have the same issue or know of a way to programically set the suggestion's popup text color or background? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Contacts SyncAdapter issues
Any feedback would be appreciated... thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to 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: Simple Call App - Uri?
AJ wrote: I am trying to make a very very simple app as a beginner but it does not work. The app just has a text bar and a button. Somehow, the call button does not start a call. You are using ACTION_CALL. Do you have the CALL_PHONE permission? You might want to start with ACTION_DIAL. Here is a sample application that uses ACTION_DIAL: http://github.com/commonsguy/cw-android/tree/master/Phone/Dialer/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 11-15 January 2010: http://onlc.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] Good android book
Thanks All for your kind support :) Regards, HD On Mon, Dec 14, 2009 at 7:18 PM, TreKing treking...@gmail.com wrote: Do a search for Android Book(s) in this group, this is asked all the time. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Mon, Dec 14, 2009 at 3:18 AM, hafez ahmad hafezad...@gmail.com wrote: Dears, can someone recommended a good android development book. Regards, HD -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Hafez A.Ahmad Amman-Jordan mobile: 962-795708728 http://blog.hafezadnan.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: Accessing contact's phone numbers
I'm still facing a problem by simply accessing the phone's contacts! The following works on all API levels (1 to 6) apart 5 (which is Android 2.0): getContentResolver().query(People.CONTENT_URI, null, null, null, People.DISPLAY_NAME); Any suggestion to let it work on API level 5? Best, Andrea On Dec 7, 7:40 pm, Dmitri Plotnikov dplotni...@google.com wrote: Take a look at this sample app that makes use of both old and new APIs: http://code.google.com/p/android-business-card/source/browse/#svn/tru... In the redesign of the Contacts API we had several goals: add support for multiple types of accounts, add support for multiple accounts, add support for account-specific data types, etc. These goals were incompatible with the overall structure of the old APIs, so we had to redisign them from scratch. This was a major step, sort-of like going from English measurement units to metric system or going from a manual transmission car to automatic. This type of change is supposed to be a rare event, painful for everyone, but ultimately the platform to a whole new level. Cheers, - Dmitri On Mon, Dec 7, 2009 at 8:12 AM, agirardello andrea.girarde...@gmail.com wrote: Sorry for being away... I managed to get it to work, however I complain with the approach used in developing the API! Apparently, searching for a contact based on the phone number has changed in Android 2.0 and the old good way of doing that isn't working anymore (Why). I agree that now it is much more intuitive, however it is a mess for the compatibility (unless I was doing it wrong in API level 3 and 4, any lines of code to share?). Here the code for API level = 5: Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number)); Cursor c = context.getContentResolver().query(lookupUri, null, null, null, null); if (c.getCount() 0) { c.moveToFirst(); return c.getString(c.getColumnIndex( PhoneLookup.DISPLAY_NAME )); } else { // Not found, do something else... } In any case, to be compatible with API level = 4 PhoneLookup cannot be referenced in the code (as well as other things) and must be loaded through reflection. Am I wrong? Other solution? Looking forward to hear something from a more experienced Android developer... Best, Andrea ;-) On Dec 5, 5:36 pm, ghassett greghass...@gmail.com wrote: Yes Dmitri, this is exactly what I am doing -- I am not manually inserting records into thecontactsdb like the test case does, but there is definitely a contact with a mobile phone number 617939 (with real digits, not xs), and when I open a cursor on the query: Uri filterUri1 = Uri.withAppendedPath(Phones.CONTENT_FILTER_URL, 617939); // with real digits, not xs I get back a valid cursor, but no rows (moveToFirst() returns false) -- on 2.0 emulator only. On 1.6 emulator, it works fine. // greg // On Dec 4, 7:21 pm, Dmitri Plotnikov dplotni...@google.com wrote: Hi Greg, Take a look at the testPhonesFilterQuery unit test we have for verifying the behavior in question: http://android.git.kernel.org/?p=platform/packages/providers/Contacts... Is what it's doing correct? Is it different from what you are doing? Thank you, - Dmitri On Fri, Dec 4, 2009 at 4:00 PM, ghassett greghass...@gmail.com wrote: Hi Dmitri -- I am not sure that the old API is still functional. I am using what I think is the standard way of getting a display name from a phone number -- see the code below -- and it functions on a 1.6 emulator but on on a 2.0 emulator. Am I doing something wrong? Is there an example somewhere of how to get a contact name from a phone number that will function in 1.5, 1.6, and 2.0? Here's the code -- it works when run in the 1.6 emulator, but not in the 2.0 emulator (Cursor comes back non-null, but there are no records so moveToFirst returns false): public String getDisplayName (ContentResolver contentResolver) { String retval = mPhoneNumber; Cursor cursor = contentResolver.query( Uri.withAppendedPath (Contacts.Phones.CONTENT_FILTER_URL, Uri.encode(mPhoneNumber)), new String[] {Contacts.Phones.DISPLAY_NAME }, null, null, null); if (cursor != null cursor.moveToFirst()) { retval = cursor.getString(0); } return retval; } // thanks // greg // On Oct 30, 3:05 pm, Dmitri Plotnikov dplotni...@google.com wrote: It's deprecated, not removed. The old API is still functional, but with restrictions: 1. If your app was using something non-public, that part is likely to break. We tested a bunch of apps on the market against
[android-developers] Draw fullscreen alpha-image is too slow
What I'm trying to achieve is quite simple: I want to draw a fullscreen image (RGB_565). On top of it, I'd like to draw a fullscreen image with an alpha channel. My problem is that I get terrible performance, around 30 fps. Is there any way to speed things up? I use a HTC Hero, shouldn't the hardware be capable of faster rendering? (without OpenGL). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] create apk with aapt tool
Hi, I've been trying to create my .apk with aapt tool, but I couldn't get it. can somebody 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
Re: [android-developers] Different behaviour between SDK 1.6 and SDK 2.0 - bug? Please help.
Somebody? Any updates? On Tue, Dec 1, 2009 at 9:01 AM, EvgenyV evgen...@gmail.com wrote: Hi! I got infinit loop when trying to run tab activity which creating dialog. Before I'm pressing the dialog button OK or Cancel button the system is starting my tab main activity again. It worked fine in all previouse versions. The log report: *11-28 16:59:38.607: WARN/UsageStats(59): Something wrong here, didn't expect evgeny.converter to be resumed 11-28 17:12:06.498: ERROR/WindowManager(269): android.view.WindowLeaked: Activity evgeny.converter.TabMain has leaked window com.android.internal.policy.impl.phonewindow$decorv...@43cfd4f0 that was originally added here * Thanks in advance, Evgeny The code is as following: Launcher code: SharedPreferences _State; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final TabHost tabHost = getTabHost(); tabHost.addTab(tabHost.newTabSpec(tabMeasures) .setIndicator(res.getString (R.string.tab_measures_title), res.getDrawable(R.drawable.measures_tab_32)) .setContent(new Intent(this, MeasuresMain.class))); tabHost.addTab(tabHost.newTabSpec(tabClothes) .setIndicator(res.getString (R.string.tab_clothes_title), res.getDrawable(R.drawable.clothes_tab_40)) .setContent(new Intent(this, ClothesMain.class))); tabHost.addTab(tabHost.newTabSpec(tabSettings) .setIndicator(res.getString (R.string.tab_settings_title), res.getDrawable(R.drawable.settings_tab_40)) .setContent(new Intent(this, ConverterViewSettings.class))); tabHost.setBackgroundResource(R.drawable.background_main); _State = getSharedPreferences(Settings, MODE_WORLD_READABLE | MODE_WORLD_WRITEABLE ); if(_State.getBoolean (ConverterUtil.EVG_IS_SHOW_LICENSE_AGREEMENT, true)) showDialog(1); } @Override protected Dialog onCreateDialog(int id) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setPositiveButton(R.string.lblButtonAgree, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { try { SharedPreferences.Editor editor = _State.edit(); editor.putBoolean(ConverterUtil.EVG_IS_SHOW_LICENSE_AGREEMENT, false); editor.commit(); } catch (Exception e) { e.printStackTrace(); } } }); builder.setNegativeButton(R.string.lblButtonExit, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { finish(); } }); LayoutInflater inflater = LayoutInflater.from(this); builder.setTitle(R.string.lblLicenseCaption); builder.setIcon(R.drawable.my_converter_32); ScrollView layout = (ScrollView) inflater.inflate (R.layout.about, null); ((TextView)layout.findViewById(R.id.txtAbout)).setText (R.string.lblLicenseText); ((TextView)layout.findViewById(R.id.txtMyEmail)).setVisibility (LinearLayout.GONE); builder.setView(layout); return builder.create(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Alternate line service support on Android 1.5
Does anyone have a idea about Alternate line service implementation on android 1.5 sdk?\ I wanted to know how to read the line 2 information from sim as the existing telephone manager doesn't suppor this feature. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Audio options for music app - should I use JET?
Wow, I didn't realize my initial message got cut off. Too finish, I was thinking JET may be too limited since users must be able to: 1) Change the tempo of the notes being played real time and 2) Record their own sounds that can be played as notes. Is this possible when using JetPlayer? The JetPlayer interface looks pretty simple. It looks like you can only control which tracks play, and transposing the tracks, but I don't see any controls for tempo. Akitto- I assume you are referring to this: http://www.youtube.com/watch?v=-0UmSQeWsJc I will check it out. Thanks for the tip. On Dec 14, 10:29 pm, k_day kevin.r@gmail.com wrote: I am currently working on a music app and am starting to think about how audio playback should work. At any given point in time, a user is able to play multiple notes from multiple instruments. My initial thought was to use JET, but I am thinking it may be too limited given that I also would like to: 1) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Questions: Bitmap
I was reading something and came across a few statements that I failed to understand fully: Q1. Bitmap memory is different than heap memory.What could this possible mean? Q2. What is a native Bitmap? Q3. Decoding a 64x64 .png resource will give a 64x64, 32-bit in-memory bitmap.What is a in-memory bitmap? Can anyone explain these to me please; or share links that can help understand them? 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] please help me to cut a picture from a vedio,how to carry out.
i wanna to cut a picture when the vedio is playing , have no idear ,please help me ,guys. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 keep userdefined data in content providers
Hi, We can create tables for strings ,int ,etc by using contentproviders. Similarly is there any possibilites to create a table which can hold an object (object may have different data elements); If possible can any one give me sample 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: Immediate Need for Multiple Requirements
Good idea Alex, I'll even do a filter that writes an email back then deletes the thread. Best Regards, Zied Cordialement, Zied Hamdi Gérant www.larueacote.fr 06 42 69 54 40 Rejoindre mon réseau de contacts sur Viadeo : http://www.viadeo.com/invitationpersonnelle/0022cbh9e10sm7n 2009/12/14 maisonobe alexandre alexma...@gmail.com everybody should write a mail back so they'll understand posting here was not a good idea . alex 2009/12/14 Maps.Huge.Info (Maps API Guru) cor...@gmail.com You may have noticed the original message has been removed but the quoted text in your replies lives on. I suggest deleting your messages from this thread so that it dies quietly. Until then, the payload this spammer released will live on. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. 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
Re: [android-developers] Re: Immediate Need for Multiple Requirements
Just about how to do that: 1. activate the labs option canned responses in your gmail parameters (the labs panel) 2. create a well insulting canned response 3. add a filter with value *krishna.i...@gmail.com* the field *to: * 4. put your nice answer as the action on mail receiving (i think it's also possible to make him pay for all the old mails by checking apply to old messages) 4a. optionally and maybe it will no more be an option if more people do these steps, check the delete option box Hope it will fill his mail box so he can't find which mails are relevant for his recruitment. So let's just do it :-) Best Regards, Zied Hamdi Cordialement, Zied Hamdi Gérant www.larueacote.fr 06 42 69 54 40 Rejoindre mon réseau de contacts sur Viadeo : http://www.viadeo.com/invitationpersonnelle/0022cbh9e10sm7n 2009/12/15 Zied Hamdi zha...@into-i.fr Good idea Alex, I'll even do a filter that writes an email back then deletes the thread. Best Regards, Zied Cordialement, Zied Hamdi Gérant www.larueacote.fr 06 42 69 54 40 Rejoindre mon réseau de contacts sur Viadeo : http://www.viadeo.com/invitationpersonnelle/0022cbh9e10sm7n 2009/12/14 maisonobe alexandre alexma...@gmail.com everybody should write a mail back so they'll understand posting here was not a good idea . alex 2009/12/14 Maps.Huge.Info (Maps API Guru) cor...@gmail.com You may have noticed the original message has been removed but the quoted text in your replies lives on. I suggest deleting your messages from this thread so that it dies quietly. Until then, the payload this spammer released will live on. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] java sound api android 1.6 support
Hello all, I want to port an existing java program into android, the problem is that this program uses java sound api and after some googling I found that this api is not supported in the first android version so the question is is if android 1.6 version supports this api. Also if it doesn't is there an other api i can use (I want to avoid saving to a file and reading from it). thanks in advances maxsap -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Contacts FAQ?
Hi everyone, I encountered an issue while configuring my own account for android contacts sync. When the user choses to add a new contact to the custom account, only the name fields and the photo are showed. This behaviour can be found in the ExternalSource.java android source file. My question is, if I don't want to add custom contacts fields for my account, how can I configure the account to show all the standard fields in the contacts application in the same way the google account does? Thank you Carlo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] java sound api android 1.6 support
maxsap wrote: Hello all, I want to port an existing java program into android, the problem is that this program uses java sound api and after some googling I found that this api is not supported in the first android version so the question is is if android 1.6 version supports this api. No, it does not. Also if it doesn't is there an other api i can use (I want to avoid saving to a file and reading from it). Look at android.media.AudioTrack: http://developer.android.com/reference/android/media/AudioTrack.html -- 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] Re: create apk with aapt tool
I found this solution without aapt. Is it correct? ant release keytool -genkey -alias your.key.alias -keyalg RSA \ -validity 2 -keystore C:\YourKey\your.key.file jarsigner -verbose -keystore C:\YourKey\your.key.file \ -signedjar bin\proyecto-signed.apk \ bin\proyecto-unsigned.apk your.key.alias On 15 dic, 10:37, Carlos Pérez takut...@gmail.com wrote: Hi, I've been trying to create my .apk with aapt tool, but I couldn't get it. can somebody 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] Forward search queries to one single activity that handles search
have an activity handling search (ACTIVITY_1), which works perfectly when I use the search (via SEARCH button on the phone) within/from this activity. However, when I use search from another activity (ACTIVITY_2..x) by implementing onNewIntent and forward the query string to my Search_Activity.class (ACTIVITY_1) it always pauses ACTIVITY_2 first and then goes to onCreate() of ACTIVITY_2. @Override protected void onNewIntent(Intent intent) { Log.i(TAG, onNewIntent()); if (Intent.ACTION_SEARCH.equals(intent.getAction())) { Log.i(TAG, = Intent: ACTION_SEARCH =); Intent myIntent = new Intent(getBaseContext(), Search_Activity.class); myIntent.setAction(Intent.ACTION_SEARCH); myIntent.putExtra(SearchManager.QUERY, intent.getStringExtra (SearchManager.QUERY)); startActivity(myIntent); } } * Why does it recreate my ACTIVITY_2 when it is already there and doesn't go to onNewIntent directly? * Is there another way I can forward search queries directly to ACTIVITY_1? For example via a setting in the Manifest.xml * Is it possible to generally forward all search queries automatically to ACTIVITY_1 without even implementing onNewIntent in all the other activities? Currently I have to put an intent-filter in every single activity to activate my custom search there and forward the query then to the activity that handles search via the onNewIntent (as shown above). activity android:name=.Another_Activity android:theme=@style/MyTheme intent-filter action android:name=android.intent.action.SEARCH / category android:name=android.intent.category.DEFAULT / /intent-filter meta-data android:name=android.app.searchable android:resource=@xml/searchable / /activity -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Please help! mkdirs() on sdcard fails silently, no idea what is the problem.
Hi all, My app suddenly could not create a directory on sdcard using mkdirs(), it was working fine before. As the method throws no exception, I have no idea what the cause is. I have checked for a duplicate directory/file of same name, and there is none. I did remove and insert sd card but to no avail. Please help, thanks. AS -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Forward search queries to one single activity that handles search
As I understand it you only want the intent-filter in the activity that does the searching. The intent filter says the to platform hey I can do this Then in the activities you want to use the search you can startActivityForResult() On Dec 15, 12:11 pm, Stefan Klumpp stefan.klu...@gmail.com wrote: have an activity handling search (ACTIVITY_1), which works perfectly when I use the search (via SEARCH button on the phone) within/from this activity. However, when I use search from another activity (ACTIVITY_2..x) by implementing onNewIntent and forward the query string to my Search_Activity.class (ACTIVITY_1) it always pauses ACTIVITY_2 first and then goes to onCreate() of ACTIVITY_2. @Override protected void onNewIntent(Intent intent) { Log.i(TAG, onNewIntent()); if (Intent.ACTION_SEARCH.equals(intent.getAction())) { Log.i(TAG, = Intent: ACTION_SEARCH =); Intent myIntent = new Intent(getBaseContext(), Search_Activity.class); myIntent.setAction(Intent.ACTION_SEARCH); myIntent.putExtra(SearchManager.QUERY, intent.getStringExtra (SearchManager.QUERY)); startActivity(myIntent); } } * Why does it recreate my ACTIVITY_2 when it is already there and doesn't go to onNewIntent directly? * Is there another way I can forward search queries directly to ACTIVITY_1? For example via a setting in the Manifest.xml * Is it possible to generally forward all search queries automatically to ACTIVITY_1 without even implementing onNewIntent in all the other activities? Currently I have to put an intent-filter in every single activity to activate my custom search there and forward the query then to the activity that handles search via the onNewIntent (as shown above). activity android:name=.Another_Activity android:theme=@style/MyTheme intent-filter action android:name=android.intent.action.SEARCH / category android:name=android.intent.category.DEFAULT / /intent-filter meta-data android:name=android.app.searchable android:resource=@xml/searchable / /activity -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: java sound api android 1.6 support
Thanks a lot for your quick responce Mark. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Please help! mkdirs() on sdcard fails silently, no idea what is the problem.
You probably need to add: uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / to your manifest.xml. They added that in 1.6 I think. On Tue, Dec 15, 2009 at 1:50 PM, Agus agus.sant...@gmail.com wrote: Hi all, My app suddenly could not create a directory on sdcard using mkdirs(), it was working fine before. As the method throws no exception, I have no idea what the cause is. I have checked for a duplicate directory/file of same name, and there is none. I did remove and insert sd card but to no avail. Please help, thanks. AS -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Please help! mkdirs() on sdcard fails silently, no idea what is the problem.
Thanks a lot it works now, This is interesting since I have never changed the target build API other than 4. On Tue, Dec 15, 2009 at 5:01 AM, freezy phree...@gmail.com wrote: You probably need to add: uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / to your manifest.xml. They added that in 1.6 I think. On Tue, Dec 15, 2009 at 1:50 PM, Agus agus.sant...@gmail.com wrote: Hi all, My app suddenly could not create a directory on sdcard using mkdirs(), it was working fine before. As the method throws no exception, I have no idea what the cause is. I have checked for a duplicate directory/file of same name, and there is none. I did remove and insert sd card but to no avail. Please help, thanks. AS -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Socket - Network connect drops after 15 minutes
It's a background service which must remain connected, and also cannot be overridden by the user, so I need a programmatic solution to keep wifi on. I'm trying: wl = wifiManager.createWifiLock(tag); wl.acquire() but that doesn't seem to be working. I don't want to get too far into what the application is yet, but it runs as a background service and must be constantly monitoring a machine over wifi (perhaps later Bluetooth). It would be sold as a prepackaged phone. It's OK for the service to only to a single reading every few seconds, but the wifi must be available when the thread wakes up. On Dec 15, 1:18 am, Edward Falk ed.f...@gmail.com wrote: Can I ask why you're keeping a connection open for 15 minutes? That must be killing the battery. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AudioTrack - Clicking Sound
I am getting this clicking sound when playing static pcm data. Anybody out there is having the same problem? This is not the data issue. I am sure of it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Socket - Network connect drops after 15 minutes
Ron wrote: It's a background service which must remain connected, and also cannot be overridden by the user, so I need a programmatic solution to keep wifi on. I'm trying: wl = wifiManager.createWifiLock(tag); wl.acquire() but that doesn't seem to be working. That will only keep WiFi on if something is keeping the device on. Do you hold a regular WakeLock? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Animations
Hi, I want to use different animations when I start a view and exit a view and not the usual like slide In and slide out. For Ex: I start the view with Bottom up animation and exit the old view by left slide out animation. I have implemented this using setInAnimation and setOutAnimation, but during the transitions, I see a drag when the slide out is happening. Can anyone please help. Thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Forward search queries to one single activity that handles search
Your assumption is partly right. I want all activities to accept search queries (via the search button on the phone), although I want only one single activity to handle the search (via a web server) and display the results. The problem is now, to make all activities accept search queries. Therefor I have to add the intent filter to all activities, otherwise pressing the search button will only show up the default Google Search, but not my custom search. But having the intent filter in each activity causes to create a new instance (at least onCreate() is called) of that activity, whenever I enter a String and start the search. And that is what I'd like to avoid. My goal is to have all activities accept search input (meaning pressing the search button opens up the search box), but then as soon as the search gets started it should be handled by the one single search activity. I hope that helps to better understand my problem. On Dec 15, 1:50 pm, MrChaz mrchazmob...@googlemail.com wrote: As I understand it you only want the intent-filter in the activity that does the searching. The intent filter says the to platform hey I can do this Then in the activities you want to use the search you can startActivityForResult() On Dec 15, 12:11 pm, Stefan Klumpp stefan.klu...@gmail.com wrote: have an activity handling search (ACTIVITY_1), which works perfectly when I use the search (via SEARCH button on the phone) within/from this activity. However, when I use search from another activity (ACTIVITY_2..x) by implementing onNewIntent and forward the query string to my Search_Activity.class (ACTIVITY_1) it always pauses ACTIVITY_2 first and then goes to onCreate() of ACTIVITY_2. @Override protected void onNewIntent(Intent intent) { Log.i(TAG, onNewIntent()); if (Intent.ACTION_SEARCH.equals(intent.getAction())) { Log.i(TAG, = Intent: ACTION_SEARCH =); Intent myIntent = new Intent(getBaseContext(), Search_Activity.class); myIntent.setAction(Intent.ACTION_SEARCH); myIntent.putExtra(SearchManager.QUERY, intent.getStringExtra (SearchManager.QUERY)); startActivity(myIntent); } } * Why does it recreate my ACTIVITY_2 when it is already there and doesn't go to onNewIntent directly? * Is there another way I can forward search queries directly to ACTIVITY_1? For example via a setting in the Manifest.xml * Is it possible to generally forward all search queries automatically to ACTIVITY_1 without even implementing onNewIntent in all the other activities? Currently I have to put an intent-filter in every single activity to activate my custom search there and forward the query then to the activity that handles search via the onNewIntent (as shown above). activity android:name=.Another_Activity android:theme=@style/MyTheme intent-filter action android:name=android.intent.action.SEARCH / category android:name=android.intent.category.DEFAULT / /intent-filter meta-data android:name=android.app.searchable android:resource=@xml/searchable / /activity -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adding contacts to a custom account
Hi everyone, I encountered an issue while configuring my own account for android contacts sync. When the user choses to add a new contact to the custom account, only the name fields and the photo are showed. This behaviour can be found in the ExternalSource.java android source file. My question is, if I don't want to add custom contacts fields for my account, how can I configure the account to show all the standard fields in the contacts application in the same way the google account does? Thank you Carlo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: checkbox and icons in listview
Thanks Jose, That helps. I am also trying to change the CheckBox style. Get rid of the box or maybe fade it out and give the checkmark more focus, etc. Would you know how to change the checkbox style and not use the default? Thanks, Abhishek On Dec 14, 9:01 pm, Jose Gomez j...@josecgomez.com wrote: Hey I just wrote something like this I couldn't find any examples either but I can give you some pointers. Declare your List View Layout ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical ImageView android:src=@drawable/groshielogo android:layout_width=wrap_content android:layout_height=wrap_content android:paddingBottom=20px android:paddingTop=20px android:layout_gravity=center / ListView android:id=@+id/lvItems android:layout_width=fill_parent android:layout_height=wrap_content android:choiceMode=singleChoice android:focusable=true android:clickable=true android:longClickable=true /ListView /LinearLayout Declare another layout file for the specific rows.in my cae I have a checkbx and two textvies but it should be obvious how to change it just add or remove fields. TableLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent TableRow android:layout_width=fill_parent android:layout_height=wrap_content CheckBox android:layout_width=wrap_content android:layout_height=wrap_content android:id=@+id/rowItemBought android:paddingRight=10px / TextView android:layout_width=fill_parent android:layout_height=wrap_content android:id=@+id/rowItemName android:paddingRight=10px / TextView android:layout_width=fill_parent android:layout_height=wrap_content android:id=@+id/rowItemPrice android:paddingRight=10px / /TableRow /TableLayout Then if you are trying to get the information out of a custom class say in my case the shopping list class you need to create a custom Array Adapter that will utilize this layout at the bottom you see where I assign the different fields like the 2 textviews and the checkbox to a particular field in the class. package unf.edu.esifall09.team1; import java.util.List; import unf.edu.esifall09.team1.R; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget.LinearLayout; import android.widget.TextView; public class ShoppingListAdapter extends ArrayAdapterShoppingListItems { int resource; public ShoppingListAdapter(Context context, int resource, ListShoppingListItems items) { super(context, resource,items); this.resource=resource; } �...@override public View getView(int position, View convertView, ViewGroup parent) { LinearLayout shoppingListItemView; ShoppingListItems sli =getItem(position); String prodName =sli.getItemDescription(); double price = sli.getPrice(); boolean purchases = sli.isPurchased(); if(convertView==null) { shoppingListItemView = new LinearLayout(getContext()); String inflater = Context.LAYOUT_INFLATER_SERVICE; LayoutInflater vi; vi = (LayoutInflater)getContext().getSystemService(inflater); vi.inflate(resource, shoppingListItemView, true);} else { shoppingListItemView = (LinearLayout) convertView;} CheckBox chkPurchased = (CheckBox)shoppingListItemView.findViewById(R.id.rowItemBought); TextView itemName =(TextView)shoppingListItemView.findViewById(R.id.rowItemName); TextView itemPrice =(TextView)shoppingListItemView.findViewById(R.id.rowItemPrice); chkPurchased.setChecked(purchases); itemName.setText(prodName); itemPrice.setText(Double.toString(price)); return shoppingListItemView; } } Ofter that is created go to the activity where you will like your ListView Declare your Variables ArrayListShoppingListItems items; ShoppingListAdapter adapter; ListView lv; Then on create set up your list view and your adapters public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); lv=(ListView)findViewById(R.id.lvItems); items= new ArrayListShoppingListItems(); do a loop of some sort to fill in your adapter. Like in my case I read form a Database Cursor itemsCur=productsDb.getAllShoppingListItemsCursor(shoppingListPK); do{ ShoppingListItems sli = new ShoppingListItems(); sli.setItemDescription(itemsCur.getString(2)); sli.setPrice(itemsCur.getDouble(4)); sli.setPurchased((itemsCur.getInt(7))==0?false:true); sli.setQuantity(itemsCur.getDouble(5)); sli.setShoppingListItemPK(itemsCur.getInt(0)); sli.setShoppingListPK(itemsCur.getInt(1)); sli.setStorePK(itemsCur.getInt(6)); sli.setUpc(itemsCur.getString(3)); items.add(sli);
[android-developers] AudioTrack.play Exception at line 764
I am getting an exception thrown by the AudioTrack.play at line 764. It doesn’t happen every time if I play it long enough it does sooner or later. I don’t seem to be able to find the latest AudioTrack source code. It happens when I repeatedly create a new audio track object and release it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AudioTrack - Clicking Sound
Hi, I use AudioTrack for several projects and haven't had a problem. However, as I was learning to use it, I had lots of small issues related to: 1. Not filling the buffer correctly as you think - double check your code. Even if you are missing one PCM sample you will get a click. 2. If using a streaming buffer AudioTrack, you have to keep the buffer full. If you have any gaps you will get clicks. I'd say the problem is in your code somewhere. You probably have some off by one error or negative/positive error or missing a couple of samples, or such. Also never hurts to load your PCM data into Audacity to double check how it sounds. -niko On Dec 15, 7:37 am, Business Talk roman.businesst...@gmail.com wrote: I am getting this clicking sound when playing static pcm data. Anybody out there is having the same problem? This is not the data issue. I am sure of it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GLSurfaceView.Renderer render rate
First, thanks Robert... that's going to help a lot. I've not had to use threading before and it looks to be a must on Android for games so I'm making sure I understand the concepts as clearly as possible. I'm quite thankful that Java's tutorials are as good as they are. I was almost thinking of trying to make the game logic wait and just trigger it when the renderer fires. My thought being... things like collision only need to be checked (I'd be checking one frame ahead of course) on a new render. Would that be a terrible idea? Secondly... hooray that posts (not sure if it's per individual or not) aren't having to wait days to appear... On Dec 14, 10:35 pm, Robert Green rbgrn@gmail.com wrote: If you're using the render-continuously mode, she'll go as fast as she can go. 60FPS if you're doing easy HW-accel 2D or very basic 3D. I've never seen over 60FPS. It's probably vsynced to that. I like to use a shared object called the World to pass between my logic thread and renderer thread. Logic updates world, renderers draws it. Simple! I keep a simple boolean isLocked on the World and synchronize the calls to getLock() and release(). You will want to set a max rate for your logic thread to run and have it figure out how many MS to sleep for. I didn't do that the first time and mine would run at 200-300fps while rendering at 30-60. That was a big waste of CPU cycles :) None of my code does that anymore. On Dec 14, 9:58 pm, Jeremiah Sellars sylus.mcf...@gmail.com wrote: I suppose I should add... that my background is homebrew for Nintendo DS and coding in C. The game loop would generally just include a call to wait for the screen's vertical blank and that was ~1/60th of a second. It couldn't be relied upon totally for timing, but as long as you weren't running really intense operations it was fine. DS Homebrew is substantially closer to the hardware and the combination of learning Java, OOP concepts, working with a very large API and applying everything to a new platform is causing me to ask some likely stupid questions. Anyway, I hope someone can find a moment to help. Thanks again, Jeremiah On Dec 14, 3:51 pm, Jeremiah Sellars sylus.mcf...@gmail.com wrote: Hello everyone, Continuing to tackle a game project, I've learned tons and have tons more to learn. From what I've picked up, a proper game would have at least 3 threads. The main activity thread which would likely double as the UI thread, the GL Renderer thread which is setup automatically with the GLSurfaceView.Renderer and then a Game Logic thread. As I understand it, I'll need to make sure to setup a sleep timing in the game logic thread to have it behave correctly, but what I'm not sure on is at what timing is the Renderer thread working at? Exactly how often is onDrawFrame() being called? Thanks everyone! Jeremiah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AudioTrack.play Exception at line 764
line 764 in AudioTrack is inside the write() function. Looks like you may be writing some bad data for some reason, double check your code where you are writing the data into the AudioTrack. -niko On Dec 15, 9:12 am, Business Talk roman.businesst...@gmail.com wrote: I am getting an exception thrown by the AudioTrack.play at line 764. It doesn’t happen every time if I play it long enough it does sooner or later. I don’t seem to be able to find the latest AudioTrack source code. It happens when I repeatedly create a new audio track object and release it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Change button style
Hello, I want to put a triangular shaped button in my app. I have the button image (.png) but don't know how to use this as my button. I don't want to use an ImageButton as I don't want to have a rectangular box behind this image. Can anyone help? 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: AudioTrack.play Exception at line 764
Thanks Niko On Dec 15, 10:21 am, niko20 nikolatesl...@yahoo.com wrote: line 764 in AudioTrack is inside the write() function. Looks like you may be writing some bad data for some reason, double check your code where you are writing the data into the AudioTrack. -niko On Dec 15, 9:12 am, Business Talk roman.businesst...@gmail.com wrote: I am getting an exception thrown by the AudioTrack.play at line 764. It doesn’t happen every time if I play it long enough it does sooner or later. I don’t seem to be able to find the latest AudioTrack source code. It happens when I repeatedly create a new audio track object and release it.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Change button style
Then just use an ImageView. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Tue, Dec 15, 2009 at 9:22 AM, Abhi abhishek.r.sha...@gmail.com wrote: Hello, I want to put a triangular shaped button in my app. I have the button image (.png) but don't know how to use this as my button. I don't want to use an ImageButton as I don't want to have a rectangular box behind this image. Can anyone help? 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.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] Switching from GPS to Network Positioning
Hello, im using a PositioningService in my Application. In the onCreate() Method im getting a LocationManager with the Criteria.ACCURACY_FINE, the Problem is, now im getting only a position if im outside through gps. If im inside i get no Position. If i dont set the Criteria, then i only get Signal from network, but not from gps. I want to get the Signal from the best LocationService and it should swith automatically. Do i have to register two Listeners? Or should i do something in the onProviderDisbaled/Enabled , onStatusChanged Methods? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Where are the HTC dev phone 1 image package links?
Thanks, Ryan! This worked great. On Dec 8, 7:35 pm, Ryan Beesley ryan.bees...@swypeinc.com wrote: lbcoder posted this on one of the other groups: On Dec 7, 7:41 pm, lbcoder lbco...@gmail.com wrote: The page is just broken. The files are still there to download. http://member.america.htc.com/download/RomCode/ADP/{filename} You can find the filename in the link that you provided in the download column. Note: The website requires that you set the Referer: header to http:// developer.htc.com (or some subpath of that), so you won't be able to pull it with your web browser. You can use wget like this: wget --referer=http://developer.htc.com; PATH And that will get the file you're after. Note: All files you pull from there are subject to this license:http://developer.htc.com/io_device_license.htm--so don't claim that you didn't know about it. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Tom Opgenorth Sent: Tuesday, December 08, 2009 6:06 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Where are the HTC dev phone 1 image package links? Woops, my bad. Those aren't for the ADP1, but for the Magic. Does anybody know where a guy can get the 1.6 images for the Dream? The links on HTC's page are still dead. On Tue, Dec 8, 2009 at 18:04, Tom Opgenorth opgeno...@gmail.com wrote: It seems that you can download the 1.6 images from here: http://developer.htc.com/google-io-device.html#s3 On Thu, Dec 3, 2009 at 22:25,ChrisSokoladse...@slbsoftware.com wrote: The instructions for setting up the ADP1 direct me to the HTC Developer Center to download system images. That page, at http://developer.htc.com/adp.html, does not have any links to system images - it says it does, but it does not. Does anyone know where I can find 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 -- http://www.opgenorth.net --http://www.opgenorth.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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: Touch screen inactive
Problem not known == problem On Nov 18, 9:51 am, Pierre Henry Perret phper...@gmail.com wrote: In stacking tasks, at some point the touch screen dont work any more. It works again later without reason. Is this a known 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
[android-developers] Re: Touch screen inactive
Make sure you avoid doing intensive work on the UI thread. http://android-developers.blogspot.com/2009/05/painless-threading.html On Dec 15, 11:18 am, Pierre Henry phper...@gmail.com wrote: Problem not known == problem On Nov 18, 9:51 am, Pierre Henry Perret phper...@gmail.com wrote: In stacking tasks, at some point the touch screen dont work any more. It works again later without reason. Is this a known 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
[android-developers] Using Adapters
Hi, I would like to implement a UI that behaves in a similar way to editing/adding contacts on official contact app. Specifically, I would love the user to be able to press a button to add as many EditText parts as they need. This sounds like a jobs for adapters! That is as pretty much as far as I can deduce... How to use adapters (beyond the myriad of Gallery, ListView, Spinner examples) seems to elude me and if anyone can give me a simple example, or just an idea as how to implement it, as a start point that would be fantastic. I downloaded the contacts source but it is beyond me to be honest, and far more complex than what my solution requires - it deals with a lot of generics which I will not be needing. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
Hi again everybody. I really wanna get to the bottom of this. I posted a ticket http://code.google.com/p/android/issues/detail?id=5437 and, perhaps as expected, the reply sounded: this code is undocumented because it's unsupported. please do not use undocumented API. The ticket has been closed but I am still not satisfied. I understand that the driver doesn't have to be documented if you're not supposed to be using it since it's going low-level. But the driver does not seem to register itself, without Class.forName(SQLite.JDBCDriver), I get no suitable driver found. So that means we're not supposed to be using the sqlite back-end through JDBC at all? I'm not happy! Why is the JDBC built-in if no one is allowed to use it? jotobjects: I have had several projects where you have to invoke the driver (using Class.forName) to have it register itself. This seems to be the common convention. You don't see the driver in DriverManager.getConnection() - but the driver will link to a certain url. On Dec 14, 11:34 pm, jotobjects jotobje...@gmail.com wrote: JDBCdrivers are never used directly byJDBCapplications. In aJDBC application you reference the URI name of the driver in DriverManager.getConnection(). That is the only time you ever see the driver and you never actually call a method on the driver itself in aJDBCapplication. This has nothing to do with Android. It is just part ofJDBC. On Dec 14, 5:29 am, kristianlm kristianl...@gmail.com wrote: Hi jotobject, I don't understant why this wouldn't be part of the public API. if Android is shipped with aJDBCdriver, why not let people use it? It's certainly useful for many of us! Kris On Dec 12, 10:42 pm, jotobjects jotobje...@gmail.com wrote: On Dec 8, 10:41 pm, Joerg Pleumann joerg.pleum...@gmail.com wrote: Regarding android.jar, I never checked but I could imagine that it contains only the public API classes and might even have the actual bytecode erased. Nothing is ever run against it. It is just there to make Javac or Eclipse happy (somebody please correct me if I'm wrong). On the device, the driver should be part of /system/framework/ core.jar. The SQLite driver is never used by the public API. You pass the name as a String URI jdbc:sqlite: to getConnection(). That is the way JDBCalways works. The drivers are not part of the public API so the documentation is NOT missing anything regarding drivers. As far as I can see the only missing documentation is the URI jdbc:sqlite: as in Joerg's example - String db = jdbc:sqlite: + getFilesDir() + /test.db; Class.forName(SQLite.JDBCDriver); Connection conn = DriverManager.getConnection(db); The Class.forName() call is only necessary if Android does not automatically register the driver with DriverManager (I don't know if it does or not). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Creating databases
Here's an example: @Override public void onCreate(SQLiteDatabase db) { Log.d(getClass().getName(), Creating Database.); db.execSQL(VEHICLE_CREATE); db.execSQL(RUN_CREATE); db.execSQL(DATA_CREATE); db.execSQL(SETUP_CREATE); db.execSQL(ET_CREATE); } and the I have final strings like the following that contain the SQL to create the table: private static final String VEHICLE_CREATE = create table vehicle (_id integer primary key autoincrement, vehicle text not null,notes text, selected boolean not null default false,vehicle_uri text,weight real default 0.0,drivetrain_loss integer default 17);; Jeff ___ Trackaroo.com Trackmaster - Motorsports Lap Timer http://trackmaster.trackaroo.com Dynomaster - Performance Dyno http://dynomaster.trackaroo.com On Dec 14, 3:46 pm, Mark Murphy mmur...@commonsware.com wrote: Neilz wrote: I've made a few apps now, which use an SQLite database, no problems. In my latest app, I want two tables, and I just realised that every example I can find only creates one table. So, is this a limitation? Must I use only one table? Assuming I can use two, how do I go about changing my create script? Here's a normal one, as per the examples: private static final String DATABASE_CREATE = create table myTable (_id integer primary key autoincrement, + description text not null); ; If there's an example elsewhere, I'd be grateful for a link... thanks. In onCreate() of your SQLiteOpenHelper, you can call execSQL() as many times as you like, to execute as many SQL statements as you like. You can have as many tables, indices, triggers, and whatnot as SQLite allows, certainly greater than one of each. So, call execSQL() once to create one table and once to create another table. Or, courtesy of that semicolon, you may be able to put both CREATE TABLE statements in a single string -- I haven't tried that. -- 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
Re: [android-developers] Using Adapters
Ben Griffiths wrote: I would like to implement a UI that behaves in a similar way to editing/adding contacts on official contact app. Specifically, I would love the user to be able to press a button to add as many EditText parts as they need. This sounds like a jobs for adapters! Uh, maybe. That is as pretty much as far as I can deduce... How to use adapters (beyond the myriad of Gallery, ListView, Spinner examples) seems to elude me and if anyone can give me a simple example, or just an idea as how to implement it, as a start point that would be fantastic. I downloaded the contacts source but it is beyond me to be honest, and far more complex than what my solution requires - it deals with a lot of generics which I will not be needing. Well, what you're asking isn't exactly a common UI pattern. Not that it's a bad UI pattern, but if you're expecting tons of worked-out examples, you may be disappointed. On custom Adapters in ListViews, here's an excerpt from one of my books that discusses the topic: http://commonsware.com/Android/excerpt.pdf In your case, you're not actually trying to show a list of data, but rather a collection of semi-random Views (in your case, EditText widgets). You could do that via an Adapter, such as my SackOfViewsAdapter: http://github.com/commonsguy/cwac-sacklist (though mine would require some modification to support injecting new Views on the fly) Or, this could be a LinearLayout in a ScrollView, and you are modifying the roster of children of the LinearLayout at runtime. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why first call to Cursor.getCount() is so slow?
Hi, I've noticed quite a strange thing with Cursor object. If I use my own database (with SQLiteDatabase and SQLiteOpenHelper) and run some query on it (using any of SQLiteDatabase query() methods) this query is finished very quickly, in a few milliseconds. But then first call to some of Cursor methods (like getCount(), moveToFirst(), etc) takes 1000+ milliseconds! On the other hand if I query some ContentProvider (using getContext ().getContentResolver().query()) then this query takes about 100 milliseconds to finish, which is understood. But then first call (and subsequent calls) to any of Cursor methods described above is very fast. My question is: Why first call to say Cursor getContent() is so long in case I use my database in contrast to using ContentProvider's? Am I missing something? :) Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Adapters
Thanks for a very quick reply! On custom Adapters in ListViews, here's an excerpt from one of my books that discusses the topic: http://commonsware.com/Android/excerpt.pdf Thanks, I'll give that a read. Or, this could be a LinearLayout in a ScrollView, and you are modifying the roster of children of the LinearLayout at runtime. Would this be a better way of doing it? Could I still 'inject' xml as it were, this sound a bit more of programmatic UI? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Forward search queries to one single activity that handles search
Take a look at the SearchManager stuff: http://developer.android.com/reference/android/app/SearchManager.html From what I can see you only want one activity that responds to the search, the others need to be able to initiate (I think) what would be a 'local search' When you start a search the system it always going to create an instance of those classes which have the filter so they can process they search intent. On Dec 15, 2:38 pm, Stefan Klumpp stefan.klu...@gmail.com wrote: Your assumption is partly right. I want all activities to accept search queries (via the search button on the phone), although I want only one single activity to handle the search (via a web server) and display the results. The problem is now, to make all activities accept search queries. Therefor I have to add the intent filter to all activities, otherwise pressing the search button will only show up the default Google Search, but not my custom search. But having the intent filter in each activity causes to create a new instance (at least onCreate() is called) of that activity, whenever I enter a String and start the search. And that is what I'd like to avoid. My goal is to have all activities accept search input (meaning pressing the search button opens up the search box), but then as soon as the search gets started it should be handled by the one single search activity. I hope that helps to better understand my problem. On Dec 15, 1:50 pm, MrChaz mrchazmob...@googlemail.com wrote: As I understand it you only want the intent-filter in the activity that does the searching. The intent filter says the to platform hey I can do this Then in the activities you want to use the search you can startActivityForResult() On Dec 15, 12:11 pm, Stefan Klumpp stefan.klu...@gmail.com wrote: have an activity handling search (ACTIVITY_1), which works perfectly when I use the search (via SEARCH button on the phone) within/from this activity. However, when I use search from another activity (ACTIVITY_2..x) by implementing onNewIntent and forward the query string to my Search_Activity.class (ACTIVITY_1) it always pauses ACTIVITY_2 first and then goes to onCreate() of ACTIVITY_2. @Override protected void onNewIntent(Intent intent) { Log.i(TAG, onNewIntent()); if (Intent.ACTION_SEARCH.equals(intent.getAction())) { Log.i(TAG, = Intent: ACTION_SEARCH =); Intent myIntent = new Intent(getBaseContext(), Search_Activity.class); myIntent.setAction(Intent.ACTION_SEARCH); myIntent.putExtra(SearchManager.QUERY, intent.getStringExtra (SearchManager.QUERY)); startActivity(myIntent); } } * Why does it recreate my ACTIVITY_2 when it is already there and doesn't go to onNewIntent directly? * Is there another way I can forward search queries directly to ACTIVITY_1? For example via a setting in the Manifest.xml * Is it possible to generally forward all search queries automatically to ACTIVITY_1 without even implementing onNewIntent in all the other activities? Currently I have to put an intent-filter in every single activity to activate my custom search there and forward the query then to the activity that handles search via the onNewIntent (as shown above). activity android:name=.Another_Activity android:theme=@style/MyTheme intent-filter action android:name=android.intent.action.SEARCH / category android:name=android.intent.category.DEFAULT / /intent-filter meta-data android:name=android.app.searchable android:resource=@xml/searchable / /activity -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AlertDialog and setMultiChoiceItems
Hi, I am having some problems maintaining the checked state of items in a AlertDialog. I want to show a dialog with a list of checkboxes that reflects the contents and states of items I have in a array in my activity. In *onCreateDialog *I use: builder.setMultiChoiceItems (int itemsId, boolean[] checkedItems, DialogInterface.OnMultiChoiceClickListenerhttp://developer.android.com/reference/android/content/DialogInterface.OnMultiChoiceClickListener.html listener) I can then supply *checkedItems* to decide what items that should be checked when the dialog is shown. However this can only be done when creating the dialog. If I cancel the dialog and show it again, *onCreateDialog *is not called. Instead only *onPrepareDialog *is called with a reference to the dialog. But I have no way to change the state of *checkedItems *from * onPrepareDialog*? I hope somebody has some ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Using Adapters
Ben Griffiths wrote: Would this be a better way of doing it? Not sure. I haven't tried that specific technique. I went the ListView/Adapter route, because I needed clickable rows. If you just want a scrollable list of EditText widgets (and some other stuff), you may want to consider just the LinearLayout in the ScrollView. Could I still 'inject' xml as it were, this sound a bit more of programmatic UI? Yes, you could inflate a new row and add it as a child of your LinearLayout via one of the flavors of addView(). -- 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
Re: [android-developers] Why first call to Cursor.getCount() is so slow?
Hi, The query doesn't actually do much. The Cursor is lazily loaded so it's only the first method call to access data (like getCount()) that loads the content of the rows. On the other hand if I query some ContentProvider (using getContext ().getContentResolver().query()) then this query takes about 100 milliseconds to finish, which is understood. But then first call (and subsequent calls) to any of Cursor methods described above is very fast. The performance of getContentResolver().query() depends on what the provider uses as a backend. A Cursor is not necessarily backed by a database. Also, it will depend on how much data you are querying and returning. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Draw fullscreen alpha-image is too slow
This sounds about right. On a device like the G1 or HTC Magic (which are more or less equivalent to the HTC Hero) it takes about 4 ms to draw a full screen opaque image. In your case you are drawing two images and the second one is twice as big *and* requires blending, which is done in software. 30 fps seems about right, you're limited by the hardware. On Tue, Dec 15, 2009 at 1:34 AM, Deren adam.d0...@gmail.com wrote: What I'm trying to achieve is quite simple: I want to draw a fullscreen image (RGB_565). On top of it, I'd like to draw a fullscreen image with an alpha channel. My problem is that I get terrible performance, around 30 fps. Is there any way to speed things up? I use a HTC Hero, shouldn't the hardware be capable of faster rendering? (without OpenGL). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: List Contact type SIM, Phone, Google
I have run this code on a HTC Hero with Android 1.5 and compared the list of contacts that I pull from the API. It includes the Phone and Google contacts but not the SIM contacts. Is there anyway to pull these as well? I still have not found a way to detect the difference between a Phone and a Google contact, I will post here if I 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: Override in call-screen - Security Bug or Feature?
The call screen has been secured on the Motorola Droid from launching an activity when an event is detected. I have tried to fire the home activity and then launch my activity, but it is still blocked. However, I can open other applications from the home screen. Any ideas to get my activity to display during a call? It has been working until the Droid was released. Even testing through the emulator works fine. Just not on the Droid. Is it possible to find a solution similar to installing apk's from unknown sources? If the user must manually approve access to the in-call screen, is the security concern reduced? The ability to provide customized information or actions to users depending on their needs would be very useful. On Nov 9, 10:17 am, Fred Grott(Android Expert, http://mobilebytes.wordpress.com) fred.gr...@gmail.com wrote: Seems to me if we could come up with a pleasant icon of warning that it is not the default call-screen that my alleviate some problems have the icon clickable with an information screen/toast On Nov 4, 4:24 pm, Jarman jarman.andr...@gmail.com wrote: Sorry, I meant she of course, too fast on the keyboard :) This has been resolved, it´s not a bug. This is the response I got when i reported it as a possible security issue: It depends on what you mean by override the in-call screen. In the discussion groups this *usually* comes up when someone wants to totally replace the in-call UI with a new design (which should still be fully functional, but just look different.) This unfortunately isn't possible in Android 1.x or 2.0 because 3rd party apps aren't (yet) allowed full access to the telephony APIs. But you're just talking about the ability to pop up some other activity on top of the in-call UI. Looking at your app's description, I assume it listens for incoming call events, and then eventually launches some other activity on top of the in-call screen. Sure, there's nothing preventing this; any 3rd party app (with appropriate permissions) can launch new activities whenever it wants. (You're right that a malicious app could do this and be extremely annoying, but the user can always hit HOME, and get back to the real InCallScreen by pressing the green button or selecting the in-call notification.) Also FWIW, this app (and the similar ones also in the market) do require at least a couple of permissions marked as dangerous, so at least the user will see a warning before installing it... Bottom line: no security hole here. It's possible for an app (with the right permissions) to be annoying, but even so it's still fairly easy for the user to recover. On 4 Nov, 20:15, Disconnect dc.disconn...@gmail.com wrote: Didn't the whitepages app come out in the very very first days of the market with this capability? (I didn't use it much, at the time there was no 3g in this area. Plus, submitting incoming phone #s to a 3rd party service was really skeevy.) As an aside, Dianne is a girl's name. :) On Wed, Nov 4, 2009 at 10:47 AM,Jarmanjarman.andr...@gmail.com wrote: I just had a private mail-discussion with Dianne Hackborn and he asked me to put this issue on the Developer forum for further discussion. I have managed to override the in-call screen from the Java API (i.e. not modifying the source). (If you want to se it happen, download Jarmans ReverseLookup from the Market, it´s free) Reply from Dianne: It can't be done in a supportable way without modifying the source. I don't know how you went about your solution, but there is probably a good chance that it would be broken in a future version of the platform. Actually there could even be a chance of it bring deliberately broken if security concerns get raised (disrupting the standard in-call information like this without the user approving is something that is likely to get filed as a security bug in the platform). What do think about this? Best Regards Jarman -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] layout does not take text style from styles.xml?
Hi, I've got a text style defined in styles.xml. I'm trying to reference it from a layout. When I reference from the layout, it causes an exception upon inflation. If I use the style from java code, it works fine. Setting the individual styles on the TextView works fine too: TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Test android:textStyle=@style/mystyle / style name=mystyle parent=@android:style/TextAppearance item name=android:textSize12dip/item item name=android:textColor#00/item /style so if I just directly set textSize and textColor on the TextView with the same values, it works fine. Looks like the exception comes down to: ERROR/AndroidRuntime(1109): Caused by: java.lang.NumberFormatException: unable to parse '@2131165194' as integer must be doing something wrong here? If I comment out the style set, the layout inflates fine. Also looks fine in the resource editor. It's just when running it causes a problem, Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Dev Tools - Unsigned?
I'm trying to install the SDK on my machine, but as I'm installing ADT, Eclipse gives me a warning that the ADK plugins contain unsigned content. From the listing it looks like they are unsigned in their entirety. Is this correct? It seems a little odd that an application plugin people will be using to sign their apps is itself unsigned. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can I install Google Android OS on My Nokia 6233???
Can I install Google Android OS on My Nokia 6233?? if yes... how can i install on my nokia 6233 mobile phone... can any one tell me it is posible or not. i m bor wid nokia os (which defult installed in 6233)... i want to try some new wid my mobile -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to handle simultaneous key press
you can do the cache yourself, but it is not safe because you should eat the first down key, so you must care the key eating and mending On Mon, 2009-12-14 at 17:55 -0800, onceaweek wrote: Thank you for reply. I'd like to know how to catch previous key press information. Is there any method in KeyEvent class or somewhere ? On 12월15일, 오전1시53분, Nightwolf mikh...@gmail.com wrote: You should try it. At least combinations like w+a+space work. I haven't try with special keys though. My app that needs to handle multiple key presses has boolean array for each action (turn left or right, fire etc.). Corresponding array elements are set in onKeyDown and onKeyUp event handlers. On 14 дек, 09:50,onceaweekkyu@gmail.com wrote: I was wondering whether Androd can catch simultaneous Key Press. For example, a application does something when a user press HOME and MENU key simultaneously. Is it a possible scenario? Thank you in advance.- 원본 텍스트 숨기기 - - 원본 텍스트 보기 - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Development Suggestions...
Two immediate suggestions, allow the font size in Gmail to be adjustable. Allow groups to be emailed instead of adding recipients one at a time. kgm Chairman/CEO HomeATM ePayment Solutions www.HomeATM.net (615) PIN-PADS 746-7237 We guarantee your data beginning to end. * Email confidentiality notice * This message is private and confidential. If you have received this message in error, please notify us and remove it from your system. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] appwidget layout cache
Hi, I'm not sure if this its possible but I would like to force the layout cache to be updated (for example when a user upgrades the application, if there is a change to the width/height of an ImageView/TextView this change isn't reflected by the onscreen widget unless I remove the widget and add it again). I assume this is because the layout is cached? If so is it possible to force an update (or some other means to make layout changes show?) Thanks, Sam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Issues debugging Droid with Eclipse
I've many times debugged my Java EE code running on Tomcat and JBoss quite effectivley with Eclipse, but I'm running into a brick wall debugging an Android app on the Droid. I think I have to debug on the device and not the AVM because the app interacts with MapView, GPS, etc. Maybe I need to use the AVM to effectively debug? What happens is I get NullPointerException or ArrayOutOfBoundsException in the main thread at something like ViewRoot.draw(boolean) line: 1373. Of course, by default, the source won't be found. So I downloaded the source with Git and pointed Eclipse at it. However, I think I don't have the right source, because the line is that the exception appears to have been thrown from is not completely relevant. How can I be sure I'm using the correct source code for debugging the Droid? After writing this, I've found that although Eclipse is not displaying the little green dot when I set a breakpoint in the Andorid code, it does show up in the breakpoint view and I can step through the code. Not sure if this helps me. Is it perhaps my ignorance of Dalvik and/or debugging threaded code? Anyway, I wish I could see the actual Java statement that caused the exception. Does anyone have suggestions on how I can effectivley debug my Android code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cannot receive UDP in mobile network
I am writing a UDP client/server application. The android phone (client) can send and receive UDP packets if connected to wi-fi. When using mobile network (2G), however, it can send packets to the server, but cannot receive packets. The server does receive and send back packets in all cases. The client side code is as follows: byte[] buf = new byte[4096]; DatagramPacket packet = new DatagramPacket(buf, buf.length); while (true) { packet.setData(buf); socket.receive(packet); ... } Can anyone give advice? Thanks. Costa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Moving to 2.0 from 1.6 - error reported of a violation of a core library class that doesn't exist in app
I have a similar but different problem. If found examples in several places on how to use openGL. However all these examples show using the Open GL imports like: import javax.microedition.khronos.egl.EGL10; When i use these I get the same message discussed above: Attempt to include a core class (java.* or javax.*) in something other than a core library. It is likely that you have attempted to include in an application the core library (or a part thereof) from a desktop virtual machine. This will most assuredly not work. At a minimum, it jeopardizes the compatibility of your app with future versions of the platform. It is also often of questionable legality. Do we have to indirectly reference these classes via the android opengl classes? Not sure why I see so manyexamples using the javax khronos.egl classes. Thanks for any help On Oct 29, 8:01 pm, JP joachim.pfeif...@gmail.com wrote: OK fixed. I've toyed around a little more and, in Eclipse, applied Android Tools Fix Project Properties. That created a single Google APIs [Android 2.0] entry in Libraries, as opposed to the two individual entries android.jar and maps.jar For future reference. Hope this helps someone else. On Oct 29, 7:51 pm, JP joachim.pfeif...@gmail.com wrote: After getting comfy with the Android 2.0 environment and emulator (for the most part), I took the next step to bind myapp against the latest Android 2.0 jars: android.jar and maps.jar The existing code (working in Android 1.6) did not need any changes to compile, but the app doesn't build due to a weird error message that prevents the build. See snippet below, drawn from the Eclipse Console. I have no aspirations to run up against any core library classes, and I am not aware I do. In other words, I am not implementing SealedObject (or any other core class that I am aware of) that would run up against Dalvik. Not in the javax, java or any other namespace. Anybody got any pointers what's going on here? - Snippet [2009-10-29 19:37:42 - myapp] trouble processing javax/crypto/SealedObject.class: [2009-10-29 19:37:42 - myapp] Attempt to include a core class (java.* or javax.*) in something other than a core library. It is likely that you have attempted to include in an application the core library (or a part thereof) from a desktop virtual machine. This will most assuredly not work. At a minimum, it jeopardizes the compatibility of your app with future versions of the platform. It is also often of questionable legality. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine distribution, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then be forewarned that your application will still fail to build or run, at some point. Please be prepared for angry customers who find, for example, that your application ceases to function once they upgrade their operating system. You will be to blame for this problem. If you are legitimately using some code that happens to be in a core package, then the easiest safe alternative you have is to repackage that code. That is, move the classes in question into your own package namespace. This means that they will never be in conflict with core system classes. If you find that you cannot do this, then that is an indication that the path you are on will ultimately lead to pain, suffering, grief, and lamentation. [2009-10-29 19:37:42 - myapp]1 error; aborting [2009-10-29 19:37:42 - myapp]Conversion to Dalvik format failed with error 1 --- Snippet -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 aligning right column in the list
Can you explain why your second Textview has fill_parent set as it's layout_width. I would think that, that would cause problems? On Dec 2, 2:47 pm, adag adjo...@googlemail.com wrote: Worked out with android:weightSum quite nice..!!! On Dec 2, 1:18 pm, adag adjo...@googlemail.com wrote: Hello All, I am having multiple choice list where I have three column like below * Col1 Col2 Col3 * Col2 and Col3 should be right aligned with a gap of 10 px in between LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal TextView android:id=@+id/TextView01 android:text=my list android:layout_width=wrap_content android:layout_height=wrap_content android:layout_marginLeft=4dip android:gravity=center_vertical android:textStyle=bold android:textColor=#00 / LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal android:baselineAligned=true android:gravity=right android:baselineAlignedChildIndex=1 TextView android:id=@+id/TextView03 android:text=0 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight =true android:layout_alignRight=@+id/TextView04 android:layout_marginRight=20px android:gravity=right android:maxWidth=10dip android:textSize=20px android:textStyle=bold android:textColor=#00/ TextView android:id=@+id/TextView04 android:text=0 android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=right android:layout_marginRight=10px android:textSize=20px android:textStyle=bold android:textColor=#00/ /LinearLayout /LinearLayout ** But the layout is not coming as expected. Col1 and Col2 are coming next to Each other, But I can restrict Col3 to be right Aligned. Col1Col2 Col3 Any further suggestion to make it correct would be really appreciable. Regards, adag -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In Android 2.0.1 on Droid, the accelerometer seems to stop working when you turn off screen?
I just noticed this today on my Droid, after the update was sent last week. The accelerometer does not seem to respond for switching orientation automatically, but they still work in the Level app. Labyrinth Lite (accelerometer game) stopped working after the update. Something is definitely screwy with the accelerometers post-update. On Dec 14, 11:41 am, Artem - WorkSmart Labs p.ar...@gmail.com wrote: Has anyone else seen this? I just wanted to confirm before filing a report. This used to be (what I thought was) a hardware problem with the G1 at some point, but I thought it was resolved for the Droid. Does anyone have any insights? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why are onCreate() onStart() etc. called when handset orientation is changed?
Hi everyone, I got my hands on Android which is really fun. But at some point I don't seem to understand the concept. I've got a Main class which reads like this: public class Main extends Activity implements SensorEventListener { ... } in the onCreate(...) I set the layout to setContentView(R.layout.main); and add an OnTouchEvent Listener to the sole View in main.xml: myView.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) {... As you can see I also implemented a SensorEventListener which is used if required. All works fine so far. But my problem is this (at this point my misunderstanding kicks in): whenever I rotate the device the onCreate(), onStart() etc. methods are called, causing my app to act as if it just started. Furthermore, I feel unable to implement an onSizeChanged(int w, int h, int oldw, int oldh) { ... } Listener. Can anyone please explain where my error in reasoning is? I am working on a tiny app which is more or less done, except for the just mentioned bug(s). Maybe I got it all wrong but it does what it is supposed to do (i.e. sending touch positions and accelerometer data over the network via UDP). Thanks for any help. Regards, Steff -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] aapt backwards compatibility, etc
Are the newest versions of aapt backwards compatible with the older versions? i.e. can i read 1.0 1.5 apks with the 2.0.1 SDK aapt? My tests show me it works, but is it failsafe? If this is not the case, what's the easiest way to determine the android version an APK was developed for and know which aapt binary to use? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SQLite SELECTS during INSERT?
Is there any chance of SQLite database corruption if we set setLockingEnabled to false and read from the database while it's being written? SQLite docs indicate the whole database gets locked during a write... so its somewhat unclear what function the setLockingEnabled would serve beyond the standard SQLite locking? For example, an Android service writing small records to the database at 10/second, and a gui querying those records at random times and grouped in different ways - in a different thread. Do DB INSERTS stop while a long SELECT query is in progress? References: http://groups.google.com/group/android-developers/browse_thread/thread/acf91ae696a5787a -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
the JDBC driver is undocumented because it's unsupported. please do not use reflection to access undocumented/unsupported API. --elliott On Dec 14, 5:29 am, kristianlm kristianl...@gmail.com wrote: Hi jotobject, I don't understant why this wouldn't be part of the public API. if Android is shipped with a JDBC driver, why not let people use it? It's certainly useful for many of us! Kris On Dec 12, 10:42 pm, jotobjects jotobje...@gmail.com wrote: On Dec 8, 10:41 pm, Joerg Pleumann joerg.pleum...@gmail.com wrote: Regarding android.jar, I never checked but I could imagine that it contains only the public API classes and might even have the actual bytecode erased. Nothing is ever run against it. It is just there to make Javac or Eclipse happy (somebody please correct me if I'm wrong). On the device, the driver should be part of /system/framework/ core.jar. The SQLite driver is never used by the public API. You pass the name as a String URI jdbc:sqlite: to getConnection(). That is the way JDBC always works. The drivers are not part of the public API so the documentation is NOT missing anything regarding drivers. As far as I can see the only missing documentation is the URI jdbc:sqlite: as in Joerg's example - String db = jdbc:sqlite: + getFilesDir() + /test.db; Class.forName(SQLite.JDBCDriver); Connection conn = DriverManager.getConnection(db); The Class.forName() call is only necessary if Android does not automatically register the driver with DriverManager (I don't know if it does or not). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help regarding Image Crop.
I want to pick an image ,(SD card and phone memory both where ever available), The picked image is to be cropped and cropped image is to be displayed as a small icon in my app. Also I need to display the entire image at a later stage. so i need to save the image also. Can someone help regarding how to do this? (code is not necessary. explanation is suffice) Thanks in anticipation -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Droid/AAC support
SetAudioEncoder support only DEFAULT/AMR_NB values however on Droid phone there is AAC encoder. NativeCamera app uses it. Which numeric value sets this codec ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Numeric-only soft keyboard
Any update on this? I also want to bring up the numeric keyboard, but I don't want to restrict the input type. On Oct 25, 7:21 am, Armond Avanes armond...@yahoo.com wrote: So anyone any experience with numeric keyboard? Regards, Armond -Original Message- Sent: Tuesday, October 20, 2009 12:08 PM Hi Guys, How can I set numeric-only soft keyboard option for a text field? When I set the input-type to number it brings a soft keyboard which is actually a alpha-numeric one but already switched to numeric mode. What I want is a pure numeric soft keyboard with big numbers (no alphabets at all). I've already seen this in other applications and but don't know how to do it. I will appreciate any help or hint... Armond -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does Android has a Touchscreen requirement?
Dear sirs. I want to know that android has a touchscreen requirement about hardware and software. And how does touch gesture processing where, for example, in driver layer or framework or application, thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Read/Write .CSV
I'll open with, I googled this thing like crazy, searched anddev and a few other boards (including this one) and can't quite find what I'm looking for. The predicament : all CSV examples are in reference to contacts, and the file read/write posts (the ones that I need) make the assumption that I am not a beginner and most don't even post any code leaving me nothing to learn on. The hopeful solution : a link to a solid example of simply how to write to a CSV with my own custom fields and values, and how to read a CSV and load said values. I don't imagine anyone is going to take the time to write the code solely to post it here, so if you can just point me in the right direction it would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] buy more than one Android Dev Phone 1.
Dear all, I am working on a research project and we need to buy some Android Dev Phones. Is there any way a University can buy directly more than one Android Dev Phone? Is the only way to have a registered developer and single delivery for each phone? Thanks. Regards, Mauro Conti -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multi CheckBox button in List View
Hello, J'ai une problème au niveau ListView : quand le CheckBox est chiqué ca provoque une répétition dans la 10 emme position de ListView.. merci d'avance de me répondre dans le plus tôt possible.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Debugging on Acer Liquid
Hello, I have also had success using this method, thank you for the help. Jeff On Dec 13, 6:15 am, Keiji Ariyama ml_andr...@c-lis.co.jp wrote: Hi, I have succeeded. ; Acer Liquid %SingleBootLoaderInterface% = USB_Install, USB\VID_0502PID_3201 %SingleBootLoaderInterface% = USB_Install, USB\VID_0502PID_3202MI_00 %SingleAdbInterface% = USB_Install, USB\VID_0502PID_3202MI_01 %CompositeAdbInterface% = USB_Install, USB\VID_0502PID_3202MI_02 %CompositeAdbInterface% = USB_Install, USB\VID_0502PID_3202MI_03 Thanks, Keiji Keiji Ariyama wrote: Hi, Thank you for your providing information. However, my liquid is still not working... My Liquid have been detected as four devices by my PC(Windows XP and Vista). USB\VID_0502PID_3202MI_00 USB\VID_0502PID_3202MI_01 USB\VID_0502PID_3202MI_02 USB\VID_0502PID_3202MI_03 I tried your method[many combination] but not succeeded. adb devices List of devices attached Would anyone give me any idea? I appreciate to any help. Keiji, bestpriv...@googlemail.com wrote: Okay, I got it working this way: 1. get the latest usb updates 2. modify your android_winusb.inf file by adding these three lines to [Google.NTx86] and [Google.NTamd64]: ; Acer Liquid %SingleAdbInterface% = USB_Install, USB\VID_0502PID_3202 %CompositeAdbInterface% = USB_Install, USB\VID_0502PID_3202MI_01 3. if windows aks you for a driver, select manual, choose ADB Interface and point to the android_winusb.inf file 4. start Eclipse and you should be able to debug on your Acer Liquid :-) Unfortunately logcat seems to report Invalid Argument within Eclipse only. However, these commands should do it for a while: adb logcat -c adb -d logcat Maybe somebody else can help out to make logcat work within Eclipse? Still I hope that Google and device manufacturers will provide better support in the future. I heared a lot of developers having trouble with on-device-debugging (e.g. Samsung Galaxy). We have better stuff to ... :-) On 11 Dez., 13:55, bestpriv...@googlemail.com bestpriv...@googlemail.com wrote: I have problems to start debugging on my new Acer Liquid. Windows XP SP3 always tells me that it cannot find any drivers for the Acer HSUSB Device. I already installed the latest usb drivers (Revision 2, November 2009) using the SDK Manager. Do I have to wait for a new revision? Does somebody else have this problem? -- Keiji, ml_andr...@c-lis.co.jp -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Location of current desktop/wallpaper file?
I realize this isn't exactly a programming question. However I seem unable to discover this information elsewhere, so thanks if anyone can answer this. I'm on a Samsung Moment running Android 1.5. Is there an official support forum for this type of question, or a preferred forum along the lines of ubuntuforums.org? 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] Application disappears from recent apps list
I am writing an app that wants to be able to handle URLs. I also want to be able to launch it stand-alone with no arguments, so I've specified two intent filters: intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:scheme=http / data android:scheme=https / /intent-filter I have also specified android:launchMode=singleTask. Now, if I explicitly launch my application from the application list, its name and icon can be found in the recent apps list that pops up when I hold the home key. If I then use the email application to open a URL in my application, my application disappears from the recent apps list. Why does this happen, and what can I do about it? I notice that the Browser application doesn't behave like this, and it has similar intent filters and the same launchMode. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Animation of View size
Hi all. I've noticed that animation framework is based on matrix transformations (with additions for alpha). Did I get it right that it's impossible to animate an arbitrary property (e.g size) of my view with android.animation.* tools? If so, can you please give me some hints how size animations can be implemented? My task is to resize some custom view smoothly (redrawing/laying out it on every 'frame'). 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] Is there a way to print the activity stack ?
Acutally I was trying to automate some stuff on my android emulator. I start an activity through adb shell using am command, but when the activity starts do I have a way out to know that my activity is the one which is at the top has the focus. I googled about it a lot but couldn't find the right way to do this. Any help would be greatly appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MapView OnTouchListener is firing only once
on mapview onTouch function of OnClickListener is never called after executing once. Is there any work around for this? I am attaching Code snippets: public class SearchResultsMapView extends MapActivity { private MapView mapView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mapview); mapView = (MapView) findViewById(R.id.mapview); mapController = mapView.getController(); mapView.setClickable(true); mapView.setEnabled(true); mapView.setSatellite(false); mapView.setStreetView(false); mapView.setTraffic(false); mapOverlays = mapView.getOverlays(); mapView.setOnTouchListener(new OnTouchListener (){ @Override public boolean onTouch(View v, MotionEvent event) { Log.v(TAG, inside onTouch); return false; } }); ... I cannot return true from onTouch method, as this will stop callbacl method onTap(int index) of my class ResultItemizedOverlay which extends ItemizedOverlayOverlayItem. Any hint, how can I make this listener working every time when I click anywhere on map? I also want onTap(int index) to work for ItemizedOverlayOverlayItem. Thanks, Aamir -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] porting Widgets in to Eclair
Hi, How to brng the Widgets of OMS 1.5 in to Eclair platform, and then Compilie it sucessfully. the aim of this is to bring OMS features in to Eclair. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] zipalign command not found
when I do zipalign -c -v 4 myapp.apk or zipalign -v 4 myapp.apk myapps.apk I am always getting zipalign command not found. but when I launch zipalign tool, I am getting bellow messages Last login: Mon Dec 14 22:12:04 on ttys001 /Users/willie/Desktop/willie/android-sdk/tools/zipalign ; exit; willie-shis-MacBook-Pro:~ willie$ /Users/willie/Desktop/willie/android- sdk/tools/zipalign ; exit; Zip alignment utility Copyright (C) 2009 The Android Open Source Project Usage: zipalign [-f] [-v] align infile.zip outfile.zip zipalign -c [-v] align infile.zip align: alignment in bytes, e.g. '4' provides 32-bit alignment -c: check alignment only (does not modify file) -f: overwrite existing outfile.zip -v: verbose output logout [Process completed] I can't type anything on this screen. what could be wrong? Help please! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 create a TabHost dynamically?
I have a plain Activity( a subclass of Activity,not TabActivity), while the application starting, I retr data via the network, Then I want to create a TabHost widget according to the data which I just got, but I do NOT know how to do it, any- one help me? many thanks! -- Best Regards, -- KDr2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] NPAPI support in Android 2.0 SDK WebView
Hi there, in older android SDK versions it was possible to load custom NPAPI plugins into the WebView through reading them from assets and writing them into the filesystem at the apps data directory, for example something along the lines: webview = (WebView)findViewById(R.id.webview); webview.getSettings().setJavaScriptEnabled(true); webview.getSettings().setPluginsEnabled(true); webview.getSettings().setPluginsPath(/data/data/com.foo.app); webview.setWebViewClient(new NetworkAccess()); in order to have a WebView instance with NPAPI plugin support for plugins in that directory. In Android 2.0 SDK this mechanism does not seem to work anymore and the WebSettings.setPluginsPath() method seems to be deprecated: http://developer.android.com/reference/android/webkit/WebSettings.html#setPluginsPath(java.lang.String). Can anyone confirm this is a final decision or just a bug? Are custom NPAPI plugins aren't going to be supported in the future anymore? Would be a shame if that'll be the case ;( Kind regards, Anselm -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Scrollview Auto Scrolling
I am using a scrollview with a few EditTexts at the top followed by a series of Spinners. The problem I am having is that when a Spinner is used the screen auto scrolls back up to the last EditText. Is there any way to prevent the auto scrolling? 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] Adding, Editing, Deleting entries in Androids call log
Hi, I have been looking at Androids call log content provider and have managed to pull the data from it and display it in my own app. However I want to be able to write to the call log, is there anyway of doing this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Adding, Editing, Deleting entries in Androids call log
Here is the code I have import android.app.Activity; import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.CallLog; import android.util.Log; import android.widget.SimpleCursorAdapter; public class test extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Uri myCall = ContentUris.withAppendedId(CallLog.Calls.CONTENT_URI, 0); Cursor cur = managedQuery(myCall, null, null, null, null); String[] projection = new String[] { CallLog.Calls.CACHED_NAME, CallLog.Calls.CACHED_NUMBER_LABEL, CallLog.Calls.DURATION }; Uri myCalls = CallLog.Calls.CONTENT_URI; Cursor managedCursor = managedQuery(myCalls, projection, // Which columns to return null, // Which rows to return (all rows) null, // Selection arguments (none) // Put the results in ascending order by name CallLog.Calls.DATE + ASC); this.addToCallLog(); this.getColumnData(managedCursor); } private void getColumnData(Cursor cur){ if (cur.moveToFirst()) { String name; String phoneNumber; String duration; int nameColumn = cur.getColumnIndex(CallLog.Calls.CACHED_NAME); int phoneColumn = cur.getColumnIndex(CallLog.Calls.CACHED_NUMBER_LABEL); int durationColumn = cur.getColumnIndex(CallLog.Calls.DURATION); String imagePath; do { // Get the field values name = cur.getString(nameColumn); phoneNumber = cur.getString(phoneColumn); duration = cur.getString(durationColumn); //Log.i(NAMES ! = , name); // Log.i(Number ! = , phoneNumber); Log.i(duration ! = , duration); } while (cur.moveToNext()); } } private void addToCallLog(){ ContentValues values = new ContentValues(); // Add Abraham Lincoln to Calls List; values.put(CallLog.Calls.CACHED_NAME, Abraham Lincoln2); //values.put(CallLog.Calls.CACHED_NUMBER_LABEL, 0863497543); values.put(CallLog.Calls.DURATION, 102); Uri uri = getContentResolver().insert(CallLog.Calls.CONTENT_URI, values); } } This works in that the logcat shows that its adding the duration, however problems include: Not getting the phonenumber, this gives a uncaughtexception error And the emulator crashes the Call Log app thats already on the device when it is used after my app has run On Tue, Dec 15, 2009 at 12:22 PM, draf...@gmail.com draf...@gmail.comwrote: Hi, I have been looking at Androids call log content provider and have managed to pull the data from it and display it in my own app. However I want to be able to write to the call log, is there anyway of doing this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why are onCreate() onStart() etc. called when handset orientation is changed?
Hi everyone, I got my hands on Android which is really fun. But at some point I don't seem to understand the concept. I've got a Main class which reads like this: public class Main extends Activity implements SensorEventListener { ... } in the onCreate(...) I set the layout to setContentView(R.layout.main); and add an OnTouchEvent Listener to the sole View in main.xml: myView.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) {... As you can see I also implemented a SensorEventListener which is used if required. All works fine so far. But my problem is this (at this point my misunderstanding kicks in): whenever I rotate the device the onCreate(), onStart() etc. methods are called, causing my app to act as if it just started. Furthermore, I feel unable to implement an onSizeChanged(int w, int h, int oldw, int oldh) { ... } Listener. Can anyone please explain where my error in reasoning is? I am working on a tiny app which is more or less done, except for the just mentioned bug(s). Maybe I got it all wrong but it does what it is supposed to do (i.e. sending touch positions and accelerometer data over the network via UDP). Thanks for any help. Regards, Steff -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] shape with shadow
Hey guys, how can i add shadow to a shape? My shape.xml: ?xml version=1.0 encoding=utf-8? shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=rectangle gradient android:startColor=#272828 android:endColor=#272828 android:angle=90 / padding android:left=0px android:top=10px android:right=0px android:bottom=10px / corners android:bottomRightRadius=30px android:bottomLeftRadius=30px android:topLeftRadius=0.1dp android:topRightRadius=0.1dp / /shape I tried to add this shape as background to a linearlayout. After this i added following style to the linearlayout: style name=shape_with_shadow item name=android:background@drawable/shape/item item name=android:shadowColor#ff00ff/item item name=android:shadowDx1.2/item item name=android:shadowRadius1.5/item /style But i don't se any shadow. How can i fix that? please help, thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Accessing Contact Data Base for adding,deleting,updating contact using Native code
Hi, I want to add,delete,update android Contact Database using native c code. please tell me how to do if any one have done it. Thanks Manouwar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Socket - Network connect drops after 15 minutes
You might try closing the socket and trying to connect it again, the same way it was opened before the disconnect. 15 minutes is a relatively long time... does the socket live in an activity? It should probably live in a service so its resources don't get reclaimed like an activity would. Activities are subject to certain rules that says if Android OS needs the resources, it can kill or reclaim the activity's resources when it needs to. On Dec 14, 9:06 am, Ron ronbruck...@comcast.net wrote: I am able to connect to a Socket on my PC from my HTC 1 phone, via IP and successfully transfer data in a thread that gets rescheduled every few seconds. The problem is that after 15 minutes or so, the connection drops and my debug traces give me the Network unreachable. A further clue is that if I plug in or replug in the USB cable I get reconnected. I'm wondering what programmatic function will reconnect to the PC without having to fiddle with the USB cable. I've tried Wifimanger.reconnect and reassociate, neither did the trick. Perhaps if I knew what actions were peformmed when the usb cable is plugged in (which shouldn't have anything to do with my connection) I would be able to program them into my exception path. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] porting dalvik to a nommu processor
Hi, I am working on porting dalvik to a processor which has not NOMMU (Memory Management Unit). I couldn't convert one of the fork into vfork in dalvik VM at. dalvik_system_Zygote.c. Is there any porting work for NOMMU devices? Any idea? any help? Thanks Zeki -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Gmail Development Suggestions...
Two immediate suggestions, allow the font size in Gmail to be adjustable. Allow groups to be emailed instead of adding recipients one at a time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en