[android-developers] Re: market problems (ratings and downloads)
My guess that Heidi is really Haddish from Chennai. On Aug 29, 5:00 am, Peter Sinnott psinn...@gmail.com wrote: On Aug 28, 8:51 pm, TreKing treking...@gmail.com wrote: On Sun, Aug 28, 2011 at 2:27 PM, Peter Sinnott psinn...@gmail.com wrote: I look forward to the one on one support they promised when they told developers not to post questions to the market forums. LMAO - I damn near keeled over when I read Heidi's post (which was conveniently closed to responses). Do you mean Heidi is not going to call me to arrange a meeting where we can discuss the problem while enjoying a cup of tea and a jaffa cake? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem preventing two strings from overlapping
I am trying to display two strings on the same line, with one being flush left and the other flush right. If the screen display size is two narrow to show both strings on the same line, then I would like one of the strings to move down to a second line, so that they do not overlap making the text unreadable. With CSS this is simple to do, just setting one string to flush left, and the other to flush right does this I have been attempting to do this same thing on the Android using a RelativeLayout, but I can't seem to figure out the correct settings so that they will both show on the same line if the screen is wide enough, but will show on two separate lines if the screen is too narrow. These are the settings I thought would work. Note: I have separated the label text from the value text because I intend to set these to different custom typefaces. RelativeLayout android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout android:id=@+id/string1_layout android:orientation=horizontal android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentTop=true android:layout_alignParentLeft=true TextView android:id=@+id/string1_label android:layout_width=wrap_content android:layout_height=wrap_content / TextView android:id=@+id/string1_value android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout LinearLayout android:id=@+id/string2_layout android:orientation=horizontal android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true TextView android:id=@+id/string2_label android:layout_width=wrap_content android:layout_height=wrap_content / TextView android:id=@+id/string2_value android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout /RelativeLayout I have tried a number of other variations, like setting string2 to layout_below string1, which always forces string2 onto a lower line even on wide screens; and setting string2 to be layout_alignRight of string1, which causes string 2 to wrap onto multiple lines, all to the right of string 2, but the top line does not move down, and it does not use all the available space on the second line, but instead sometimes wraps it to a 3rd and even a 4th line with all the text crunched on the right side of string1. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] hardware backbutton if click has to take to previous activity.
Hi, i have button on the bottom of the layout..when i click on that a list will appear..here if i click hardware backbutton it has to take to previous activity but if i clik onthat the apps is crashing...if i click on the item of the list it has to take to next activity..here its working fine..(the list i made invisible in the xml layout) so,after appearing the list if i click on back hardwae button its has to take to previous activity public class Dialog extends Activity { private ListView lv1; private String lv_arr1[]= {My projects,All projects}; public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); try { lv1=(ListView)findViewById(R.id.ListView01); lv1.setAdapter(new ArrayAdapterString(this,android.R.layout.simple_list_item_1 , lv_arr1)); lv1.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? arg0, View arg1, int arg11, long arg3) { // TODO Auto-generated method stub switch (arg11){ case 0: Intent intent=new Intent(Dialog.this,MyFavorites.class); startActivity(intent); break; case 1: Intent intent1=new Intent(Dialog.this,MyProjects.class); startActivity(intent1); break; case 2: Intent intent2=new Intent(Dialog.this,AllProjects.class); startActivity(intent2); break;} } } final Button btn=(Button)findViewById(R.id.t1); btn.setOnClickListener(new OnClickListener() { private View ListView01; private View ListView03; private View ListView02; public void onClick(View v) { // TODO Auto-generated method stub try { if (((Button) v).isClickable()) { Button btn=(Button)findViewById(R.id.t1); lv1.setVisibility(View.VISIBLE); } else { } } catch (Exception e) { // TODO: handle exception } } }); Thanks in advance... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Freemium Model with In-App Purchases
On Sunday, August 28, 2011 5:41:53 AM UTC+2, Mark Carter wrote: Out of interest, how do they get the dev's address? Maybe they retrieve it via WHOIS'ing the domain name associated to the developer contact information (meaning the whois information is not protected/obfuscated) or via crossing information from Google search until they reach a valid address. Worst case scenario would be that Android Market is giving this information but I seriously doubt. I am wondering if it's also apply to a link from a free version pointing to a donate one. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] hardware backbutton if click has to take to previous activity.
On Mon, Aug 29, 2011 at 3:48 AM, arun kumar arun.kata...@gmail.com wrote: i have button on the bottom of the layout..when i click on that a list will appear..here if i click hardware backbutton it has to take to previous activity but if i clik onthat the apps is crashing... Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your crash. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | 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
[android-developers] Re: Problem preventing two strings from overlapping
I'd be surprised if you could do this with any of the standard layouts. You may have to create your own custom layout. Should be too hard by copy-pasting then modifing one of the existing layouts. On Aug 29, 3:26 pm, skyhigh skyhigh1...@gmail.com wrote: I am trying to display two strings on the same line, with one being flush left and the other flush right. If the screen display size is two narrow to show both strings on the same line, then I would like one of the strings to move down to a second line, so that they do not overlap making the text unreadable. With CSS this is simple to do, just setting one string to flush left, and the other to flush right does this I have been attempting to do this same thing on the Android using a RelativeLayout, but I can't seem to figure out the correct settings so that they will both show on the same line if the screen is wide enough, but will show on two separate lines if the screen is too narrow. These are the settings I thought would work. Note: I have separated the label text from the value text because I intend to set these to different custom typefaces. RelativeLayout android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout android:id=@+id/string1_layout android:orientation=horizontal android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentTop=true android:layout_alignParentLeft=true TextView android:id=@+id/string1_label android:layout_width=wrap_content android:layout_height=wrap_content / TextView android:id=@+id/string1_value android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout LinearLayout android:id=@+id/string2_layout android:orientation=horizontal android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true TextView android:id=@+id/string2_label android:layout_width=wrap_content android:layout_height=wrap_content / TextView android:id=@+id/string2_value android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout /RelativeLayout I have tried a number of other variations, like setting string2 to layout_below string1, which always forces string2 onto a lower line even on wide screens; and setting string2 to be layout_alignRight of string1, which causes string 2 to wrap onto multiple lines, all to the right of string 2, but the top line does not move down, and it does not use all the available space on the second line, but instead sometimes wraps it to a 3rd and even a 4th line with all the text crunched on the right side of string1. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Read ms word document
Am 29.08.11 03:19, schrieb imsmooth: I know how to read a text file How do I read a ms word (doc) file? http://poi.apache.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
[android-developers] White screen with pink stripes during GTalk Video chat
Dear All, I'm seeing white screen with pink stripes during GTalk video chat but front camera is working fine. Is anyone facing this type of issue or anyone fixed this issue can share there experience in fixing this particular issue. Waiting for reply, Lavanya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to P2P between with the phone and reader?
Hi,everyone! My project mobile phone is android 2.3.4 (nexus s).I have see some demo for the phone, and know about enabled with the enableForegroundNdefPush(Activity, NdefMessage) method ,two android phone can communicate with each.But for the reader,i don' know. Did anyone tell me , what is the software the reader used? How is the reader come in NFC state exchange with the phone? I want to come ture P2P between phone and reader , how can i do ? Thank you very much. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Horizontal progress bar in Dynamic list view
Hi All, I have listview which is dynamic in nature.That means, the items are getting added/removed to/from the list frequently(ListAdapter get populated and notifydatasetchanged() get called). Each item(row) corresponds to one song(like playlist) and has Play button. when user presses play button, song starts playing in the back ground and at the same time play control view with play/pause, seek bar opens up in the corresponding row. The problem I am facing here is, when some song is being played and list get refreshed, the progress bar / seek bar is not updating properly. seek bar indicates that playback completed but actually playback not yet finished and still user can hear the music. In summary, how to manage progress bar in dynamic list view..?? It would be helpful if anybody provide some pointers.. Thanks ganesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Freemium Model with In-App Purchases
If you have a App in the Market it's madatory to make a adress public for billing. And yes, this aplies to links also, because my Button is simply a Link to the Android Market. In Android you can choose what to do with certain links. Like youtube links open the Youtube Browser, so Market links are opening the Market App. It's shame how patent claim where send to tiny small developers who are only using mechnismas that already exists since the Web was born. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bluetooth not getting paired
Hi, I am trying to pair a Bluetooth device in my program. I open a server socket and wait for the client to connect and when the client connects to the server for the first time, its prompting a Bluetooth pairing request dialog. So far its all fine. But even if I enter the correct passkey(pairing code), pairing process is not successful. Here is the log cat description for the same. 08-29 14:45:54.123: ERROR/BluetoothEventLoop.cpp(96): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/5028/hci0/dev_00_A0_96_2E_3F_3A 08-29 14:45:54.143: ERROR/BluetoothEventLoop.cpp(96): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/5028/hci0 08-29 14:45:54.153: ERROR/BluetoothEventLoop.cpp(96): event_filter: Received signal org.bluez.Adapter:DeviceRemoved from /org/bluez/5028/hci0 08-29 14:45:54.153: DEBUG/BluetoothService(96): 00:A0:96:2E:3F:3A bond state 11 - 10 (0) 08-29 14:45:54.153: WARN/BluetoothService(96): setBondState() called to unbond device, but reason code is invalid. Overriding reason code with BOND_RESULT_REMOVED 08-29 14:45:54.173: VERBOSE/BluetoothEventRedirector(8381): Received android.bluetooth.device.action.BOND_STATE_CHANGED 08-29 14:45:54.173: ERROR/CachedBluetoothDeviceManager(8381): Got bonding state changed for 00:A0:96:2E:3F:3A, but we have no record of that device. 08-29 14:45:54.173: WARN/CachedBluetoothDeviceManager(8381): showUnbondMessage: Not displaying any message for reason:9 I tried with 2 phones. I was able to get it paired successfully with Samsung Nexus S phone but the same code if giving the above logact info when i try it on Nexus one. Any help is appreciated. Thanks, Shashi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Freemium Model with In-App Purchases
Does it only matter if you link to your app's details Market page or is it also a problem linking to your Other apps...? On 29 August 2011 17:50, Andy m...@tekx.de wrote: If you have a App in the Market it's madatory to make a adress public for billing. And yes, this aplies to links also, because my Button is simply a Link to the Android Market. In Android you can choose what to do with certain links. Like youtube links open the Youtube Browser, so Market links are opening the Market App. It's shame how patent claim where send to tiny small developers who are only using mechnismas that already exists since the Web was born. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [openGL ES 1.1] [Texture compression] etc1 mipmap
Hi ! Is someone here has an experience using ETC1 compression and mipamaping together ? what is the latest size when we make a mipmap? 1x1? 4x4? other size ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WiFi Error
*Where is the reply, .. [?]:)* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en349.gif
[android-developers] ListView and Database
Hello Friends, i want to display selected column from database in the form of list. But application is forcibly closed when I try to run this application. Please help to solve this bug. Here is my code, main Activity package com.example.android; import android.app.AlertDialog; import android.app.Dialog; import android.app.ListActivity; import android.content.ContentValues; import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.provider.BaseColumns; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.EditText; import android.widget.ListView; import android.widget.SimpleCursorAdapter; import android.widget.Toast; public class SQLiteDemo extends ListActivity { private static final int DIALOG_ID = 100; private SQLiteDatabase database; private SimpleCursorAdapter dataSource; private View entryView; private EditText firstNameEditor; private EditText lastNameEditor; DBHelper helper; Cursor cursor; String t,t1; Intent intent; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); helper = new DBHelper(this); fillData(); } private void fillData() { //Cursor c=helper.getAllEmployees(); Cursor c = helper.fetchAllNotes(); //startManagingCursor(c); String[] from = new String[] { DBHelper.colName}; int[] to = new int[] {R.id.first}; dataSource = new SimpleCursorAdapter(this, R.layout.row1, c, from,to); ListView view = getListView(); view.setHeaderDividersEnabled(true); view.addHeaderView(getLayoutInflater().inflate(R.layout.row1, null)); setListAdapter(dataSource); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); // Get the item that was clicked int p1=position-1; cursor = (Cursor)this.getListAdapter().getItem(p1); t = cursor.getString(cursor.getColumnIndex(DBHelper.colName)); t1 = cursor.getString(cursor.getColumnIndex(DBHelper.colDate)); intent=new Intent(this,Edit.class); intent.putExtra(first,t); intent.putExtra(last,t1); startActivity(intent); //showDialog(DIALOG_ID); Toast.makeText(this, You selected: + t + +t1, Toast.LENGTH_LONG).show(); } } this my Xml file ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_height=wrap_content android:id=@+id/rowLayout android:orientation=horizontal android:layout_width=fill_parent TextView android:layout_width=wrap_content android:layout_alignParentLeft=true android:layout_height=wrap_content android:id=@+id/first android:text=First name / /RelativeLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to run an app while incoming or outgoing call starts
How to run an app while incoming or outgoing call starts and the app end with while call end. -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: DashboardLayout (iosched 2011) behaves weirdly
If you're interested, I've fixed the bug by adding a penalty in DashboardLayout's algorithm if the unwanted behavior is met. The patch is here : diff --git a/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java b/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java index 6e890ca..46b07b9 100644 --- a/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java +++ b/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java @@ -131,9 +131,12 @@ public class DashboardLayout extends ViewGroup { spaceDifference = Math.abs(vSpace - hSpace); if (rows * cols != visibleCount) { -spaceDifference *= UNEVEN_GRID_PENALTY_MULTIPLIER; + spaceDifference *= UNEVEN_GRID_PENALTY_MULTIPLIER; +} else if (rows * mMaxChildHeight height || cols * mMaxChildWidth width) { + spaceDifference *= UNEVEN_GRID_PENALTY_MULTIPLIER; } + if (spaceDifference bestSpaceDifference) { // Found a better whitespace squareness/ratio bestSpaceDifference = spaceDifference; Alexis On 27 août, 09:53, Alexis Robert alexis.rob...@gmail.com wrote: Hi, I have a little problem withDashboardLayout(the one on iosched 2011 mercurial repository) and as I really don't know what's wrong. I know I'm wrong somewhere, as this layout works for the I/O app, and I've tried to copy the situation of the I/O app everywhere I can, but nothing worked. When I'm in portrait, everything is fine :http://img405.imageshack.us/img405/4851/device20110827093725.png But when I'm in landscape,DashboardLayoutbehaves weirdly :http://img231.imageshack.us/img231/3061/dashboardlandscape.png For the source code, -- home.xml -- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical ImageView android:src=@drawable/orekitlogo android:layout_height=wrap_content android:layout_width=fill_parent android:layout_margin=20dp/ImageView com.google.android.apps.iosched.ui.widget.DashboardLayout android:layout_width=fill_parent android:layout_height=fill_parent Button android:id=@+id/orbit_dashboard android:text=@string/orbit_dashboard style=@style/DashboardButton android:drawableTop=@drawable/dashboard_orbit/ Button android:id=@+id/frame_dashboard android:text=@string/frame_dashboard style=@style/DashboardButton android:drawableTop=@drawable/dashboard_frame/ Button android:id=@+id/date_dashboard android:text=@string/date_dashboard style=@style/DashboardButton android:drawableTop=@drawable/dashboard_date/ Button android:id=@+id/event_dashboard android:text=@string/event_dashboard style=@style/DashboardButton android:drawableTop=@drawable/dashboard_event/ Button android:id=@+id/maneuver_dashboard android:text=@string/maneuver_dashboard style=@style/DashboardButton android:drawableTop=@drawable/dashboard_maneuver/ /com.google.android.apps.iosched.ui.widget.DashboardLayout /LinearLayout -- style.xml (stripped down to only useful parts) -- resources style name=Theme parent=android:style/Theme / !-- Theme.Orekit is Theme.Light with no titlebar (and other things for the actionbar) -- style name=Theme.Orekit parent=android:style/Theme.Light item name=android:windowNoTitletrue/item item name=actionbarButtonStyle@style/ActionBarButton/item item name=actionbarSeparatorStyle@style/ActionBarSeparator/item item name=actionbarTextSyle@style/ActionBarText/item /style style name=DashboardButton item name=android:layout_widthwrap_content/item item name=android:layout_heightwrap_content/item item name=android:textStylebold/item !-- item name=android:background@null/item -- /style /styles By the way, if I uncomment the item name=android:background@null/item line, it gets even worse in portrait :http://img32.imageshack.us/img32/3713/dashboardportraitnobg.png Thanks a lot !! Alexis Robert -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: developeing on a htc sensation
Hi Sorry i have been very busy with my work and so, so i haven't had the time the last week to try. I dont know how to uninstall the program i such a way, that the application isn't the same. Where do the installed program go ?? René On 22 Aug., 16:34, Kristopher Micinski krismicin...@gmail.com wrote: On Mon, Aug 22, 2011 at 3:28 AM, Appaholics raghavs...@appaholics.in wrote: Just uninstall it from your phone settings. and then re install it. Agreed, I feel like not being able to uninstall an application from your phone would be a much more serious security flaw than many other apps could possibly posses. Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] P2P on NFC ~ Reader/Transmitter
I have the SCL3711 from SCM (this is a reader/transmitter that looks like a thumb drive and plugs into a USB port). http://www.scmmicro.com/products-services/smart-card-readers-terminals/contactless-dual-interface-readers/scl3711.html The capabilities of this device seem very promising. Currently, this device only comes with a Linux driver. I am attempting to create an NFC bridge between a mobile device and the desktop (which are still mostly Windows based, duh...). Does anyone know of a reader/transmitter with a Windows driver? Has anyone been able to create a, Hello NFC world., app that would have a simple host application (residing on a computer) that would listen for input from an NFC reader/transmitter. We are creating a working group in Austin to solve this problem. If you would like to participate remotely please send me an email: mduffy...@gmail.com Thx. 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
Re: [android-developers] How to run an app while incoming or outgoing call starts
You can create a broadcast Receiver which will listen to ACTION_PHONE_STATE_CHANGEDhttp://developer.android.com/reference/android/telephony/TelephonyManager.html#ACTION_PHONE_STATE_CHANGED andNEW_OUTGOING_CALLhttp://developer.android.com/reference/android/content/Intent.html#ACTION_NEW_OUTGOING_CALL broadcast intents. In your receiver class write the code to create an intent which will activate your app. Let me know if its not clear. Regards, Santosh MComputing Lab On Mon, Aug 29, 2011 at 4:46 PM, GopalaKrishnan D gopall...@gmail.comwrote: How to run an app while incoming or outgoing call starts and the app end with while call end. -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity comms
On Sun, Aug 28, 2011 at 11:59 PM, kypriakos demet...@ece.neu.edu wrote: Now if Activity A is terminated and restarted, is there a way to get a handler to Activity B again? What handler to Activity B ? If it calls the above statements again and since the SINGLE_TASK flag is called I am expecting that Activity B won't be regenerated which means if I change the Extras then Activity B should receive the new data? But I am not sure if that's possible unless a OnNewActivity method is called that will force Activity B to read the new data. Is this correct? I think you're looking for onNewIntent(). I am not 100% clear as to how activities can communicate in a iterative manner through the new intent method. I am not 100% clear as to what you mean by communicate in a [sic] iterative manner. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Activity comms
If i'm understanding correctly and Activity B is single-task or single-top (i.e. it is re-used for new incoming intents): public class B extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... handleTheIntent(getIntentI()); ... } @Override public void onNewInstanceState(Intent newIntent) { setIntent(newIntent); handleTheIntent(newIntent); } private void handleTheIntent(Intent intent) { .. ... // do what you need to do for handling an incoming intent for this activity ... } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Activity comms
If i'm understanding correctly and Activity B is single-task or single-top (i.e. it is re-used for new incoming intents): public class B extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... handleTheIntent(getIntentI()); ... } @Override public void onNewIntent(Intent newIntent) { setIntent(newIntent); handleTheIntent(newIntent); } private void handleTheIntent(Intent intent) { .. ... // do what you need to do for handling an incoming intent for this activity ... } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] application has stopped unexpectedly in camera previewmmode
hi friends, Am using camera to take snap in my application.While am in a camera preview mode if any interruption occurs like lock mode, go to back the application has stopped unexpectedly. Any one tell me suggestions what to do so that the application does not gets close. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] application has stopped unexpectedly in camera preview mode
hi friends, Am using camera to take snap in my application.While am in a camera preview mode if any interruption occurs like lock mode, go to back the application has stopped unexpectedly. Any one tell me suggestions what to do so that the application does not gets close. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Horizontal progress bar in Dynamic list view
On Mon, Aug 29, 2011 at 4:45 AM, ganesh ganeshbm...@gmail.com wrote: The problem I am facing here is, when some song is being played and list get refreshed, the progress bar / seek bar is not updating properly. How are you trying to update it? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] application has stopped unexpectedly in camera previewmmode
On Mon, Aug 29, 2011 at 9:15 AM, sktniran sktniranjanad...@gmail.comwrote: Any one tell me suggestions what to do so that the application does not gets close. Debug your app and fix your bug. Consider also posting more information than it stopped unexpectedly if you want anyone to know what your problem is. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using the Hardware decoder in LGP500 to render frames from camera
Hi, This is in addition to the mail I sent below a few days back. Can somebody let me know if Bellagio Openmax source code would be useful? Essentially, we are looking for a way to integrate Hardware Decoder with the RTSP Stack that we have created to render frames on an ImageView? Thank you, B.Arunkumar On Aug 26, 10:48 am, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Hi, We have created our own RTSP stack which gets frames from camera and gets decoded by FFMPEG and is rendered on ImageView. We areusing an LG Optimus One device. The problem is that we are finding the frame rate to be slower than the actual frame rate. We, therefore would like to use thehardwaredecoderin StageFright framework. Currently we have downloaded the entire Froyo source code and compiled the StageFright Library. My question is if it possible to use OMXCodec::Create with the RTSP stack we have created. The test application shows ARTPSession class used with the OMXCodec::Create. Any suggestions on how to use the OMXCodec::Create with the RTSP Stack that we have created? Thank you, B.Arunkumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Controlling Installation of new apps?
Thanks Tre - you're correct about the broadcast event. I only wanted to know if there was some Intent broadcasted by the Android system stack when any app is about to be installed. So it would apply equally to side-loaded apps, and other app stores. So far, I don't suppose there's any such intent provided by the Android stack. On Aug 29, 12:37 am, TreKing treking...@gmail.com wrote: On Sun, Aug 28, 2011 at 2:31 PM, Anirvan anirvan.majum...@gmail.com wrote: to that end, i was wondering if the Android Market app broadcasts any intent at the point when the user clicks Install for a new app? That's doubtful, and even if it did it could change at any time. And what about other app stores or sideloaded apps? Look at this for knowing when apps are installed, but this, I believe, is broadcast after the fact.http://developer.android.com/reference/android/content/Intent.html#AC... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Controlling Installation of new apps?
You are welcome to write your own firmware with this sort of capability. seriously?! well, i'm waiting for far more compelling reasons to do so. I sincerely hope that this is impossible, for obvious privacy and security reasons. what obvious reasons of privacy and security? when the user's entire contact list, phone state, pictures, sd card files, etc, is accessible to an app [assuming the user agrees to the permissions], i really don't see the huge privacy issues involved in having an app to receive an intent broadcasted during installation of an app. I simply wanted to know if any such intent is broadcasted! if privacy and device security were so much of an over-arching concern, i'm sure apps like applock and hide it pro wouldn't be possible to develop. let alone, have 250k+ downloads! On Aug 29, 1:08 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Aug 28, 2011 at 3:31 PM, Anirvan anirvan.majum...@gmail.com wrote: i was thinking of building an app that provides some kind of control overinstallationofappsin a device. the control mechanism is, of course, meant for the device owner to configure. You are welcome to write your own firmware with this sort of capability. to that end, i was wondering if the Android Market app broadcasts any intent at the point when the user clicks Install for anewapp? this intent can be trapped to perform the necessary permission check. I sincerely hope that this is impossible, for obvious privacy and security reasons. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Controlling Installation of new apps?
On Monday, August 29, 2011 11:01:34 AM UTC-4, Anirvan wrote: I only wanted to know if there was some Intent broadcasted by the Android system stack when any app is about to be installed. So it would apply equally to side-loaded apps, and other app stores. So far, I don't suppose there's any such intent provided by the Android stack. Even if there is/were, the design philosophy of android would not let a 3rd party app interfere in the process of installing another - android has no real mechanism by which a user can trust an application with system-level permissions, short of installing a customized rom. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to P2P between with the phone and reader?
Check out the NFCDemo sample code to get started... http://developer.android.com/resources/samples/NFCDemo/index.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: IndexOf on the toString Value of a object?
Thanks very much i'll take a look -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Handling Adjacent Fragments in ViewPager Contributing to Options Menu
I filed a bug http://code.google.com/p/android/issues/detail?id=19203 a few weeks ago which was reported to me by a user of my library and finally got around to finding a workaround yesterday (posted as a patch but I have a more refined implementation as of today). I'm hoping to get more opinions on the proper direction to take this in order to solve the problem. *Problem:* When using fragments with a ViewPager two two fragments which are adjacent to the currently selected page are instantiated and cached to provide smooth scrolling in either direction with as little lag as possible. If these fragments contribute menus to the activity options menu then their items will appear when positioned in these adjacent positions. *My solution:* Currently I chose to solve this by adding two booleans to Fragment, mViewPagerParticipant and mViewPagerSelected. When FragmentPagerAdapterinstantiates or destroys a fragment it updates mViewPagerParticipant with the appropriate value. Through the addition of a non-abstract method in PagerAdapter, updateSelectionState(Object object, boolean selected), FragmentPagerAdapter will set the fragment (cast from the object) mViewPagerSelected value to match the selected argument. ViewPager was then modified to properly call mAdapter.updateSelectionState(...) appropriately when pages were moving in and moving out of being selected. The FragmentManager was also updated to only dispatch menu events if the fragment was not participating in a ViewPager or was currently selected in a ViewPager. This is a wholly internal solution that requires no modification of code by anyone implementing the library. It Just Works™. The problem with this, however, is that it modifies internal APIs that exist outside the scope of the ViewPager and the library itself. Fragment and FragmentManager are built-in APIs in SDK 11+ and even though they are not used when using the ViewPager, we are now diverging the implementations between the SDK and compat lib. *Other possible solution:* * * The user who reported the problem to me wants to modify the OnPageChangeListener interface and add a deselected method. This would provide a callback for when a fragment was no longer the selected page on the screen and allow for the implementation to call setHasOptionsMenu(false). The ViewPager would make the appropriate calls like it would above except directly to the listener. This solution places the burden on the implementation on the user of the library but requires only changes in the ViewPager class. Since the class is maintained independently of the SDK (at least as of API 13) this would be ideal but is arguably not optimal. I'd like to get opinions and thoughts on these two solutions (or any additional ones you can come up with). The opinion of a Googler would also be welcome as I don't want to take my library in a direction that would differ from future iterations of the compatibility library. If you are interested in the original discussions for this bug please see: https://github.com/JakeWharton/ActionBarSherlock/issues/48 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Graphs in Android
Thanks very Much. Chart Droid is actually it's own app, i need a chart to be embedded in mine but i found this which is brilliant! http://www.jjoe64.com/p/graphview-library.html On Mon, Aug 29, 2011 at 10:33 AM, saurabh rawat rawatsaur...@yahoo.co.inwrote: Hi , I have done quiet some research and still doing it for better graphs.I have used achartenigne from which I was plotting the pie charts and stacked bar charts but drawback is that you cant make 3d charts .if you see these videos which has quiet fascinated me are too good to be included in developing charts for android but I think both are paid .FLX charts are mindblowing. (1) Aichart http://www.youtube.com/v/3ho5wiV-o8ghl=enfs=1rel=0 (2) FLX Charts http://www.youtube.com/watch?v=paTRLcmErNY Chartdorid is the port of jfreechart (an excellent library for developing charts but unfortunately available only for java )Its free and can be used.I think as per your requirements which in this case best fits in chartdroid you should give it a try.Other wise my second choice will be to go with the light weigh achartengine. Rgds, Saurabh *The ultimate test of a relationship is to disagree but to hold hands*... --- On *Sat, 30/7/11, Boozel boozelcl...@gmail.com* wrote: From: Boozel boozelcl...@gmail.com Subject: [android-developers] Graphs in Android To: android-developers@googlegroups.com Date: Saturday, 30 July, 2011, 9:02 PM Hi I need to plot a line graph in my app. I found a bunch of libraries for graphing in android, Has any one used or had any experience with these? Which is best? If any one has any suggestions please post them. Thanks a lot. GraphView: http://android.arnodenhond.com/components/graphview Java[TM] Charts for Android: http://www.java4less.com/charts/chart.php?info=android ChartDroid: http://code.google.com/p/chartdroid/wiki/Screenshots Android Plot: http://androidplot.com/wiki/Home achartengine: http://code.google.com/p/achartengine/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Different Package Name for Development Builds in Eclipse
I'm quite new to Android development but now my first app is getting closer to a somehow working state. But I want my normal phone for development which causes one problem: I can't use a stable version of my app while I'm developing. Now I'm wondering if there is an easy way in Eclipse to use a differente package name (for example append dev to the normal one) for the development builds (Run button) but still the normal one for release versions (Export Android Application). I already found out that aapt has an option --rename-manifest-package but I don't really know how to use this and how to customize the build process in Eclipse for my needs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to toggle on gps in android programatically?
While you may not be able to programatically turn it on for the user you still can assist the use by sending them to location settings to turn it on themselves. That's at least better than just telling them to hunt for it. The following should work: startActivityForResult(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS), youRequestCode); On Aug 25, 3:23 am, Shruthi Varma shruthi.tlis...@gmail.com wrote: Hi All, In my application, I need to toggle on the GPS programatically. This question was asked many times, and the answer is in Android, you can programmatically turn the Wifi on or off, but not the GPS. But many market applications can turn the GPS on or off programatically. So I thought there may be a way to do this. Please help. Regards, Shruthi. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using AndroidHttpClient as a singleton.
By looking at the source of AndroidHttpClient, it appears that it can be reused and uses a ThreadSafeClientConnManager. I hope to use it as a singleton to get these benefits across multiple parts of my code. Creating a new client per request has worked, but it is inefficient. I estimate a 20% increase in performance for reusing a client, even if I am still only using one thread for requests. Does anyone see a problem with this usage? I would have to use my own implementation since I do support platforms lower than Froyo. It emphasizes calling close() when you are done with it. In my case, I would not ever really be done with it until the process closes. I could also try to make one instance per thread. But I can see some benefits to allowing more than one thread to make http requests, if AndroidHttpClient is useful for this. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Embedding a Project made form Adobe FLEX inside an android project in Eclipse.Is it possible?
HI ALL, I have created a Adobe flex http://coenraets.org/blog/2011/07/mobiledashboard-for-ios-android-and-playbook-source-code-available-on-github/project which is running well on the FLEX emulator for android phones (I have tested it on google nexus one ).Now I want to use this project inside my eclipse project and want to create an application(.apk) to run on the android emulator.Is it possible.I am trying for past few hours , googled too but didn't find convincing answer.Plz let me know if it is possible with the possible documentation links.The reason why I want to do this is that with the FLEX only i am able to do some graphical implementations but those graphs are based on the data which I have to take from the android application.More over the FLEX application is all in xml(mxml to be precise) is it possible to pass the data from the android application to these xmls(one way is i can programmaticaly create these mxml and place it under the FLEX project directory)but then again the problem is that I don't know whether I cam embedded/Integrate/combine a FLEX project with an android project.Plz assist. Rgds, Saurabh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can Android devices got normal computer viruses?
I'm interested in this question: Can Android devices got normal viruses or they can carry them? Can Android got a virus from a website if the user doesn't download anything? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem when scrolling on a dynamic GridLayout of CheckedTextView
Hi, Starting from the beginning, I build a custom grid loaded from a table in the database. I did it using a GridLayout a CursorAdapter built from a SimpleCursorAdapter using a custom layout that only contains a CheckedTextView item. Here's the code that gets the GridLayout from the code and populates it: public void generateEquipmentsGridView() { DbExtendedStringAdapter dbAdapter = new DbExtendedStringAdapter(this, DbExtendedStringAdapter.TABLE_NAME_EQUIPMENTS); dbAdapter.open(); // getting all elements from DB: Cursor cursor = dbAdapter.getAll(); startManagingCursor(cursor); // creating the adapter for the list: if (cursor != null cursor.getCount() 0) { CursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.extended_checkedtextview_custom, cursor, new String[] {cursor.getColumnName(cursor.getColumnIndex(DbExtendedStringAdapter.KEY_STRING))}, new int[] {R.id.text1}); // setting the adapter in the list: GridView gridviewEquipments = (GridView)findViewById(R.id.field_equipments_gridview); gridviewEquipments.setAdapter(adapter); gridviewEquipments.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView? l, View view, int position, long id) { CheckedTextView checkedTextView = (CheckedTextView)view.findViewById(R.id.text1); if (gridSelectedElementsIds.contains(id)) { checkedTextView.setChecked(false); gridSelectedElementsIds.remove(id); } else { checkedTextView.setChecked(true); gridSelectedElementsIds.add(id); } } }); } } As for the implementation of the onItemClick method, I just keep sync with a ListLong that contains the IDs of the items checked in the grid, it also changes the state of the CheckedTextView to show it as checked or not. It's working fine, but the problem I've just noticed is that when doing some scroll the ticks that shows an item as checked are jumping from one item to another. It seems to be random. any idea of whats doing this to work that way? any kown bug? I also tried to replace the onItemClick method for something simpler, like this: @Override public void onItemClick(AdapterView? l, View view, int position, long id) { CheckedTextView checkedTextView = (CheckedTextView)view.findViewById(R.id.text1); checkedTextView.setChecked(!checkedTextView.isChecked()); } I still got the same result with the scrolling things, it keeps jumping between elements. This is the definition of the *extended_checkedtextview_custom* layout: ?xml version=1.0 encoding=utf-8? CheckedTextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/text1 android:layout_width=match_parent android:layout_height=wrap_content android:textAppearance=?android:attr/textAppearanceMedium android:gravity=center_vertical android:checkMark=?android:attr/listChoiceIndicatorMultiple android:paddingLeft=6dip android:paddingRight=6dip / Thank you guys! This is killing me becouse I don't know what to look for... :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Test Driven Development with Android
I wanted to see if it was possible to use TDD with Android application development. Thanks to Robotium, I've had great initial success. One of the issues I ran into was how to use the camera during my smoke tests. Using information learned from the Robtium mailing list, I created a fake camera application that will allow you to effectively mock out the camera during your tests. I'm quite sure you could apply this pattern to other types of Intents as well. The FakeCamera app's source lives at https://github.com/bryanl/FakeCamera, and you can see a video demonstration of TDD in Android at http://bit.ly/android-tdd-1. I'm looking for feedback on my approach and what others might be doing as well. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can Android devices got normal computer viruses?
No. On Mon, Aug 29, 2011 at 11:34 PM, Zwiebel hunzwie...@gmail.com wrote: I'm interested in this question: Can Android devices got normal viruses or they can carry them? Can Android got a virus from a website if the user doesn't download anything? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can Android devices got normal computer viruses?
Ok thanks. But if the websites can't harm the android devices, there are only viruses in the market, which are can harm the device? On aug. 29, 18:56, Appaholics raghavs...@appaholics.in wrote: No. On Mon, Aug 29, 2011 at 11:34 PM, Zwiebel hunzwie...@gmail.com wrote: I'm interested in this question: Can Android devices got normal viruses or they can carry them? Can Android got a virus from a website if the user doesn't download anything? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control)http://www.raghavsood.com/https://market.android.com/developer?pub=Appaholicshttp://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Implementing onShowCustomView on Android 3.1 throws in HTML5VideoFullScreen
A tip would be useful :) I tried to find Google browser sources in Android 3.1, but I'm not quite sure if sources here: http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a=summary are the sources used in 3.1. On 27 Sie, 22:28, novemberox novembe...@gmail.com wrote: Hi, I'm trying to play video in html on fullscreen. When I click on fullscreen button in video method onShowCustomView is fired. Here is my implementation: public void onShowCustomView(View view, CustomViewCallback callback) { super.onShowCustomView(view, callback); if (view instanceof FrameLayout) { customComponenet.addView(view, new FrameLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT, Gravity.CENTER)); customComponenet.setVisibility(View.VISIBLE); } } Where customComponenet is FrameLayout placed on top of my current layout. Wideo is playing good, it's visibile and everything seams to be ok but it throws: 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): FATAL EXCEPTION: main 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): java.lang.NullPointerException 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoFullScreen.switchProgressView(HTML5VideoFullScreen .java: 320) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoView.setPlayerBuffering(HTML5VideoView.java: 319) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoView.start(HTML5VideoView.java:85) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoViewProxy $VideoPlayer.onPrepared(HTML5VideoViewProxy.java:257) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoViewProxy.onPrepared(HTML5VideoViewProxy.java: 278) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoView.onPrepared(HTML5VideoView.java:265) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoFullScreen.onPrepared(HTML5VideoFullScreen.java: 164) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java: 1456) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.os.Handler.dispatchMessage(Handler.java:99) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.os.Looper.loop(Looper.java:132) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.app.ActivityThread.main(ActivityThread.java:4028) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at java.lang.reflect.Method.invokeNative(Native Method) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at java.lang.reflect.Method.invoke(Method.java:491) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:844) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at dalvik.system.NativeStart.main(Native Method) What am I doing wrong? My WebView settings: webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setPluginState(PluginState.ON); webView.getSettings().setDomStorageEnabled(true); webView.getSettings().setDatabasePath(/data/data/ + App.class.getPackage().getName() + /databases); webView.getSettings().setSupportZoom(false); I'm testing on Galaxy Tab 10.1, on default browser this is working just fine. I can switch to fullscreen. Moreover in my app when I play video embeded I can hear only sound and see status bar below area where video should be, while on browser I can see video both embeded in WebView and on fullscreen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can Android devices got normal computer viruses?
On Monday, August 29, 2011 2:56:13 PM UTC-4, Appaholics wrote: No. On Mon, Aug 29, 2011 at 11:34 PM, Zwiebel hunzw...@gmail.com wrote: I'm interested in this question: Can Android devices got normal viruses or they can carry them? Can Android got a virus from a website if the user doesn't download anything? That's not entirely true. While android devices would likely not be susceptible to something specifically targeting a particular desktop OS, they are potentially susceptible to similar attacks, exploiting either the same style of vulnerability of potentially even the exact same vulnerability with only the code-to-be-injected needing to be customized for android. - An exploit of the web browser could lead to arbitrary code executed as the browser UID. This could result in the loss of stored credentials for other sites, or set the stage for an attempt to exploit the android system itself to gain more privileged (root) access. IIRC at least one such issue has been found and patched. - Some other android-based client application or content viewer could be exploited in a similar fashion, to a similar end. - Code commonality between different platforms is a potential cross-platform vulnerability. For example, a few years ago a problem with a common jpeg library affected not only desktop PC's, but was also used (positively, by device owners) as an entry point to run custom software on handheld gaming devices. - Just about any computer system can carry malicious payloads to which it is not susceptible, between systems which are. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using AndroidHttpClient as a singleton.
In most apps AndroidHttpClient is best used a singleton for the reasons you describe. It doesn't make sense to create a thread pool for each AndroidHttpClient instantiation. From the Apache HttpComponents dosc: DefaultHttpClient is thread safe. It is recommended that the same instance of this class is reused for multiple request executions (DefaultHttpClient also uses ThreadSafeClientConnManager). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can Android devices got normal computer viruses?
Ok, but people how can defend their devices againt these attacks? With the normal antivir programs like avg antivir or lookout? On aug. 29, 19:58, Chris Stratton cs07...@gmail.com wrote: On Monday, August 29, 2011 2:56:13 PM UTC-4, Appaholics wrote: No. On Mon, Aug 29, 2011 at 11:34 PM, Zwiebel hunzw...@gmail.com wrote: I'm interested in this question: Can Android devices got normal viruses or they can carry them? Can Android got a virus from a website if the user doesn't download anything? That's not entirely true. While android devices would likely not be susceptible to something specifically targeting a particular desktop OS, they are potentially susceptible to similar attacks, exploiting either the same style of vulnerability of potentially even the exact same vulnerability with only the code-to-be-injected needing to be customized for android. - An exploit of the web browser could lead to arbitrary code executed as the browser UID. This could result in the loss of stored credentials for other sites, or set the stage for an attempt to exploit the android system itself to gain more privileged (root) access. IIRC at least one such issue has been found and patched. - Some other android-based client application or content viewer could be exploited in a similar fashion, to a similar end. - Code commonality between different platforms is a potential cross-platform vulnerability. For example, a few years ago a problem with a common jpeg library affected not only desktop PC's, but was also used (positively, by device owners) as an entry point to run custom software on handheld gaming devices. - Just about any computer system can carry malicious payloads to which it is not susceptible, between systems which are. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: attach prolog file in Android project
Ths so much. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem preventing two strings from overlapping
Have you considered measuring your text, Paint.measureText(your string), and deciding where to place it programmatically? Hal Harrison. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] helloandroid examples
Anyone know if there is an easy way to try out the examples like this: http://www.helloandroid.com/tutorials/how-send-email-your-application When you copy and paste, it brings in all the line numbers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] helloandroid examples
No it doesn't... On Tue, Aug 30, 2011 at 3:06 AM, bob b...@coolgroups.com wrote: Anyone know if there is an easy way to try out the examples like this: http://www.helloandroid.com/tutorials/how-send-email-your-application When you copy and paste, it brings in all the line numbers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using AndroidHttpClient as a singleton.
Well, I can say that it sounds really nice in theory. In practice, all you have to do is have a few requests fail, and then a subsequent request is completely frozen. The thread is then blocked on this call. ConnPoolByRoute.getEntryBlocking(HttpRoute, Object, long, TimeUnit, WaitingThreadAborter) line: 339 ConnPoolByRoute$1.getPoolEntry(long, TimeUnit) line: 238 ThreadSafeClientConnManager$1.getConnection(long, TimeUnit) line: 175 So how am I supposed to use AndroidHttpClient? Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Can Android devices got normal computer viruses?
On Mon, Aug 29, 2011 at 5:14 PM, Zwiebel hunzwie...@gmail.com wrote: Ok, but people how can defend their devices againt these attacks? With the normal antivir programs like avg antivir or lookout? Check the market ;-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] opening a specific file in a new activity
I have an indexed list activity that contains several files in my assets directory. I know how to open a file and display the contents in a WebView. I do this within the class once I start the activity. I can hard-code the file name in this activity. What I want to do is have the user select the file and have this file opened. I don't know how to have the activity know what file name was selected. how does one pass this information to the new activity? I also need to be able to jump back to the list activity so the user can select a different file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: BitmapFactory.decodeStream() blocking
On Aug 22, 4:46 pm, b0b pujos.mich...@gmail.com wrote: That's indeed interesting. In parallel of the code above blocking on decoding a FileInputStream, I concurrent threads invoking BitmapFactory.decodeStream() with an InputStream from a HttpGet executed by a slightlly modifiedAndroidHttpClient(to use httpclient/httpcore 4.1). I'm using a single HttpClient instance for the lifetime of my app, as recommended by Apache. It is quite inefficient to create a HttpClient per request as a HttpClient creates a thread pool and it is designed to handle several concurrent connections is a thread safe way (if using a ThreadSafeClientConnManager that is). Now it really looks like a deadlock in nativeDecodeStream() but if that's the case it is a bug. I will try to create a HttpClient per request to see if it fixes the problem. Did you find that you have to use an HttpClient per request? Because if so, that really sucks. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Conversion to Dalvik format failed with error 1
I'm a beginner to android application development and I get the following error in eclipse helios 3.6 when I write an android application involving two activities(first one involving a button and the second activity contains some text so that when a user clicks the button the text gets displayed). Description Resource Path Location Type Conversion to Dalvik format failed with error 1 LearnActivities Unknown Android Packaging Problem -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Controlling an incoming call, also playing of an audio file
Hi All, Has anyone tried controlling an incoming call on an android phone. Have read a few posts which suggests that it's doable. However, would like to know if someone has tried and have been successful. Let me know the technical details for achieving this. Assuming that an incoming call above is possible, then is it possible to inject an audio stream from a file onto this call. Pl. share the details. Thanks in advance. Regards, Sanjay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android trackball and bluetooth
I was curious as to whether or not it's possible to send trackball events over bluetooth to be interpreted by the connection service and passed to the main activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Accessing Legacy website using WebView - Need Double-click/right click capability
Our company scheduling website requires certain key/mouse commands to navigate properly. Specifically double-clicking to open up a popup to look at item detail. An app was written by someone else for iPhone/ iPad that works okay with our system by including a small toolbox that would allow you to toggle shift, ctrl key functions to simulate mouse clicks to highlight/select multiple fields. I am trying to create a similar app for Android using a custom WebView. I am new to the platform so am looking for some direction on the best approach to this task. I have a functional WebView right now, so I can do basic navigation, and am ready for the next step. If I use one of the listener classes, OnClick, or MotionEvent to trap a screen event, how do I convert this action to a double-click to activate the popup? I know I am missing something conceptually here, hence my question. Thanks in advance for your help! Jeff -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] CheckBox Clear on Menu click
Dear All, I have problem on unchecking the checkbox when a menu is fired.? I am using a baseAdapter where i have a getView() method as such: --- public View getView(final int position, View view, ViewGroup parent) { final ViewHolder viewHolder; if (view == null) { viewHolder = new ViewHolder(); view = layoutInfalter.inflate(R.layout.inbox_row, null); viewHolder.checkBox = (CheckBox) view.findViewById(R.id.inboxCheckId); if (INBOX_VIEW_MODE == -1) { viewHolder.checkBox.setVisibility(View.GONE); } else { InboxEmailAdapter.setInboxViewMode(1); viewHolder.checkBox.setVisibility(View.VISIBLE); checkedItems = new ArrayListInteger(); viewHolder.checkBox.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if(isChecked){ viewHolder.checkBox.setId(inboxEmailList.get(position).getId()); checkedItems.add(viewHolder.checkBox.getId()); } } }); } viewHolder.emailFrom = (TextView) view.findViewById(R.id.inboxFrom); viewHolder.emailSubject = (TextView) view.findViewById(R.id.inboxSubject); view.setTag(viewHolder); } else { viewHolder = (ViewHolder) view.getTag(); } viewHolder.emailFrom.setText(inboxEmailList.get(position).getFrom()); viewHolder.emailSubject.setText(inboxEmailList.get(position).getSubject()); return view; } --- On my activity: I have a listView populated with checkbox? I select checkbox, it is being selected. On my Menu i have cancel button which on click should uncheck the selected checkbox? I am not being able to perform this? Any helps would really help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] App Suspended
I've been selling a virtual instrument app for months on the Android Market. Just today it was suspended, without any specific reason, just a vague reference to the Developer Content Policy. Of which I cannot see how my app could be in conflict. Has anyone else dealt with a situation like this and found a rapid resolution? Thanks. The email from Google: This is a notification that your application has been removed from Android Market due to a violation of the Developer Content Policy. Please review the Content Policies and Business and Program Policies before you create or upload additional applications. Note that repeated violations may result in a suspension of your Android Market Publisher account. For more information, or to contact us, please reply to this email, or visit the Android Market Help Center. Thanks, The Android Market Team -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Application force close after change it from /system/app to /data/
HI guys, I have a question: my application is installed in /system/app at first, and I run the app for a while. then I remove it from /system/app and install it via adb to /data/ directory. after that, when I click the app to run it again, it always crash with forceclose, the log shows something like : Caused by: android.database.sqlite.SQLiteException: unable to open database file Do yo know the reason why this happen after change the app install location? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Combining Tween and Frame Animations
I'm new to the android development, and working my way through android tutorials available on Android website more specifically relating to animation. Now I know how to apply tween and frame by frame animations, but I can't figure out how to combine these two animations to run simultaneously example of which could be an animating character(frame by frame) walk across the screen(translate). I tried putting the both the animation-list for frame by frame animation and translate animation under the Set tag of my animation.xml, file and running using the following code. ImageView iv = (ImageView) findViewById(R.id.imageView1); iv.setBackgroundResource(R.anim.animation); //where animation is the name of my animation xml AnimationDrawable anim = (AnimationDrawable) iv.getBackground(); anim.start(); But it throughs an exception at setBackgroudResource. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Develop for Google Plus
Hello, I was wondering if anyone here has tried to add interaction with Google Plus social network in their app. So far I haven't seen anything resembling an SDK in the Android docs. Could someone perhaps give me a few pointers? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Debugging Widget Code interrupted by ANR
Hey all, I am having an issue with debugging my onUpdate() or onReceive() methods for a subclass of AppWidgetProvider. Basically, I have a breakpoint set in either of the routines above. Their purpose is to update my widget on the Homescreen. The problem occurs when I it my breakpoint in my receiver, after about the magical 5 seconds, the VM disconnects due to the apparent ANR and my Activity is killed. Logcat indicates the ANR and that my process has died. I do not see this problem when I am debugging within my own process/ thread. I assume the issue has to do with the IPC with the Homescreen app.. Am I missing something? I am sure I need to add something to manifest maybe? Env: 1. API 10 2. Device: Emulator 3. Eclipse: Indigo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Convert C++ command line tool to Android app?
Hi, I've got a C++ command line tool, and want to put this tool onto my Android phone. I've done the helloandroid example, and it worked perfectly. My question is, what's the easiest way to port my C++ program to the Android platform. The tool written in C++ just needs a few inputs and then compute the output, so I would imagine a few text input boxes and an output display text box, nothing fancy in the GUI. Would appreciate any suggestion, also I only have remote knowledge of Java, but very comfortable with C/C++. Thanks, J -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adding setOnClickListener() to button causes crashes
I'm trying to add a button that can pause the threads that run my game. It looks like I can basically copy paste the button example, but it doesn't work. public GameView(Context context, AttributeSet attributeSet) { super(context); getHolder().addCallback(this); mainThread = new MainThread(getHolder(), this); timerThread = new TimerThread(); final Button pauseButton = (Button) findViewById(R.id.pauseButton); pauseButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { pauseGame(); } }); } It runs perfectly without the button object creation/onclicklistener setting, but with it added it crashes. Am I doing something wrong? Errors from LogCat: 08-25 19:22:18.126: ERROR/AndroidRuntime(951): FATAL EXCEPTION: main 08-25 19:22:18.126: ERROR/AndroidRuntime(951): java.lang.IllegalStateException: Could not execute method of the activity 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.View $1.onClick(View.java:2072) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.View.performClick(View.java:2408) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.View $PerformClick.run(View.java:8816) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.os.Handler.handleCallback(Handler.java:587) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.os.Handler.dispatchMessage(Handler.java:92) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.os.Looper.loop(Looper.java:123) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.app.ActivityThread.main(ActivityThread.java:4627) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at java.lang.reflect.Method.invokeNative(Native Method) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at java.lang.reflect.Method.invoke(Method.java:521) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at dalvik.system.NativeStart.main(Native Method) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): Caused by: java.lang.reflect.InvocationTargetException 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at parachute.game.ParachuteActivity.newGame(ParachuteActivity.java:27) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at java.lang.reflect.Method.invokeNative(Native Method) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at java.lang.reflect.Method.invoke(Method.java:521) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.View $1.onClick(View.java:2067) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): ... 11 more 08-25 19:22:18.126: ERROR/AndroidRuntime(951): Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class parachute.game.GameView 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java: 198) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.app.Activity.setContentView(Activity.java:1647) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): ... 15 more 08-25 19:22:18.126: ERROR/AndroidRuntime(951): Caused by: java.lang.reflect.InvocationTargetException 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at parachute.game.GameView.init(GameView.java:46) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at java.lang.reflect.Constructor.constructNative(Native Method) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 08-25 19:22:18.126: ERROR/AndroidRuntime(951): ... 22 more 08-25 19:22:18.126: ERROR/AndroidRuntime(951): Caused by: java.lang.NullPointerException 08-25 19:22:18.126: ERROR/AndroidRuntime(951): ... 26 more -- You received this message because you are subscribed
[android-developers] Downloading application myApp.APK using ASP.NET
I have been trying to download an application from our server (...// install//android//myApp.APK) from my Android Phone but am getting an htm file instead... myApp.APK. When I tried it on the Website on my PC, it worked fine. Heres my code. Any help will be appreciated. public static void DownloadFile(string filename, string sContentType, System.Web.UI.Page page) { string path = page.Server.MapPath(filename); //get file object as FileInfo System.IO.FileInfo file = new System.IO.FileInfo(path); //-- if the file exists on the server if (file.Exists) { page.Response.Clear(); page.Response.AddHeader(Content-Disposition, attachment; filename= + file.Name); page.Response.AddHeader(Content-Length, file.Length.ToString()); if(sContentType.Length 0) page.Response.ContentType = sContentType; else page.Response.ContentType = application/octet- stream; page.Response.WriteFile(file.FullName); page.Response.Flush(); page.Response.End(); //if file does not exist } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Calendar Intent not working in Motorola Xoom Honeycomb 3.1
Hi, I am developing an app that send datas to Android calendar via Intent. It works perfect with the default android calendar from 2.1 to 2.3.4 and also with 3rd party calendar like Jorte or Business Calender. But with Honeycomb (Acer Iconia and Motorola Xoom) I am getting NO DESCRIPTION PASSED IN THE FIELD. I have all the passed field filled, year, month, day, hours, minutes, but NO DESCRIPTION GregorianCalendar cal = new GregorianCalendar(); Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType(vnd.android.cursor.item/event); cal.set(Calendar.YEAR, Integer.parseInt(pv.getYear())); cal.set(Calendar.MONTH, Integer.parseInt(pv.getMonth())); cal.set(Calendar.DAY_OF_MONTH, Integer.parseInt(pv.getDay())); cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(pv.getHours())); cal.set(Calendar.MINUTE, Integer.parseInt(pv.getMinutes())); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); intent.putExtra(beginTime, cal.getTimeInMillis()); cal.add(Calendar.MINUTE, Integer.parseInt(eventTime)); intent.putExtra(endTime, cal.getTimeInMillis()); String description = pv.getDescription().trim(); intent.putExtra(title, description); startActivity(intent); any idea? Thanks Xenio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Disable CPU frequency scaling from APP?
Hi all, I want do some multimedia work on android, but I found that cpu can't be kept on a high frequency. This makes the result of the player not so good. Is there any solution to disable the frequency scaling feature when my app is running? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to long-press on emulator ?
Hello, i'm trying to test the long-press on my emulator (AVD 2.1-update 1) with no success (right clic, double clic etc). Somebody to help ? Thanks ! Lo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eclipse couldn't open Ardroid project with Could not open the editor: Invalid Input: Must be IFileEditorInput error
Dear group. Could you help me to solve subject problem? It appeared after I've upgraded revisions of Android packages. Both installations Galileo (Ubuntu native) and Indigo (from Eclipse site) falls with this error. I have this packages installed: Android SDK Tolls revision 12 Android SDK Platform-tools revision 6 SDK Platform Android 3.2, API 13, revision 1 SDK Platform Android 3.1, API 12, revision 3 SDK Platform Android 3.0, API 11, revision 2 SDK Platform Android 2.3.3, API 10, revision 2 SDK Platform Android 2.2, API 8, revision 3 SDK Platform Android 2.1-update1, API 7, revision 3 Android Compatibility package, revision 3 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google+ API?
Hello, I was wondering if anyone has found any function to allow interaction between an Android app and the Google+ network? I guess something like this must be part of Android somewhere but I couldn't find anything like this in the docs. There's always the possibility I am stupid enough to have missed it, so I would appreciate any pointers, thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] EGL/OpenGL ES Frame Rate Stuttering
TL;DR: Even when doing no drawing at all, it seems impossible to maintain a 60Hz update rate on an OpenGL ES rendering thread on an Android device. Mysterious spikes frequently crop up (demonstrated in the code at the bottom of this post), and every effort that I've made to figure out why or how has lead to a dead end. Timing in more complicated examples with a custom rendering thread has consistently shown eglSwapBuffers() to be the culprit, frequently coming in over 17ms-32ms. Help? More details: This is particularly damning because the rendering requirements for our project is screen-aligned elements smoothly scrolling horizontally at a fixed, high rate of speed from one side of the screen to the other. In other words, a platforming game. The frequent drops from 60Hz result in noticeable popping and lurching, both with and without time-based movement. Rendering at 30Hz isn't an option because of the high rate of scrolling speed, which is a non-negotiable part of the design. Our project is Java-based to maximize compatibility and uses OpenGL ES 2.0. We only dip down into the NDK for OpenGL ES 2.0 rendering on API 7-8 devices and ETC1 support on API 7 devices. In both it and the test code given below, I have verified no allocations/GC events except for the log print and automatic threads beyond my control. I've recreated the problem in a single file that uses stock Android classes and no NDK. The code below can be pasted into a new Android project created in Eclipse and should pretty much work out-of-the-box so long as you choose API level 8 or above. The test has been reproduced on a variety of devices with a range of GPUs and OS versions: * Galaxy Tab 10.1 running Android 3.1 * Nexus S running Android 2.3.4 * Galaxy S II running Android 2.3.3 * XPERIA Play running Android 2.3.2 * Droid Incredible running Android 2.2 * Galaxy S running Android 2.1-update1 (when dropping API requirements down to level 7) Sample output (gathered from under 1 second of run time): Spike: 0.017554 Spike: 0.017767 Spike: 0.018017 Spike: 0.016855 Spike: 0.016759 Spike: 0.016669 Spike: 0.024925 Spike: 0.017083999 Spike: 0.032984 Spike: 0.026052998 Spike: 0.017372 I've been chasing this one for a while and have about hit a brick wall. If a fix isn't available, then at least an explanation about why this happens and advice on how this has been overcome in projects with similar requirements would be greatly appreciated. Thanks, Bill Roeske Kittehface Software -- package com.test.spikeglsurfview; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.app.Activity; import android.opengl.GLSurfaceView; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.Window; import android.view.WindowManager; import android.widget.LinearLayout; /** * A simple Activity that demonstrates frequent frame rate dips from 60Hz, * even when doing no rendering at all. * * This class targets API level 8 and is meant to be drop-in compatible with a * fresh auto-generated Android project in Eclipse. * * This example uses stock Android classes whenever possible. * * @author Bill Roeske */ public class SpikeActivity extends Activity { @Override public void onCreate( Bundle savedInstanceState ) { super.onCreate( savedInstanceState ); // Make the activity fill the screen. requestWindowFeature( Window.FEATURE_NO_TITLE ); getWindow().setFlags( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN ); // Get a reference to the default layout. final LayoutInflater factory = getLayoutInflater(); final LinearLayout layout = (LinearLayout)factory.inflate( R.layout.main, null ); // Clear the layout to remove the default Hello World TextView. layout.removeAllViews(); // Create a GLSurfaceView and add it to the layout. GLSurfaceView glView = new GLSurfaceView( getApplicationContext() ); layout.addView( glView ); // Configure the GLSurfaceView for OpenGL ES 2.0 rendering with the test renderer. glView.setEGLContextClientVersion( 2 ); glView.setRenderer( new SpikeRenderer() ); // Apply the modified layout to this activity's UI. setContentView( layout ); } } class SpikeRenderer implements GLSurfaceView.Renderer { @Override public void onDrawFrame( GL10 gl ) { // Update base time values. final long timeCurrentNS = System.nanoTime(); final long timeDeltaNS = timeCurrentNS - timePreviousNS; timePreviousNS = timeCurrentNS;
[android-developers] How to select a text line from Radio Button
Hi all, I want to design an app in which there are multiple radio buttons, every radio button has some text in multiple lines associated with it, when a radio button is selected i want to take one line from those multiple text lines. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to: Set call input from an audio file
Hello everyone, I want to make a call and set call input from an audio file (such as *.wav, *.mp3, ...), instead of from microphone. Microphone is muted in this case, so that the receiver just hear the sound from my audio file, he don't hear anything else. So, what should I do? How to do that? Please help me to treat this problem! Thank you in advance! :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Every time got zero value when fetch / receive data from external USB Device to Android 3.1 USB Host tab device ?
I've written an app to connect an USB Device that have 1 Interfaces with 2 connected Endpoints: i have android 3.1 USB Host tab device and i have external device scanner in which FDTI FT232BM chip and It is a USB device that emulates a RS232 interface it appears as a RS232 port to talk to the Atmel AT90LS8535 processor. when i connect device to tab successfully action get device attached. Open UsbDeviceConnection is suuccess. get endpoint and when receive data every time buffer or byte geting zero values in bytes. i have try two way to fetch receive data from external device but both way i getting response zero value in buffer / bytes. Please any one suggest me any step missing me or how to get data from my external USB device ? here i paste code of both way are seprate thread and try to receive data but not got. First Way : byte [] buffer = new byte[4096]; read = deviceConnection.bulkTransfer(deviceInterface.getEndpoint(0), buffer, 4096, 1); if(read 2) { total += read - 2; for(int i = 2; i read; i++) { String value = Byte.toString(buffer[i]); Log.e(,i : +i+ value : +value); } } Second Way : UsbRequest request = null; ByteBuffer buffer1 = ByteBuffer.allocate(4096); request = new UsbRequest(); request.initialize(deviceConnection, deviceInterface.getEndpoint(0)); buffer1.order(ByteOrder.BIG_ENDIAN); request.queue(buffer1, 4096); if (deviceConnection.requestWait() == request) { Log.e(,Get Data : + extractString(buffer1,0,4095)); } private static String extractString(ByteBuffer buffer, int offset, int length) { byte[] bytes = new byte[length]; for (int i = 0; i length; i++) { bytes[i] = buffer.get(offset++); } return new String(bytes); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to define an Activity as a Singleton (Activity to be launched only once a time)
Hello, I'm detecting my Android Phone movement using a Service. If the movement is too strong, this Service launch an Activity to display a GUI confirmation (Yes/No). The fact is if the movement continues to be strong, the Activity is launch many times. I tried to create a sort of GlobalContext which extends Application to use setters and getters to know if the Activity is already launched in my Service before launching it to display the GUI confirmation. On simulation mode, it works. But on my HTC, the Activity is launch many times. Any idea about how to make an Activity to be like a singleton ? Thx. Maxinfos -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Go SMS is aborting the SMS_RECEIVED broadcast. Why does the Android OS let them do this?
Go SMS is aborting the SMS_RECEIVED broadcast. Why does the Android OS let them do this? Shouldn't the Android OS prevent apps from aborting system broadcasts? Thanks, -Camille -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How do I change android to 24 bpp?
My lcd supports 24 bpp(RGB888) and it can work normal in bootloader. I know the default setting of Android is 16 bpp. How do I change it to 24 bpp.My android is 2.3.1 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Honeycomb webview is going partially blank upon tapping on password field of the html page
Issue: In my Android application that uses webview for authentication, the webview is going partially blank upon tapping on password field of the html page. If I just type user name and password on the html page, then the issue is not seen. Tested on: Samsung Galaxy tablet (GT-P7510) and Motorola Xoom layout file snippet: LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=100 LinearLayout android:layout_width=@dimen/layout_xlarge_width android:layout_height=wrap_content android:layout_gravity=center android:padding=20dip android:orientation=vertical TextView android:id=@+id/urlview android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/test / Spinner android:id=@+id/profile android:layout_height=wrap_content android:layout_width=fill_parent / /LinearLayout WebView android:id=@+id/webview android:layout_width=fill_parent android:layout_height=fill_parent android:visibility=gone / /LinearLayout Code to setup webview: webView = (WebView) findViewById(R.id.webview); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); webView.clearCache(true); webView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY); setUserAgent(getString(R.string.user_agent_suffix)); Other: Adding support for zoom on webview or setting up touch and focus listener did not help in resolving this issue. Similar issue and test results are provided in the following post on stackoverflow: http://stackoverflow.com/questions/7097884/black-flickering-on-honeycomb-webview/7211264#7211264 Any help regarding this issue would be useful. Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Guide Help:How to trace the internal mechanism of android.Context.java and android.os.Binder.java
As far as I know, the base class for android.Context.java and android.os.Binder.java are implemented on Android system OS inside.Now I really want to understand the internal behavior of them.I will appreciate someone can help me to direct me one way to do the trace work,such as how to import all android source code into Eclipse. Many thanks. :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get synced Facebook contacts picture?
I am writing an application that has to get the list of contacts and show their picture. Sometimes contact does not have picture so I must show the picture taken from Facebook account. The requirement is to do this without using Facebook SDK. At first, I thought it was impossible, since I have read a lot of times that only stock apps (like Contacts or Mms) can access that information. However, Handcent SMS application can do that. There is an option on most Motorola's phones to add a Facebook account... when you do so, it will mark Facebook as Picture source http://imgur.com/KFxOR and contacts list will show Facebook pictures for some contacts. Motorola documentation (http://developer.motorola.com/docstools/ library/MOTOBLUR_Contacts_1.x_Release_Notes/) says that is not possible for third-party apps to access Facebook information. So... anyone have any idea of how HandcentSMS guys were able to get facebook pictures from the contact list? Just to be clear: they don't use Facebook SDK and they use the Facebook pictures that motorola software downloads (I know it because when I remove the facebook account from android settings, Handcent does not show pictures) Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Customize ant script for release build
hello Hi I want to customize the default ant build.xml, Here are the steps I Chagned for the Customized the build -To Customize the whole script. - copy/paste the content of the rules files (minus the top node) into this file, *after* the setup task - disable the import of the rules by changing the setup task below to setup import=false /. - customize to your needs. Error: aptexec doesn't support the basename attribute. How to solve this problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem using adb push -- Use / instead of \
Use / instead of \ bad -- adb push E:\Text.txt \sdcard\Text.txt good -- adb push E:/Text.txt /sdcard/Text.txt -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] IllegalStateException Error In Searchable
HI! I implement Searchable and custom ContentProvider in my app, and sometimes IllegalStateException Error is occured. During DB is changed, touching dropdownlist is occured IllegalStateException. Error message is below. java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. I tried to use notifyDataSetChanged() in dropdownlist adapter or modify dropdownlist list, but I can't find list or adapt. How can I fix 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
[android-developers] Lists vs Cursors
It's not Godzilla vs. Mothra but I'm looking to contrast these two components as part of a design question I have. Reviewing some code recently I found that though the app was based on lists and their individual elements, the code was built around cursors as the main source of information shared across activities. As SQLlite does not offer storage for anything other than simple types, a CursorAdapter and its resulting cursor is then passed around to each activity to maintain state. Not many updates to the DB are needed so issues of committing the changes are not a big problem. Of course as activities recede into the background, staleness of the Cursor does crop up and reactivate calls are needed periodically, though sometimes the cursor is passed on to an activity simply to keep it alive. Contrasting this datacentric approach an initial call to the DB could be followed by the marshalling of the pieces into objects in the List. Then using an application object current state could be preserved and any activity that needed it could simply get one or more of the base objects that encapsulate the business logic. Could someone weigh in on the pros and cons of either approach ? Would more resources be used to maintain a list of objects vs a cursor of the constituent elements ? Does synchronization make it safer to use a List of objects rather than the fragments of data held in a cursor shared among activities ? thanks for your input. R -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] News and Picture App for Android
Hi, I'm looking for a developer who has already realized apps for iphone and android. I need an app for my website. It should have a start page where the app shows recents news and updates (with text and pictures). There must be also a button to login where username and password information are submit to a server and the server respond with an session id or a fail. On success the user is in a members area where pictures are shown as a gallery. The user can click to enlarge the picture but also can walk through the gallery like move to left or right. In the gallery view it must be also possible to view the video. All pictures and videos are of course already existing. So make it short -- the app itself has to do: * Show a desktop with information which are available from XML (or another format if it would be better). * A Login Button to a Members Area exists. * Simple page to enter Username/Password * An overview of different photography galleries * On select one gallery the thumbnails of the pictures of this gallery is visible * Click on one picture enlarges this pic or show a video After success the source must be of course passed to me including the use-/copyrights. To realize this project a direct with the webmaster is of course needed. I assume this project will be done after 2 weeks? If you have any questions/recommendations please PM me. Final payment after success. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Memory leak and potential system crash in EventHub.cpp
Greetings, I came across a memory allocation within the EventHub.cpp that I think can potentially leak and even cause a runtime error. The code is bit different in Gingerbread and Froyo but both have the same problem. Here is the snippet from the Gingerbread: int EventHub::openDevice(const char *deviceName) { ... x1) new_mFDs = (pollfd*)realloc(mFDs, sizeof(mFDs[0]) * (mFDCount + 1)); x2)new_devices = (device_t**)realloc(mDevices, sizeof(mDevices[0]) * (mFDCount + 1)); x3)if (new_mFDs == NULL || new_devices == NULL) { x4)LOGE(out of memory); x6)return -1; x7)} x8)mFDs = new_mFDs; x9)mDevices = new_devices; ... } new_mFDs is a local pointer. Consider this scenario: memory is allocated successfully at line x1, but the allocation at line x2 fails. Then, the function returns without talking care of the newly allocated new_mFDs (the new pointer is saved at line x8.) However, this is more serious that a memory leak; this is also a dangling reference problem. Consider the case that (no matter how unlikely) the memory manager cannot extend the memory block and therefore allocates a new bigger block somewhere in the memory and copies the old block. ( Then line x2 fails and the function returns.) what happens is that the newly allocated block leaks and the old pointer (mFDs) is a dangling reference that we are holding on to and using everywhere, which most probably would crash the process. This was my observation and I hope I can get some feedback on this. Thanks --Hossein -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem installing the ADT Plugin for Eclipse
I am trying to build an Android development environment on my PC. But I'm encountering some problems, and desperately need help. Operating System: Windows 7 (64 bit) Installed components: - Android SDK (installer_r12-windows (from http://developer.android.com/sdk/index.html) - Eclipse Classic 3.7 for Windows 64 bit (from http://www.eclipse.org/downloads/) I am trying to install the ADT Plugin for Eclipse but I'm having some trouble with it. I tried following the instructions listed on the official site (http:// developer.android.com/sdk/eclipse-adt.html) but without success. I first tried setting the location for the new repository to https://dl-ssl.google.com/android/eclipse/ as suggested, but I got the following error message: Unable to connect to repository https://dl-ssl.google.com/android/eclipse/content.xml; (I tried using http instead of https but got the same results). When I submit this url in the location bar of my browser I get the 404 error. (The requested URL was not found ...) I then tried as suggested to download the ADT Plugin zip file, and set the location of the new repository to the local copy I downloaded. But, this time I couldn't go through with the installation because of the following problem: Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 12.0.0.v201106281929-138431 (com.android.ide.eclipse.adt.feature.group 12.0.0.v201106281929-138431) I tried installing a different version of Eclipse but had no success. Can someone help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Mono for Android
Hello Friends, I am new to android based application. I want to use Mono for Android to create these apps. Would you please suggest me some sites books which will be helpful for a begginer like me. Thanks Mousam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Large bitmap under a ListView/ScrollViews slows the scrolling
I have the following layout: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/layout_1 android:layout_height=fill_parent android:layout_width=fill_parent android:orientation=vertical android:background=@drawable/1dot6_mb_bitmap include layout=@layout/top_bar/ LinearLayout android:id=@+id/layout_2 android:layout_height=wrap_content android:layout_width=fill_parent android:layout_weight=1 android:orientation=vertical ListView android:id=@+id/layout_3 android:layout_width=fill_parent android:layout_height=fill_parent /ListView /LinearLayout include layout=@layout/bottom_bar/ When I set the large bitmap as background for the layout_1 container, the ListView scrolls very slowly. If i remove the image from the background, the ListView scrolls perfectly. I tried also with a ScrollView and it's the same behavior. I cannot use a repeating image or a 9.png because the large image is in fact a landscape photo. What is the reason the ListView/ScrollView behaves so slowly in this case? Is the whole background redrawn when scrolling ? How can I solve this issue ? Thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need help on getting started in Android
Hi, I just installed the Android SDK and Eclipse plug in, and when I ran the HelloAndroid app, I got the follwoing error from the emulator invalid command-line parameter: Files. Does anybody know why? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google+ API?
You mean code to interact with google+ as like a library? There's nothing in the current android apis. I'm not sure that this would actually make sense to include in the standard library, just because google does android and also google+ :-). However, you might be able to find a third party that wrote a java library somewhere (google+ is still new!). Kris P.s., also, 0x1000134A... On Mon, Aug 29, 2011 at 9:47 AM, AndrewD findingdevot...@gmail.com wrote: Hello, I was wondering if anyone has found any function to allow interaction between an Android app and the Google+ network? I guess something like this must be part of Android somewhere but I couldn't find anything like this in the docs. There's always the possibility I am stupid enough to have missed it, so I would appreciate any pointers, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Augmented Reality Eyes
https://market.android.com/details?id=com.xminds.sencogi.augrealeyesfeature=search_result In no time you can see how you and your friends look with various colours of eyes! It recognizes eyes in real-time. Then when you take a picture it will replace the eyes on the photo with the type and colour of your choice. The menu gives you a choice between different human, animal and extreme eyes. It works best in normal lighting conditions, avoiding partial shadows on face and eyes. The phone needs to be kept in landscape mode. The ideal distance for the recognition is a profile image of 1 person, so about 50 cm. Wait for the real-time augmented overlay of pupils before taking a photo. The flash light will improve recognition, also in daytime light. It works with the normal fotocamera (not the forward-facing fotocamera, because that has a lower resolution). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] G1
i have a G1,and the sim was put in the 1.5 mb200 cliq,i had activation until 04/10/2009,when the price of two cliq's hit at 975.00,for my bill.but the point is the G1 with wifi will not let me past the sign in screen ,even though i have an active google account,so what is up with that? also the mb200 is outdated before it has a chance to upgrade,why?if u have an android phone,it should be able to run any android programs,and not have to buy a new version like 1.6,2.0,2.2,2.3,3.0 it should be able to run what android puts out,not just one phone for this version,and oops,buy another phone for this version,and dam,got to get another phone for this version,to me all phone makers,and developers r money hungry,and u can bet that ur phones run them all,without buying a new one...if u have a 1.5 cupcake,u cant get 3d,or play the games for the 2.0,,2.2,,or the 3.0,,so my challenge to u is,let all android phones do the same no matter what the platform is,,but u cant do that can u,its all about the almighty dollar...u might consider making a phone that is strictly sattilite ,as the economy falls,so does the almighty dollar,then u will be stuck with a pile of droids ,domino droid well thats my input on the market,and the lack of vision on one platform..i bet the 3.0 can do all the things the G1,and 1.5 mb200 can do huh? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Official site provides the SDK, Developer's Guide, Reference, and Android Market for the open source project. Includes announcements, videos, blog and ...
[android-developers] placing data files in apk and opening them. By Mike Adams - 5:49pm - 2 authors - 2 replies. NullPointerException on displaying ImageView ... http://123maza.com/65/purple505/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Persistent vs. uses-library
Is there (or rather was there in 2.2) any relation between an Activity being android:persistent=true and not being able to use external libraries (that is one declared with uses-library, not in bootclasspath)? Thank you, M. Maruska -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en