Re: [android-developers] Will SurfaceView ever support hardware acceleration?
Hardware accelerated Canvas through SurfaceView is currently not planned, at least not in J. On Wed, May 9, 2012 at 10:30 AM, Simon Edström simon.edst...@screeninteraction.com wrote: Will SurfaceView ever support hardware acceleration? If yes, when? Since hardware acceleration was introduced in 3.0 you would think that the SurfaceView should be supported in ICS. I'm currently working on an application that involves a SurfaceView that runs very slow on big screens (ex. HTC One X) and would really need some hardware acceleration. 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 -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to develop the Voice Commands to my application in Android
Hi all, I am working on Android applications. now my requirement it to add the voice recognization features to my application. that is like opening the installed app from the device through voice command. and i want to open the menu actions inside the applications through voice commands . Please can any one help me out how to develop this. 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] How to develop the Voice Commands to my application in Android
just go through this link http://eagle.phys.utk.edu/guidry/android/speakToMe.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
[android-developers] android bug gsm: NetworkOperatorName when returning to home network
Hi, When I roam in another network my android devices books into the GSM network of that Operator. The NetworkOperatorName is displayed and all is fine. However when I return to my home country the network name of the operator from the visted country is still present on my android devices Samsung 10.1n tablet android version 3.2 Samsung Galaxy 9000 android version 2.2 note: this is not network related I have explored all possibilites there. Additionally it is not sim related I have swapped out the sims between devices and different devices however same effect. I am sure of a way to reset the network name other than a hard reset of the device, however, this is very annoying I loose everything. I will look into TelephonyManager but I do not expect to find anything together with eclipse trace. Can you help, program wise or other thanks graham -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 usb network
Thanks Nikolay, The point which is I will not able to convince is use of WiFI in there LAN, I agree that tablet can have pre installed keys and it is fully secure but client does not wants to open private network door with WiFi access. May be I''m over looking the problem, Does any one using devices in a private network? and how your network team manage security. Other solution I'm thinking is having a WiFi router not in private network, Device will have network with this router and then create a VPN access in device and with this VPN enter into private network. I mean the same method we use for work at home. I think VPN connection in device is feasible, The drawback of this would be low performance. But at least I will have something working. if someone highlight any link or guideline that would be really helpful or any other work around. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] communicate with webservices
hey guys m trying to communicate webservice from my android app. i create my web app. i want to fetch output from html coz webservice was written in html. can anyone help me plz. 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] communicate with webservices
hey guys m trying to communicate webservice from my android app. i create my web app. i want to fetch output from html coz webservice was written in html. can anyone help me plz. 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] Re: How to develop the Voice Commands to my application in Android
Thank you for the valuable information. I am going through this link to develop my application. On May 11, 11:37 am, asheesh arya asheesharya...@gmail.com wrote: just go through this linkhttp://eagle.phys.utk.edu/guidry/android/speakToMe.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
[android-developers] Re: How to develop the Voice Commands to my application in Android
thank you. And i would like to perform the voice commands action to open the menu actions of an application like for example an Email application. I would like to handle the inbox,outbox,sentitems,and other folders by voice commands. Can you please explain the procedure to do this way. thanks in advance On May 11, 11:37 am, asheesh arya asheesharya...@gmail.com wrote: just go through this linkhttp://eagle.phys.utk.edu/guidry/android/speakToMe.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
[android-developers] OnItemClick not detected in listview inside customdialog
Hi friends,, In my custom dialog i have a Listview , on which i am invoking OnItemClickListener() but it is not detecting.. What can be the problem -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Customizing Android's default contacts app
Android SDK is for implementing your own apps; it is not for and it cannot be used for changing/configuring/customizing pre-installed apps on your device. Any claim that such a thing is possible lacks basic understanding of Android development and is just plain wrong. You cannot change/configure/customize pre-installed apps without having their source code, making the changes in the source code and then building it yourself. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.paygol.com/android/implementation http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] OnItemClick not detected in listview inside customdialog
In my custom dialog i have a Listview , on which i am invoking OnItemClickListener() but it is not detecting.. What can be the problem Showing us the code would help... the part where you add the listener and how you get a reference to the list view you add it to, and the listener's onClick() method. Also, please indicate how you know it isn't triggering (often people assume that if they don't see some activity appear, the click isn't being detected - but it could be the click is detected just fine, it's just that the activity has a fault and isn't showing). Does your LogCat show any unusual entries - exceptions, for example? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Goople Place API
You don't need any third party libraries for retrieving data from Google Places API. You can just use HTTPGet. This is because you are not accessing any data which requires authorization; all data on Google Places API is public. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.paygol.com/android/implementation http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] OnItemClick not detected in listview inside customdialog
here it is..This is the adapter class and in it there is a click on holder.productName where i am displaying the dialog.. public class SelectedItemsAdapter extends BaseAdapter { private LayoutInflater mInflater; private ListPurchaseOrderItem arlItems; int totalQty; float totalPrice; Activity activity; private final int[] bgColors = new int[] { R.drawable.row1_bg, R.drawable.row2_bg }; public SelectedItemsAdapter(Activity a, ListPurchaseOrderItem arlSelectedItems) { this.arlItems = arlSelectedItems; activity = a; mInflater = LayoutInflater.from(activity.getApplicationContext()); for (PurchaseOrderItem sellItem : arlItems) { totalQty = totalQty + sellItem.getUserQty(); totalPrice = totalPrice + sellItem.getUnitListPriceValue(); } } @Override public int getCount() { int count = 0; if (arlItems == null) count = 0; else count = arlItems.size(); return count; } @Override public Object getItem(int position) { return position; } @Override public long getItemId(int position) { return position; } @Override public View getView(final int position, View convertView, ViewGroup parent) { final ViewHolder holder; if (convertView == null) { convertView = mInflater.inflate(R.layout.order_row_right, null); holder = new ViewHolder(); holder.check = (CheckBox) convertView .findViewById(R.id.check_box); holder.productName = (TextView) convertView .findViewById(R.id.name); holder.quantity = (TextView) convertView .findViewById(R.id.brand); holder.category = (TextView) convertView .findViewById(R.id.category); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } final View convertViewL = convertView; holder.check.setVisibility(View.VISIBLE); holder.productName.setText(arlItems.get(position).getName()); holder.category.setText(arlItems.get(position).getSupplierName()); holder.check.setTag(position); int colorPosition = position % bgColors.length; convertView.setBackgroundResource(bgColors[colorPosition]); // final View convertViewL = convertView; holder.productName.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { final Dialog dialog = new Dialog(activity); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.select_customer_dialog); dialog.setCancelable(true); Button cancel = (Button) dialog.findViewById(R.id.cancel); ImageView close = (ImageView) dialog .findViewById(R.id.close); TextView detail = (TextView) dialog .findViewById(R.id.detail); detail.setText(Suppliers Offering + arlSelectedItems.get(position).getOrderItem() .getProduct().getName()); final ListView customerList = (ListView) dialog .findViewById(R.id.customerList); customerList .setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView? arg0, View arg1, int arg2, long arg3) { System.out.println(list ID CLICKED ); dialog.dismiss(); } }); customerList.setAdapter(new CustomerDialogAdapter(activity, productRoleList, productPriceList)); dialog.show(); } }); return convertViewL; } class ViewHolder { CheckBox check; TextView productName, quantity, category; } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to develop the Voice Commands to my application in Android
http://all-android-tutorial.blogspot.in/2010/09/android-voice-recognition.html http://www.jameselsey.co.uk/blogs/techblog/android-how-to-implement-voice-recognition-a-nice-easy-tutorial/ http://awalkingcity.com/blog/category/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Don't mix Eclipse and Ant
Sorry for this rant, but I have a number of complaints with the Android build system I'd like to air. Firstly thank you Android build system engineers for adding incremental building to the build system, this is a hard problem and your work here is appreciated. Now on to the major issue I just spent the evening debugging: When you combine eclipse with the command line Ant build you may get runtime errors in your APK! If you are using eclipse and it can't build one of your library projects because the java source has compilation errors Eclipse will go ahead and make class files anyway! The methods in these class files will be filled with junk like: throw new Error(Unresolved compilation problem: \n); If you then go ahead and build the same project with Ant in the commandline, the new incremental checks in the Android Ant build script will see that it is already been compiled, skip that step and use these class files in the generated APK. Resulting in runtime errors. Jacob Abrams -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Don't mix Ant and Eclipse!
Firstly thank you Android build system engineers for adding incremental building to the build system, this is a hard problem and your work here is appreciated. Now on to the major issue I just spent the evening debugging: When you combine eclipse with the command line Ant build you may get runtime errors in your APK! If you are using eclipse and it can't build one of your library projects because the java source has compilation errors Eclipse will go ahead and make class files anyway! The methods in these class files will be filled with junk like: throw new Error(Unresolved compilation problem: \n); If you then go ahead and build the same project with Ant in the commandline, the new incremental checks in the Android Ant build script will see that it is already been compiled, skip that step and use these class files in the generated APK. Resulting in runtime errors. Jacob Abrams -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OnItemClick not detected in listview inside customdialog
here it is..This is the adapter class and in it there is a click on holder.productName where i am displaying the dialog.. There are a couple of questions you didn't answer: 1) How do you know it isn't getting to the click handler? Are you seeing the dialog appear, but not get dismissed? Are you not seeing list ID CLICKED in LogCat? I assume you *are* seeing the dialog appear? You have one click handler being added inside another click handler, but if you're seeing the dialog appear then it must at least be getting inside the outer handler. 2) Do you see any unusual entries in LogCat - particularly exceptions? Curiously, if I add a button to a content view and on clicking that, have this code: @Override public void onClick(View v) { final Dialog dialog = new Dialog(m_thisScreen); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); ListView lv = new ListView(m_thisScreen); // Instead of from a resource. dialog.setContentView(lv); dialog.setCancelable(true); final ListView customerList = lv ; // Though final might be the issue, but it's not. customerList.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView? arg0, View arg1, int arg2, long arg3) { System.out.println(list ID CLICKED ); dialog.dismiss(); } } ); customerList.setAdapter(new ArrayAdapterString(m_thisScreen, R.layout.list_item_layout, new String[] {Hello,Goodbye} ) ); dialog.show(); } it worked just fine :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Don't mix Eclipse and Ant
On Fri, May 11, 2012 at 5:58 PM, Jacob Abrams satur9n...@gmail.com wrote: If you are using eclipse and it can't build one of your library projects because the java source has compilation errors Eclipse will go ahead and make class files anyway! The methods in these class files will be filled with junk like: throw new Error(Unresolved compilation problem: \n); If you then go ahead and build the same project with Ant in the commandline, the new incremental checks in the Android Ant build script will see that it is already been compiled, skip that step and use these class files in the generated APK. Resulting in runtime errors. Sounds nasty, but did you file a bug? You should, if you haven't. From what I've seen, the Ant build system doesn't seem to get much testing, sometimes it's downright broken between releases. Haven't tried it lately though, so things might have changed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Don't mix Ant and Eclipse!
Jacob, Eclipse and Ant builds use the same working directories by default, I'm sure you've already found this out. Don't know about you, but it struck me as being somewhat weird when I started using Ant for my projects. I made some changes to the build scripts to place all Ant related files into their own directory (for me it's under ant in the project directory, e.g. ant/gen, ant/bin, etc.). Perhaps you could do the same or file a feature request. -- K 11.05.2012 13:02, Jacob Abrams написал: If you then go ahead and build the same project with Ant in the commandline, the new incremental checks in the Android Ant build script will see that it is already been compiled, skip that step and use these class files in the generated APK. Resulting in runtime errors. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Don't mix Eclipse and Ant
Jacob, Don't use tools that modify the project pulling rugs from underneath Eclipse's feet. As an IDE it has specific stages to package and build each project and it needs to hook into those, so that it understands, what has happened and what is to happen. You can either use a tool chain that is Eclipse free (disjoint source editor + ant to build) or make use of Eclipse's ability to build using Ant: http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2FgettingStarted%2Fqs-93_project_builder.htm http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2FgettingStarted%2Fqs-80_ant.htm Daniel On 11 May 2012 09:58, Jacob Abrams satur9n...@gmail.com wrote: Sorry for this rant, but I have a number of complaints with the Android build system I'd like to air. Firstly thank you Android build system engineers for adding incremental building to the build system, this is a hard problem and your work here is appreciated. Now on to the major issue I just spent the evening debugging: When you combine eclipse with the command line Ant build you may get runtime errors in your APK! If you are using eclipse and it can't build one of your library projects because the java source has compilation errors Eclipse will go ahead and make class files anyway! The methods in these class files will be filled with junk like: throw new Error(Unresolved compilation problem: \n); If you then go ahead and build the same project with Ant in the commandline, the new incremental checks in the Android Ant build script will see that it is already been compiled, skip that step and use these class files in the generated APK. Resulting in runtime errors. Jacob Abrams -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dynamic dialog
I have created dialog box dynamically I am setting backgroung image of that dialog but the image is not covering whole screen of dialog. what is the property of dialog from which i can hide the the default dialog. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dynamic dialog
I have created dialog box dynamically I am setting backgroung image of that dialog but the image is not covering whole screen of dialog. Which part of the dialog is still showing? If it's the title, then use dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dynamic dialog
Thank you I want to hide border of dialog. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dynamic dialog
I want to hide border of dialog. It appears that you have to use a custom theme for the dialog - for example: Dialog dialog = new Dialog(this, android.R.style.Theme_Translucent_NoTitleBar); (I don't know how to create themes, so you'll have to search for a tutorial.) The full StackOverflow article that gave this answer is here: http://stackoverflow.com/questions/1883425/android-borderless-dialog -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dynamic dialog
thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: why am I receiving location updates without WakeLock if the device is put to sleep?
Am Mittwoch, 9. Mai 2012 16:11:56 UTC+2 schrieb Nadeem Hasan: Your phone is using wifi as the location source. If wifi is set to stay up during phone sleep, LocationManager will continue to provide updates unless you remove your location update subscription in onSuspend(). I tried the same this time with disabled WIFI, using the GPS location provider instead, and I also continued to receive location updates during sleep. So does the location provider subscription keep the CPU awake all the time or only during certain intervals when it tries to get a location fix? The LocationManager documentationhttp://developer.android.com/reference/android/location/LocationManager.htmlis rather vague on that, it only mentions something like that in the documentation for public void addProximityAlert (double latitude, double longitude, float radius, long expiration, PendingIntenthttp://developer.android.com/reference/android/app/PendingIntent.htmlintent) : In case the screen goes to sleep, checks for proximity alerts happen only once every 4 minutes. This conserves battery life by ensuring that the device isn't perpetually awake. However, I am not using that function, and also I get uptates as often as once per minute. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dynamic dialog
I want to set dialog center of the screen I am using Window window = screenDialog.getWindow(); WindowManager.LayoutParams wlp = window.getAttributes(); wlp.gravity = Gravity.CENTER_HORIZONTAL; but it is not setting. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dynamic dialog
Window window = screenDialog.getWindow(); WindowManager.LayoutParams wlp = window.getAttributes(); wlp.gravity = Gravity.CENTER_HORIZONTAL; but it is not setting. At the risk of this being a silly question... you *are* calling setAttributes(wlp) afterwards, yes? {:v) *Allegedly* (https://groups.google.com/forum/?fromgroups#!topic/android-developers/8uZYE0C4uZY) setting the .x and .y members of wlp both to 0 centres the dialog as well. Worth trying to set .x to 0 if you only want horizontal centring. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Equally verticaly spaced button
What exactly is the problem here? You get three buttons, that equally fill the parent vertically. Please try to be a little more specific about the problem - state what you expected, and what you got (in case it doesn't match what somebody else might get). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 coding in Objective-c coding style
On Wednesday, May 9, 2012 6:20:13 PM UTC+5:30, Mufazzal Hussain wrote: I am reviewing code of android application that was built in Objective-c style. App contains only one activity but more than 10 screen so code is too complex to work upon. we are suppose to develop remaining part of application *plz suggest me, should i re-develop the code or work on same?.* Many 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] Single Activity application
Hi friends, I am reviewing code of an application that contains only one activity but more than 12 screen application flows with change in layout of this activity. I need your suggestion that it is better way to work or not ?? thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Single Activity application
I am reviewing code of an application that contains only one activity but more than 12 screen application flows with change in layout of this activity. I need your suggestion that it is better way to work or not ?? There is one train of thought that says 'If it ain't broke, don't fix it' - so the question would be, is it working? If it is, don't try changing it - you risk breaking it. On the other hand, it probably isn't ideal since it isn't 'the Android way' really - but it might save some issues regarding starting activities and waiting for their results, threading, persistent state during pause and resume, etc. There's something to be said for minimizing maintenance by keeping everything in the same activity. My suggestion, therefore, is to leave it alone, unless it is specifically causing you some problems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 for thread cancelable queue pattern.
Hello, I need some help to find the correct way to implement my need. The need as i see it is simple : Implement a queued synchronization thread model where queue elements can be removed / canceled. The second problem is that i use lots of interface so I don't really know the numbers of different item in queue and what the sync process do. The need from users perspective : Interface with different screens like for example movie / music / tv show / each with a refresh button that allow refresh of data (can take some time) and an cancel button if it's taking too long and the user change his mind. What I do now is : A service that adds sync details to a queued list and start the working thread if it's not. This works ok but does not support canceling. The problem now is how to handle cancellation, should i start new thread for the sync in the queue thread and associated it with current action someway, should i cancel the main thread and restart it (but what about cancellation that can takes times if sync is locked in sockets so going ANR ...). I suppose there's a pattern to handle that but I can't find it :( And a little supplemental question that is linked to this, the sync process can be for example a function that call 3 functions that each takes a lot's of time, in each functions I can check for thread.interrupted to stop it, but from documentation it clears the flag so the main function won't know and will continue to other calls so again what's the correct way to handle the interrupt propagation ? Thanks for your help, Tolriq. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get id or value previous viewflipper
On Fri, Dec 16, 2011 at 12:11 PM, Horrrorgoogle dharma.kshe...@gmail.comwrote: I have eight viewflipper. so if i am clicked viewflipper5 then next time viewflipper1. so how to get information of viewflipper5 in the viewflipper1. give me some examples. Let it be more clear to me. What information do you need in viewflipper 1 on click of viewflipper 5? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Thread lifetime
OK, maybe that question was too big. All I really need to know is can I create a static thread that runs throughout the lifetime of the app and not worry about thread termination, trusting that if the OS needs to stop my app's process then it will close down that thread neatly without system resources left hanging? The thread does not deal with files. It's only interaction with the rest of the app is through static variables. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Equally verticaly spaced button
Exactly. Look closely at the title. I thought it was clear enoug. Sorry Jason. Space, e.g having the same space between them, not resizing them. For example : top-20dp-button-20dp-button-20dp I I was clear enough -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Error reports where none of the stacktrace elements relate to your code?
Subject: [android-developers] Error reports where none of the stacktrace elements relate to your code? For example, in the Developer Console, I got this: Does this indicate a bug in the SDK? Unfortunately, not necessarily. Consider a situation where you set some undesirable data into a View-derived object. At that time it might have not checked it and dutifully stored it; when it came to render time, it then tries to use the data and falls over. At the point where it falls over it would appear to be entirely within the system - but the worst the SDK could be accused of here is not sanity checking the data for possible faults. It appears that this came simply from starting your app and it trying to display the contents of the layout, correct? Does the content of your layout have anything unusual in it? (If it's not too long a layout, paste it here.) If it was triggered by some action you took from another activity [that started the one that failed] or if this activity did show and then this error triggered from some action you took on this activity, then let us know. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Thread lifetime
On Fri, May 11, 2012 at 7:23 AM, RLScott fixthatpi...@yahoo.com wrote: OK, maybe that question was too big. All I really need to know is can I create a static thread that runs throughout the lifetime of the app and not worry about thread termination, trusting that if the OS needs to stop my app's process then it will close down that thread neatly without system resources left hanging? The thread does not deal with files. It's only interaction with the rest of the app is through static variables. Use a service to manage your thread, and ensure that the user has the ability to stop the service when the user no longer wants it running. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Error reports where none of the stacktrace elements relate to your code?
Thanks for the feedback. Thankfully the user provided a message force crash on keyboard input. So maybe he's using a keyboard which does something dodgy to the compose text. The app has over half a million users, and this is the only example of this crash that I know of. So I'm not worried, just curious. On Friday, 11 May 2012 19:30:11 UTC+8, JTeagle wrote: Subject: [android-developers] Error reports where none of the stacktrace elements relate to your code? For example, in the Developer Console, I got this: Does this indicate a bug in the SDK? Unfortunately, not necessarily. Consider a situation where you set some undesirable data into a View-derived object. At that time it might have not checked it and dutifully stored it; when it came to render time, it then tries to use the data and falls over. At the point where it falls over it would appear to be entirely within the system - but the worst the SDK could be accused of here is not sanity checking the data for possible faults. It appears that this came simply from starting your app and it trying to display the contents of the layout, correct? Does the content of your layout have anything unusual in it? (If it's not too long a layout, paste it here.) If it was triggered by some action you took from another activity [that started the one that failed] or if this activity did show and then this error triggered from some action you took on this activity, then let us know. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] When using LocationManager.requestLocationUpdates, do I need a WakeLock?
Am Sonntag, 10. Oktober 2010 23:50:35 UTC+2 schrieb Mark Murphy: I strongly suspect that you need to hold a WakeLock for as long as you are seeking fixes. I am not aware that any location provider has the ability to wake up the device. Sorry for digging up this ancient topic, but an trying to find an answer to the same question. In my app so I am able to receive location updates even if I put the device to sleep, without explicitly holding a WakeLock. I came across what appears to be the Android 2.2 source of the GpsLocationProviderhttp://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/com/android/internal/location/GpsLocationProvider.java/?v=source, and assuming I did not misinterpret the code, it looks like it is really able to wake up the device via the AlarmManager. Can anyone confirm this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Any API's exposed for the English Premier League
Hello, Am developing a widget that would refresh with a data of the current match that is going on and the score...Similar to a free app IPL Live Score Widget by Himashu Shringarpure...I ve the look and feel of the app, ready but am not getting any API's that I can hook into... Do I go by the method http://buildmobile.com/performing-network-updates/#fbid=eCwMXYB__NH and if yes I would need the API s or better still please give me the steps to be followed to complete the task. Will it require a parsing mechanism or what??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Enable logs in JNI layer
Hi, I am trying to print some debug messages in jni code (\frameworks\base \core\jni\android_server_BluetoothService.cpp) by using the LOGV macro. But I am not able to see these logs in the logcat. So just wanted to confirm if the LOGV messages are printed directly or do we need to enable them, and if we need to enable them what is the process of doing so. Thanks Regards, Mayank Arora -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Klocwork for Android NDK
I have my NDK project where I want to use the Klocwork code analysis tool. I don't know how to do! I will appreciate any pointers on the same. Its not for Android Application, Its for Android NDK (C/C++ code). Thanks Natz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SMS/MMS Default App source code into Eclipse?
Greetings all, I'm attempting to make some slight modifications to the SMS/MMS application that comes included with Android. I've found a couple repositories, but downloaded the code from GitHub. However, when I try to build a new solution from the existing source, it says it can't find the manifest even though it's in the same folder, etc. Also, the AndroidManifest doesn't appear to have a min- sdk listed in it? Do I add this? I basically, for starters, just want to deploy the code from eclipse to my phone and verify that it works just like my Text / MMS application that I use all the time. Then I'll make my modifications. But I'm having a heck of a time getting this started. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Ashmem Error when Scrolling ImageView
I meet this,too! 在 2011年1月1日星期六UTC+8下午8时52分58秒,Curly写道: When using an ImageView to display a contacts photo, I see many errors of the form: ERROR/MemoryFile(28791): MemoryFile.finalize() called while ashmem still open These occur when the view is scrolled and appear to only happen when a contact with a photo scrolls into view. There is no stack trace and my application is not doing anything unusual to handle scrolling. The photo's are shown correctly and from a user perspective all appears to work fine. I'm using a layout like: TwoLineListItem RelativeLayout ImageView / TextView / TextView / /RelativeLayout /TwoLineListItem These are associated with a ListView / component using a standard ListActivity and ListAdaptor pattern to set a MatrixCursor of contacts. The contact's photo is associated with the ImageView using a URI in the form of: Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, Long.valueOf(id)); Uri photoUri = Uri.withAppendedPath(contactUri,Contacts.Photo.CONTENT_DIRECTORY); Has anyone else experienced a similar issue when scrolling ImageViews? 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 dispatch a keyevent like key L to player running on foreground from background apps.
Hi all I have a service running in a separate application process and an activity in another application process running in foreground. I want to pass key event from the service which is running in background to foreground activity which is a player build in flash. plz help me I stuck in this activity completely. and if possible send me its entire code on my email id shahbazfai...@gmail.com I will thankful to u. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Toast.makeText not working on ICS (PhoneStateListener)
Hello, I am showing a message using *Toast.makeText* while receiving a call. The code is working on Ginderbread but not working on ICS. Please 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] Binding to MarketBillingService incorrectly returning success
I've got a bit of a strange issue which seems to be affecting not only the app I'm developing but also most published apps that use IAP. For some reason, on some 3.x tablets I have tested on, Google Play does not install correctly. Cutting it short the end result is that the tab has both the Google Play app AND the old Android Market app, both working, both able to launch. What this leads to is that any app that tries to connect to the Market Billing Service crashes, all with more or less the same output. So this is what happens (as listed on the android dev guid): You try to bind the market service: boolean bindResult = mContext.bindService( new Intent(com.android.vending.billing.MarketBillingService.BIND), this, Context.BIND_AUTO_CREATE); This returns true and our onServiceConnected is called: public void onServiceConnected(ComponentName name, IBinder service) { mService = IMarketBillingService.Stub.asInterface(service); } So as far as we know we are now successfully connected and can send purchase requests as normal, except when we do it crashes because we haven't actually connected correctly. There is this little line appearing in the logcat: Finsky(5112): [1] InAppBillingProxyService.bindService: Failed to bind to MarketBillingService Except I have no idea where this is coming from or how to actually test if we did bind successfully or not. Does anybody have any idea please? I'd like to note again that this only happens when we end up in the case of both the old Android Market and the new Google Play on the same device and that this is happening on published apps. Also I have tried doing factory resets and the devices themselves but they just refuse to update the market correctly. The two in question are the Samsung Galaxy Tab 10.1 and the Motorola Xoom 2, for those interested. 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] PackageManager.queryIntentActivities() returns incomplete list?
Hi there, I am writing a launcher in Android and here is the problem I have been trying to fix for a while with no luck. I have below code to query all activities running at very beginning of my launcher, say onResume(). final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); final ListResolveInfo infos = packageManager.queryIntentActivities(mainIntent, 0); for (final ResolveInfo info : infos) { // create my own record for each activity } The problem is that if I set my launcher as default and reboot the device, every time I can get only part of the full list by above code. It seems some big fat activities (such as Wind-up knight) are always missing. However running above code second time will return the full list. Does any one have idea why? My guess is that PackageManager needs some time to parse the fat activities and if queryIntentActivities() is called too early, it just returns a partial list, is that true? But why the default launcher has no such issue at all? Thanks for any help in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: setting task affinity to a intent programmatically
Hi, Have you found the solution for this problem? On Monday, August 2, 2010 12:56:20 PM UTC-3, social hub wrote: android:taskAffinity When I launch an Intent I also want to set the taskaffinity programmatically is there a method for this to accomplish ? http://developer.android.com/intl/de/reference/android/content/Intent.html I haven't found any set methods for this Please let me know how to do this Thanks in advance for your 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] Live Streaming Speed
How Can I calculate Live Streaming speed? It may be in any form, audio or video. In video, I have find that we can do it with frame per second. One way is to get frame. and calculate frame in a second. But is there any api or any other way to do it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to write NFC-V (ISO15693) tags on Nexus S?
hi, do you have found the solution? i have the same problem ! On Wednesday, September 21, 2011 12:17:20 PM UTC+2, Giovanni wrote: Hello everybody, I'm trying to write a RFID tag on a Nexus S (android 2.3.4) using the NFC-V technology. AFAIK, this is done sending raw ISO15693 commands to the tag using the method android.nfc.tech.NfcV.transceive(). Unfortunately, calling transceive with a write single block command (0x21) invariably leads to a: java.io.IOException: transceive failed without further information (no inner stack trace or logging info) Both read multiple tags (0x22) and stay quiet (0x02) work flawlessly. I'm sure the tag is writable, since other devices can update it. I tried both addressed and un-addressed mode, option flag set/unset, high/low data rate, and also write multiple tags (0x24), but had no success. Has anyone succeded in writing ISO15693 tags on the Nexus S? Any help would be really appreciated. Thank you! Giovanni -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tabs
Hi, I am working on an android application project where I am using the tabs. I would like to connect both the XML and activity class to the tab how can I do this ? Currently I am using this code intent = new Intent().setClass(this, Info.class); spec = tabHost.newTabSpec(Info).setIndicator(Info, res.getDrawable(R.drawable.ic_tab_settings)) .setContent(R.id.info); tabHost.addTab(spec); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OnItemClick not detected in listview inside customdialog
Refer to this link http://xjaphx.wordpress.com/2011/07/14/listview-doesnt-respond-to-onitemclicklistener/ #1, it's your point. On May 11, 4:01 pm, vani reddy vani.reddy.bl...@gmail.com wrote: Hi friends,, In my custom dialog i have a Listview , on which i am invoking OnItemClickListener() but it is not detecting.. What can be the problem -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Binding to MarketBillingService incorrectly returning success
I've got a bit of a strange issue which seems to be affecting not only the app I'm developing but also most published apps that use IAP. For some reason, on some 3.x tablets I have tested on, Google Play does not install correctly. Cutting it short the end result is that the tab has both the Google Play app AND the old Android Market app, both working, both able to launch. What this leads to is that any app that tries to connect to the Market Billing Service crashes, all with more or less the same output. So this is what happens (code as listed on the android dev guid): You try to bind the market service: boolean bindResult = mContext.bindService( new Intent(com.android.vending.billing.MarketBillingService.BIND), this, Context.BIND_AUTO_CREATE); This returns true and our onServiceConnected is called: public void onServiceConnected(ComponentName name, IBinder service) { mService = IMarketBillingService.Stub.asInterface(service); } So as far as we know we are now successfully connected and can send purchase requests as normal, except when we do it crashes because we haven't actually connected correctly. There is this little line appearing in the logcat: Finsky(5112): [1] InAppBillingProxyService.bindService: Failed to bind to MarketBillingService Except I have no idea where this is coming from or how to actually test if we did bind successfully or not. Does anybody have any idea please? I'd like to note again that this only happens when we end up in the case of both the old Android Market and the new Google Play on the same device and that this is happening on published apps. Also I have tried doing factory resets and the devices themselves but they just refuse to update the market correctly. The two in question are the Samsung Galaxy Tab 10.1 and the Motorola Xoom 2, for those interested. 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] Proguard and PreferenceActivity
In my release apk I have very strange problem. In debug all works fine. proguard.cfg is normal from examples. Any sugestion ? Unable to start activity ComponentInfo{myclass}: android.view.InflateException: Binary XML file line #2: Error inflating class PreferenceScreen public class MyClas extends PreferenceActivity implements SharedPreferences.OnSharedPreferenceChangeListener { @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); addPreferencesFromResource(R.xml.new_profile); setContentView(R.layout.new_profile); //HERE IS 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] CalendarView - Select Day on LongClick
Hey, I want to select a day per longclick and then do some other stuff. The OnDateChangeListener only reacts on a click but not on a long click. OnClickListener and OnLongClickListener are only reacting when clicking on the header of the calendar, not on days. I intercepted Touch Events from the calendars children to recognize longclicks by myself. This is working but the calendar isn't recognizing the longclick and so the currently longclicked date isn't selected. Are there any other approaches to have longclicks working? I thought about registering OnLongClickListeners on some children of CalendarView, but I don't know how to get the right children elements (the elements which represent the days). Thanks for any 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] Re: Equally verticaly spaced button
What's your question ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Widget not calling onUpdate when screen orientation changes
Hi to all ! I have a widget which becomes not clickable when screen orientation changes. After a lot of research on the net, I see that this problem occurs when the submitted RemoteViews is partially updated. Problem is, I always fully update my RemoteViews. In fact, I have only 1 call to AppWidgetManager.updateAppWidget in my whole application, and it's in the AppWidgetProvider.onUpdate() method. As I posted its code at the end of the message, you can see that each RemoteViews sent contains a on click pending intent, but I seems to disappear when the widget is re-created after screen orientation changes. As the onUpdate method is not called on this event, I cannot send a new RemoteViews with this Intent. I tried to call onUpdate from the onReceive method, which worked. Still, I don't like this dirty solution as I cannot filter on the action intended when triggering onReceive, because there is no action such as on screen orientation changes, and I end up calling onUpdate on each received notification :s Could anyone please help me on this one ? Thanks in advance ! As promised, my onUpdate() method : @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { final RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.widget); // Mise à jour de l'image dans les widgets updateClockinImage(context,appWidgetIds, getCheckingCount(context)); // Build the intent to call the service final Intent intent = new Intent(context.getApplicationContext(), AddCheckingService.class); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, appWidgetIds); // Pour réagir à un clic il faut utiliser une pending intent car le onClickListener // est exécuté par l'application Home final PendingIntent pendingIntent = PendingIntent.getService(context.getApplicationContext(), 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.btn_checkin, pendingIntent); // Mise à jour des widgets avec le nouvel intent appWidgetManager.updateAppWidget(appWidgetIds, remoteViews); super.onUpdate(context, appWidgetManager, appWidgetIds); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 runs faster in debug mode with cable connected
I run my opengl application in debug mode with cable connected to see logcat output. In this case application reports 20 fps. With cable disconnected it reports only 7 fps. It is so slow even application is built in release mode. I can't figure out what's going on there this should give the opposite result, non debug mode should be faster, right? What I'm missing here? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Creating media player
Hi All, I am trying to create new media player which can play songs with streaming option. I am able to create media player with hard coding songs option using below code. final String url[] = { http://project-tango.org/Projects/TangoBand/Songs/files/A%20La%20Gran%20Muneca.mp3 , http://project-tango.org/Projects/TangoBand/Songs/files/Malena.mp3;, http://project-tango.org/Projects/TangoBand/Songs/files/Tengo%20Mil%20Novias.mp3 }; mediaPlayer = new MediaPlayer(); mediaPlayer.setAudioStreamType(AudioManager.STREAM_M); try { mediaPlayer.setDataSource(url[counter]); mediaPlayer.prepare(); } catch (IllegalStateException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } mediaPlayer.start(); My questions is, how can I create media player with folder option? I would like create like radiokushi. Could you please give me some guidence/startingpoint Thanks in advance. Regards, Satya. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tab Host linking with XML file and Actitivity class
Thanks should I use 2 setcontent? On Thursday, May 10, 2012 6:26:07 AM UTC+2, MagouyaWare wrote: http://developer.android.com/reference/android/widget/TabHost.TabSpec.html#setContent%28android.content.Intent%29 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, May 8, 2012 at 5:11 AM, Brian Muscat brianmus...@dss.com.mtwrote: Hi, I am trying to set the tab host so that each of the tabs has an XML file and and Activity file currently I am using intent = new Intent().setClass(this, Settings.class); spec = tabHost.newTabSpec(Settings).setIndicator(Settings, res.getDrawable(R.drawable.ic_tab_settings)) .setContent(R.layout.settings); tabHost.addTab(spec); whit this tabs are viewed as it is supposed buy the Activity class is not connected how can I do this pls? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] How to put permission to shared uid
Dear all, For getting permission, we can use shared uid like com.android.phone or com.android.system. Actually, we can write uses permission to manifest file for permission, too. In the case of using shared uid, shared uid have some permissions and we can get the permissions by android:sharedUserId=. Problem is, I have some device, but a device's com.android.phone don't have a permission about android.permission.REBOOT. To use any app, com.android.phone should have android.permission.REBOOT . My question is where the code can set this permission to com.android.phone ? I want to know how to add permissions to shared UID. Please help me~ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] iphone like section indexer
Hi Friends, I am new to android . I want to implement Iphone like section indexer for List view in my Android app. Please help me with suitable samples . -- Regards Anoop krishnan A -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] necesito ayuda con sqlite en motorola defy
Ya cree una aplicacion que recibe el codigo y un usuario en una base de datos pequeña, a lo que mi pregunta es como podria revisar esa base de datos en mi telefono?? que deberia hacer para poder visualizar la base de datos?? otra pregunta es como puedo hacer para sincronizar la base en sqlite con una sqlServer 2008?? gracias por sus respuestas de antemano.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ImageView.getWidth() at the start of my App
Hello, I would like to find the size of a imageView from the start of my application. The idea is simple, I would do the same thing as Google Maps, ie display an image, and place pointers to places on this image. Pointers are recovered through the XML files containing X% and Y% in relation to the image. To place them on my image, I would do something like this: public void onCreate (Bundle savedInstanceState) { super.onCreate (savedInstanceState); { some code } float maxX = imageViewCarte.getWidth(); float maxY = imageViewCarte.getHeight(); The problem is that these values are null (0) at this stage of the application. So I tried to do the same onStart and the onResume, but to no avail, I get always 0! Yet if I do the same thing in an event like onClick to display the value in a toast, it is displayed correctly. I look forward to your response, Thank you for reading, Julien. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Log in with Facebook, gmail, twitter....
I'm developing an android app which makes connection with facebook, twittter, google, etc... and know what I'm doing is logging againsy providers with my oauth's ids and so on. Now, I'm just getting auth id (but I think this is not the one I want, because I don't have to accept facebook or twitter permissions) with this code lines, but as I've told you, I think, that is not what I'm looking for: AccountManager accountManager = AccountManager .get(getApplicationContext()); accountManager.getAuthToken(account, mail, false, new AuthTokenCallback(), null); I just want to use the log data from their android apps. So, the behavour must be... 1) Run my app 2) Press Login button with the provider selected (for ex. Facebook) 3) Now, facebook app (if present on android phone) opens and asks you for permissions for your registered app and gives to the app the oauth token. I've seen this in several apps on Android, but I don't have any example in my mind... sorry =( Thanks for all your responses -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Catch LongClicks on CalendarView
Hey guys, I want to react on LongClicks on the CalendarViewhttp://developer.android.com/reference/android/widget/CalendarView.html-Widget. There are two listeners which I hoped let me reach this goal. OnDateChangeListener OnLongClickListener. But OnDateChangeListener only reacts when (short)-clicking on a day, OnLongClickListener only reacts when clicking on the header of the widget. Because of that problem I intercepted touch events of the CalendarView children and analyzed them to recognise LongClicks (My CustomCalendarViewhttp://pastebin.com/8z5j7aQM). Thats working but the CalendarView itself isn't recognising them and so the currently longclicked day isn't selected. Has anybody a idea how I make the CalendarView select a longclicked day? 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] Re: Screen rotation with App Widgets loses onClick connection
Hi ! I seem to have the same problem but the solution I've found everywhere on the web and in this thread does not work for me :( I posted my onUpdate method below, in which I perform a full initialisation of a new RemoteViews object. Then I pass it to the AppWidgetManager. This kind of operation (init + call to updateAppWidget) is done only in one place in whole my application : in this onUpdate method. Thus, I never send an incomplete RemoteViews object. This is why I don't understand why I suffer from the same screen orientation change problem :'( I tried to call the onUpdate method from the onReceive method, and it works fine, but I think this solution is dirty, especially because I make this additional call to onUpdate on every call to onReceive (I cannot filter on some kind of on screen orientation changed message). Here is the onUpdate method : @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { final RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.widget); // Mise à jour de l'image dans les widgets updateClockinImage(context,appWidgetIds, getCheckingCount(context)); // Build the intent to call the service final Intent intent = new Intent(context.getApplicationContext(), AddCheckingService.class); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, appWidgetIds); // Pour réagir à un clic il faut utiliser une pending intent car le onClickListener // est exécuté par l'application Home final PendingIntent pendingIntent = PendingIntent.getService(context.getApplicationContext(), 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.btn_checkin, pendingIntent); // Mise à jour des widgets avec le nouvel intent appWidgetManager.updateAppWidget(appWidgetIds, remoteViews); super.onUpdate(context, appWidgetManager, appWidgetIds); } Thanks in advance !!! Le vendredi 14 janvier 2011 06:26:43 UTC+1, John Gaby a écrit : I have an App Widget on the Home screen which works fine until the screen is auto-rotated. At that point, the onClick connection (set up via a call to setOnClickPendingIntent) is lost. The only way I seem to be able to get it back is to delete the Widget from the Home screen and then add it back. Is there some kind of message that tells me that the screen has rotated that I need to respond to (and reestablish the connection)? 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] Custom pin code view
Hi all, I'm working on a custom view for entering a pin code. Rather than a standard EditText, this has a box for each character and the boxes fill as the user types his pin. So far I'm making good progress: I can focus on the view, enter text, and fill/clear the boxes as characters are typed/deleted. Areas where I'm having problems: 1. The soft keyboard does not appear when the view gains focus, regardless of whether it's through my tapping on it or having requestFocus/ in the xml. 2. My custom view extends LinearLayout, but I'd like to be able to use some xml attributes normally applicable to EditTexts, such as imeOptions (once I get the keyboard to show). Can anyone provide some guidance for these issues? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Single sign on or similar for Google Account?
Hi, I've seen that Single Sign On with Facebook (SSO) is easy and that Twitter's can be achieved with this: http://thetechnib.blogspot.com.es/2011/01/android-sign-in-with-twitter.html But how about google/gmail accounts? I want to have a button which says log with google account or something like that, and uses the data stored in phone? If there are multiple addresses, I want to choose which one to use to, although it's not necessary. So, I have a registered an app, and I have to get the OAuth data (as I would do with Facebook SSO) but for gmail accounts. I have tried to do it with: AccountManager accountManager = AccountManager .get(getApplicationContext()); accountManager.getAuthToken(account, mail, false, new AuthTokenCallback(), null); But this doesn't give me the oauth tokens related to my registered app =( Can you please help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Single sign on
Hi, I've seen that Single Sign On with Facebook (SSO) is easy and that Twitter's can be achieved with this: http://thetechnib.blogspot.com.es/2011/01/android-sign-in-with-twitter.html But how about google/gmail accounts? I want to have a button which says log with google account or something like that, and uses the data stored in phone? If there are multiple addresses, I want to choose which one to use to, although it's not necessary. So, I have a registered an app, and I have to get the OAuth data (as I would do with Facebook SSO) but for gmail accounts. I have tried to do it with: AccountManager accountManager = AccountManager .get(getApplicationContext()); accountManager.getAuthToken(account, mail, false, new AuthTokenCallback(), null); But this doesn't give me the oauth tokens related to my registered app =( Can you please help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Activity and affinity task
Hello everybody, Is that a way to set the affinity of an activity dinamically in code? I mean, instead of setting the taskAffinity tag into android manifest, set the affinity of an activity with a specific task programmatically, using a flag or anything else in a call for a intent, for example? 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] encrypt files to be opened up by a specific app only
Hi developers, I want to make an app that would download pdf files and keep them in sdcard in encrypted form, such that the pdf can be opened by my app only and not even with any pdf reader installed on the device. Is it even possible? I would appreciate any help. Thanks Regards, Farhan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SMS/MMS Default App source code into Eclipse?
jave runtime error -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 put permission to shared uid
On Thu, May 10, 2012 at 5:10 AM, changho Lee margui...@gmail.com wrote: For getting permission, we can use shared uid like com.android.phone or com.android.system. No, you cannot, except perhaps as part of the firmware. I have some device, but a device's com.android.phone don't have a permission about android.permission.REBOOT. To use any app, com.android.phone should have android.permission.REBOOT . My question is where the code can set this permission to com.android.phone ? I want to know how to add permissions to shared UID. This has nothing to do with this list. You can learn about the firmware at http://source.android.com. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 runs faster in debug mode with cable connected
Your device may be slowing the CPU or other components when running on battery instead of running on an external source of power. That would be a question for your device manufacturer, or it may be something that you can adjust using a device-specific version of the Settings app. On Thu, May 10, 2012 at 1:56 PM, PictureCo tbranda...@gmail.com wrote: I run my opengl application in debug mode with cable connected to see logcat output. In this case application reports 20 fps. With cable disconnected it reports only 7 fps. It is so slow even application is built in release mode. I can't figure out what's going on there this should give the opposite result, non debug mode should be faster, right? What I'm missing here? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 dispatch a keyevent like key L to player running on foreground from background apps.
On Fri, May 11, 2012 at 2:51 AM, Shahbaz Faiz shahbazfai...@gmail.com wrote: I have a service running in a separate application process and an activity in another application process running in foreground. I want to pass key event from the service which is running in background to foreground activity which is a player build in flash. plz help me I stuck in this activity completely. Fortunately, this is not possible, for obvious security reasons. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Live Streaming Speed
May i know how are you doing live stream? thanks in advance On Fri, May 11, 2012 at 5:13 PM, Ahmad Saeed ahmadp...@gmail.com wrote: How Can I calculate Live Streaming speed? It may be in any form, audio or video. In video, I have find that we can do it with frame per second. One way is to get frame. and calculate frame in a second. But is there any api or any other way to do it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Thread lifetime
If you just create your thread, it will keep running for as long as the process is alive. You won't want a thread doing something CPU intensive continuously, so presumably some kind of queue with work items would be a good way to put it on pause. As far as termination, threads are contained in processes, so when your app's process is killed, all its threads, including any that you create, will just disappear (e.g. binder threads, WebViewCoreThread, the WebView cookie saving thread, AsyncTask threads, etc, etc, etc). You might also want to consider one of: HanderThread, AsyncTask, IntentService, or a blocking queue... -- K 11.05.2012 15:23, RLScott написал: OK, maybe that question was too big. All I really need to know is can I create a static thread that runs throughout the lifetime of the app and not worry about thread termination, trusting that if the OS needs to stop my app's process then it will close down that thread neatly without system resources left hanging? The thread does not deal with files. It's only interaction with the rest of the app is through static variables. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 dispatch a keyevent like key L to player running on foreground from background apps.
Just an addon to Marks great answer. It doesn't usually work like that. You need to code a thing yourself and not expect someone emailing you a complete solution. Before someone respons, I haven't said anything about it not being possible or possible. It's not like Mark said. On Fri, May 11, 2012 at 8:51 AM, Shahbaz Faiz shahbazfai...@gmail.comwrote: and if possible send me its entire code on my email id shahbazfai...@gmail.com I will thankful to u. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Equally verticaly spaced button
... where 20dp is a dynamic size, based on how much space is available? If that's what you want, consider: LinearLayout orientation=vertical Button height=wrap_content/ View width=fill_parent, height=0dp, weight=1/ Button height=wrap_content/ View width=fill_parent, height=0dp, weight=1/ Button height=wrap_content/ /LinearLayout The View items act as spacers, and will be dynamically resized by LinearLayout due to having weight attribute. -- K 11.05.2012 15:25, huberte написал: Exactly. Look closely at the title. I thought it was clear enoug. Sorry Jason. Space, e.g having the same space between them, not resizing them. For example : top-20dp-button-20dp-button-20dp I I was clear enough -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Binding to MarketBillingService incorrectly returning success
11.05.2012 15:25, Haze ???: I've got a bit of a strange issue which seems to be affecting not only the app I'm developing but also most published apps that use IAP. [snip] So as far as we know we are now successfully connected and can send purchase requests as normal, except when we do it crashes because we haven't actually connected correctly. There is this little line appearing in the logcat: Finsky(5112): [1] InAppBillingProxyService.bindService: Failed to bind to MarketBillingService Except I have no idea where this is coming from or how to actually test if we did bind successfully or not. Does anybody have any idea please? If you're able to reproduce this on your development devices (sounds like it), run this: adb shell ps from the computer's command line, then use the PID from the logcat output (5112 in your quote above) so see which process it corresponds to. Also note that Finsky is apparently the code name of Market app (or Play app)... the question is, which one it is. I'd like to note again that this only happens when we end up in the case of both the old Android Market and the new Google Play on the same device and that this is happening on published apps. This, by itself, just makes me go wow!. Do both of them have the same package name? You can check it by querying installed packages from code by using PackageManager, or by watching logcat as you launch old and new apps (the logcat will have something like Starting actvity... intent details here. -- K Also I have tried doing factory resets and the devices themselves but they just refuse to update the market correctly. The two in question are the Samsung Galaxy Tab 10.1 and the Motorola Xoom 2, for those interested. 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 -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Noise between FX sounds and music
Hi there, I am facing problems when playing at same time music and some FX sound. The FX sound is a click similar to the click of the mouse. It sounds fine when playing alone one time, although it gets some noise at the end of the reproduction when trying to repeat it too fast. But when it is played with some background music, it does the noise at the end (like a puk or so) every time. Some ideas? TIA, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] refresh gallery
Hey,i am making app that has lo of picures...i am making button to allowe user to save some picture on his/her SDK..action will create folder with some name and put picture from activity on that folder..problem is that when i put picture and folder,it is not automaticly showen in picture album on android.But when i unmont,and than mount SDK that album i shown..How to change that-to refresh SDK,to show automaticly picturs without unmounting...thank for share -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] refresh gallery
How to change that-to refresh SDK,to show automaticly picturs without unmounting...thank for share ('SD card', not 'SDK' - the SDK is what you're using to write code {:v) ) Try this link: http://androidforums.com/droid-support-troubleshooting/21652-refresh-gallery.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] ImageView.getWidth() at the start of my App
At this stage your views aren't measured yet, that's why getWidth/getHeight is always 0. Try ImageView.getViewTreeObserver and register a PreDrawListener there you can call getWidth/getHeight and get the real values. On Thu, May 10, 2012 at 11:44 AM, Lamihck lami...@gmail.com wrote: Hello, I would like to find the size of a imageView from the start of my application. The idea is simple, I would do the same thing as Google Maps, ie display an image, and place pointers to places on this image. Pointers are recovered through the XML files containing X% and Y% in relation to the image. To place them on my image, I would do something like this: public void onCreate (Bundle savedInstanceState) { super.onCreate (savedInstanceState); { some code } float maxX = imageViewCarte.getWidth(); float maxY = imageViewCarte.getHeight(); The problem is that these values are null (0) at this stage of the application. So I tried to do the same onStart and the onResume, but to no avail, I get always 0! Yet if I do the same thing in an event like onClick to display the value in a toast, it is displayed correctly. I look forward to your response, Thank you for reading, Julien. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] android bug gsm: NetworkOperatorName when returning to home network
Can you take a bugreport when you switch back to the home network? We need the logs when the event occurs that you think should result in your home operator name being displayed. Thanks R On Thu, May 10, 2012 at 11:56 PM, Graham Bright gbwienmobil...@gmail.comwrote: Hi, When I roam in another network my android devices books into the GSM network of that Operator. The NetworkOperatorName is displayed and all is fine. However when I return to my home country the network name of the operator from the visted country is still present on my android devices Samsung 10.1n tablet android version 3.2 Samsung Galaxy 9000 android version 2.2 note: this is not network related I have explored all possibilites there. Additionally it is not sim related I have swapped out the sims between devices and different devices however same effect. I am sure of a way to reset the network name other than a hard reset of the device, however, this is very annoying I loose everything. I will look into TelephonyManager but I do not expect to find anything together with eclipse trace. Can you help, program wise or other thanks graham -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] iphone like section indexer
There is this amazing technology that is now available for helping with this kind of thing... It is called Google. You should try it sometime. http://lmgtfy.com/?q=android+section+list Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, May 10, 2012 at 11:09 AM, Anoop Krishnan anoop2kris...@gmail.comwrote: Hi Friends, I am new to android . I want to implement Iphone like section indexer for List view in my Android app. Please help me with suitable samples . -- Regards Anoop krishnan A -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tab Host linking with XML file and Actitivity class
No... just the one that takes your intent. You are creating the intent but never using it. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 11, 2012 at 12:23 AM, Brian Muscat brianmuscat...@gmail.comwrote: Thanks should I use 2 setcontent? On Thursday, May 10, 2012 6:26:07 AM UTC+2, MagouyaWare wrote: http://developer.android.com/**reference/android/widget/** TabHost.TabSpec.html#**setContent%28android.content.**Intent%29http://developer.android.com/reference/android/widget/TabHost.TabSpec.html#setContent%28android.content.Intent%29 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Tue, May 8, 2012 at 5:11 AM, Brian Muscat brianmus...@dss.com.mtwrote: Hi, I am trying to set the tab host so that each of the tabs has an XML file and and Activity file currently I am using intent = new Intent().setClass(this, Settings.class); spec = tabHost.newTabSpec(Settings)**.setIndicator(Settings, res.getDrawable(R.drawable.**ic_tab_settings)) .setContent(R.layout.**settings); tabHost.addTab(spec); whit this tabs are viewed as it is supposed buy the Activity class is not connected how can I do this pls? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tabs
I would like to connect both the XML and activity class to the tab how can I do this ? What? You don't. Your activity references the XML layout you want the tab to display. You tell the tab which activity to use... intent = new Intent().setClass(this, Info.class); spec = tabHost.newTabSpec(Info).setIndicator(Info, res.getDrawable(R.drawable.ic_tab_settings)) .setContent(R.id.info); tabHost.addTab(spec); This code is wrong... You should change it to this: intent = new Intent().setClass(this, Info.class); spec = tabHost.newTabSpec(Info).setIndicator(Info, res.getDrawable(R.drawable.ic_tab_settings)) .setContent(*intent* http://R.id.info); tabHost.addTab(spec); Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 11, 2012 at 12:18 AM, Brian Muscat brianmuscat...@gmail.comwrote: I would like to connect both the XML and activity class to the tab how can I do this ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to get id or value previous viewflipper
Let it be more clear to me. What information do you need in viewflipper 1 on click of viewflipper 5? That is not more clear... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 11, 2012 at 5:21 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Let it be more clear to me. What information do you need in viewflipper 1 on click of viewflipper 5? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] VpnService basic questions
Are you sure that it is whatever you code yourself? Because right here: http://developer.android.com/sdk/android-4.0-highlights.html if I under it stand right, it is said that VpnService supports only L2TP and IPSec protocols. On the other hand, if I am wrong, could you give us a hint how to code PPTP connection? Thanks in advance W dniu wtorek, 20 marca 2012 23:09:26 UTC+1 użytkownik Mark Murphy (a Commons Guy) napisał: On Mon, Mar 19, 2012 at 6:23 PM, mjl3434 larw...@gmail.com wrote: There are two new classes added in ICS: VpnService and VpnService.Builder. I want to know if these classes would be useful for my goal of developing an app that has it's own UI and connects to a VPN endpoint with IPSec VPN (or maybe even SSL VPN). Unfortunately, the documentation doesn't really explain anything about the actual protocols. The documentation says the class is for applications to extend and build their own VPN solutions. In general, it creates a virtual network interface, configures addresses and routing rules... So here are some obvious unanswered questions: 1. What protocol is the VpnService using? Is it SSL based, IPSec, L2TP/IPSec, PPTP or what? Protocol matters to some people. It is whatever you code yourself. You want SSL-based? Write it. You want IPSec? Write it. You want L2TP/IPSec? Write it. You want PPTP? Write it. In this respect, VpnService is to VPNs as Activity is to user interfaces -- it is a necessary part of the framework that provides some basic functionality, but the core of what you are trying to do is what you write yourself. 2. What on earth do you do at the remote endpoint? The other side of whatever you code yourself. -- 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
Re: [android-developers] VpnService basic questions
On Fri, May 11, 2012 at 1:10 PM, Stigi zale...@gmail.com wrote: Are you sure that it is whatever you code yourself? Because right here: http://developer.android.com/sdk/android-4.0-highlights.html if I under it stand right, it is said that VpnService supports only L2TP and IPSec protocols. AFAICT, you are incorrect in your interpretation. What it *does* say is: Enterprises can also take advantage of a standard VPN client built into the platform that provides access to L2TP and IPSec protocols. This is not referring to VpnService, but rather the built-in L2TP and IPSec that you can get from the Settings app. The phrase applications can configure addresses and routing rules, process outgoing and incoming packets, and establish secure tunnels to a remote server presumably is referring to VpnService, as it is the only thing I know of that fits that description. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Browser application behaves differently Desktop execution to Android tablet (HC 3.2) browser execution.
Dear All, I have one web-application its working fine on desktop browser. Its basic application contains search some data and showing search results, couple of dialog and notifications. But same app executing on Android browser(default), search result is not showing(try to load the page it seems) and its not doing any action/execution staying same page. Some times its worst on the tablet, comparatively desktop execution. I heard about the Hybrid solution for desktop web-pages to tablet conversion, could you guide me without going to Hybrid solution, is there any way to work all web-pages smoothly on tablet. Thanks for advance to your help :). BR Srinivas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] VpnService basic questions
I think the purpose of those classes is to let you create your own userspace vpn client type. It basically lets you use tun/tap interfaces to intercept all network traffic, wrap it in your vpn proto of choice and send it to your vpn endpoint. It does this while making it clear to the user what's happening and giving them control to end the session. R On Fri, May 11, 2012 at 10:21 AM, Mark Murphy mmur...@commonsware.comwrote: On Fri, May 11, 2012 at 1:10 PM, Stigi zale...@gmail.com wrote: Are you sure that it is whatever you code yourself? Because right here: http://developer.android.com/sdk/android-4.0-highlights.html if I under it stand right, it is said that VpnService supports only L2TP and IPSec protocols. AFAICT, you are incorrect in your interpretation. What it *does* say is: Enterprises can also take advantage of a standard VPN client built into the platform that provides access to L2TP and IPSec protocols. This is not referring to VpnService, but rather the built-in L2TP and IPSec that you can get from the Settings app. The phrase applications can configure addresses and routing rules, process outgoing and incoming packets, and establish secure tunnels to a remote server presumably is referring to VpnService, as it is the only thing I know of that fits that description. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] What causes soft input to appear?
I'd like to understand programmatically what happens to make the soft input (keyboard) appear when a user clicks on an EditText. I am making a custom view that takes input, but extends something that normally doesn't show soft input. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What causes soft input to appear?
Additionally, also please help me understand how inputType is involved in the process to show a certain type of keyboard (like numbers only). On Friday, May 11, 2012 10:55:57 AM UTC-7, Karakuri Dev wrote: I'd like to understand programmatically what happens to make the soft input (keyboard) appear when a user clicks on an EditText. I am making a custom view that takes input, but extends something that normally doesn't show soft input. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Access Device Internal Storage?
Hello, I know the if statement section of the code below is successful for accessing the sd card when its mounted. Please tell me what code to use in the else if statement section to access device internal storage (internal flash storage)? My code: String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { // Try to make directory on the SDcard. subdirectory = Environment.getExternalStoragePublicDirectory(MyDirectory); // Make sure the directory exists. subdirectory.mkdirs(); } else if (-- *What code to use here to access device internal storage? *--) { // *What code to use below to access device internal storage?* // *Is this the correct code to make a directory on device internal storage? * subdirectory = Environment.getExternalStoragePublicDirectory(MyDirectory); // Make sure the directory exists. subdirectory.mkdirs(); } else {} *Reference to using the methods:* getExternalStorageState() and getExternalStoragePublicDirectory() http://developer.android.com/reference/android/os/Environment.html#getExternalStorageState() Thank you for your 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