[android-developers] Input method editor(IME) in fullscreen
Hi, In landscape mode, the soft keyboard(IME-input method editor) is showing full screen and displaying the plain text. But my editText is a password field. So how can I show dots instead of the actual characters when the IME is in full screen. This happens in landscape mode, in portrait , its working fine. Nithin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: R.id cannot be resolved
R.id.myListView refers to an XML tag in your layout. Do you have something called myListView in your res/layout/ main.xml ? It would look something like this: ListView android:id=@+id/myListView android:layout_width=wrap_content android:layout_height=wrap_content /ListView Eclipse generates some source code for us, in this case something like: gen/...your package name.../R.java public final class R { public static final class id { public static final int myListView=0x7f05; } } ListView myListView = (ListView)findViewById(R.id.myListView); is giving an error :R.id cannot be resolved. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Help In graduation Project
Do you mean you already have a beagle board and want to make some apk to run on it? Or you want to write some apk to run on existing Android phones or Android hardware? I do have some idea for apks that need someone to help to make them possible if you are interested. Thanks Eric On Mar 28, 10:29 pm, Ahmad Al-Masry good.dr.ah...@gmail.com wrote: Hello Android Developers community; hope this find you well and I am pleased to be a member in such a group. I am a fourth year Computer systems engineering student, and I am interested to make my graduation project in Mobile OS field, and android has the best community support that will help us very much. I need your help to suggest me a topic that my group (3 students including me) can handle; so we can help you in the community and consider it as a graduation project. Our graduation project consists of two phases, one on each semester. Phase one is the Project introduction and this is a theoretical and analysis phase. And the second is the real project phase, in which we can start the work. We are looking for something in depth, so that we can assemble the hardware (BeagleBoard and it peripherals) and installation of android as the introduction to the project, and then start with real life application that you kindly might help us to choose. It a pleasure to get helped and get enveloped in this community, and looking for your help. Sincerely yours. -- Ahmad Al-Masry Palestine-West Bank-Salfit 00970(2) 599 043374 4th year Computer Systems Engineering @ Birzeit Univ. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: R.id cannot be resolved
hi, just verify how is the id to the listview defined in the layout file. if it is as android:list in the layout,then u need to specify it as (android.R.id.list) in the findViewById method On Mar 28, 9:52 pm, mnavlani monishanavl...@gmail.com wrote: hello all, this is my first attempt at the UI. i tried to create a list view using the following code: package com.paad.todolist2; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.view.View.OnKeyListener; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListView; public class ToDoList2 extends Activity { /** Called when the activity is first created. */ // @Override // public void onCreate(Bundle savedInstanceState) { // super.onCreate(savedInstanceState); // setContentView(R.layout.main); // } public void onCreate(Bundle savedInstanceState) { // Inflate your view super.onCreate(savedInstanceState); setContentView(R.layout.main); // Get references to UI widgets ListView myListView = (ListView)findViewById(R.id.myListView); final EditText myEditText = (EditText)findViewById(R.id.myEditText); // Create the array list of to do items final ArrayListString todoItems = new ArrayListString(); // Create the array adapter to bind the array to the listview final ArrayAdapterString aa; aa = new ArrayAdapterString(this,android.R.layout.simple_list_item_1,todoItems); // Bind the array adapter to the listview. myListView.setAdapter(aa); myEditText.setOnKeyListener(new OnKeyListener() { public boolean onKey1(View v, int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_DOWN) if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { todoItems.add(0, myEditText.getText().toString()); aa.notifyDataSetChanged(); myEditText.setText( ); return true; } return false; } @Override public boolean onKey(View arg0, int arg1, KeyEvent arg2) { // TODO Auto-generated method stub return false; } }); } } but, the line: ListView myListView = (ListView)findViewById(R.id.myListView); is giving an error :R.id cannot be resolved. please help me regarding this. regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Device Seeding Program for Top Android Market Developers
Maps and Jason: I asked about this a few days ago, and a few people have confirmed that they have received their Droids via FedEx from Brightpoint, just like the Nexus Ones. (The address Greg said his came from is about 2 blocks from the address listed on Brightpoint's website. I'm sure it's one of their warehouses. niko20 explicitly confirmed these details as well.) Greg, Tao, and niko20: Thanks for the info. Darshan On Mar 27, 1:19 pm, Jason arm...@gmail.com wrote: Was the shipper for the DROID someone other than brightpoint? On Mar 27, 12:23 pm, niko20 nikolatesl...@yahoo.com wrote: Damnit, got a DROID today in Madison WIum I already have a DROID. I doubt anyone is ever gonna wanna trade a Nexus one for this..lol - On Mar 27, 11:21 am, Greg Donald gdon...@gmail.com wrote: Droid, Nashville TN. -- Greg Donald destiney.com | gregdonald.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Filtered ListView with custom Adapter derived from ArrayAdapter is not updated
Hi! Thiago Diniz wrote: Why do you want to put an edittext, listview already have an keystroke filter. An editText is in die screen design, so i have to use it. I have a similar problem because my listview is not filtering, even implementing the toString method os the class from my custom Adapter. Ialso have a ListView with a custom Adapter that extends ArrayAdapter. It's a ArrayAdapter of the Type User Have you solved the problem? regards, Anton On Mar 25, 9:45 am, Anton Pirker an...@ignaz.at wrote: Hi! Kumar Bibek wrote: What exactly are you trying to do? Can you please explain? What i am trying to do: I want to have a EditText and below my list with about 1200 Artistnames. If the user enters something in the EditText i want to filter the artists according to the entered text. So if the user enters sa only artists with a name that contains sa are displayed in the list. The list should be updated on every keystroke. I think this is a fairly common problem and i hav read a lot of solution on the internet, but it is just not working with my code (see below) According to my Log.d() Message the artists are filtered, but the list does not change, its not updated! Do you know whats wrong with my code? Thanks! Anton Thanks and Regards, Kumar Bibek On Mar 25, 3:17 pm, Anton Pirker an...@ignaz.at wrote: Hi! I have a ListView with a custom Adapter that extends ArrayAdapter. It's a ArrayAdapter of Type Artist. (There are about 1200 artists in my list) Artist is a very small class that has a name and an id. The Artist Class has toString() overridden to return just the name. I have an EditText. The EditText has an TextChangeListener where i call .getFilter().filter(chars, callback) on my adapter. In the Filter.Filterlistener().onComplete() callback i print the count and it looks really good. As i type the count decreases. So it seams everything works as advertised, but the List stays the same. I tried to call artistAdapter.notifyDataSetChanged() to force the list to redraw, but nothing happens. [see 2.)] I am tinkering around for days now! I am desperate.. Hopefully someone can have a look on my code and tell me what i am doing wrong! How can i force the list to be redrawn? Thanks! (I have posted this question also on stackoverflow:http://stackoverflow.com/questions/2505800/filtered-listview-not-updated) Here is what i have done: 1.) Defined a ListView and an EditText like this: EditText xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/list_search_text android:layout_width=fill_parent android:layout_height=35dip android:layout_below=@id/header /EditText ListView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/list_search android:layout_width=fill_parent android:layout_height=fill_parent /ListView 2.) Setup my ListView in the Activities onCreate(): private ListView listView = null; private ArtistAdapter artistAdapter = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.search_artists); artistAdapter = new ArtistAdapter(this, R.layout.row, list); // 'list' is an ArrayListArtist listView = (ListView) findViewById(R.id.list_search); listView.setAdapter(artistAdapter); listView.setFastScrollEnabled(true); listView.setTextFilterEnabled(true); listView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? av, View v, int position, long id) { // do something } }); EditText txtSearch = (EditText) findViewById(R.id.list_search_text); txtSearch.addTextChangedListener(new TextWatcher() { public void afterTextChanged(Editable arg0) { } public void beforeTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) { } public void onTextChanged(CharSequence chars, int start, int before, int count) { artistAdapter.getFilter().filter(chars, new Filter.FilterListener() { public void onFilterComplete(int count) { Log.d(Config.LOG_TAG, filter complete! count: + count); artistAdapter.notifyDataSetChanged(); } }); } }); } 3.) This is my ArtistAdapter in short. I added an remove() and add() method: public class ArtistAdapter extends ArrayAdapterArtist implements SectionIndexer { private ListArtist items; /* other stuff like overridden getView, getPositionForSection, getSectionForPosition
[android-developers] Re: Device Seeding Program for Top Android Market Developers
Did anyone receive his Nexus One outside of North America? I am still waiting in Hong Kong and Fedex Customer center said no package was delivered for me by now. On 3月29日, 下午2时44分, Darshan darshan.ish...@gmail.com wrote: Maps and Jason: I asked about this a few days ago, and a few people have confirmed that they have received their Droids via FedEx from Brightpoint, just like the Nexus Ones. (The address Greg said his came from is about 2 blocks from the address listed on Brightpoint's website. I'm sure it's one of their warehouses. niko20 explicitly confirmed these details as well.) Greg, Tao, and niko20: Thanks for the info. Darshan On Mar 27, 1:19 pm, Jason arm...@gmail.com wrote: Was the shipper for the DROID someone other than brightpoint? On Mar 27, 12:23 pm, niko20 nikolatesl...@yahoo.com wrote: Damnit, got a DROID today in Madison WIum I already have a DROID. I doubt anyone is ever gonna wanna trade a Nexus one for this..lol - On Mar 27, 11:21 am, Greg Donald gdon...@gmail.com wrote: Droid, Nashville TN. -- Greg Donald destiney.com | gregdonald.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Device Seeding Program for Top Android Market Developers
HK, and waiting too. On 3月29日, 下午2时58分, Lucky-dog honglian...@gmail.com wrote: Did anyone receive his Nexus One outside of North America? I am still waiting in Hong Kong and Fedex Customer center said no package was delivered for me by now. On 3月29日, 下午2时44分, Darshan darshan.ish...@gmail.com wrote: Maps and Jason: I asked about this a few days ago, and a few people have confirmed that they have received their Droids via FedEx from Brightpoint, just like the Nexus Ones. (The address Greg said his came from is about 2 blocks from the address listed on Brightpoint's website. I'm sure it's one of their warehouses. niko20 explicitly confirmed these details as well.) Greg, Tao, and niko20: Thanks for the info. Darshan On Mar 27, 1:19 pm, Jason arm...@gmail.com wrote: Was the shipper for the DROID someone other than brightpoint? On Mar 27, 12:23 pm, niko20 nikolatesl...@yahoo.com wrote: Damnit, got a DROID today in Madison WIum I already have a DROID. I doubt anyone is ever gonna wanna trade a Nexus one for this..lol - On Mar 27, 11:21 am, Greg Donald gdon...@gmail.com wrote: Droid, Nashville TN. -- Greg Donald destiney.com | gregdonald.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Input method editor(IME) in fullscreen
Set the input type to password. This has the normal text view show dots, and the IME sees this and do so as well. On Sun, Mar 28, 2010 at 11:07 PM, Nithin nithin.war...@gmail.com wrote: Hi, In landscape mode, the soft keyboard(IME-input method editor) is showing full screen and displaying the plain text. But my editText is a password field. So how can I show dots instead of the actual characters when the IME is in full screen. This happens in landscape mode, in portrait , its working fine. Nithin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Live Wallpaper Crashing
It would help to include the stack crawl of the crash. On Sun, Mar 28, 2010 at 1:19 PM, Ryan ryan.ber...@gmail.com wrote: When I click my live wallpaper, it crashes. I can't see what is wrong. Here is my code. package com.puinyuu.umasaka; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.content.res.Resources; import android.os.Handler; import android.service.wallpaper.WallpaperService; import android.view.SurfaceHolder; public class UmasakaWallpaper extends WallpaperService { private final Handler mHandler = new Handler(); @Override public void onCreate() { super.onCreate(); } @Override public void onDestroy() { super.onDestroy(); } @Override public Engine onCreateEngine() { return new UmasakaEngine(); } class UmasakaEngine extends Engine { private Resources res; private Bitmap mUmasakaFrame0; private Bitmap mUmasakaFrame1; private Bitmap mUmasakaFrame2; private Bitmap mUmasakaFrame3; private Bitmap mUmasakaFrame4; private Bitmap mUmasakaFrame5; private Bitmap mUmasakaFrame6; private Bitmap mUmasakaFrame7; private int mFrameNum = 0; private final Runnable mGetFrame = new Runnable() { public void run() { drawFrame(); } }; private boolean mVisible; UmasakaEngine() { mUmasakaFrame0 = BitmapFactory.decodeResource(res, R.drawable.umasaka0); mUmasakaFrame1 = BitmapFactory.decodeResource(res, R.drawable.umasaka1); mUmasakaFrame2 = BitmapFactory.decodeResource(res, R.drawable.umasaka2); mUmasakaFrame3 = BitmapFactory.decodeResource(res, R.drawable.umasaka3); mUmasakaFrame4 = BitmapFactory.decodeResource(res, R.drawable.umasaka4); mUmasakaFrame5 = BitmapFactory.decodeResource(res, R.drawable.umasaka5); mUmasakaFrame6 = BitmapFactory.decodeResource(res, R.drawable.umasaka6); mUmasakaFrame7 = BitmapFactory.decodeResource(res, R.drawable.umasaka7); mUmasakaFrame0 = Bitmap.createBitmap(mUmasakaFrame0); mUmasakaFrame1 = Bitmap.createBitmap(mUmasakaFrame1); mUmasakaFrame2 = Bitmap.createBitmap(mUmasakaFrame2); mUmasakaFrame3 = Bitmap.createBitmap(mUmasakaFrame3); mUmasakaFrame4 = Bitmap.createBitmap(mUmasakaFrame4); mUmasakaFrame5 = Bitmap.createBitmap(mUmasakaFrame5); mUmasakaFrame6 = Bitmap.createBitmap(mUmasakaFrame6); mUmasakaFrame7 = Bitmap.createBitmap(mUmasakaFrame7); } @Override public void onCreate(SurfaceHolder surfaceHolder) { super.onCreate(surfaceHolder); } @Override public void onDestroy() { super.onDestroy(); mHandler.removeCallbacks(mGetFrame); } @Override public void onVisibilityChanged(boolean visible) { mVisible = visible; if (visible) { drawFrame(); } else { mHandler.removeCallbacks(mGetFrame); } } @Override public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { super.onSurfaceChanged(holder, format, width, height); drawFrame(); } @Override public void onSurfaceCreated(SurfaceHolder holder) { super.onSurfaceCreated(holder); } @Override public void onSurfaceDestroyed(SurfaceHolder holder) { super.onSurfaceDestroyed(holder); mVisible = false; mHandler.removeCallbacks(mGetFrame); } void drawFrame() { final SurfaceHolder holder = getSurfaceHolder(); Canvas c = null; try { c = holder.lockCanvas(); if (c != null) { getFrame(c); } } finally { if (c != null) holder.unlockCanvasAndPost(c); } // Reschedule the next redraw mHandler.removeCallbacks(mGetFrame); if (mVisible mFrameNum == 0) { mHandler.postDelayed(mGetFrame, 90); } if (mVisible mFrameNum == 1) { mHandler.postDelayed(mGetFrame, 60); } if (mVisible mFrameNum == 2) { mHandler.postDelayed(mGetFrame, 140); } if (mVisible mFrameNum == 3) { mHandler.postDelayed(mGetFrame, 60); } if (mVisible mFrameNum == 4) { mHandler.postDelayed(mGetFrame, 90); } if (mVisible mFrameNum == 5) { mHandler.postDelayed(mGetFrame, 60); } if (mVisible mFrameNum == 6) {
[android-developers] Magic Cube from the Sample Kube
Is there any one has an experience on converting the code from the sample-kube to a magic cube? How to detect the position I click is the small cube object and so I can rotate the layer according to my movement? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Device Seeding Program for Top Android Market Developers
Me too, still waiting in HK . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Extend a button and implement Parcelable
Why possibly you may need to make a button parcelable? Are you suppose to send it via RPC? It seems like you've chosen a wrong approach for whatever you trying to do. On Mar 28, 7:41 pm, Kritzli pfister.ta...@googlemail.com wrote: Hi, I've got a problem with a parcelable ArrayList. I made a custom Button called MyButton and the ArrayList is a generic one. So it only takes MyButton objects. Passing the list from on Activity to another is not the problem. In the receiving Activity the Log says, it has some elements, but if i read specific values (like height and text of the button), it always says null or 0. public class MyButton extends Button implements Parcelable{ private HashMapString, String map; public static Context context; public MyButton(Context context){ super(context); this.context = context; map = new HashMapString, String(); } public MyButton(Context context, AttributeSet attrs){ super(context, attrs); } public MyButton(Parcel in){ super(context); map = new HashMapString, String(); readFromParcel(in); } public static final Parcelable.CreatorMyButton CREATOR = new Parcelable.CreatorMyButton() { public MyButton createFromParcel(Parcel in) { return new MyButton(in); } public MyButton[] newArray(int size) { return new MyButton[size]; } }; @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(map.size()); for (String s: map.keySet()) { dest.writeString(s); dest.writeString(map.get(s)); } } public void readFromParcel(Parcel in) { int count = in.readInt(); for (int i = 0; i count; i++) { map.put(in.readString(), in.readString()); } } public String get(String key) { return map.get(key); } public void put(String key, String value) { map.put(key, value); } } If you could have a look at my code and tell me what i made wrong, I would be very glad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Question for Admob users
I went with these permissions for 3-4 months and didn't ever see a geo- targeted advertisement on my phones. Maybe US users get them, but looking at CTR/eCPM I get a feeling it's all the same free games for ur %modelname% for them too. It's strange that your users are asking about it. I received all sorts of complaints and insults, but nobody ever asked about permissions. On Mar 28, 2:59 pm, Neilz neilhorn...@googlemail.com wrote: Hi Yahel. Yes, I've read all that, and also asked on the group. But unfortunately, that group only seems to post once every few days, it's not moderated properly. I need to know quicker than that! Any other experiences with this? On Mar 28, 12:45 pm, Yahel kaye...@gmail.com wrote: Hi, This is more a admob oriented questions :http://groups.google.com/group/admob-publisher-discuss/topics The admob SDK states that it is optionnal : Optionally, you can add the ACCESS_COARSE_LOCATION and/or ACCESS_FINE_LOCATION permissions to allow AdMob the ability to show geo- targeted ads. I don't think you'll notice any difference. Although, you might have a Uk audience that receives US only ads. But from what I've seen with my app, the geo-targeted ads are pretty seldom. Yahel On 28 mar, 12:38, Neilz neilhorn...@googlemail.com wrote: Hi all. I'm using Admob, and currently have android.permission.ACCESS_COARSE_LOCATION set in my manifest. Now, my app clearly doesn't require location, and a lot of users are asking why I need it. I've just discovered that Admob doesn't actually require that the location is set, the only essential permission is the INTERNET one. So my question is, can I remove the location permission, and be confident that the ads will still serve just as effectively, and that it won't have a detrimental affect on my ad revenue? 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Input method editor(IME) in fullscreen
Thanks Dianne, Solved. just put setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI); So in landscape mode, soft keyboard is not showing full screen, the the edittext is visible and showing dots. Nithin On Mar 29, 12:15 pm, Dianne Hackborn hack...@android.com wrote: Set the input type to password. This has the normal text view show dots, and the IME sees this and do so as well. On Sun, Mar 28, 2010 at 11:07 PM, Nithin nithin.war...@gmail.com wrote: Hi, In landscape mode, the soft keyboard(IME-input method editor) is showing full screen and displaying the plain text. But my editText is a password field. So how can I show dots instead of the actual characters when the IME is in full screen. This happens in landscape mode, in portrait , its working fine. Nithin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] RotateAnimation - Stopping and starting again after every rotation
Hi, I am rotating a view using rotateAnimation with this code new RotateAnimation(0, 360, w / 2, h / 2); I want to rotate this view infinitely, so i put setRepeatCount(RotateAnimation.INFINITE); But the problem is after every one complete rotation, its stopping and starting again, means by default rotateAnimation have AccelerateDecelerateInterpolator(). I feel because of this. So if i put setInterpolator(null), its throwing null pointer exception. How to solve this. I want to rotate my view without any lag. Nithin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] T-Mobile Android Firmware - Pulse device - Data SMS Messages
Hi! I am developing an Android aplication that receives data messages (it is different than usual text messages and wap push). I have been testing it with different platforms and devices (Htc G1, Magic, Hero, Acer Liquid, Samsung Galaxy). It works on every device but T-Mobile Pulse. I am using this intent filter: intent-filter action android:name=android.intent.action.DATA_SMS_RECEIVED / data android:scheme=sms / data android:host=localhost / data android:port=3 / /intent-filter The problem is that on T-Mobile Pulse these messages apear in the inbox, but they are not catched by my app. I suppose it is connected with Pulse firmware. Is there any way I could ask for support from a team that had developed this firmware? I would be very grateful for any response! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Device Seeding Program for Top Android Market Developers
Poland, still waiting. I think there is so many variables (time Google sent your phone, delivery company choosed, location you are in and many, many more) so you can't really know when to expect your phone. I'll aske again - are there any developers from Poland who did receive their phone from Device Seeding Program? On Mar 29, 9:54 am, Lorents iva...@gmail.com wrote: Norway, still waiting :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Changing the style attribute of a button according to its state
I know you can change buttons background by creating a simple XML file, like this: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_window_focused=false android:state_enabled=true android:drawable=@drawable/button_normal / !-- ... -- /selection I was wondering if it is possible to use a similar approach to change the style attribute of an element using the same (or similar) technique. Or, if that is not possible, how can the style attribute be changed during runtime (there is no such thing as button.setStyle(R.style.button)). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: RotateAnimation - Stopping and starting again after every rotation
Nithin wrote: Hi, I am rotating a view using rotateAnimation with this code new RotateAnimation(0, 360, w / 2, h / 2); I want to rotate this view infinitely, so i put setRepeatCount(RotateAnimation.INFINITE); But the problem is after every one complete rotation, its stopping and starting again, means by default rotateAnimation have AccelerateDecelerateInterpolator(). I feel because of this. So if i put setInterpolator(null), its throwing null pointer exception. How to solve this. I want to rotate my view without any lag. Nithin insted of passing null use linear interpolator pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: left scrollbar
Hi Why don't we have any view that supports both horizontal and vertical scrollbar? What am i supposed to do to show an auditorium layout on Android (which enables user to select particular seat on that auditorium? Regards, Abhishek On Mar 29, 4:36 am, Romain Guy romain...@android.com wrote: Yes. On Sun, Mar 28, 2010 at 2:21 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Dianne, In the future, is there support planned for right-to-left locales on Android? On Mar 28, 12:37 am, Dianne Hackborn hack...@android.com wrote: But why do you want to put a scroll bar on the left? Scroll bars on Android are on the right. Making that different just makes things gratuitously different for the user, for no reason I can see. On Sat, Mar 27, 2010 at 9:09 AM, skink psk...@gmail.com wrote: On Mar 27, 3:03 pm, Mark Murphy mmur...@commonsware.com wrote: emna zeddini wrote: hello, I didn't understand what you meant.Is it impossible? I mean that none of the built-in classes (e.g., ScrollView) offer scrollbars on the left side. You are welcome to examine the 2,400 lines of code that make up ScrollView.java and HorizontalScrollView.java to see if you can figure out how to make a ScrollViewWithScrollBarOnTheLeft.java to meet your needs. i believe it is android.view.View that draws scrollbars pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] waiting
Germany, still waiting. ... and growing nervous :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Device Seeding Program for Top Android Market Developers
Germany, still waiting. ... and growing nervous :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] updating listview items
Hi all, In the application im working on now i came up with the following problem. I have list view which is displaying items with images in most cases it will be different image for different items ( thumbnails about 60x60 pixels ). So the problem is how can i handle image processing for the view. For know i have the following variants: 1. I can cache all bitmaps and when i try to display view i get bitmap from cache synchronously and display it. The problem is that 60x60=3600x4=14kb per bitmap which is waste of resources. 2. When i need to display view i can register event to some thread to decode the associated bitmap which will decode it in background and than to update gui. This sounds good for me the scrolling is still smooth because all image processing is done in background. Updating list view is bit jerky for now i am doing it view notifyDataSetChanged which is updating all visible views although i can update thumbnail for a single item. So question one is is there better way the update single listview element than calling notifyDataSetChanged. Can you think of some better strategies for solving this problem. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Programmatically setting a new default ringtone without the ringtone picker
I can't see why your default ringtone is reset on each reboot. Did tou try TapSound freely available on Android Market ? The second tab simply set your ringtone from any .mp3 on your sdcard. I don't know why this happens, either. The ringtone I use is one of the standard ones which comes with Android, not a self-installed mp3 on the sdcard. It's called Digital Phone. I set it in Settings - Sound and Display - Phone ringtone, and it remains in effect until I reboot, at which time it always gets reset to a different ringtone. Actually, the Notification ringtone also gets reset upon reboot, and the phone volume always gets set to silent. Every time I reboot, I have to reset the phone and notification ringtones, as well as raising the volume back to an audible level again. Some day I might figure out why this happens. But in the mean time, I still want to know how to reset the default ringtones via an application, without using the ringtone picker or any other human interaction. This way, I can use one of the Locale plugins to run my wished-for ringtone-setting app every time the phone reboots. And I'd also like my desired app to reset the volume to the max level, although I'll work on that another time. Is there no way to set the default ringtones programmatically, without using the ringtone picker? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Notification manager question
Hi Mark, I am facing problem in having single icon on status bar with number of particular notification occurrence. ex: ICON(3)... i made below changes... the number is coming but again multiple icons are coming up. What I have to need to achieve single icon and number of notification on the status bar? if(count == 1) { pendingIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0); n.setLatestEventInfo(mContext, title, caption, pendingIntent); } else { // intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); // pendingIntent = PendingIntent.getActivity(mContext, 0,intent,PendingIntent.FLAG_UPDATE_CURRENT); // pendingIntent = PendingIntent.getBroadcast(mContext, 0, intent, penndingIntent.FLAG_UPDATE_CURRENT|); pendingIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0); n.setLatestEventInfo(mContext, title, caption.replaceAll(%s, Integer.toString(count)),pendingIntent); } Thanks Gururaja B O On Feb 18, 6:17 pm, Mark Murphy mmur...@commonsware.com wrote: Petroleum Nasby wrote: I need multiple notifications to appear in the dropdown notifier window. That's not a good idea in general. But when I add multiple notifications, multiple icons appear in the status bar. Correct. That's part of the reason why that's not a good idea in general. I only advise this if the notifications are substantially different. For example, having onenotificationper unread email message is a poor UI. Having onenotificationfor unread email and onenotificationfor unread Twitter messages is better, though of uncertain value to the user. It is possible to have a red number overlaid on the icon, but in order to do this, one must apparently overwrite earlier notifications, losing that needed information. What needed information? How do I have multiple notifications represented by a single overlaid red number on one icon, which matches the number of notifications in the dropdown, without losing them? You can't. The number of icons in the status bar will match the number of icons in thenotificationdrawer (dropdown). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Programmatically setting a new default ringtone without the ringtone picker
On Mar 29, 5:32 am, HippoMan hippo.mail...@gmail.com wrote: Is there no way to set the default ringtones programmatically, without using the ringtone picker? ... nor with any application that requires human interaction? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Programmatically setting a new default ringtone without the ringtone picker
On Mar 29, 5:32 am, HippoMan hippo.mail...@gmail.com wrote: [ ... ] I don't know why this happens, either. [ ... ] I should add that I am not using any app which affects sounds or ringtones, at least not that I know of. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] spinner
Good Morning, I am thinking of having a spinner with a reversed direction , that's from right to left. Have I to override the class spinner.java ? Cordially. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] How to use emulateShiftHeld() Method???
Hi, Can anyone tell me how to use emulateShiftHeld () method of WebView class.. Please rep as soon as 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Proper way of importing contacts to the device/contacts operations are very slow
thank you for your response! Unfortunately this method took even longer - 31sec on Magic. On 23 Mar, 15:50, timo prill timo.pr...@googlemail.com wrote: hey, try this. maybe its a faster approach to go directly through the ContentResolver instead of using createPersonInMyContactsGroup: ContentValues values = new ContentValues(); Uri uri; String id; ContentResolver cr = getContentResolver (); for (int i = 0; i 100; i++) { values.clear(); values.put(People.NAME, Test + i); uri = cr.insert(People.CONTENT_URI, values); id = uri.getLastPathSegment(); People.addToMyContactsGroup(cr, Long.parseLong(id)); } cheers. cpphool schrieb: Hi! Currently, I'm using HTC Magic (1.5) and Acer Liquid (1.6) to test the app. my sample code snippet for API 2.0: for (int i = 0; i 100; i++) { Log.d(TAG,iteracja + i); ContentValues personValues = new ContentValues(); personValues.put(Contacts.People.NAME, Test + i); personValues.put(Contacts.People.STARRED, 0); Uri newPersonUri = Contacts.People.createPersonInMyContactsGroup(getContentResolver(), personValues); } I did a few tests. Each time I changed NAME String in order to avoid duplicates. Results: 1) Acer Liquid (sync off) - 12 sec 2) Acer Liquid (sync on) - 30 sec 3) Acer Liquid (sync on) - 55 sec 4) Acer Liquid (sync on) - 35 sec 5) Acer Liquid (sync off) - 13 sec 1) HTC Magic (sync off) - 27 sec 2) HTC Magic (sync off) - stuck. log from logcat: ERROR/CursorWindow(13459): need to grow: mSize = 1048576, size = 279, freeSpace() = 162, numRows = 2789 ERROR/CursorWindow(13459): not growing since there are already 2789 row(s), max size 1048576 ERROR/CursorWindow(13459): The row failed, so back out the new row accounting from allocRowSlot 2788 ERROR/Cursor(13459): Failed allocating fieldDir at startPos 0 row 2788 DEBUG/Cursor(13459): finish_program_and_get_row_count row 2213 then I turned the sync off and my application started running again (without restarting the app)! took 30 sec to complete. Even if we turn off sync on HTC Magic it takes a long time to simply add empty contacts. Adding 5000 empty contacts (without any other operations) would take 1500sec = 25min. On 23 Mar, 11:55, timo prill timo.pr...@googlemail.com wrote: hi, which SDK version are you using? 1.5? 1.6? 2.0? 2.1? there were some changes to the contact api from 1.6 to 2.0... and maybe give a short snippet of how you insert the contacts to the database. maybe you do some (wrong) very time-consuming database-queries or you just missed something, because i have seen my code using the contact db implementation run way faster.. even with vcard-parsing full blown contacts...on the htc magic cheers cpphool schrieb: Hi! I have some questions concerning importing contacts to the device, which is extremely slow. First of all, if you delete all your contacts, google sync will restore it very quickly. However, when my app is adding contacts to the device, it's very slow (a few contacts per second). Even if I add almost empty contacts (with name only), it is a time-consuming process. If I turn google sync off, importing 5000 contacts can take 1-2 hours (on HTC Magic). When google sync is on it can take up to 24hours. And this happens despite the fact, that application for the whole time is in the foreground, device is connected to charger and screen is on. I checked the logcat to make sure my app is adding the contacts the whole time, and it is. I tried different methods and different devices. The results differ of course, yet manually adding contacts is always significantly slower that google sync. Is there any way that I can speed up the process? So that importing 5000 contacts will take less than an hour. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Handling Key Press from Soft Keyboard in EditText
Hi, I'm trying to handle the key-press event (OnKeyListener). I know that doesn't work http://groups.google.com/group/android-developers/browse_thread/thread/43c2140c0d687899 I tried to set a custom KeyListner (not OnKeyListener) using: 1. public void setKeyListener -- but the methods onKeyDown/Up/Other are never called 2. Declaratively using inputMethod attribute in XML but it results in ClassNotFoundException. What's the simplest and preferably, most direct and intuitive method, to handle key-strokes from soft-key in EditText in my applicaiton... any direction will be useful! Happy Hacking, Gaurav www.mastergaurav.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: spinner
If you want the text to align to right, then create a custom adapter which extends BaseAdapter and align the text to right. Nithin On Mar 29, 2:53 pm, emna zeddini zeddini.e...@gmail.com wrote: Good Morning, I am thinking of having a spinner with a reversed direction , that's from right to left. Have I to override the class spinner.java ? Cordially. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Question for Admob users
On Mar 29, 8:33 am, Vladimir vladimir.funti...@gmail.com wrote: I went with these permissions for 3-4 months and didn't ever see a geo- targeted advertisement on my phones. Maybe US users get them, but looking at CTR/eCPM I get a feeling it's all the same free games for ur %modelname% for them too. Thanks Vladimir... and when you removed it, you didn't notice any reduction in clicks? It's strange that your users are asking about it. I received all sorts of complaints and insults, but nobody ever asked about permissions. Well, the rest of my app is perfect, there's nothing else to complain about ;-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Handling Key Press from Soft Keyboard in EditText
editText.addTextChangedListener(new TextWatcher()); this interface contains three methods, which will be called accordingly when you type using soft keyboard. Nithin On Mar 29, 3:11 pm, Gaurav Vaish gaurav.va...@gmail.com wrote: Hi, I'm trying to handle the key-press event (OnKeyListener). I know that doesn't workhttp://groups.google.com/group/android-developers/browse_thread/threa... I tried to set a custom KeyListner (not OnKeyListener) using: 1. public void setKeyListener -- but the methods onKeyDown/Up/Other are never called 2. Declaratively using inputMethod attribute in XML but it results in ClassNotFoundException. What's the simplest and preferably, most direct and intuitive method, to handle key-strokes from soft-key in EditText in my applicaiton... any direction will be useful! Happy Hacking, Gauravwww.mastergaurav.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] http POST message
Hi. I ahve been trying to send a http POST message towards my server, I have been using this code : HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(sUrl); // Add your data ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); String userAgent = Management.getInstance().getUserAgent(); nameValuePairs.add(new BasicNameValuePair(User-Agent, Test_User_Agent)); nameValuePairs.add(new BasicNameValuePair(Data, data)); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); Honestly, to me it all seems overly complicated To start off, how do I actually add a body (for example a custom XML) to the post ? Is the nameValuePairs the only option ? I'd like to ismply add a POST body with data without having to name it with a key... Any help or tips 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Handling Key Press from Soft Keyboard in EditText
Hi Nithin, Thanks for your response however in this case, I won't be notified if there's no text and del key is pressed. I want notification about Key-Down/Up and not just text-part. -- Happy Hacking, Gaurav www.mastergaurav.com On Mar 29, 3:18 pm, Nithin nithin.war...@gmail.com wrote: editText.addTextChangedListener(new TextWatcher()); this interface contains three methods, which will be called accordingly when you type using soft keyboard. Nithin On Mar 29, 3:11 pm, Gaurav Vaish gaurav.va...@gmail.com wrote: Hi, I'm trying to handle the key-press event (OnKeyListener). I know that doesn't workhttp://groups.google.com/group/android-developers/browse_thread/threa... I tried to set a custom KeyListner (not OnKeyListener) using: 1. public void setKeyListener -- but the methods onKeyDown/Up/Other are never called 2. Declaratively using inputMethod attribute in XML but it results in ClassNotFoundException. What's the simplest and preferably, most direct and intuitive method, to handle key-strokes from soft-key in EditText in my applicaiton... any direction will be useful! Happy Hacking, Gauravwww.mastergaurav.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: RotateAnimation - Stopping and starting again after every rotation
Nithin just study the demo Rotation code present in APIDEMO example. u need to change just one value in that. -- Regards Sandeep On Mon, Mar 29, 2010 at 2:24 PM, skink psk...@gmail.com wrote: Nithin wrote: Hi, I am rotating a view using rotateAnimation with this code new RotateAnimation(0, 360, w / 2, h / 2); I want to rotate this view infinitely, so i put setRepeatCount(RotateAnimation.INFINITE); But the problem is after every one complete rotation, its stopping and starting again, means by default rotateAnimation have AccelerateDecelerateInterpolator(). I feel because of this. So if i put setInterpolator(null), its throwing null pointer exception. How to solve this. I want to rotate my view without any lag. Nithin insted of passing null use linear interpolator pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Proper way of importing contacts to the device/contacts operations are very slow
Use AsyncTask to update the contacts . Nithin On Mar 29, 2:56 pm, cpphool cpph...@gmail.com wrote: thank you for your response! Unfortunately this method took even longer - 31sec on Magic. On 23 Mar, 15:50, timo prill timo.pr...@googlemail.com wrote: hey, try this. maybe its a faster approach to go directly through the ContentResolver instead of using createPersonInMyContactsGroup: ContentValues values = new ContentValues(); Uri uri; String id; ContentResolver cr = getContentResolver (); for (int i = 0; i 100; i++) { values.clear(); values.put(People.NAME, Test + i); uri = cr.insert(People.CONTENT_URI, values); id = uri.getLastPathSegment(); People.addToMyContactsGroup(cr, Long.parseLong(id)); } cheers. cpphool schrieb: Hi! Currently, I'm using HTC Magic (1.5) and Acer Liquid (1.6) to test the app. my sample code snippet for API 2.0: for (int i = 0; i 100; i++) { Log.d(TAG,iteracja + i); ContentValues personValues = new ContentValues(); personValues.put(Contacts.People.NAME, Test + i); personValues.put(Contacts.People.STARRED, 0); Uri newPersonUri = Contacts.People.createPersonInMyContactsGroup(getContentResolver(), personValues); } I did a few tests. Each time I changed NAME String in order to avoid duplicates. Results: 1) Acer Liquid (sync off) - 12 sec 2) Acer Liquid (sync on) - 30 sec 3) Acer Liquid (sync on) - 55 sec 4) Acer Liquid (sync on) - 35 sec 5) Acer Liquid (sync off) - 13 sec 1) HTC Magic (sync off) - 27 sec 2) HTC Magic (sync off) - stuck. log from logcat: ERROR/CursorWindow(13459): need to grow: mSize = 1048576, size = 279, freeSpace() = 162, numRows = 2789 ERROR/CursorWindow(13459): not growing since there are already 2789 row(s), max size 1048576 ERROR/CursorWindow(13459): The row failed, so back out the new row accounting from allocRowSlot 2788 ERROR/Cursor(13459): Failed allocating fieldDir at startPos 0 row 2788 DEBUG/Cursor(13459): finish_program_and_get_row_count row 2213 then I turned the sync off and my application started running again (without restarting the app)! took 30 sec to complete. Even if we turn off sync on HTC Magic it takes a long time to simply add empty contacts. Adding 5000 empty contacts (without any other operations) would take 1500sec = 25min. On 23 Mar, 11:55, timo prill timo.pr...@googlemail.com wrote: hi, which SDK version are you using? 1.5? 1.6? 2.0? 2.1? there were some changes to the contact api from 1.6 to 2.0... and maybe give a short snippet of how you insert the contacts to the database. maybe you do some (wrong) very time-consuming database-queries or you just missed something, because i have seen my code using the contact db implementation run way faster.. even with vcard-parsing full blown contacts...on the htc magic cheers cpphool schrieb: Hi! I have some questions concerning importing contacts to the device, which is extremely slow. First of all, if you delete all your contacts, google sync will restore it very quickly. However, when my app is adding contacts to the device, it's very slow (a few contacts per second). Even if I add almost empty contacts (with name only), it is a time-consuming process. If I turn google sync off, importing 5000 contacts can take 1-2 hours (on HTC Magic). When google sync is on it can take up to 24hours. And this happens despite the fact, that application for the whole time is in the foreground, device is connected to charger and screen is on. I checked the logcat to make sure my app is adding the contacts the whole time, and it is. I tried different methods and different devices. The results differ of course, yet manually adding contacts is always significantly slower that google sync. Is there any way that I can speed up the process? So that importing 5000 contacts will take less than an hour. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: spinner
Hello, Could you please explain a little more. Thanks in advance. 2010/3/29 Nithin nithin.war...@gmail.com If you want the text to align to right, then create a custom adapter which extends BaseAdapter and align the text to right. Nithin On Mar 29, 2:53 pm, emna zeddini zeddini.e...@gmail.com wrote: Good Morning, I am thinking of having a spinner with a reversed direction , that's from right to left. Have I to override the class spinner.java ? Cordially. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] IPSEC in NDK code for Android
Hi. Does the NDK support IPSEC? I could'nt find the ported ipsec.h in the NDK tree. Any clue? 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Getting all of a long string in DDMS?
Hi all, I'm getting a server response back in ddms, here's my code: InputStream responseStream = method.getResponseBodyAsStream(); responseString = convertStreamToString(responseStream); // standard function for InputStream String int statusCode = method.getStatusCode(); method.releaseConnection(); Log.e(httpPost, Response string: + responseString + , code: + statusCode); But I'm finding that ddms logs only show about the first 50 lines of the response, then cuts everything else off, which isn't very helpful, since it means I can't see any of the useful info. I don't have much control over the content of the response - it's a standard Django debug page, i.e. quite long. Does anyone know how I can get ddms to show the whole thing? 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Application as root
Hello Dianne, I have a question related to this. Is it possible to use sharedUserId=android.uid.system in combination with (re-)signing a (newly) built Android and the app with the same key to achieve having more permissions for an app? Thanks in advance. On 26 mrt, 22:10, Dianne Hackborn hack...@android.com wrote: You can't as a third party application (in fact you can't at all without hacking the platform or possibly running in factory test mode). Modifying the platform is more appropriate for android-porting. On Fri, Mar 26, 2010 at 5:22 AM, manjunath phc2h5nh3.ma...@gmail.comwrote: Hi, I want to run a application as root to check one of my API functionality. I know that Android won't permit applications with root access i.e. setting UID = 0. Can anyone provide a hack so that I can run my application as root. I saw in Process.java file that FIRST_APPLICATION_UID is set to 1 and so on. If I set it to 0 my homescreen doesn't come up. Can anyone tell me where this security check is done. I also want to know the actual flow for any application to run on android. Thanks, Manjunath -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: left scrollbar
Hi everybody, First of all, I want to thank you so much for the help and support you gave me. Then , I want to inform you that finally I have a scrollbar on the left side. Thank you so much. 2010/3/29 ABhi abhishek.gonda...@gmail.com Hi Why don't we have any view that supports both horizontal and vertical scrollbar? What am i supposed to do to show an auditorium layout on Android (which enables user to select particular seat on that auditorium? Regards, Abhishek On Mar 29, 4:36 am, Romain Guy romain...@android.com wrote: Yes. On Sun, Mar 28, 2010 at 2:21 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Dianne, In the future, is there support planned for right-to-left locales on Android? On Mar 28, 12:37 am, Dianne Hackborn hack...@android.com wrote: But why do you want to put a scroll bar on the left? Scroll bars on Android are on the right. Making that different just makes things gratuitously different for the user, for no reason I can see. On Sat, Mar 27, 2010 at 9:09 AM, skink psk...@gmail.com wrote: On Mar 27, 3:03 pm, Mark Murphy mmur...@commonsware.com wrote: emna zeddini wrote: hello, I didn't understand what you meant.Is it impossible? I mean that none of the built-in classes (e.g., ScrollView) offer scrollbars on the left side. You are welcome to examine the 2,400 lines of code that make up ScrollView.java and HorizontalScrollView.java to see if you can figure out how to make a ScrollViewWithScrollBarOnTheLeft.java to meet your needs. i believe it is android.view.View that draws scrollbars pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Video View
Hi all, How to add an icon on the top of VideoView, I want my player VideoView window should contain the brand image of my player. How to add it to the VideoView Thank you Dilli -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Beginning Development
Hey Russell, Java is the language that you use to write Android applications, C++ is the language when want to write low level additions to the OS (Which is Linux based), but that is for serious hard core users. I would suggest getting a book on Java 6 and learning that first. Then after that, purchase the subscription from the excellent Mark Murphy. His guides are not only helpful, but rather amusing as well. Then it's just down to practice, practice, practice :D Hope this helps, and if need any firm links or pointers just ask, we are a friendly bunch LOL. Regards Anthoni On Mar 27, 1:04 am, Russell russ.a.mor...@gmail.com wrote: Hi guys, I always wanted to be apart of the Open-Source community and I am...Sadly I havent contributed as much as id like. So id like to start by developing apps for the Android Mobile OS. What are the programming languages that need to be known to begin developing apps? I went to school for VB6, so I have SOME programming experience. I did a bit of reading, and I saw that JAVA is used to create EVERY app and I saw a couple occurrences of C/C++. Are there any OTHER languages that need to be known? And im Jamaican, so hey to all. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: left scrollbar
Hello, Just I have a l suggestion, why don't you in the futur add a field in which android users can choose between left side or right side scrollbars so that you satisfy the needs of both RTL and LTR languages. Best regards. 2010/3/27 emna zeddini zeddini.e...@gmail.com Hello,. Is there a way to have a scrollbar on the left side? 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Getting all of a long string in DDMS?
In your code you should read the complete data available in the responseStream because the stream may don't give complete data at one attempt. You need to call read method on responseStream till it ends. ( i.e: read bytes size -1) i.e read the data till you got end of stream. then convert it to String and display better way is to read block by block and display. May be this will help you. Thank you On Mar 29, 3:43 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi all, I'm getting a server response back in ddms, here's my code: InputStream responseStream = method.getResponseBodyAsStream(); responseString = convertStreamToString(responseStream); // standard function for InputStream String int statusCode = method.getStatusCode(); method.releaseConnection(); Log.e(httpPost, Response string: + responseString + , code: + statusCode); But I'm finding that ddms logs only show about the first 50 lines of the response, then cuts everything else off, which isn't very helpful, since it means I can't see any of the useful info. I don't have much control over the content of the response - it's a standard Django debug page, i.e. quite long. Does anyone know how I can get ddms to show the whole thing? 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Question for Admob users
Well, I think if you are showing ads into your application, you should make the version adware and clearly state into the description that The version/application/release is ad supported OR contains AD. On Mon, Mar 29, 2010 at 3:12 PM, Neilz neilhorn...@googlemail.com wrote: On Mar 29, 8:33 am, Vladimir vladimir.funti...@gmail.com wrote: I went with these permissions for 3-4 months and didn't ever see a geo- targeted advertisement on my phones. Maybe US users get them, but looking at CTR/eCPM I get a feeling it's all the same free games for ur %modelname% for them too. Thanks Vladimir... and when you removed it, you didn't notice any reduction in clicks? It's strange that your users are asking about it. I received all sorts of complaints and insults, but nobody ever asked about permissions. Well, the rest of my app is perfect, there's nothing else to complain about ;-) -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Search Bar
Hey, Download the Shelves source code developed by Romain Guy, one of the main Honcho's who developed Android. In there, there is an XML view that you can just include and voila, your very own search bar without any effort. Of course that just gives you the gui layout, it is then up to you to add the code behind it. Regards Anthoni PS: Forgot the link to the shelves app http://code.google.com/p/shelves/ On Mar 29, 4:23 am, Marco Alanen denravon...@gmail.com wrote: Did you ever manage to solve this? I'm also interested in making a search bar which looks like QuickSearch. On 18 mar, 00:38, Paolo brand...@gmail.com wrote: I'd like to make asearchbaras in the youtube widget. It seems a layout with a edittext view and two imagebutton, but i'm not able to make it equal. this is an example:http://www.mobiletor.com/images/quick-search-box-android.jpg I'm interested only to the GUI, not to the quicksearchfeature. Do you have an idea on how to reproduce it? Then, I'd like to have also the same keyboard, with thesearchkey in the bottom to right, is it possibile? 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Getting all of a long string in DDMS?
Like int read_cnt = 0; byte[] byteresp = new byte[1024]; int len = responseStream.available(); while(read_cnt len) { int size = len - read_cnt; int nR = responseStream.read(byteresp, 0, (size1024?1024:(int)size)); if(nR 0){ break; } read_cnt += nR; String resp= new String(byteresp, 0, nR); Log.i(Data, resp); resp = null; } On Mon, Mar 29, 2010 at 4:25 PM, Dilli dilliraomca...@gmail.com wrote: In your code you should read the complete data available in the responseStream because the stream may don't give complete data at one attempt. You need to call read method on responseStream till it ends. ( i.e: read bytes size -1) i.e read the data till you got end of stream. then convert it to String and display better way is to read block by block and display. May be this will help you. Thank you On Mar 29, 3:43 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi all, I'm getting a server response back in ddms, here's my code: InputStream responseStream = method.getResponseBodyAsStream(); responseString = convertStreamToString(responseStream); // standard function for InputStream String int statusCode = method.getStatusCode(); method.releaseConnection(); Log.e(httpPost, Response string: + responseString + , code: + statusCode); But I'm finding that ddms logs only show about the first 50 lines of the response, then cuts everything else off, which isn't very helpful, since it means I can't see any of the useful info. I don't have much control over the content of the response - it's a standard Django debug page, i.e. quite long. Does anyone know how I can get ddms to show the whole thing? 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Thank you, Dilli Rao. M www.arijasoft.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Getting all of a long string in DDMS?
Thanks. I've tried the following, but it just doesn't output anything at all - any ideas what might be wrong? I'll try to debug too: InputStream responseStream = method.getResponseBodyAsStream(); responseString = convertStreamToString(responseStream); int statusCode = method.getStatusCode(); method.releaseConnection(); //Log.e(httpPost, Response string: + responseString + , code: + statusCode); int read_cnt = 0; byte[] byteresp = new byte[1024]; int len = responseStream.available(); while(read_cnt len) { int size = len - read_cnt; int nR = responseStream.read(byteresp, 0, (size1024?1024: (int)size)); if(nR 0){ break; } read_cnt += nR; String resp = new String(byteresp, 0, nR); Log.e(Response data, resp); resp = null; } On Mar 29, 12:01 pm, dillirao malipeddi dillir...@arijasoft.com wrote: Like int read_cnt = 0; byte[] byteresp = new byte[1024]; int len = responseStream.available(); while(read_cnt len) { int size = len - read_cnt; int nR = responseStream.read(byteresp, 0, (size1024?1024:(int)size)); if(nR 0){ break;} read_cnt += nR; String resp= new String(byteresp, 0, nR); Log.i(Data, resp); resp = null; } On Mon, Mar 29, 2010 at 4:25 PM, Dilli dilliraomca...@gmail.com wrote: In your code you should read the complete data available in the responseStream because the stream may don't give complete data at one attempt. You need to call read method on responseStream till it ends. ( i.e: read bytes size -1) i.e read the data till you got end of stream. then convert it to String and display better way is to read block by block and display. May be this will help you. Thank you On Mar 29, 3:43 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi all, I'm getting a server response back in ddms, here's my code: InputStream responseStream = method.getResponseBodyAsStream(); responseString = convertStreamToString(responseStream); // standard function for InputStream String int statusCode = method.getStatusCode(); method.releaseConnection(); Log.e(httpPost, Response string: + responseString + , code: + statusCode); But I'm finding that ddms logs only show about the first 50 lines of the response, then cuts everything else off, which isn't very helpful, since it means I can't see any of the useful info. I don't have much control over the content of the response - it's a standard Django debug page, i.e. quite long. Does anyone know how I can get ddms to show the whole thing? 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Thank you, Dilli Rao. Mwww.arijasoft.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] email crashed
Hi, since a couple of days the com.android.email app crashes. How can I found out why it crashed? I only see the following message: The application Email (process com.android.email) has stopped unexpectedly. Please try again. I have a Nexus One with Android 2.1-update1 (build ERE27). Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Application invisible in Market from Nexus One. Please test.
Hi developers! I've reported that my app is invisible when accessing to Market from Nexus device. In the past I've reported some runtime resolution problem with Tatoo device but as far I know Nexus has a normal screen HVGA 320x480. The strange is that the app is invisible. Can you please check if you can see and install it from Market? Each feedback will realy appreciated. My app is universal unit converter ConvertMe(Beta) free. Thanks in advance, Evgeny -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] SMS Persistent notification!
Hi! I 've bought a LG GW620 with 1.5 android OS. I have a issue that i m not able to resolve. I tell the problem i hope someone knows. You know, that if your phone is off and you receive a call, when you turn on the mobile you receive a message telling you the number and day/ hour of the call. I always remove all this messages and i haven't never had no problem with it, but in the first day i removed one and its notification persist on time. Once i received a new message i get the notification of the new message and the notification of the old one. it's so weird. It supposed that if a click the notification then i will go to the activity that holds it. This activity was the incoming message box of course but the message doesn't appear only the new one. thank in advanced Néstor -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: http POST message
Use StringEntity class to generate a body which you can attach to the post method. http://icloud.com/wiki/index.php/A_Android_tutorial_to_get_you_started This example will get you started. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Mar 29, 3:19 pm, MobDev developm...@mobilaria.com wrote: Hi. I ahve been trying to send a http POST message towards my server, I have been using this code : HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(sUrl); // Add your data ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); String userAgent = Management.getInstance().getUserAgent(); nameValuePairs.add(new BasicNameValuePair(User-Agent, Test_User_Agent)); nameValuePairs.add(new BasicNameValuePair(Data, data)); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); Honestly, to me it all seems overly complicated To start off, how do I actually add a body (for example a custom XML) to the post ? Is the nameValuePairs the only option ? I'd like to ismply add a POST body with data without having to name it with a key... Any help or tips 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: email crashed
Use the SendLog app to see the log, or hook your Phone to the adb and view the logcat. Thanks and Regards, Kumar Bibek. http://tech-droid.blogspot.com On Mar 29, 4:17 pm, Ralph Bergmann ra...@dasralph.de wrote: Hi, since a couple of days the com.android.email app crashes. How can I found out why it crashed? I only see the following message: The application Email (process com.android.email) has stopped unexpectedly. Please try again. I have a Nexus One with Android 2.1-update1 (build ERE27). Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Getting all of a long string in DDMS?
Anna PS wrote: Hi all, I'm getting a server response back in ddms, here's my code: InputStream responseStream = method.getResponseBodyAsStream(); responseString = convertStreamToString(responseStream); // standard function for InputStream String int statusCode = method.getStatusCode(); method.releaseConnection(); Log.e(httpPost, Response string: + responseString + , code: + statusCode); But I'm finding that ddms logs only show about the first 50 lines of the response, then cuts everything else off, which isn't very helpful, since it means I can't see any of the useful info. I don't have much control over the content of the response - it's a standard Django debug page, i.e. quite long. Does anyone know how I can get ddms to show the whole thing? Don't dump it to DDMS. Write it out as a file to the SD card and put a message in DDMS saying hey! go look at this file on the SD card!. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android 2_ 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Question for Admob users
No. Your fill rate will go down, and maybe your click-through rate as well, as the ads will be less relevant. Regards Dag Koding DKIT Android On Mar 28, 11:38 am, Neilz neilhorn...@googlemail.com wrote: Hi all. I'm using Admob, and currently have android.permission.ACCESS_COARSE_LOCATION set in my manifest. Now, my app clearly doesn't require location, and a lot of users are asking why I need it. I've just discovered that Admob doesn't actually require that the location is set, the only essential permission is the INTERNET one. So my question is, can I remove the location permission, and be confident that the ads will still serve just as effectively, and that it won't have a detrimental affect on my ad revenue? 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Beginning Development
Anthoni wrote: I would suggest getting a book on Java 6 and learning that first. Then after that, purchase the subscription from the excellent Mark Murphy. I've heard of that guy. His guides are not only helpful, but rather amusing as well. I cannot imagine writing a book without some humor. It would be boring to read and even more boring to write. And being boring is, well, boring. Thanks! Hope this helps, and if need any firm links or pointers just ask, we are a friendly bunch LOL. Also, you should definitely check out StackOverflow, particularly with the #android tag: http://stackoverflow.com/questions/tagged/android It is a bit easier to keep track of questions and answers over there than on a Google Group. You can search for Android-related questions by putting [android] in the search box along with whatever classes or keywords you are interested in. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android 2_ 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Magic Cube from the Sample Kube
It's quite a bit of work! My app is The Gube and i needed to dust of my geometry books :-) Do a search of gluUnproject in this group and you'll be able to find out quite a bit. On Mar 29, 3:19 am, CMF manf...@gmail.com wrote: Is there any one has an experience on converting the code from the sample-kube to a magic cube? How to detect the position I click is the small cube object and so I can rotate the layer according to my movement? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Which version of Java is used in Android?
The Android SDK in Java 1.5 (v5) compatible. On Mar 26, 8:40 pm, Poldie pol...@gmail.com wrote: I've read that Android apps use Java syntax, and not Java per se, presumably because of the Davlik VM. I'm a Java noob, so I may not be making sense here, but don't different versions of Java support different things - for example, generics in v5, and annotations in v6? If you're using Eclipse and Java, won't it always be whatever is supported in the latest version of Java? Isn't there a chance that when a new version of Java comes out you'll be able to compile apps successfully, but which will fail on an Android machine because the VM won't know how to interpret the bytecode? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Video View
Dilli wrote: How to add an icon on the top of VideoView, I want my player VideoView window should contain the brand image of my player. How to add it to the VideoView Step #1: Create a RelativeLayout Step #2: Make the VideoView be the first child of the RelativeLayout, positioned as you want (e.g., fill_parent/fill_parent) Step #3: Add an ImageView as the second child of the RelativeLayout, positioned as you want That's it. RelativeLayout supports overlapping widgets -- later children are higher in the z-order (i.e., they appear to float over earlier children). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Device Seeding Program for Top Android Market Developers
Hungary, still waiting ;) i guess EU shall receive N1s in the next days... On márc. 29, 11:25, Paul stuem...@gmail.com wrote: Germany, still waiting. ... and growing nervous :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: spinner
I am thinking of having a spinner with a reversed direction , that's from right to left. What you mean by this. If you mean Aligning text to right, then create a class which extends BaseAdapter in that - override the getView() method - create a textview or create your layout in xml and use LayoutInflater to add the xml layout to your adapter. - use setGravity() Nithin On Mar 29, 3:19 pm, emna zeddini zeddini.e...@gmail.com wrote: Hello, Could you please explain a little more. Thanks in advance. 2010/3/29 Nithin nithin.war...@gmail.com If you want the text to align to right, then create a custom adapter which extends BaseAdapter and align the text to right. Nithin On Mar 29, 2:53 pm, emna zeddini zeddini.e...@gmail.com wrote: Good Morning, I am thinking of having a spinner with a reversed direction , that's from right to left. Have I to override the class spinner.java ? Cordially. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Handling Key Press from Soft Keyboard in EditText
use this , KeyboardView.OnKeyboardActionListener() Nithin On Mar 29, 3:24 pm, Gaurav Vaish gaurav.va...@gmail.com wrote: Hi Nithin, Thanks for your response however in this case, I won't be notified if there's no text and del key is pressed. I want notification about Key-Down/Up and not just text-part. -- Happy Hacking, Gauravwww.mastergaurav.com On Mar 29, 3:18 pm, Nithin nithin.war...@gmail.com wrote: editText.addTextChangedListener(new TextWatcher()); this interface contains three methods, which will be called accordingly when you type using soft keyboard. Nithin On Mar 29, 3:11 pm, Gaurav Vaish gaurav.va...@gmail.com wrote: Hi, I'm trying to handle the key-press event (OnKeyListener). I know that doesn't workhttp://groups.google.com/group/android-developers/browse_thread/threa... I tried to set a custom KeyListner (not OnKeyListener) using: 1. public void setKeyListener -- but the methods onKeyDown/Up/Other are never called 2. Declaratively using inputMethod attribute in XML but it results in ClassNotFoundException. What's the simplest and preferably, most direct and intuitive method, to handle key-strokes from soft-key in EditText in my applicaiton... any direction will be useful! Happy Hacking, Gauravwww.mastergaurav.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: RotateAnimation - Stopping and starting again after every rotation
Thanks a lot skink Nithin On Mar 29, 3:26 pm, Sandeep Phansekar sandeep.phanse...@gmail.com wrote: Nithin just study the demo Rotation code present in APIDEMO example. u need to change just one value in that. -- Regards Sandeep On Mon, Mar 29, 2010 at 2:24 PM, skink psk...@gmail.com wrote: Nithin wrote: Hi, I am rotating a view using rotateAnimation with this code new RotateAnimation(0, 360, w / 2, h / 2); I want to rotate this view infinitely, so i put setRepeatCount(RotateAnimation.INFINITE); But the problem is after every one complete rotation, its stopping and starting again, means by default rotateAnimation have AccelerateDecelerateInterpolator(). I feel because of this. So if i put setInterpolator(null), its throwing null pointer exception. How to solve this. I want to rotate my view without any lag. Nithin insted of passing null use linear interpolator pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Find contacts created after a particular time-stamp
Hi, is it possible to know the time at which a contact was created. Actually I want to find all contacts created after a particular time (say 12:00 pm 29th march 2010). I thought that the contact ids were assigned in an increasing order and just noting the largest id at that point would suffice. But with Android 2.0, the internal sync may merge a contact with an existing one and hence assign an older id to it. I hope I have made my question clear -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to display icon on the status bar?
Hi How to display one icon with number of notification like ICON(2)... is there any way to do it.? if i call below code multiple times, it will display separate icons for invocation. Regards Gururaja On Mar 9, 1:35 pm, a a harvey.a...@gmail.com wrote: NotificationmyNoti = newNotification(); myNoti.icon= iconid; myNoti.tickerText = ...//you test.. etc . NotificationManager notiManager; notiManager.notify(0, myNoti);//can show youriconon the statebar. 2010/3/9 Sasi sasikumar.gan...@gmail.com: Hi- I want to create aniconon thestatusbarwithoutthenotification message. Is it possible to create aniconon thestatusbarwithout having thenotificationmessage? I just want to display theiconand not to allow the user to click on it display the any message. thanks. -- You received this message because you are subscribed to the Google Groups AndroidDevelopers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Is there any changes in crop image activity
Sure, makes sense. My two cents is, it seems like a whole lot of people need to grab an image from the gallery and plop a chunk of a certain size out of that image. Ofcourse, doing that by hand is possible and wouldn't be all that hard, but it would involve a hole lot of typing for us app developers and lead to poor user experience since they will have to relearn this function from app to app. I would be simply thrilled if this functionality were to become a part of the SDK. It's reusable and generic enough to make the cut, I think. Anton On Mar 28, 2:34 pm, Dianne Hackborn hack...@android.com wrote: Just to be extra super clear on this -- if you are doing stuff that is not in the SDK, you can expect that your app will break at some point on future versions, on different devices, etc. Any case where you are using magic string constants or such, that isn't a reference to a constant in the SDK, is almost certainly a case where you are using internal implementation details. Expect to break. In this particular case, if there is no constant in the SDK for the string com.android.camera.action.CROP then this is simply not a part of the SDK, and has a chance of breaking in the future. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: How to display icon on the status bar?
guru wrote: How to display one icon with number of notification like ICON(2)... is there any way to do it.? if i call below code multiple times, it will display separate icons for invocation. If you keep the same ID value for notify(), it should not add multiple icons. See here for an example project showing the use of the .number field on Notification: http://github.com/commonsguy/cw-android/tree/master/Notifications/Notify1/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: email crashed
Am 29.03.10 13:41, schrieb Kumar Bibek: Use the SendLog app to see the log okay... but who can fix it? Ralph 03-29 14:45:50.629 E/AndroidRuntime( 2987): Uncaught handler: thread Thread-7 exiting due to uncaught exception 03-29 14:45:50.629 E/AndroidRuntime( 2987): java.lang.IndexOutOfBoundsException: Invalid location 3, size is 3 03-29 14:45:50.629 E/AndroidRuntime( 2987): at java.util.ArrayList.get(ArrayList.java:341) 03-29 14:45:50.629 E/AndroidRuntime( 2987): at com.android.email.mail.store.ImapResponseParser$ImapList.getString(ImapResponseParser.java:289) 03-29 14:45:50.629 E/AndroidRuntime( 2987): at com.android.email.mail.store.ImapStore$ImapFolder.parseBodyStructure(ImapStore.java:869) 03-29 14:45:50.629 E/AndroidRuntime( 2987): at com.android.email.mail.store.ImapStore$ImapFolder.parseBodyStructure(ImapStore.java:825) 03-29 14:45:50.629 E/AndroidRuntime( 2987): at com.android.email.mail.store.ImapStore$ImapFolder.fetch(ImapStore.java:735) 03-29 14:45:50.629 E/AndroidRuntime( 2987): at com.android.email.MessagingController.synchronizeMailboxGeneric(MessagingController.java:823) 03-29 14:45:50.629 E/AndroidRuntime( 2987): at com.android.email.MessagingController.synchronizeMailboxSynchronous(MessagingController.java:427) 03-29 14:45:50.629 E/AndroidRuntime( 2987): at com.android.email.MessagingController.access$400(MessagingController.java:75) 03-29 14:45:50.629 E/AndroidRuntime( 2987): at com.android.email.MessagingController$2.run(MessagingController.java:403) 03-29 14:45:50.629 E/AndroidRuntime( 2987): at com.android.email.MessagingController.run(MessagingController.java:192) 03-29 14:45:50.629 E/AndroidRuntime( 2987): at java.lang.Thread.run(Thread.java:1096) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to have a notification icon with image + text
HI Mark Mruphy, The current implementation of the Bluetooth Notification displays icon on status bar for each failure condition. But i want like single icon and number of such notifications. single icon(number) I used .number field, it is displaying number, but it is also displaying the icon for each failure condition. How this can be handled? Thanks Regards Gururaja B O On Mar 5, 10:35 pm, Mark Murphy mmur...@commonsware.com wrote: sangorys wrote: Hello, I want to put aniconin thenotificationstatusbarwith 1 image + a number. How can I do in using theNotification.iconmethod ? Use theiconand the number field in theNotificationobject. See: http://github.com/commonsguy/cw-android/tree/master/Notifications/Not... -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: How to have a notification icon with image + text
guru wrote: The current implementation of the Bluetooth Notification displays icon on status bar for each failure condition. But i want like single icon and number of such notifications. single icon(number) I used .number field, it is displaying number, but it is also displaying the icon for each failure condition. How this can be handled? I know nothing about the Bluetooth stuff. If you are displaying the Notifications yourself, use the same ID value for each call to notify(), as in the example I showed you. If you are not displaying the Notifications yourself, then you do not have control over those Notifications at the SDK level. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] How good is the Android Dev Phone 2?
I was considering buying it, is it as good as the Nexus One? Wich features does it lack? Thanks Simone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Wifi API - enableNetwork()
Hi, I am working on an App that uses the WifiManager to register new wifis and to establish connections to those. Setting up a correct WifiConfiguration Object is discussed in depth and I followed the instructions. Though I ran into some strange behaviour that i'd like to discuss. When I call: - wifiManager.enableNetwork(w.networkId, true); - It does not connect to the network and if I change into the system settings I see that the wifi state is failed. Then if I configure the wifi inside the system settings it connects without a problem. I searched the web for hours tried any possible FLAG on the WifiConfiguration Object but it didn't effect the result. Then I looked into the reference of WifiManager again and found that method - wifiManager.reassociate(); - Turned out, that this is just what makes the magic happen. Calling reassociate after enableNetwork just made it happen, it connected. I think this is not how the API is designed and should be used. But it works for me so I am happy. Since I am using a rooted G1 with a custom ROM it maybe also be a problem of that specific ROM. Is there anyone who had the same headache? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] minSdkVersion set to 3, but device with 1.5 firmware doesnt recognize the app
Hi there, I have set my in my application's manifest minSdkVersion=3 (I havent set any targetSdkVersion). A friend purchased an HTC Magic with firmware 1.5 and he can't view the app in the market or download the app from a market url. It seems as if the app is not compatible with the device even though it should, right? Any ideas why this happens? any thoughts are welcome!! cheers!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Proper way of importing contacts to the device/contacts operations are very slow
Can you give us some example? As I understand, AsynTask is used for threading. How should I use it to improve speed? I suppose I could create an AsyncTask with a method doInBackground(). This method would add only one contact at a time. Then, I call execute a hundred times. Is this what you mean? I will appreciate any more information :) On 29 Mar, 12:26, Nithin nithin.war...@gmail.com wrote: Use AsyncTask to update the contacts . Nithin On Mar 29, 2:56 pm, cpphool cpph...@gmail.com wrote: thank you for your response! Unfortunately this method took even longer - 31sec on Magic. On 23 Mar, 15:50, timo prill timo.pr...@googlemail.com wrote: hey, try this. maybe its a faster approach to go directly through the ContentResolver instead of using createPersonInMyContactsGroup: ContentValues values = new ContentValues(); Uri uri; String id; ContentResolver cr = getContentResolver (); for (int i = 0; i 100; i++) { values.clear(); values.put(People.NAME, Test + i); uri = cr.insert(People.CONTENT_URI, values); id = uri.getLastPathSegment(); People.addToMyContactsGroup(cr, Long.parseLong(id)); } cheers. cpphool schrieb: Hi! Currently, I'm using HTC Magic (1.5) and Acer Liquid (1.6) to test the app. my sample code snippet for API 2.0: for (int i = 0; i 100; i++) { Log.d(TAG,iteracja + i); ContentValues personValues = new ContentValues(); personValues.put(Contacts.People.NAME, Test + i); personValues.put(Contacts.People.STARRED, 0); Uri newPersonUri = Contacts.People.createPersonInMyContactsGroup(getContentResolver(), personValues); } I did a few tests. Each time I changed NAME String in order to avoid duplicates. Results: 1) Acer Liquid (sync off) - 12 sec 2) Acer Liquid (sync on) - 30 sec 3) Acer Liquid (sync on) - 55 sec 4) Acer Liquid (sync on) - 35 sec 5) Acer Liquid (sync off) - 13 sec 1) HTC Magic (sync off) - 27 sec 2) HTC Magic (sync off) - stuck. log from logcat: ERROR/CursorWindow(13459): need to grow: mSize = 1048576, size = 279, freeSpace() = 162, numRows = 2789 ERROR/CursorWindow(13459): not growing since there are already 2789 row(s), max size 1048576 ERROR/CursorWindow(13459): The row failed, so back out the new row accounting from allocRowSlot 2788 ERROR/Cursor(13459): Failed allocating fieldDir at startPos 0 row 2788 DEBUG/Cursor(13459): finish_program_and_get_row_count row 2213 then I turned the sync off and my application started running again (without restarting the app)! took 30 sec to complete. Even if we turn off sync on HTC Magic it takes a long time to simply add empty contacts. Adding 5000 empty contacts (without any other operations) would take 1500sec = 25min. On 23 Mar, 11:55, timo prill timo.pr...@googlemail.com wrote: hi, which SDK version are you using? 1.5? 1.6? 2.0? 2.1? there were some changes to the contact api from 1.6 to 2.0... and maybe give a short snippet of how you insert the contacts to the database. maybe you do some (wrong) very time-consuming database-queries or you just missed something, because i have seen my code using the contact db implementation run way faster.. even with vcard-parsing full blown contacts...on the htc magic cheers cpphool schrieb: Hi! I have some questions concerning importing contacts to the device, which is extremely slow. First of all, if you delete all your contacts, google sync will restore it very quickly. However, when my app is adding contacts to the device, it's very slow (a few contacts per second). Even if I add almost empty contacts (with name only), it is a time-consuming process. If I turn google sync off, importing 5000 contacts can take 1-2 hours (on HTC Magic). When google sync is on it can take up to 24hours. And this happens despite the fact, that application for the whole time is in the foreground, device is connected to charger and screen is on. I checked the logcat to make sure my app is adding the contacts the whole time, and it is. I tried different methods and different devices. The results differ of course, yet manually adding contacts is always significantly slower that google sync. Is there any way that I can speed up the process? So that importing 5000 contacts will take less than an hour. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this
[android-developers] Re: Is there any changes in crop image activity
I second that! :) On Mar 29, 8:36 am, anton.slut...@gmail.com anton.slut...@gmail.com wrote: Sure, makes sense. My two cents is, it seems like a whole lot of people need to grab an image from the gallery and plop a chunk of a certain size out of that image. Ofcourse, doing that by hand is possible and wouldn't be all that hard, but it would involve a hole lot of typing for us app developers and lead to poor user experience since they will have to relearn this function from app to app. I would be simply thrilled if this functionality were to become a part of the SDK. It's reusable and generic enough to make the cut, I think. Anton On Mar 28, 2:34 pm, Dianne Hackborn hack...@android.com wrote: Just to be extra super clear on this -- if you are doing stuff that is not in the SDK, you can expect that your app will break at some point on future versions, on different devices, etc. Any case where you are using magic string constants or such, that isn't a reference to a constant in the SDK, is almost certainly a case where you are using internal implementation details. Expect to break. In this particular case, if there is no constant in the SDK for the string com.android.camera.action.CROP then this is simply not a part of the SDK, and has a chance of breaking in the future. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Create a custom component using inflate
Hi all, I'm trying to create a component using an xml layout file. I defined a layout with some custom attributes. This layout is inflated when user add it inside another layout. My problem is I don't know the parent, so I pass null for the parent viewgroup when I call inflate method. I think that's the reason why I see anything in my view. Do you know how can I do (I don't want to redefine onDraw method because I use existing component) Below my xml layout and my custome class. RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/img_btn_option android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/txt_btn_option android:layout_width=wrap_content android:layout_height=wrap_content android:layout_toRightOf=@id/img_btn_option android:textColor=@color/font_white android:textStyle=bold/ /RelativeLayout public class ButtonOptionsView extends View { public ButtonOptionsView(Context context, AttributeSet attrs) { super(context, attrs); LayoutInflater li = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); RelativeLayout vg = (RelativeLayout)li.inflate(R.layout.button_option, null); TypedArray ta = getContext().obtainStyledAttributes(attrs,R.styleable.ButtonOption); ((ImageView)vg.findViewById(R.id.img_btn_option)).setImageResource(ta.getResourceId(R.styleable.ButtonOption_image, 0)); ((TextView)vg.findViewById(R.id.txt_btn_option)).setText(ta.getResourceId(R.styleable.ButtonOption_text, 0)); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Video Player - Progress Bar
Any suggestion to my last post? Should I use SurfaceView or VideoView for playing video? Thanks. On Mar 28, 8:41 pm, OrdinaryIndian just.an.ordinary.ind...@gmail.com wrote: I am a newbie to Android and am in the process of writing a simple **video player** app. An activity that shows **a video**. And at the bottom a **progress bar**. I was reading about threads - Main (UI) Thread Background (Worker) Thread. My **question** is which part should go into the Main Thread and which one into the Background Thread? Any code snippets would be very helpful. 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Create a custom component using inflate
arnouf wrote: Hi all, I'm trying to create a component using an xml layout file. I defined a layout with some custom attributes. This layout is inflated when user add it inside another layout. My problem is I don't know the parent, so I pass null for the parent viewgroup when I call inflate method. You need to be the parent. You cannot inflate things into an ordinary View. I think that's the reason why I see anything in my view. Do you know how can I do (I don't want to redefine onDraw method because I use existing component) Below my xml layout and my custome class. RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/img_btn_option android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/txt_btn_option android:layout_width=wrap_content android:layout_height=wrap_content android:layout_toRightOf=@id/img_btn_option android:textColor=@color/font_white android:textStyle=bold/ /RelativeLayout public class ButtonOptionsView extends View { public ButtonOptionsView(Context context, AttributeSet attrs) { super(context, attrs); LayoutInflater li = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); RelativeLayout vg = (RelativeLayout)li.inflate(R.layout.button_option, null); TypedArray ta = getContext().obtainStyledAttributes(attrs,R.styleable.ButtonOption); ((ImageView)vg.findViewById(R.id.img_btn_option)).setImageResource(ta.getResourceId(R.styleable.ButtonOption_image, 0)); ((TextView)vg.findViewById(R.id.txt_btn_option)).setText(ta.getResourceId(R.styleable.ButtonOption_text, 0)); } Make ButtonOptionsView extend RelativeLayout, and replace the RelativeLayout in your XML with merge. Then, inflate into yourself. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.4 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Video Player - Progress Bar
OrdinaryIndian wrote: Any suggestion to my last post? Nothing should go in a background thread. You do not need a background thread for this problem. Here is a project that shows a video player with a timeline. No background threads were harmed in the making of this project: http://github.com/commonsguy/vidtry Just use postDelayed() to arrange to get control every second (roughly) and update your timeline based on the MediaPlayer's elapsed time and duration values. Should I use SurfaceView or VideoView for playing video? Thanks. Either can work. I used MediaPlayer and a SurfaceView, but the necessary methods for a progress indicator are available on VideoView as well. -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Reusable Android library packaging: interest?
Creating Android JARs is fairly easy...so long as all you want to do is ship Java code. If your Java code needs resources or assets, or offers up activities or services, then you have to ship a JAR plus a whole bunch of other stuff. And the person reusing your JAR would need to know about all that other stuff, find it, download it into the right spots, etc. The only way that is somewhat convenient for the developers is to package this stuff into separate APKs...which is inconvenient for the users. IMHO, that's one of the reasons why we don't have a robust collection of third-party widgets or other libraries. There are few recipes for creating such things, no standards or conventions for how to consume them, and no home for them to live. At least, I am not aware of much in this area -- please correct me if I've missed something. I've been working on a solution for all of that, or as good of a solution as I can create given some of the peculiarities of Android's build tools. Before I invest much more time, though, I need to know if anyone really cares. Suppose you found out about...say...a calendar widget you wanted for integration in your app. You might have found it from a Web-based catalog of components, or from a search engine query, or a StackOverflow answer, or whatever. To download that calendar widget, you would run: parcel install name where name is the unique identifier for this widget. That would download the widget to your development machine, plus download any dependent libraries. To use that widget in one of your Android projects, you would run: parcel inject name from the project base directory. This would: -- copy the JAR file(s) into libs/ -- copy the resource(s) into res/ -- merge in key elements (e.g., activities) into AndroidManifest.xml -- copy documentation and other stuff into parcels/name -- do all of the above for all dependencies as well If you write a calendar widget and want to make a parcel for others to reuse, there would be: parcel package name ... where you specify the parcel to create and all the stuff that should go in it (JARs, resources, source code, documentation, etc.). You could wrap this up in an Ant task or Maven plugin or Eclipse, um, thingy, if you wished to integrate this as part of a build process. There's more to it, but this should give you the feel for what I have in mind. It is modeled loosely after RubyGems and Rails vendor plugins, two of the more successful examples of this pattern in use today. If this is something you would like to see, please reply to this message, or tweet me (@commonsguy), to let me know of your interest. If I release this, I'll be committing a fair chunk of time to helping to maintain it, and I don't want to make that commitment until I have a sense that enough people will care. I am, of course, certainly open to other ideas, suggestions, Googly input, etc. :-) Thanks in advance! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Create a custom component using inflate
You're right using http://android-developers.blogspot.com/2009/03/android-layout-tricks-3-optimize-by.html ! On Mar 29, 4:14 pm, Mark Murphy mmur...@commonsware.com wrote: arnouf wrote: Hi all, I'm trying to create a component using an xml layout file. I defined a layout with some custom attributes. This layout is inflated when user add it inside another layout. My problem is I don't know the parent, so I pass null for the parent viewgroup when I call inflate method. You need to be the parent. You cannot inflate things into an ordinary View. I think that's the reason why I see anything in my view. Do you know how can I do (I don't want to redefine onDraw method because I use existing component) Below my xml layout and my custome class. RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/img_btn_option android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/txt_btn_option android:layout_width=wrap_content android:layout_height=wrap_content android:layout_toRightOf=@id/img_btn_option android:textColor=@color/font_white android:textStyle=bold/ /RelativeLayout public class ButtonOptionsView extends View { public ButtonOptionsView(Context context, AttributeSet attrs) { super(context, attrs); LayoutInflater li = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); RelativeLayout vg = (RelativeLayout)li.inflate(R.layout.button_option, null); TypedArray ta = getContext().obtainStyledAttributes(attrs,R.styleable.ButtonOption); ((ImageView)vg.findViewById(R.id.img_btn_option)).setImageResource(ta.getRe sourceId(R.styleable.ButtonOption_image, 0)); ((TextView)vg.findViewById(R.id.txt_btn_option)).setText(ta.getResourceId(R .styleable.ButtonOption_text, 0)); } Make ButtonOptionsView extend RelativeLayout, and replace the RelativeLayout in your XML with merge. Then, inflate into yourself. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.4 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Which version of Java is used in Android?
A good set of questions, given your partial information. Android runs Java. It does so using the Dalvik VM, which uses a different set of bytecodes. The tools for packaging an application take care of converting the bytecodes. So Android runs Java 1.5 -- but it doesn't include the full J2SE libraries, nor is it a J2ME set of libraries, either. Annotations are in 1.5 -- but there is one annoying difference with @Override on interface methods. Eclipse is already designed so that the version of Java that runs Eclipse, and the version of Java your project uses, don't have to be the same. In fact, you don't even have to be using Java -- Eclipse supports many languages, even C. The result is that Eclipse works pretty much like it always does, with the addition of a bunch of things specific to Android, and not much functionality missing. For more information, you should dive into the Android SDK documentation. On Mar 26, 5:40 pm, Poldie pol...@gmail.com wrote: I've read that Android apps use Java syntax, and not Java per se, presumably because of the Davlik VM. I'm a Java noob, so I may not be making sense here, but don't different versions of Java support different things - for example, generics in v5, and annotations in v6? If you're using Eclipse and Java, won't it always be whatever is supported in the latest version of Java? Isn't there a chance that when a new version of Java comes out you'll be able to compile apps successfully, but which will fail on an Android machine because the VM won't know how to interpret the bytecode? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Create a custom component using inflate
I shout success so fast...because it's not really simple...My previous have to be called by others xml I'll push a result I I get something correct. On Mar 29, 4:21 pm, arnouf arnaud.far...@gmail.com wrote: You're right usinghttp://android-developers.blogspot.com/2009/03/android-layout-tricks-... ! On Mar 29, 4:14 pm, Mark Murphy mmur...@commonsware.com wrote: arnouf wrote: Hi all, I'm trying to create a component using an xml layout file. I defined a layout with some custom attributes. This layout is inflated when user add it inside another layout. My problem is I don't know the parent, so I pass null for the parent viewgroup when I call inflate method. You need to be the parent. You cannot inflate things into an ordinary View. I think that's the reason why I see anything in my view. Do you know how can I do (I don't want to redefine onDraw method because I use existing component) Below my xml layout and my custome class. RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/img_btn_option android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/txt_btn_option android:layout_width=wrap_content android:layout_height=wrap_content android:layout_toRightOf=@id/img_btn_option android:textColor=@color/font_white android:textStyle=bold/ /RelativeLayout public class ButtonOptionsView extends View { public ButtonOptionsView(Context context, AttributeSet attrs) { super(context, attrs); LayoutInflater li = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); RelativeLayout vg = (RelativeLayout)li.inflate(R.layout.button_option, null); TypedArray ta = getContext().obtainStyledAttributes(attrs,R.styleable.ButtonOption); ((ImageView)vg.findViewById(R.id.img_btn_option)).setImageResource(ta.getRe sourceId(R.styleable.ButtonOption_image, 0)); ((TextView)vg.findViewById(R.id.txt_btn_option)).setText(ta.getResourceId(R .styleable.ButtonOption_text, 0)); } Make ButtonOptionsView extend RelativeLayout, and replace the RelativeLayout in your XML with merge. Then, inflate into yourself. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.4 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Sending GPS location over socket
raqz wrote: Hello, Could you please tell me how do I send the GPS location of the phone to a webserver through a socket. I am able to display the gps location on the screen with a toast widget in locationchanged() function. After that, I try to send the co-ordinates through a socket but the emulator crashes. Could some one please tell me how to go about this. Look at the HttpUrlConnection class. Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to show adds at bottom of an activity(with custom view)?
I'd suggest admob.com; they have an SDK that makes this easy, and you can set it up in minutes. Or their competitors, or their open adwhirl library that lets you choose which vendor to supply the ads. But I've had good technical success with the admob SDK. Economic success? Too early to tell. On Mar 28, 10:15 pm, vikas kumar vikash19852...@gmail.com wrote: Hi all, I need show ads in my application. Ads in my custom view must move from bottom of screen with animation. How can I add my view in bottom of screen? Please help to find out the solution.. Thnx... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] SQL simple selection - urgent help needed
Hi all, I need urgent help with a simple selection I am having difficulty with. I am trying to return a value of a Double called startPosition, where trackName is equal to a name of a string. The query doesnt seem to be returning anything, here is the code from my DbAdapter. Java: public Cursor getStartLatitude(String trackname) throws SQLException { Cursor mCursor = mDb.query(true, DATABASE_TABLE3, new String[] {KEY_ROWID3, KEY_TRACKNAME, KEY_STARTPOSITION}, KEY_TRACKNAME + = + 'kingsav', null, null, null, null, null); if (mCursor != null) { mCursor.moveToFirst(); } return mCursor; } And here is my code from the Java code that passes in the value and reads it to a textview. Note above, I have used a static value for testing purposes. Java: private void loadTrackInfo() { Cursor b = mDbHelper.getStartLatitude(TrackName); if(b.moveToFirst()) { Double startLocation = b.getDouble(b.getColumnIndex(mDbHelper.KEY_STARTPOSITION)); selectedTracktv.setText(Active Track: +startLocation); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Application invisible in Market from Nexus One. Please test.
As far as you know. No, the Nexus One does NOT have that screen resolution. If that's all you support, that's probably your problem right there. Please read the SDK documentation on supporting different screen resolutions and maintaining future compatibility. It's not just Nexus One you'll have problems with. I wouldn't even consider HVGA to be normal in this day and age, but rather minimal. On Mar 29, 4:29 am, EvgenyV evgen...@gmail.com wrote: Hi developers! I've reported that my app is invisible when accessing to Market from Nexus device. In the past I've reported some runtime resolution problem with Tatoo device but as far I know Nexus has a normal screen HVGA 320x480. The strange is that the app is invisible. Can you please check if you can see and install it from Market? Each feedback will realy appreciated. My app is universal unit converter ConvertMe(Beta) free. Thanks in advance, Evgeny -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Merchant account - payouts - fees history - third column?
I asked this on the Market forum and didn't get an answer. I need this information to prepare my taxes. The third column of the page noted in the subject line is labeled previous month sales. The question is simple whether this is the total of sales price or total after Google takes 30%, i.e., the total deposited in our bank account? I assume we only pay tax on the latter, correct? I realize this is the wrong go forum for this, but like I said, the Market forum almost always leaves all questions on the floor unanswered and this is important information that people need to know. Any help is appreciated. Cheers! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] filter based on cpu type on android market
hi, I am developing a cpu hungry application. it runs fine only on devices using at least snapdragon/cortex A8 cpus. I can't see any way to restrict access to this application on android market based on cpu. can someone confirm ? maybe the possibility to have filters based on the cpu type should be added just like filters based on camera/ touchscreen/... 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] keyboard
Hello everybody, I am interesting in integrating an arabic keyboard to the android system. I proceeded as follows: I have modified the xml and the layout in the package softkeyboard by replacing English letters and their codes by the arabic one.Of cource I created 2 new directories in softkeyboard: xml-ar and layout-ar After rebuilding the system , I don't find the new softkeyboard. Could you please tell me what's the matter? 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Application invisible in Market from Nexus One. Please test.
On 29 mar, 13:29, EvgenyV evgen...@gmail.com wrote: My app is universal unit converter ConvertMe(Beta) free. on a nexus one, I can see the ConvertMe application (no beta in the name) from defiant. is it your ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Merchant account - payouts - fees history - third column?
Hi, That is the sales BEFORE the 30% is removed. What I did is just add all those numbers up, then take 70% of that, that is your income total. On Mar 29, 9:01 am, Keith Wiley kbwi...@gmail.com wrote: I asked this on the Market forum and didn't get an answer. I need this information to prepare my taxes. The third column of the page noted in the subject line is labeled previous month sales. The question is simple whether this is the total of sales price or total after Google takes 30%, i.e., the total deposited in our bank account? I assume we only pay tax on the latter, correct? I realize this is the wrong go forum for this, but like I said, the Market forum almost always leaves all questions on the floor unanswered and this is important information that people need to know. Any help is appreciated. Cheers! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: PVMFFailure when using MediaPlayer for radio streams
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Tue, Feb 16, 2010 at 1:08 PM, Kamal Hasan kamal.hasa...@gmail.comwrote: Hi, Any one has tried with HTTPS on media player I am getting Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported Error. I am able to play the file on http but failed to play on HTTPS. Can you help me in this regard. Kamal On Feb 11, 10:42 pm, Steve steveoliv...@gmail.com wrote: I can make this work on 1.6 with this linkhttp:// www.colorado.edu/AmStudies/lewis/Design/blue.mp3 What is the url you are trying to connect to? On Jan 29, 6:08 am, David trend...@gmail.com wrote: ps-I am using version 1.5 on a HTC phone On Jan 14, 9:48 pm, Tanmay tanm...@gmail.com wrote: I tried doing this in 1.6 but still gave me the Prepare Failed 0x1 error along with thePVMFFailurein the log. Has there been any solution to this one developed yet? On Dec 14 2009, 10:13 pm, YaushiIizuka vse5...@gmail.com wrote: Hi. String url = http://your.url;; MediaPlayer mp = new MediaPlayer(); mp.setDataSource(url); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.prepare(); mp.start(); On 10月23日, 午後3:28, dede dede830...@126.com wrote: Hi, In 1.6,I also try to play stream through setDataSource(http:// xxx/.mp3), but also it return IOException: prepare failed, status=0x1. If set the url into windowsmediaplayer, it can play correctly, I wanna know your problem whether be resolved? If yes, can u tell me the solution,thanks very much. On 10月7日, 上午5时41分, iwhoyt wallace...@hotmail.com wrote: In 1.5 I was able to stream an mp3 over http by passing the url to setDataSource(). However I started gettingPVMFFailures in 1.6. For me the issue was the Content-Type http header. If the header was set correctly (Content-Type: audio/mpeg), the stream played. Otherwise if failed during PLAYER_INIT. On Sep 2, 2:32 am, siliconeagle rrmu...@gmail.com wrote: Also the URl is a http (MP3) stream URL - as opposed tioo other opost where RTSP is being tried. It looks like it should just work. Has anyone else got streaming working via a streaming URL? On Sep 1, 1:24 pm, siliconeagle rrmu...@gmail.com wrote: I am trying to build streaming radio into my app, which works fines streaming files over the internet, but when i try to use a shoutcast url in get the error below, which from the soruce code looks liek the mediaPlayer is looking for the duration in the header. Does anyone know if shoutcast urls will work withthe defaultmediaplayer? Or do i have to download chunks into a ping-pong buffer sor something? The url has no porblems downloading via the browser. the error is:- 09-01 11:53:25.634 E/MediaPlayer(16972): stop called in state 1 09-01 11:53:27.324 D/BatteryWidget(15623): Updating Views 09-01 11:53:30.445 E/PlayerDriver( 35): Command PLAYER_INIT completed with an error or infoPVMFFailure 09-01 11:53:30.445 E/MediaPlayer(16972): error (1, -1) 09-01 11:53:30.504 I/NotificationService( 55): enqueueToast pkg=net.robmunro.mypod callback=android.app.ITransientNotification$Stub $pr...@4323b8f8 duration=1000 09-01 11:53:30.514 W/System.err(16972): java.io.IOException: Prepare failed.: status=0x1 09-01 11:53:30.644 W/System.err(16972): at android.media.MediaPlayer.prepare(Native Method) 09-01 11:53:30.644 W/System.err(16972): at net.robmunro.mypod.util.MediaPlayerWrapper.playMedia (MediaPlayerWrapper.java:111) the code i use is:- try { mPlayer.stop(); mPlayer.reset();} catch (Exception e) { e.printStackTrace();} this.source=source; if (source.equals(Globals.SOURCE_LOCAL)) { mPlayer.setDataSource(f.path); buffered = 0;} else if (source.equals(Globals.SOURCE_STREAM)) { mPlayer.setDataSource(f.remoteUrl); buffered = 100;} mPlayer.prepare(); mPlayer.start();- 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
Re: [android-developers] Re: MediaPlayer -- shoutcast radio streaming creates a lag in playback
On Tue, Nov 3, 2009 at 12:49 AM, Vladimir B odess...@gmail.com wrote: Should I use two files and swap between them while playing and downloading? On Nov 1, 2009 10:44 PM, Vladimir odess...@gmail.com wrote: Hello, all! I've been working on an app to stream some radio content. I get the stream and save it to a file. When there is enough of it to play, I invoke MediaPlayer and pass in the file. Here is the question...since MediaPlayer sees only the portion of the mp3 file that has already been written when MediaPlayer was instantiated, I have to instantiate multiple MediaPlayers and call the seekto() method. But the reinstantiation creates a short gap in playback -- about half a second (have been testing the app in the emulator, but I'm guessing the same will happen on the actual phone). I'm sure this has been solved by others -- any suggestions??? Below is the thread that's called from within my Service once the initial buffering has been done. All this does is repeatedly calling the play() method that just reprocessing the mp3 file (while another thread is writing to that mp3 file). private final Thread watchRadioPlayer = new Thread() { public void run() { while (isDownloading) { curPosition = RadioPlayer.play(OnlineRadioRetriever.fileName, curPosition); int delay = curPosition - previousPosition; previousPosition = curPosition; try { synchronized (this) { wait(delay); } } catch (InterruptedException e) { Log.e(watchRadioPlayer, Exception while calling wait: , e); } Log.d(watchRadioPlayer, RUNNING for : + delay); } Log.d(watchRadioPlayer, The THREAD is dead); } }; -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Thank you, Dilli Rao. M www.arijasoft.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: MediaPlayer -- shoutcast radio streaming creates a lag in playback
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Tue, Nov 3, 2009 at 12:49 AM, Vladimir B odess...@gmail.com wrote: Should I use two files and swap between them while playing and downloading? On Nov 1, 2009 10:44 PM, Vladimir odess...@gmail.com wrote: Hello, all! I've been working on an app to stream some radio content. I get the stream and save it to a file. When there is enough of it to play, I invoke MediaPlayer and pass in the file. Here is the question...since MediaPlayer sees only the portion of the mp3 file that has already been written when MediaPlayer was instantiated, I have to instantiate multiple MediaPlayers and call the seekto() method. But the reinstantiation creates a short gap in playback -- about half a second (have been testing the app in the emulator, but I'm guessing the same will happen on the actual phone). I'm sure this has been solved by others -- any suggestions??? Below is the thread that's called from within my Service once the initial buffering has been done. All this does is repeatedly calling the play() method that just reprocessing the mp3 file (while another thread is writing to that mp3 file). private final Thread watchRadioPlayer = new Thread() { public void run() { while (isDownloading) { curPosition = RadioPlayer.play(OnlineRadioRetriever.fileName, curPosition); int delay = curPosition - previousPosition; previousPosition = curPosition; try { synchronized (this) { wait(delay); } } catch (InterruptedException e) { Log.e(watchRadioPlayer, Exception while calling wait: , e); } Log.d(watchRadioPlayer, RUNNING for : + delay); } Log.d(watchRadioPlayer, The THREAD is dead); } }; -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Thank you, Dilli Rao. M www.arijasoft.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: MediaPlayer and 1.5 vs 1.6
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Wed, Oct 21, 2009 at 8:14 PM, Marco Nelissen marc...@android.com wrote: I meant: implement your own http server to run on the phone. This server would also be a shoutcast client, and connect to the remote shoutcast server. It would process the data, and then pass it to its own clients as if it were serving up regular mp3 files. Your MediaPlayer would then connect to localhost to get the mp3. But again, that seems like a lot of trouble when the majority of devices are already running Donut. On Wed, Oct 21, 2009 at 4:58 AM, coolbanana johanst...@gmx.de wrote: Hi Marco, how kann i the datestream from Inputstream = connection.getInputStream (), over one local http server to MediaPlay at SetDataSource()? Is it that u mean. i had try it with SetDataSource(FileDiscriptor), aber the only way that i found to set the FD with Socket-ParcelFileDescriptor-FD does work never! can u tell me, how should it be,pleas? Thanks C.B --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 -~--~~~~--~~--~--~--- -- Thank you, Dilli Rao. M www.arijasoft.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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.