[android-developers] Re: onclick event works even on top of the another view
I'll advice u to make use of viewgroups... i think then u'll be able to differentiate between between the listeners of the two views... but i'm not sure... if it works out do lemme no... On Fri, Jun 5, 2009 at 11:21 AM, quill quill...@163.com wrote: Hi Jyotiranjan, you can override the bottom view's onTouchevent(), and than check whether the sliding drawer opened or not, if opened, just return false; I think it is a way to solve your problem but not the best way. :) On Jun 5, 12:20 pm, JITU meet2...@gmail.com wrote: Hi All, I am facing some problem Like: Scenario:Three buttons enabled by on click event. -I am using sliding drawer... on which no of buttons are there. -When sliding drawer is opened...its overlapping the preveously defined three buttons. My problem is... when i am clicking on sliding drawer ... the below button is activated and accordingly it goes to next activity... Means ... i expect if one view is on top of another view... the lower view should not work. Please help me in this scenario. Thanks Jyotiranjan -- Regards, Sujay Will Rogers http://www.brainyquote.com/quotes/authors/w/will_rogers.html - I never expected to see the day when girls would get sunburned in the places they now do. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification
is it workin dude??? On Thu, Jun 4, 2009 at 9:17 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: dude, try this: Notification n=new Notification(); n.setLatestEventInfo(context, contentTitle, contentText, contentIntent); the contentIntent is the target intent tha'll b called. cheers! On Thu, Jun 4, 2009 at 9:03 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: u dont need to call on pause... if u ve overridden the function in ur activity, it'll b executed... u can use persistence (db or preferences) to save stuffs On Thu, Jun 4, 2009 at 8:53 PM, sheik sheik...@gmail.com wrote: i tried ur method by considering keyevent...but i want the activity to go background ... not able to call onpause method in the keyvent method.. Kindly suggest on the above written scenario...just like how it works on MyTracks and BuddyRunner.. Hope my explaintion on the scenario is clear..if not let me know ..i shall brief again ... thanks for the suggestion and replying back.. regards, sheik On Jun 4, 11:53 am, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: i don't think its possible as of now... its handled by the os... so i guess it might not be possible in the future as well... but i hv heard of DONT_KILL_APP somewhere... i think its a flag... try searchin for it On Thu, Jun 4, 2009 at 11:45 AM, sheik sheik...@gmail.com wrote: Hi... Is it possible for an activity to avoid destroy mode ... and make activity in pause mode instead... Kindly let me know.. thanks regards sheik On Jun 3, 7:45 pm, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: use onkeylistener check if keycode matches back start ur service here finish the rest i'm not sure on how to do... n u shd wait till u get a reply.. On Wed, Jun 3, 2009 at 8:10 PM, sheik sheik...@gmail.com wrote: Hello android developers.. i am not much familiar with service's and use of aidl...here is the scenario i look to put fwd Kindly help on it...Working on android sdk 1.1 1) Activity is launched and location updates are taken and they are print on the activity using textview.. 2)On click of BACK (arrow key on dev) .. activity goes to destroy mode (which i dont want)...and call the service with dispatches the notification with the icon ..Still the location updates are ON.. 3)When i click the notification icon..i must get back the same activity which was getting the updates and updated values printed on the text view... I wonder is this possible .. i have gone through some apps such as My Tracks, Buddy Runner...which works well on this scenario... I hope some android developers give a favorable reply and help in solving the problem... I referred the LocalService and LocalServiceController examples from API demo ..but the activity is destroyed on the click of BACK ... Kindly help on this... Regards, Sheik -- Forwarded message -- From: sheik sheik...@gmail.com Date: Jun 3, 6:17 pm Subject: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification To: Android Developers Hello android developers.. i am not much familiar with service's and use of aidl...here is the scenario i look to put fwd Kindly help on it...Working on android sdk 1.1 1) Activity is launched and location updates are taken and they are print on the activity using textview.. 2)On click of BACK (arrow key on dev) .. activity goes to destroy mode (which i dont want)...and call the service with dispatches the notification with the icon ..Still the location updates are ON.. 3)When i click the notification icon..i must get back the same activity which was getting the updates and updated values printed on the text view... I wonder is this possible .. i have gone through some apps such as My Tracks, Buddy Runner...which works well on this scenario... I hope some android developers give a favorable reply and help in solving the problem... I referred the LocalService and LocalServiceController examples from API demo ..but the activity is destroyed on the click of BACK ... Kindly help on this... Regards, Sheik -- Regards, Sujay H. L. Mencken http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html - Nobody ever went broke underestimating the taste of the American public. -- Regards, Sujay George Bernard Shaw http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html - A government that robs Peter to pay Paul can always depend on the support of Paul. -- Regards, Sujay H. L. Mencken http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html - Nobody ever went
[android-developers] Tut (SDK 1.5) Get google account of user
hi guys i finally got a simple method to get the google accounts in SDK 1.5... i'm attaching the code for everyone who needs this piece of code... This piece of code prints all methods in the class invokes the static method getAccount... try { for (Method ele : Class.forName(com.google.android.googlelogin.GoogleLoginServiceHelper).getMethods()) { System.out.println(ele.toString()); try { if(ele.getName().equals(getAccount)) ele.invoke(null, this, 123, true); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } catch (ClassNotFoundException e) { e.printStackTrace(); } } catch (ClassNotFoundException e) { e.printStackTrace(); } jus place the foll code in ur onactivityresult if (requestCode == 123) { System.out.println(resultCode); String key = accounts; System.out.println(key + : + Arrays.toString(data.getExtras().getStringArray(key))); String accounts[] = data.getExtras().getStringArray(key); if (accounts[0] != null) usernameText.setText(You are : + accounts[0].replace(@gmail.com, )); } in the logcat/ddms o/p u'll be able to see that there are other useful methods... public static void com.google.android.googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,java.lang.String,java.lang.String,boolean) public static void com.google.android.googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,boolean,java.lang.String,boolean) public static void com.google.android.googlelogin.GoogleLoginServiceHelper.invalidateAuthToken(android.app.Activity,int,java.lang.String) -- Regards, Sujay Mark Twain http://www.brainyquote.com/quotes/authors/m/mark_twain.html - There is no sadder sight than a young pessimist. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: confused about trial version of applications for ADC 2
Hi there, For (1) the ADC2 Terms and Conditions will hopefully address this. You also could mention in an about dialog or whatever that this version is intended for ADC2 judging and evaluation/trial purposes only and that other paid/evaluation version(s) will be made available after ADC2 has concluded. For (2) as a suggestion, on application startup check if the current system date is beyond final ADC2 judging period eg 2009-12-31 (being careful about the date to use as, for example, ADC1 was extended beyond it original closing date) if so display a descriptive dialog/ alert, then start an activity via an intent to show a website page or a search in the market and or just call finish in your main activity. Alternatively, if applicable, add a remote kill switch to your application, controlled through some website page, search the forums for discussion/example methods eg http://groups.google.com/group/android-developers/browse_thread/thread/c40769a07bb4c5c7# This or some variation might also be helpful as well - http://www.tomgibara.com/android/veecheck/ Regards On Jun 3, 2:09 pm, Prashast prash...@gmail.com wrote: This is from from ADC 2 announcement :http://code.google.com/android/adc/ When you enter an application in the ADC 2, we will make it available to all contest judges for free, exclusively for the purposes of judging. If you intend to sell your application after the conclusion of the contest, you may submit a trial version of the application for judging. We recommend that your trial version include full functionality, but with a timed expiration, rather than including limited functionality with no expiration. Judges will evaluate your application based only on the functionality accessible to them, so it makes sense to provide the fullest range of capabilities possible in your contest app. From what I've read so far in this group about timed expiry trial software is: 1. Its a violation of the TC of marketplace. If you have made your app available for free you cannot charge for it at a later stage. 2. There is no way to persist data between uninstallation and re- installation. So, even if trial software were allowed the users can just uninstall and reinstall without the app having any chance of verifying that the trial period is over. How does one create a trial version on an application? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 create a pop up window?
Create a class, for example: IconfiedTextListAdapter extends BaseAdapter: @Override public View getView(int position, View convertView, ViewGroup parent) { IconfiedTextView itv; if(convertView == null){ itv = new IconfiedTextView(mContext, mItems.get(position)); } else { itv = (IconfiedTextView) convertView; itv.setText(mItems.get(position).getText()); itv.setIcon(mItems.get(position).getIcon()); } return itv; } Explain: IconfiedTextView is a class that extends a Layout, in my example is: public class IconfiedTextView extends LinearLayout And, in class IconfiedTextView, you can add any view you want to display in a list's item: ImageView, TextView... Ex: public IconfiedTextView(Context context, IconfiedText iText) { super(context); this.setOrientation(HORIZONTAL); mImageView = new ImageView(context); mImageView.setAdjustViewBounds(true); mImageView.setMaxWidth(50); mImageView.setMaxHeight(50); mImageView.setLayoutParams(new LinearLayout.LayoutParams (LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)); mImageView.setImageDrawable(iText.getIcon()); mImageView.setPadding(0, 2, 5, 0); addView(mImageView, new LinearLayout.LayoutParams (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); mTextView = new TextView(context); mTextView.setText(iText.getText()); mTextView.setTextSize((float)14.0); addView(mTextView, new LinearLayout.LayoutParams (LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); } Now, in your ListActivity, create an instance of IconfiedTextListAdapter, and use that instance as an adapter for you List. If you want more detail, email your request to quanghuytruongd...@gmail.com GL! Huy On Jun 5, 3:20 am, automerc bigautosur...@gmail.com wrote: Thanks for the link. I saw that the alertdialog allows us to put a list on the pop up window. I was wondering if there is a way to add images to it as well. Is it possible to associate each item on the list with a image so that when a item is selected a image associated with that item will be displayed as well by providing the url to that image? On Jun 2, 5:13 pm, Mark Murphy mmur...@commonsware.com wrote: I was wondering how we would attach a pop up window to a button so that when the button is clicked the pop up window will appear showing a message and still until the user closes it. How should I go about this and what classes should I use? Also if there are any examples for this it would really helpful as well. Thank you. AlertDialog may be what you want. http://developer.android.com/guide/samples/ApiDemos/src/com/example/a... http://developer.android.com/guide/topics/ui/dialogs.html -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Resources.openRawResource issue
hi, i have got the answer to this problem if anybody facing the same problem can refer the code as follows .. InputStream ins = getResources().openRawResource(R.raw.my_db_file); int size = ins.available(); // Read the entire resource into a local byte buffer. byte[] buffer = new byte[size]; ins.read(buffer); ins.close(); FileOutputStream fos = new FileOutputStream(mycopy.db); fos.write(buffer); fos.close(); On Jun 2, 5:20 pm, Sam csgo...@gmail.com wrote: hi, I am having an db file in res/raw/folder iam calling Resources.openRawResource() with the file name as R.raw.FileName and i get an input stream but i having an another db file in device i want to copy the contents of that db to the device db i am using BufferedInputStream bi = new BufferedInputStream(is); and FileOutPutStream but i get an exception that database file is corrupted ...any hints how to proceed further . i read the file using File and FileInputStream and the path as /res/raw/fileName ... but that also doesnt works ... Thnx in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to handle HTTP/1.1 416 Requested Range Not Satisfiable
Hi friends, I have written some app which connects to server and fetches some data. Here is the response I am getting. HTTP/1.1 416 Requested Range Not Satisfiable Content-Type: text/html Content-Length: 0 Expires: Fri, 05 Jun 2009 07:29:49 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Connection: keep-alive X-N: S I am not understanding this. I just established a socket connection. I am not understanding is it my coding problem or server problem. Can any one please help me to solve this? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 1244113800000l results in 2 different dates?
Hi Jeff, I think your python also does something wrong ;) From a normal plain old java application: public class TestApp { public static void main(String[] args) { System.out.println(new SimpleDateFormat(HH:mm).format(new Date (124411380l))); } } Results in: 13:10 Am i doing something wrong here? Thanks, Twan On Jun 4, 7:41 pm, Jeff Sharkey jshar...@android.com wrote: The tomcat result is the right one. No, the Android time is correct: sh-3.1$ python import time print time.strftime(%H:%M, time.gmtime(1244113800)) 11:10 -- Jeff Sharkey jshar...@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] Re: Connect laptop built-in gps receiver to emulator
Made it work, thanks David. On Vista, when you enable GPS reception in the Dell Control Point, click on View network status details. It will show you the (serial) port where the GPS data is flowing to. In a console, enter emulator - avd avd_name -gps COMport_number. This will start the emulator and when you start your location app, you should be receiving real GPS data. Lex On 4 Jun., 02:11, David Turner di...@android.com wrote: emulator -help-gps ? On Wed, Jun 3, 2009 at 6:54 PM, Lex hakkinen1...@gmail.com wrote: Hello, my Dell Latitude E6400 has a built-in gps receiver. How can I hook it up with the emulator? I have enough problems spoofing gps data due to exisiting Android bugs, so I might as well use real ones? Thanks, Lex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: IME options behavior is inconsistent across different devices
I raised a bug report: http://code.google.com/p/android/issues/detail?id=2882 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 is WebView implemented under the hood
Hi, I have a question about how is WebView implemented? Does each WebView spawn an instance of WebKit engine? what if I have multiple WebView, does each of them is 1 WebKit engine? or each of them is a tab of a Webkit engine? And when i delete my WebView, does it bring down the webkit engine? And when I have 1 WebView and 1 Browser opened, does each of them have 1 webkit engine? 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] Android netbook camera (webcam) selection?
With the upcoming dual-boot netbooks with Windows and Android, http://www.digitimes.com/news/a20090604PD215.html how can one select an external USB webcam while in Android OS mode? Currently Android still lacks a camera selection API. 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: ListView OnItemClickListener no callback
Hi, Maybe my question wasn't clear 'cause I see in Android some item's selectable and focusable wich contains checkbox. Indeed, for instance, in Settings Wireless controls. Wi-fi, Bluetooth and Airplane Mode items contain each a checkbox and they are selectable and focusable. I will look for a solution and will post it. Best Regards Tom On 4 juin, 17:45, Romain Guy romain...@google.com wrote: Please stop bumping threads if you don't get an answer right away. And the answer to your question is no. Use listview's choice mode. On Thu, Jun 4, 2009 at 7:31 AM, Tom thomas.coz...@gmail.com wrote: I'm still looking for some answers :p On 4 juin, 10:29, Tom thomas.coz...@gmail.com wrote: Thanks for your reply. In fact I want that each items are focusable and selectable AND checkboxes only selectable. I want to add a context menu for each items. Is it possible? On 3 juin, 19:29, Romain Guy romain...@google.com wrote: You can't, it's one or the other. If you put a focusable widget in a list item, that's what happens. If you need checkboxes, use ListView's choice mode instead. On Wed, Jun 3, 2009 at 10:25 AM, Tom thomas.coz...@gmail.com wrote: Hi, One of my ListView's has a CheckBox on every item's RelativeLayout. I just found that clicking on any item of the ListView does not callback its OnItemClick(). If I remove the CheckBox from item layout, callback is ok then. My app needs to get both callbacks from the CheckBox as well as from the other area of a ListView item. I read http://android-developers.blogspot.com/2008/12/touch-mode.html But I'm a bit confuse. Can anybody advise me how I get the callback on the ListView with CheckBox? public class UserList extends ListActivity implements ListView.OnItemClickListener, ListView.OnClickListener{ private Client client; private ArrayListUser users = new ArrayListUser(); private UserAdapter userAdapter; �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.user_list); getListView().setOnItemClickListener(this); Intent i = getIntent(); if (i!= null) { if (i.getAction().equalsIgnoreCase(Intent.ACTION_VIEW)) { this.client = (Client) i.getSerializableExtra (Constants.CLIENT_CLASS_NAME); this.userAdapter = new UserAdapter(this, R.layout.user_row, users); users = (ArrayListUser) this.client.getUsers(); Log.i(getClass().getSimpleName(),Display users); for(int j=0;jusers.size();j++) { this.userAdapter.add(users.get(j)); } setListAdapter(this.userAdapter); } } } �...@override public void onItemClick(AdapterView? adapterView, View view, int position, long id) { Log.d(getClass().getSimpleName(), -- Click on User item -- ); } private class UserAdapter extends ArrayAdapterUser { private LayoutInflater mInflater; private ArrayListUser items; public UserAdapter(Context context, int resourceId, ArrayListUser items) { super(context, resourceId, items); mInflater = LayoutInflater.from(context); this.items = items; } public boolean areAllItemsSelectable() { return true; } public boolean isEnabled(int position) { if (position = 0 position = items.size()) { return true; } return false; } public int getCount() { return items.size(); } public User getItem(int position) { if (0 == position) { return null; } return items.get(position); } �...@override public View getView(int position, View convertView, ViewGroup parent) { // A ViewHolder keeps references to children views to avoid unnecessary calls // to findViewById() on each row. ViewHolder holder = null; View v = convertView; User user = items.get(position); if (v == null) { mInflater = (LayoutInflater)getSystemService (Context.LAYOUT_INFLATER_SERVICE); v = mInflater.inflate(R.layout.user_row, null); if (user != null) { // Creates a ViewHolder and store references to the children views // we want to bind data to.
[android-developers] opengl MultiThread textureMap
I am a frashman to learn opengl ,for developing the performance of drawing with opengl,i need a example of textureMap in MultiThread .I am glad to receive your message. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] MapView balloon box, is it possible??
Hi, I want to build an ap based on the Google Map API's MapView Everyting works fine but I cant find a control thing I saw this example, and I'm wondering, isn't this possible somehow in the Android MapView too. http://code.google.com/apis/maps/documentation/examples/marker-drag.html I'm interested not in the moveable drawable, but in that balloon box whit the Just bouncing along... text Appreciate your help, Zoltan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 1.5 ant build problems
oh noez, seriously there should be a warning sign to not use the update script for custom ant files. it just overwrites the build file and places these setup task thingies in there :( try to copy the stuff you need from android-rules.xml On Jun 5, 2:58 am, Michael Thomas enervat...@gmail.com wrote: Hi all, I'm having pukage when I try building from ant. I followed the sdk upgrade instructions: $ android update project --path /path/to/my-project --target 1 and when I try to build: $ ant release I get: Buildfile: build.xml BUILD FAILED java.lang.NoSuchMethodError: method java.lang.String.format with signature (Ljava.lang.String;[Ljava.lang.Object;)Ljava.lang.String; was not found. at com.android.sdklib.PlatformTarget.init(PlatformTarget.java:44) at com.android.sdklib.SdkManager.loadPlatform(SdkManager.java:196) at com.android.sdklib.SdkManager.loadPlatforms(SdkManager.java:151) at com.android.sdklib.SdkManager.createManager(SdkManager.java:80) at com.android.ant.SetupTask.execute(SetupTask.java:94) at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so) at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so) at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so) at org.apache.tools.ant.helper.ProjectHelper2.parse (ant-1.6.5.jar.so) at org.apache.tools.ant.ProjectHelper.configureProject (ant-1.6.5.jar.so) at org.apache.tools.ant.Main.runBuild(ant-1.6.5.jar.so) at org.apache.tools.ant.Main.startAnt(ant-1.6.5.jar.so) at org.apache.tools.ant.launch.Launcher.run(ant- launcher-1.6.5.jar.so) at org.apache.tools.ant.launch.Launcher.main(ant- launcher-1.6.5.jar.so) Total time: 0 seconds java.lang.NoSuchMethodError: method java.lang.String.format with signature (Ljava.lang.String;[Ljava.lang.Object;)Ljava.lang.String; was not found. at com.android.sdklib.PlatformTarget.init(PlatformTarget.java:44) at com.android.sdklib.SdkManager.loadPlatform(SdkManager.java:196) at com.android.sdklib.SdkManager.loadPlatforms(SdkManager.java:151) at com.android.sdklib.SdkManager.createManager(SdkManager.java:80) at com.android.ant.SetupTask.execute(SetupTask.java:94) at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so) at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so) at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so) at org.apache.tools.ant.helper.ProjectHelper2.parse (ant-1.6.5.jar.so) at org.apache.tools.ant.ProjectHelper.configureProject (ant-1.6.5.jar.so) at org.apache.tools.ant.Main.runBuild(ant-1.6.5.jar.so) at org.apache.tools.ant.Main.startAnt(ant-1.6.5.jar.so) at org.apache.tools.ant.launch.Launcher.run(ant- launcher-1.6.5.jar.so) at org.apache.tools.ant.launch.Launcher.main(ant- launcher-1.6.5.jar.so) method java.lang.String.format with signature (Ljava.lang.String; [Ljava.lang.Object;)Ljava.lang.String; was not found. It seems that something in: taskdef name=setup classname=com.android.ant.SetupTask classpathref=android.antlibs/ Is causing ant to harf, but that's about all I can tell. Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android netbook camera (webcam) selection?
so we have usb host now? (hey if someone got that working, please submit patch and close the bug on the android bugtracker!) On Jun 5, 10:51 am, blindfold seeingwithso...@gmail.com wrote: With the upcoming dual-boot netbooks with Windows and Android, http://www.digitimes.com/news/a20090604PD215.html how can one select an external USB webcam while in Android OS mode? Currently Android still lacks a camera selection API. 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: 2D animation with User interaction
To get the accelerometer readings you'll need to implement a listener, have a look at the SensorManager. As for displaying the images you can do that either in software using a SurfaceView or openGL using a GlSurfaceView. Checking for intersections can be done when you update the positions. The simplest way would to use Rect's based on the image position and use the intersects method. On Jun 5, 6:03 am, sagar.indianic sagar.india...@gmail.com wrote: Hello, I want to develop a simple application which will move an image accelerometer readings change. How can i implement that? is it possible using openGL only?? Another problem is that how can i get notified when two images intersect while animating??? Thanks for the 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] Excluding test files from the compiled application
Hello, I have an android app which I am starting to create some unit tests for. I am testing some classes totally uncoupled from the Android framework so I opted to use the JUnit4 library which I've added. I also added a separate source folder, 'tst', next to the default source folder, 'src'. The 'tst' source folder is where I will keep my test classes. My question is simple, how do I ensure that the compiled application doesn't include the JUnit4 library and the classes under the 'tst' source folder? I tried going into Eclipse - Project Properties - Java Build Path but I couldn't figure out what to do. :-) Thankful for any help. Gustav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] cf.locale.getCountry() (language error)
Hi, hope you can help I try to get the local language with : cf.locale.getCountry() usualy it works. BUT on G1 US-Version, when spanish is in prefs/local i get as responds. Now I did =spanish us=english etc. But now I hear from some german G1 Users that it starts on their G1 in Spanish? Totaly confusing. In my Emulator i get a clear de when German is selected. So what now, does German G1 Phones give even a back when its standart. Is this a bug or what? Thanks Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Get latitude longitude of center of MapView
Hi How would one get the latitude/longitude of the point which resides in the center of a MapView? I want to obtain the lat/lon each time the user pans/moves the map. Ideally, I want to find the lat/lon of the points on the map in the bottom left and top right of the screen. Thanks 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] Re: MapView balloon box, is it possible??
I believe you have to create your own balloon box and draw it to the screen above the tapped marker. I am not aware of an in-built mechanism to achieve this. It shouldn't be too hard to create one though, just use a .9.png for the background etc, so the marker expands automatically to contain the desired text. On Jun 5, 10:51 am, k_zoltan zoltan.kisgyo...@gmail.com wrote: Hi, I want to build an ap based on the Google Map API's MapView Everyting works fine but I cant find a control thing I saw this example, and I'm wondering, isn't this possible somehow in the Android MapView too. http://code.google.com/apis/maps/documentation/examples/marker-drag.html I'm interested not in the moveable drawable, but in that balloon box whit the Just bouncing along... text Appreciate your help, Zoltan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Tut (SDK 1.5) Get google account of user
Does this code allow you to get the email address of the phones owner, used when setting up the phone? I.e. the email address of the google account tied to to the phone? On Jun 5, 7:54 am, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: hi guys i finally got a simple method to get the google accounts in SDK 1.5... i'm attaching the code for everyone who needs this piece of code... This piece of code prints all methods in the class invokes the static method getAccount... try { for (Method ele : Class.forName(com.google.android.googlelogin.GoogleLoginServiceHelper).getMethods()) { System.out.println(ele.toString()); try { if(ele.getName().equals(getAccount)) ele.invoke(null, this, 123, true); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } catch (ClassNotFoundException e) { e.printStackTrace(); } } catch (ClassNotFoundException e) { e.printStackTrace(); } jus place the foll code in ur onactivityresult if (requestCode == 123) { System.out.println(resultCode); String key = accounts; System.out.println(key + : + Arrays.toString(data.getExtras().getStringArray(key))); String accounts[] = data.getExtras().getStringArray(key); if (accounts[0] != null) usernameText.setText(You are : + accounts[0].replace(@gmail.com, )); } in the logcat/ddms o/p u'll be able to see that there are other useful methods... public static void com.google.android.googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,java.lang.String,java.lang.String,boolean) public static void com.google.android.googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,boolean,java.lang.String,boolean) public static void com.google.android.googlelogin.GoogleLoginServiceHelper.invalidateAuthToken(android.app.Activity,int,java.lang.String) -- Regards, Sujay Mark Twain http://www.brainyquote.com/quotes/authors/m/mark_twain.html - There is no sadder sight than a young pessimist. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Get latitude longitude of center of MapView
if u r using the google api, then jus project the point screenwidth/2,screenHeight/2 using the projection functions. if u r doin a tile download and display on screen then do the maths... ;) On Fri, Jun 5, 2009 at 5:21 PM, mscwd01 mscw...@gmail.com wrote: Hi How would one get the latitude/longitude of the point which resides in the center of a MapView? I want to obtain the lat/lon each time the user pans/moves the map. Ideally, I want to find the lat/lon of the points on the map in the bottom left and top right of the screen. Thanks 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] Re: Get latitude longitude of center of MapView
Ok that sounds great but how would one do this? ;) What projection functions do you speak of? On Jun 5, 1:00 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: if u r using the google api, then jus project the point screenwidth/2,screenHeight/2 using the projection functions. if u r doin a tile download and display on screen then do the maths... ;) On Fri, Jun 5, 2009 at 5:21 PM, mscwd01 mscw...@gmail.com wrote: Hi How would one get the latitude/longitude of the point which resides in the center of a MapView? I want to obtain the lat/lon each time the user pans/moves the map. Ideally, I want to find the lat/lon of the points on the map in the bottom left and top right of the screen. Thanks 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] Re: Selling your apps section in Market help
Hi Blake Did you ever find a recommended strategy for this ? I am facing the very same issues, but don't like the option of the intermediate step ? Regards Don On Feb 16, 4:21 pm, Blake B. bbuckle...@yahoo.com wrote: I'm not worried about the code migration - that's only a half-hour work (max) with eclipse Subversion. I'm concerned about the user experience in transitioning their data to the new paid version. The user has data in user preferences and a sqlLite database that they will expect to be able to continue to have (as they have had in each freeupgrade). Both of these data are private to the app belonging to the oldpackageand cannot be accessed by my new app (in the newpackage). Is there a way around this that I am not aware of? Right now it seems users will have to go through an intermediate step of downloading a new version of the free app that will be able to export data to a public location on their SD Card that new new paid version can then find an import. Ick. On Feb 16, 9:08 am, Al Sutton a...@funkyandroid.com wrote: You may need to refactor your code tochangethepackagename to something line com.blah.nonfree.App and rebuild your apk. It would seem to offer the quickest solution. Al. Blake B. wrote: Your interpretation would make more sense, but that doesn't seem to be the way it's being done. I don't have the option on my current app tochangefrom free. When I unpublish it and attempt to Upload an application, I have the option to set a price, but the publish site won't allow me to upload my .apk because it sees that that applicationpackagehas already been published, and asks that I upgrade that app. Am I the only one that this was a suprise to? I am really not looking forward to the annoyed user comments emails. I had planned for a much easier transition. What are others doing to migrate data between free paid versions of an app? On Feb 16, 8:39 am, Al Sutton a...@funkyandroid.com wrote: Developers could always add a couple of features and charge for the feature added version. Al. Blake B. wrote: Ok, maybe I missed this along the way (or heard comments of this and couldn't believe it to be true), but this statement seems clear in the Setting the price of applications section: If you have previously published an application for free, you cannot changeit to have a price. This seems to mean that any app that has been in the Market up to this point that plans on charging a price now will have to re-package itself as a new application. If the app contains a database or other private data not accessible to other apps, I suppose that means we will have to release ANOTHER version of the FREE app that includes some kind of support for exporting data, then have the user download/ install this version and run it IN ADDITION TO the new paid version if they want to migrate their data to the new paid version? This seems like a major headache for users and developers alike. Am I reading this correctly? On Feb 16, 2:57 am, Al Sutton a...@funkyandroid.com wrote: http://market.android.com/support/bin/topic.py?topic=15867 Highlights; - All fee information is shown in USD, GBP, EUR, AUD, and CAD so I think that tells us who is going to be able to sell apps in the coming months. - Allowable price ranges are $0.99 to $200 (YES $200 - Sheesh) or 0.50 GBP to 100 GBP. - Chargebacks for less than $10 USD will be automatically charged back. - A $3 USD fee may be added to chargebacks on top of the refund. - The 24 hour refund period starts when the user has *downloaded* the app, not when they purchase it. -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.- Hide quoted text - - Show quoted text - -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you
[android-developers] Re: Tut (SDK 1.5) Get google account of user
to be more specific it gives the interface that is used by other google apps to get user credentials... it also provides methods with which u can get the auth token or invalidate the token(logout)... On Fri, Jun 5, 2009 at 5:27 PM, mscwd01 mscw...@gmail.com wrote: Does this code allow you to get the email address of the phones owner, used when setting up the phone? I.e. the email address of the google account tied to to the phone? On Jun 5, 7:54 am, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: hi guys i finally got a simple method to get the google accounts in SDK 1.5... i'm attaching the code for everyone who needs this piece of code... This piece of code prints all methods in the class invokes the static method getAccount... try { for (Method ele : Class.forName(com.google.android.googlelogin.GoogleLoginServiceHelper).getMethods()) { System.out.println(ele.toString()); try { if(ele.getName().equals(getAccount)) ele.invoke(null, this, 123, true); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } catch (ClassNotFoundException e) { e.printStackTrace(); } } catch (ClassNotFoundException e) { e.printStackTrace(); } jus place the foll code in ur onactivityresult if (requestCode == 123) { System.out.println(resultCode); String key = accounts; System.out.println(key + : + Arrays.toString(data.getExtras().getStringArray(key))); String accounts[] = data.getExtras().getStringArray(key); if (accounts[0] != null) usernameText.setText(You are : + accounts[0].replace(@gmail.com, )); } in the logcat/ddms o/p u'll be able to see that there are other useful methods... public static void com.google.android.googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,java.lang.String,java.lang.String,boolean) public static void com.google.android.googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,boolean,java.lang.String,boolean) public static void com.google.android.googlelogin.GoogleLoginServiceHelper.invalidateAuthToken(android.app.Activity,int,java.lang.String) -- Regards, Sujay Mark Twain http://www.brainyquote.com/quotes/authors/m/mark_twain.html - There is no sadder sight than a young pessimist. -- Regards, Sujay Will Rogers http://www.brainyquote.com/quotes/authors/w/will_rogers.html - I never expected to see the day when girls would get sunburned in the places they now do. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Get latitude longitude of center of MapView
mymap.getProjection().fromPixels(x, y) On Fri, Jun 5, 2009 at 5:33 PM, mscwd01 mscw...@gmail.com wrote: Ok that sounds great but how would one do this? ;) What projection functions do you speak of? On Jun 5, 1:00 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: if u r using the google api, then jus project the point screenwidth/2,screenHeight/2 using the projection functions. if u r doin a tile download and display on screen then do the maths... ;) On Fri, Jun 5, 2009 at 5:21 PM, mscwd01 mscw...@gmail.com wrote: Hi How would one get the latitude/longitude of the point which resides in the center of a MapView? I want to obtain the lat/lon each time the user pans/moves the map. Ideally, I want to find the lat/lon of the points on the map in the bottom left and top right of the screen. Thanks for your help! -- Regards, Sujay H. L. Mencken http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html - Nobody ever went broke underestimating the taste of the American public. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Get latitude longitude of center of MapView
Great, thanks for the help. I'll try it later. On Jun 5, 1:07 pm, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: mymap.getProjection().fromPixels(x, y) On Fri, Jun 5, 2009 at 5:33 PM, mscwd01 mscw...@gmail.com wrote: Ok that sounds great but how would one do this? ;) What projection functions do you speak of? On Jun 5, 1:00 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: if u r using the google api, then jus project the point screenwidth/2,screenHeight/2 using the projection functions. if u r doin a tile download and display on screen then do the maths... ;) On Fri, Jun 5, 2009 at 5:21 PM, mscwd01 mscw...@gmail.com wrote: Hi How would one get the latitude/longitude of the point which resides in the center of a MapView? I want to obtain the lat/lon each time the user pans/moves the map. Ideally, I want to find the lat/lon of the points on the map in the bottom left and top right of the screen. Thanks for your help! -- Regards, Sujay H. L. Mencken http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html - Nobody ever went broke underestimating the taste of the American public. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Get latitude longitude of center of MapView
so if u r usin the google map api, then u cud use the mapView.getProjection().fromPixels(x, y)... where mapView is the instance of com.google.android.maps.MapView... On Fri, Jun 5, 2009 at 5:33 PM, mscwd01 mscw...@gmail.com wrote: Ok that sounds great but how would one do this? ;) What projection functions do you speak of? On Jun 5, 1:00 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: if u r using the google api, then jus project the point screenwidth/2,screenHeight/2 using the projection functions. if u r doin a tile download and display on screen then do the maths... ;) On Fri, Jun 5, 2009 at 5:21 PM, mscwd01 mscw...@gmail.com wrote: Hi How would one get the latitude/longitude of the point which resides in the center of a MapView? I want to obtain the lat/lon each time the user pans/moves the map. Ideally, I want to find the lat/lon of the points on the map in the bottom left and top right of the screen. Thanks 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] Re: how to handle hardware volume controls
Josh wrote: I figured out my problem. I was overriding onKeyDown. I removed the override and it works as it should. For keys you do not handle, call and return the result from super.onKeyDown(). This will allow Android to process keys you are not directly interested in, while still allowing you to handle the keys you need. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunties? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 1244113800000l results in 2 different dates?
twan wrote: Hi Jeff, I think your python also does something wrong ;) From a normal plain old java application: public class TestApp { public static void main(String[] args) { System.out.println(new SimpleDateFormat(HH:mm).format(new Date (124411380l))); } } Results in: 13:10 Am i doing something wrong here? Jeff's code uses gmtime(). Yours does not. I am guessing you work two time zones to the east of UTC+0. With respect to Android, you may wish to pass the -timezone switch to your emulator, to tell it what time zone to emulate, since by default, I believe it pretends it is UTC+0. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunties? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Publishing Paid Apps on Android Market Can Cost You Money
There are quite a few stories like this one back through the archives. The answer is oh well or try charging $10.. :( You might ask on the market support forum to see if they are more helpful directly, but.. On Wed, Jun 3, 2009 at 3:47 PM, Blake blakelapie...@gmail.com wrote: A few weeks ago I get an email from Google Checkout Chargebacks: Hello, On 5/12/2009 we received a chargeback notification for Google Order # xxx in the amount of $0.99. This order is being disputed by your customer's credit card issuer. This particular order is NOT refundable in our system. Please do not attempt to refund this order. If a refund is appropriate, please let us know in a reply to this email, and we will process the refund on your behalf. Please do NOT ship this order if you have not already. If you ship after receiving this chargeback notification you will be liable for the chargeback and responsible for retrieving the order from your customer at your own expense. As part of our Chargeback Resolution Policy, Google will work to resolve the chargeback on your behalf. However, we require important information from you to help us in our effort. Reason for chargeback: Your customer is claiming they have not authorized this transaction. Please provide the following information by replying directly to this email no later than 5/26/2009: - Proof of Delivery/Proof of Service Received - Detailed shipping information including tracking number and shipping company - Screenshot from shipping carrier showing full ship-to address - Any additional information or correspondence you may have had with the customer If this information is not received by the above date, or if the information provided is insufficient, you will be responsible for the cost of the order, plus a $10 chargeback fee assessed by Google. For more information about our Chargeback Resolution Policy, please visit http://checkout.google.com/support/sell/bin/answer.py?answer=38147 If you have any questions unrelated to evidence submission, please email them to checkoutchargebackinquir...@google.com. We appreciate your assistance as we work to resolve this issue. Sincerely, Robert The Google Checkout Team I had no idea what kind of information I can provide Google proving that my app was delivered since Google handles all of the charging and distribution of apps. I have zero control over how my apps are delivered and and billed except for setting the price and uploading it to Google. I reply saying I have no proof since this was an Android Market purchase and Google handled the entire transaction. I told them to just refund the user the $0.99 because I don't want to get a $10 charge for something I have no control over. Then today I get another email from Google Checkout: Hello Blake, As per your advice we have refunded the customer and debited your account for the order amount of $0.99 along with a $03.00 chargeback fee. Sincerely, Robert The Google Checkout Team Am I missing something here? Google is going to debit my account $3.99 for a purchase that made me $0.69? It is going to take 5 additional purchases just to cover my LOSS on this one transaction. I'm still not sure how a refund translated into a chargeback that cost me money. Or how I am responsible for a chargeback when Google controls the entire process of billing and distribution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Device Update!!!
but let's put it this way, with the 1.0 API, U can't even locate a certain point on the map ? let's say locating the whitehouse, I give the proper coordinates but the map wouldn't move. is it a coding mistake? it works fine on the emulator On Jun 4, 5:18 pm, havexz bali.param...@gmail.com wrote: are using some 1.5 related api? btw is 1.5 still not available...if not is soon gonna be available to you so have patience On Jun 4, 11:46 am, Georgy georgearna...@gmail.com wrote: Ok as I was fearing.. I reached a stage where the application works on the emulator and not on thedevice! For example: after giving out the long/lat to a function on the emulator it takes u to the specific location however, it doesn't do that on thedevice is there somethign I dk here? thanks guys On May 29, 7:32 pm, L!TH!UM clarkd...@gmail.com wrote: On May 29, 3:40 pm, Georgy georgearna...@gmail.com wrote: can't do... mydeviceis bought from T-mobile... yeah yeah not a real developer ;) The major difference between the ADP1 and G1 is the firmware, all the hardware is the same. And besides, you can always downgrade and root your G1 so that you can load other firmware on it, such as the ADP1 1.5 firmware. Like havexz said, having an ADP does not a make you a real developer, or even a developer for that matter.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: java.awt
Hi bratag, Did you ever get JAI working? I too got some steps into the dependency trail but lost hope. Just wondering if you managed to fix this issue and if your project is open source?! :) Gav On May 13, 9:54 pm, bra...@gmail.com peacoc...@gmail.com wrote: I have very nearly finished porting the java.awt lib to android. I have skipped all the swing functionality as I cannot see us need ing it along with some fairly large chunks of the text handling. Graphic manipulation and IO etc should all still work. If you are ever given the choice between building your own awt lib and smacking your face into a wall. Choose the wall. Less painful On May 12, 1:51 pm, Mark Murphy mmur...@commonsware.com wrote: By the way - Love your book Mark. The very first android resource I purchased. Thanks! -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Get Manifest versionname by Code?
Hi, how can i request the versionName stored in manifext.xml from within my Code? manifest.xml android:versionName=0.8.1 thanks chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Get Manifest versionname by Code?
guruk wrote: Hi, how can i request the versionName stored in manifext.xml from within my Code? manifest.xml android:versionName=0.8.1 http://wiki.andmob.org/faq-version-app Use PackageManager to find the PackageInfo for your app. Then it should be the versionName public field in the PackageInfo object. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunties? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 30 Days of Android Applications
Day 03: Bonfire http://bakhtiyor.com/2009/06/bonfire/ Day 04: Froggy Tic-Tac-Toe http://bakhtiyor.com/2009/06/froggy-tic-tac-toe/ Day 05: Plumb-Bob http://bakhtiyor.com/2009/06/plumb-bob/ Thank you (all) for new application 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] open spinner from button
Hi, i like to start a spinner after pressing a button. (a button, not a spinner defined in my layout) i tried: (bweeks is the button) final Spinner spinner = new Spinner(this); ArrayAdapter spinnerArrayAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_dropdown_item, new String[] { Apple, Peach, Banana }); spinner.setAdapter(spinnerArrayAdapter); bweeks.setOnClickListener(new OnClickListener() { public void onClick(View v) { spinner.showContextMenu(); }}); i know there is something wrong.. even how would i get back what item are clicked? (its easy when i implent a spinner in my layout.. but i like to start the spinner after pressing a button? is that possible chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Implement the Compass function to my application?
HEllo , how can I implement the Compass function having 2 geopoints (start and destination)? 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: Tut (SDK 1.5) Get google account of user
u need certain permissions for this which tells the user that whether the app only reads the email id or if it trys to get the auth token... so the user'll no at the time of installing the app itself... On Fri, Jun 5, 2009 at 7:12 PM, mscwd01 mscw...@gmail.com wrote: Hmm, while this could be useful isn't it a major privacy issue? Imagine unscrupilous developers getting the auth token and then logging into the users gmail account etc? Or have I misunderstood something here? On Jun 5, 1:06 pm, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: to be more specific it gives the interface that is used by other google apps to get user credentials... it also provides methods with which u can get the auth token or invalidate the token(logout)... On Fri, Jun 5, 2009 at 5:27 PM, mscwd01 mscw...@gmail.com wrote: Does this code allow you to get the email address of the phones owner, used when setting up the phone? I.e. the email address of the google account tied to to the phone? On Jun 5, 7:54 am, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: hi guys i finally got a simple method to get the google accounts in SDK 1.5... i'm attaching the code for everyone who needs this piece of code... This piece of code prints all methods in the class invokes the static method getAccount... try { for (Method ele : Class.forName(com.google.android.googlelogin.GoogleLoginServiceHelper).getMethods()) { System.out.println(ele.toString()); try { if(ele.getName().equals(getAccount)) ele.invoke(null, this, 123, true); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } catch (ClassNotFoundException e) { e.printStackTrace(); } } catch (ClassNotFoundException e) { e.printStackTrace(); } jus place the foll code in ur onactivityresult if (requestCode == 123) { System.out.println(resultCode); String key = accounts; System.out.println(key + : + Arrays.toString(data.getExtras().getStringArray(key))); String accounts[] = data.getExtras().getStringArray(key); if (accounts[0] != null) usernameText.setText(You are : + accounts[0].replace(@ gmail.com, )); } in the logcat/ddms o/p u'll be able to see that there are other useful methods... public static void com.google.android.googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,java.lang.String,java.lang.String,boolean) public static void com.google.android.googlelogin.GoogleLoginServiceHelper.getCredentials(android.app.Activity,int,android.os.Bundle,boolean,java.lang.String,boolean) public static void com.google.android.googlelogin.GoogleLoginServiceHelper.invalidateAuthToken(android.app.Activity,int,java.lang.String) -- Regards, Sujay Mark Twain http://www.brainyquote.com/quotes/authors/m/mark_twain.html - There is no sadder sight than a young pessimist. -- Regards, Sujay Will Rogers http://www.brainyquote.com/quotes/authors/w/will_rogers.html - I never expected to see the day when girls would get sunburned in the places they now do. -- Regards, Sujay Mark Twain http://www.brainyquote.com/quotes/authors/m/mark_twain.html - There is no sadder sight than a young pessimist. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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's the deal with onRetainNonConfigurationInstance()?
I initially thought about the same: Using onConfigurationChanged(). However, this is only called for the configuration changes that are mentioned in the manifest file: http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration) ... On Jun 5, 12:04 am, adamphillips12 adamphillip...@gmail.com wrote: I have not tested it but if you register for orientation configChange, perhaps onConfigurationChanged() will be called prior to onSave..()? Though if indeed you feel like 99.9% of the situations onSaveInstanceState() is called is for orientation changes, then why don't you just use onRetain.. exclusively and if in onCreate() the object is null, recreate your expensive object then. I mean 0.1% of the time to recreate it, you'll probably get away with that. I don't think this will be of any help to you, as it does not change the calling structure but remember you can hold the bundle passed to onSave..() for use in onRetain..() On Jun 5, 2:21 am, matthias m.kaepp...@googlemail.com wrote: Hi Mark, On Jun 4, 5:57 pm, Mark Murphy mmur...@commonsware.com wrote: onSaveInstanceState() is called in cases other than screen rotations (e.g., activity is being closed up due to low memory), and in those other cases, onRetainNonConfigurationInstance() is not used at all. yes, but wouldn't it be more clever to have onRetainLastNonConfigurationInstance() be called *before* onSaveInstanceState(), because then one could determine whether it's necessary to have the latter actually do something. For those cases I mentioned (which I suppose are the more typical use cases), this would be very helpful, because you could do something like this: protected Object onRetainLastNonConfigurationInstance() { return expensiveObject; } protected void onSaveInstanceState(Bundle out) { if (getLastNonConfigurationInstance() == null) { // serialize expensiveObject to bundle } } protected void onCreate(Bundle in) { Object expensiveObject = getLastNonConfigurationInstance(); if (expensiveObject == null) { // deserialize expensiveObject } } using that approach, one could benefit from that method in, what, 99.9% of all situations in which onSaveInstanceState() is called? (by which I mean orientation changes, not low memory scenarios).- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MapView balloon box, is it possible??
Some tutorial at : http://www.pointgphone.com/map-application-android-sdk-15-2597 http://www.pointgphone.com/map-application-android-sdk-15-deuxieme-partie-4916 It is in french but code is Ok Andre --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Implement the Compass function to my application?
You're trying to get the distance and bearing from the start point to the end point? If so, then you don't need to work with the compass hardware... unless you later want to use it to help the user navigate to the point. The Location class (in android.location) can be used compute those two values. It doesn't deal with GeoPoint objects, but converting the coordinates is very easy. On Jun 5, 9:42 am, Georgy georgearna...@gmail.com wrote: how can I implement the Compass function having 2 geopoints (start and destination)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Detecting when a MapView is changed (panned or zoomed)
Hi, I thought this would have an easy answer but I cant seem to find one. Does MapView have a mechanism such as an onChange listener which is fired when the MapView is either panned or zoomed? I have expermiented with onClick, motion events etc, all are not really what i'm after. I just need to know when the state of the MapView is changed by the user zooming or moving it. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Center Text in a AlertDialog.Builder
Hi how do I have to change my AlertDialogBuilder to center the Items? return new AlertDialog.Builder(preferences.this).setTitle(my titel) .setItems(daysList, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { dbHelper.SetStartWeek(+which); }}).create(); Thanks Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GLSurfaceView remove problem
I have made a Open GL program using TriangleRenderer in ApiDemos. I made a button and I want to turn off GLSurfaceView when I click a button. So firstly I addView GLSurfaceView in LinearLayout, and I removeView GLSurfaceView when I click a button. But when I removeView a GLSurfaceView, emulator was freezed printing a LOG ( SurfaceComposerClient : lock_layer timed out (is the CPU pagged ). I think some method call need before removing a GLSurfaceView. but I don't know exactly. package com.gltest; import android.app.Activity; import android.os.Bundle; import android.opengl.GLSurfaceView; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; public class Hello extends Activity { private LinearLayout mLayout; private MyGLSurfaceView mGLSurface; private Button mButton; @Override public void onCreate (Bundle savedInstanceState) { super.onCreate (savedInstanceState); mLayout = new LinearLayout (this); mLayout.setOrientation (LinearLayout.VERTICAL); mGLSurface = new MyGLSurfaceView(this); mLayout.addView (mGLSurface, new LinearLayout.LayoutParams ( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT, 1.0f)); mButton = new Button (this); mLayout.addView (mButton, new LinearLayout.LayoutParams ( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT, 1.0f)); mButton.setOnClickListener (new View.OnClickListener () { public void onClick (View v) { mGLSurface.onPause (); mLayout.removeView (mGLSurface); } }); setContentView (mLayout); } } package com..gltest; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.opengl.GLSurfaceView; import android.widget.LinearLayout; public class MyGLSurfaceView extends LinearLayout { static final String TAG = MyGLSurfaceView; private GLSurfaceView mGLSurface; public MyGLSurfaceView (Context context) { this (context, null); } public MyGLSurfaceView (Context context, AttributeSet attrs) { super (context, attrs); mGLSurface = new GLSurfaceView (context); mGLSurface.setEGLConfigChooser (false); mGLSurface.setRenderer (new TriangleRenderer (context)); addView (mGLSurface); } @Override protected void onDetachedFromWindow () { Log.v (TAG, onDetatchedFromWindow); mGLSurface.onPause (); } public void onPause () { mGLSurface.onPause (); } } SurfaceComposerClient : lock_layer timed out (is the CPU pagged?) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Publishing Paid Apps on Android Market Can Cost You Money
I have no knowledge of this specific case, but I think 'Streets of Boston' said it right: it's part of the cost of doing business. This is no different from having a physical store where you sell goods. You will eventually run in to disputed credit card charges, bounced checks, counterfeit money, shoplifting, etc. It sucks (especially the first few times it happens to you - I'm speaking from experience here), but you can't expect someone else to absorb those costs for you. On Fri, Jun 5, 2009 at 5:30 AM, Disconnect dc.disconn...@gmail.com wrote: There are quite a few stories like this one back through the archives. The answer is oh well or try charging $10.. :( You might ask on the market support forum to see if they are more helpful directly, but.. On Wed, Jun 3, 2009 at 3:47 PM, Blake blakelapie...@gmail.com wrote: A few weeks ago I get an email from Google Checkout Chargebacks: Hello, On 5/12/2009 we received a chargeback notification for Google Order # xxx in the amount of $0.99. This order is being disputed by your customer's credit card issuer. This particular order is NOT refundable in our system. Please do not attempt to refund this order. If a refund is appropriate, please let us know in a reply to this email, and we will process the refund on your behalf. Please do NOT ship this order if you have not already. If you ship after receiving this chargeback notification you will be liable for the chargeback and responsible for retrieving the order from your customer at your own expense. As part of our Chargeback Resolution Policy, Google will work to resolve the chargeback on your behalf. However, we require important information from you to help us in our effort. Reason for chargeback: Your customer is claiming they have not authorized this transaction. Please provide the following information by replying directly to this email no later than 5/26/2009: - Proof of Delivery/Proof of Service Received - Detailed shipping information including tracking number and shipping company - Screenshot from shipping carrier showing full ship-to address - Any additional information or correspondence you may have had with the customer If this information is not received by the above date, or if the information provided is insufficient, you will be responsible for the cost of the order, plus a $10 chargeback fee assessed by Google. For more information about our Chargeback Resolution Policy, please visit http://checkout.google.com/support/sell/bin/answer.py?answer=38147 If you have any questions unrelated to evidence submission, please email them to checkoutchargebackinquir...@google.com. We appreciate your assistance as we work to resolve this issue. Sincerely, Robert The Google Checkout Team I had no idea what kind of information I can provide Google proving that my app was delivered since Google handles all of the charging and distribution of apps. I have zero control over how my apps are delivered and and billed except for setting the price and uploading it to Google. I reply saying I have no proof since this was an Android Market purchase and Google handled the entire transaction. I told them to just refund the user the $0.99 because I don't want to get a $10 charge for something I have no control over. Then today I get another email from Google Checkout: Hello Blake, As per your advice we have refunded the customer and debited your account for the order amount of $0.99 along with a $03.00 chargeback fee. Sincerely, Robert The Google Checkout Team Am I missing something here? Google is going to debit my account $3.99 for a purchase that made me $0.69? It is going to take 5 additional purchases just to cover my LOSS on this one transaction. I'm still not sure how a refund translated into a chargeback that cost me money. Or how I am responsible for a chargeback when Google controls the entire process of billing and distribution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Implement the Compass function to my application?
yeah I need to bring up the compass to tell the user where EXACTLY is the destination when the user is close. thanks, On Jun 5, 10:17 am, Brian Smith avalo...@caerleon.us wrote: You're trying to get the distance and bearing from the start point to the end point? If so, then you don't need to work with the compass hardware... unless you later want to use it to help the user navigate to the point. The Location class (in android.location) can be used compute those two values. It doesn't deal with GeoPoint objects, but converting the coordinates is very easy. On Jun 5, 9:42 am, Georgy georgearna...@gmail.com wrote: how can I implement the Compass function having 2 geopoints (start and destination)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ACTION_PHONE_STATE_CHANGED working in 1.5 SDK?
I'm trying to have my program react to events such as when the phone is ringing, busy, etc. I know it's not possible to replace the Phone program, I just want to do some other stuff when the phone state changes. According to the 1.5 docs, there is a BroadcastIntent called ACTION_PHONE_STATE_CHANGED that carries the EXTRA_STATE, which seems to be exactly what I want. The documentation is here: http://developer.android.com/reference/android/telephony/TelephonyManager.html#ACTION_PHONE_STATE_CHANGED I want to register a Broadcast Receiver for this intent. I've included the following lines in my Manifest: - receiver android:name=.CallState intent-filter action android:name=android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED / /intent-filter /receiver uses-permission android:name=android.permission.READ_PHONE_STATE / - And here is the CallState class: - import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; public class CallState extends BroadcastReceiver{ @Override public void onReceive(Context arg0, Intent arg1) { // TODO Auto-generated method stub Log.v(callState, changed); } } - However, my class is never called, either on the emulator or on a real device using 1.5. Can anyone give me some insight into what I'm doing wrong? Has anyone been able to react to phone calls without registering a background service to poll the getCallState() method repeatedly? Is this an error in the documentation, or is the broadcast going out and I'm simply trying to capture it wrong? Thanks for any help you guys can give me! This group has been a great help since the beginning. -John Batka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Publishing Paid Apps on Android Market Can Cost You Money
Generally you have a method of fighting back (or at least investigating). And a contact somewhere. If I go to a broker and say 'I have a product here, please sell it for me' it is not my fault if the broker takes a bad card - that is on them, and the worst I lose is one of my product. This situation is almost identical, except the duplication cost of my product is near zero. This, literally, says hey, we screwed up and took a bad card. So we're charging you the fees. Sorry, we can't tell you anything about the card or help you do anything to prevent it happening again. On Fri, Jun 5, 2009 at 10:56 AM, Marco Nelissenmarc...@android.com wrote: I have no knowledge of this specific case, but I think 'Streets of Boston' said it right: it's part of the cost of doing business. This is no different from having a physical store where you sell goods. You will eventually run in to disputed credit card charges, bounced checks, counterfeit money, shoplifting, etc. It sucks (especially the first few times it happens to you - I'm speaking from experience here), but you can't expect someone else to absorb those costs for you. On Fri, Jun 5, 2009 at 5:30 AM, Disconnect dc.disconn...@gmail.com wrote: There are quite a few stories like this one back through the archives. The answer is oh well or try charging $10.. :( You might ask on the market support forum to see if they are more helpful directly, but.. On Wed, Jun 3, 2009 at 3:47 PM, Blake blakelapie...@gmail.com wrote: A few weeks ago I get an email from Google Checkout Chargebacks: Hello, On 5/12/2009 we received a chargeback notification for Google Order # xxx in the amount of $0.99. This order is being disputed by your customer's credit card issuer. This particular order is NOT refundable in our system. Please do not attempt to refund this order. If a refund is appropriate, please let us know in a reply to this email, and we will process the refund on your behalf. Please do NOT ship this order if you have not already. If you ship after receiving this chargeback notification you will be liable for the chargeback and responsible for retrieving the order from your customer at your own expense. As part of our Chargeback Resolution Policy, Google will work to resolve the chargeback on your behalf. However, we require important information from you to help us in our effort. Reason for chargeback: Your customer is claiming they have not authorized this transaction. Please provide the following information by replying directly to this email no later than 5/26/2009: - Proof of Delivery/Proof of Service Received - Detailed shipping information including tracking number and shipping company - Screenshot from shipping carrier showing full ship-to address - Any additional information or correspondence you may have had with the customer If this information is not received by the above date, or if the information provided is insufficient, you will be responsible for the cost of the order, plus a $10 chargeback fee assessed by Google. For more information about our Chargeback Resolution Policy, please visit http://checkout.google.com/support/sell/bin/answer.py?answer=38147 If you have any questions unrelated to evidence submission, please email them to checkoutchargebackinquir...@google.com. We appreciate your assistance as we work to resolve this issue. Sincerely, Robert The Google Checkout Team I had no idea what kind of information I can provide Google proving that my app was delivered since Google handles all of the charging and distribution of apps. I have zero control over how my apps are delivered and and billed except for setting the price and uploading it to Google. I reply saying I have no proof since this was an Android Market purchase and Google handled the entire transaction. I told them to just refund the user the $0.99 because I don't want to get a $10 charge for something I have no control over. Then today I get another email from Google Checkout: Hello Blake, As per your advice we have refunded the customer and debited your account for the order amount of $0.99 along with a $03.00 chargeback fee. Sincerely, Robert The Google Checkout Team Am I missing something here? Google is going to debit my account $3.99 for a purchase that made me $0.69? It is going to take 5 additional purchases just to cover my LOSS on this one transaction. I'm still not sure how a refund translated into a chargeback that cost me money. Or how I am responsible for a chargeback when Google controls the entire process of billing and distribution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to
[android-developers] Re: ACTION_PHONE_STATE_CHANGED working in 1.5 SDK?
john wrote: Has anyone been able to react to phone calls without registering a background service to poll the getCallState() method repeatedly? In an activity, or an unfortunately-long-running service, you can use a PhoneStateListener: http://developer.android.com/reference/android/telephony/PhoneStateListener.html Off the cuff, your BroadcastReceiver setup sure looks good, and there are signs in the Android source code that Android is indeed broadcasting that Intent, so I'm not quite sure what is going wrong there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MapView Draggable Objects
You can use an ItemizedOverlay to add to the maps overlay collection. Then handle the onTouchEvent and onTap which have MotionEvent. By handling these events you can see which object in the overlay has focus or has been tapped and implement your own moving of the overlay objects (drawables with geopoints). Using the Projection object of the map you can convert from xy touch coordinates into geopoints to set your overlayitem. I don't know if this is the best way to handle it but it worked for 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] Re: Publishing Paid Apps on Android Market Can Cost You Money
On Fri, Jun 5, 2009 at 8:04 AM, Disconnect dc.disconn...@gmail.com wrote: Generally you have a method of fighting back (or at least investigating). And a contact somewhere. If I go to a broker and say Good luck getting anyone to investigate the shoplifting of 50 cents worth of bubblegum. I couldn't even get anyone to investigate the theft of my bicycle... :) 'I have a product here, please sell it for me' it is not my fault if the broker takes a bad card - that is on them, and the worst I lose is one of my product. This situation is almost identical, except the duplication cost of my product is near zero. The difference is that such a broker makes a profit selling your goods, whereas Google is not making a profit from app sales. Hypothetically speaking, if you want Google to absorb these costs, you would have to be willing to let Google make a profit on app sales, which means receiving less than the 70% you're currently getting. In essence you'd be buying insurance, from Google. This, literally, says hey, we screwed up and took a bad card. So we're charging you the fees. Sorry, we can't tell you anything about the card or help you do anything to prevent it happening again. You don't know that this was about a bad (i.e. stolen) card. It could just as well have been someone being petty and wanting their dollar back, even though they waited too long to get a refund through regular means. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] update gui from a separate thread
I need to display two timers on my app, I have two approaches, one is to implement the displays as TextView and then use java.util.Timer and TimerTask to update its text, however, the text doesn't redraw itself after update. The other approach is to use DigitalClock, but I can't find a way to directly start/stop the clock. see code below. please help. thanks! class DisplayTimerTask extends TimerTask{ DateFormat dateFormat =new SimpleDateFormat(HH:mm:ss MM/dd/ ); private TextView display; public DisplayTimerTask(TextView display){ this.display=display; } public void run() { String time = dateFormat.format(new Date()); display.setText(time); display.invalidate(); System.err.println(set time to +time); } } protected void stopTimer() { Button stopButton = getStopButton(); stopButton.setEnabled(false); getStartButton().setEnabled(true); if(stopDisplayTimer!=null)stopDisplayTimer.cancel(); stopDisplayTimer = new Timer(); stopDisplayTimer.schedule(new DisplayTimerTask(getStopTimeLabel()), 0, 500); /* DigitalClock clock=(DigitalClock)findViewById(R.id.clock); clock.setEnabled(false); */ } protected void startTimer() { Button startButton=getStartButton(); startButton.setEnabled(false); getStopButton().setEnabled(true); if(startDisplayTimer!=null)startDisplayTimer.cancel(); startDisplayTimer = new Timer(); startDisplayTimer.schedule(new DisplayTimerTask(getStartTimeLabel ()), 0, 500); /* DigitalClock clock=(DigitalClock)findViewById(R.id.clock); clock.setEnabled(true); */ } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: update gui from a separate thread
jonathan wrote: I need to display two timers on my app, I have two approaches, one is to implement the displays as TextView and then use java.util.Timer and TimerTask to update its text, however, the text doesn't redraw itself after update. You can use Handler#postDelayed() or View#postDelayed() to arrange to have work done on the UI thread after a period of time. Those, like your Timer implementation, will suffer some amount of drift over a long period. If you need greater precision, consider using AlarmManager. What you definitely want to do is ensure you are updating your TextView on the UI thread; otherwise, you will get exceptions. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 change the state of a stateful drawable?
Hi, I am trying to use that small favorite icon (the Android star icon, android:drawable/btn_star), which according to its XML definition has several distinct states in which it looks different (e.g. it's a golden filled star when checked, and a grey unfilled star when unchecked). Whenever the ImageView rendering that drawable receives a click event, I want to switch those two states. Here is what I do: starIcon.setOnClickListener(new OnClickListener() { public void onClick(View v) { Drawable star = starIcon.getDrawable(); int[] currentState = star.getState(); System.out.println(StateSet.dump(currentState)); if (StateSet.stateSetMatches(currentState, android.R.attr.state_checked)) { System.out.println(is checked); star.setState(new int[] { android.R.attr.state_enabled }); } else { System.out.println(not checked); star.setState(new int[] { android.R.attr.state_checked }); } star.invalidateSelf(); } }); however, the onclick handler always enters the else clause and the dump always prints W P E, which means that the call to setState (checked) has no effect... I guess? What am I missing? Thanks, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Detecting hardware capabilities
I'm guessing I'm not the only one who's stumped by this? That's comforting. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ACTION_PHONE_STATE_CHANGED working in 1.5 SDK?
Thanks, I wasn't aware of PhoneStateListener. Of course, if I want my program to work consistently I need to get this Broadcast Receiver working. I've had some very bad experiences with long-running services (they tend not to run very long)! Everything in the documentation says to use Broadcast Receivers whenever possible and to always avoid Services when your program isn't doing anything. I would love to follow the recommended model if it actually worked... In an activity, or an unfortunately-long-running service, you can use a PhoneStateListener: http://developer.android.com/reference/android/telephony/PhoneStateLi... Off the cuff, your BroadcastReceiver setup sure looks good, and there are signs in the Android source code that Android is indeed broadcasting that Intent, so I'm not quite sure what is going wrong there. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Excluding test files from the compiled Android app
I've only dabbled in the JUnit with Android 1.5 so far, but I think that if you take a look at the API Demos app you will see that they have done exactly what you suggested (move the test classes into a folder called tests). I'm not on my dev machine right now so I can't confirm but I think you also need to tweak the Android manifest. Again, the API Demos app has a 2nd manifest so you can see how it's different from a production manifest. (It's the instrumentation stuff, not sure if you need that for JUnit but that's how they did it in the API Demos.) One thing I've seen is that when you run the Eclipse project as an Android JUnit app, it goes through its tests and reports in the JUnit panel, and that's it (the app does not run in the emulator or on the device). But if you run the apps as a regular Android app (not JUnit), it skips the JUnit panel and you get the normal behavior (loads to the device or emulator). What I'm not sure is -- and hopefully someone else knows this -- when you build to the device, does that mean it left all of your test classes out of the package? On Jun 4, 4:00 pm, Parakoos parak...@gmail.com wrote: Hello, I am looking to add some JUnit4 tests to my android application. I am going to test some classes that are totally decoupled from the Android framework, so I don't want to involve the instrumentation bit. I will be running these tests only from eclipse. The question I have is how I can ensure that the test classes I write will be excluded from the finished compiled program. After all, I won't need them at that point. I'd like to keep all the 'real' java packages in the default named source folder 'src' while I'd like all my tests to be in a source folder named 'tst'. Sorry if this is a stupid or simple question but after spending a great deal of time searching for the answer I gave up! Thanks, Gustav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: aapt error with Standard menu icons (resource is not public)
I saw that. I just originally thought that I forgot something in my project, not that some resources weren't exported, sorry for the noise :) On Jun 5, 12:11 am, Romain Guy romain...@google.com wrote: This is a known issue that was reported to the authors of the guidelines. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Center Text in a AlertDialog.Builder
You can create your own adapter and do whatever formatting you need in its getView() function. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 5, 7:47 am, guruk ilovesi...@gmail.com wrote: Hi how do I have to change my AlertDialogBuilder to center the Items? return new AlertDialog.Builder(preferences.this).setTitle(my titel) .setItems(daysList, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { dbHelper.SetStartWeek(+which); }}).create(); Thanks Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Embedded activityGroup and Dialog box
I have a similar problem... Any answer? On Tue, Apr 14, 2009 at 4:24 PM, Arnaudweb arnaud...@gmail.com wrote: Hello, I'm trying to run an activityGroup embedded inside another activityGroup. (Example : an activityGroup inside a tabActivity) This seems to display properly but throw an exception when i'm trying to display a modal box like an alertDialog. TabActivity - Tab1 - Tab2 - MyGroupActivity - - ChildActivity1 - - ChildActivity2 If childActivity1 or 2 try to display a dialogBox i'm getting this exception : 04-14 18:45:47.480: ERROR/AndroidRuntime(2449): android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.localactivitymanager$localactivityrec...@43424620 is not valid; is your activity running? Has anyone encountered this pbm before? What am i doing wrong ? Thanks, Arnaudweb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ListView OnItemClickListener no callback
These items are not selectable and focusable, these are just lists that use ListView's choice mode. Like I already told you. On Fri, Jun 5, 2009 at 2:03 AM, Tomthomas.coz...@gmail.com wrote: Hi, Maybe my question wasn't clear 'cause I see in Android some item's selectable and focusable wich contains checkbox. Indeed, for instance, in Settings Wireless controls. Wi-fi, Bluetooth and Airplane Mode items contain each a checkbox and they are selectable and focusable. I will look for a solution and will post it. Best Regards Tom On 4 juin, 17:45, Romain Guy romain...@google.com wrote: Please stop bumping threads if you don't get an answer right away. And the answer to your question is no. Use listview's choice mode. On Thu, Jun 4, 2009 at 7:31 AM, Tom thomas.coz...@gmail.com wrote: I'm still looking for some answers :p On 4 juin, 10:29, Tom thomas.coz...@gmail.com wrote: Thanks for your reply. In fact I want that each items are focusable and selectable AND checkboxes only selectable. I want to add a context menu for each items. Is it possible? On 3 juin, 19:29, Romain Guy romain...@google.com wrote: You can't, it's one or the other. If you put a focusable widget in a list item, that's what happens. If you need checkboxes, use ListView's choice mode instead. On Wed, Jun 3, 2009 at 10:25 AM, Tom thomas.coz...@gmail.com wrote: Hi, One of my ListView's has a CheckBox on every item's RelativeLayout. I just found that clicking on any item of the ListView does not callback its OnItemClick(). If I remove the CheckBox from item layout, callback is ok then. My app needs to get both callbacks from the CheckBox as well as from the other area of a ListView item. I read http://android-developers.blogspot.com/2008/12/touch-mode.html But I'm a bit confuse. Can anybody advise me how I get the callback on the ListView with CheckBox? public class UserList extends ListActivity implements ListView.OnItemClickListener, ListView.OnClickListener{ private Client client; private ArrayListUser users = new ArrayListUser(); private UserAdapter userAdapter; �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.user_list); getListView().setOnItemClickListener(this); Intent i = getIntent(); if (i!= null) { if (i.getAction().equalsIgnoreCase(Intent.ACTION_VIEW)) { this.client = (Client) i.getSerializableExtra (Constants.CLIENT_CLASS_NAME); this.userAdapter = new UserAdapter(this, R.layout.user_row, users); users = (ArrayListUser) this.client.getUsers(); Log.i(getClass().getSimpleName(),Display users); for(int j=0;jusers.size();j++) { this.userAdapter.add(users.get(j)); } setListAdapter(this.userAdapter); } } } �...@override public void onItemClick(AdapterView? adapterView, View view, int position, long id) { Log.d(getClass().getSimpleName(), -- Click on User item -- ); } private class UserAdapter extends ArrayAdapterUser { private LayoutInflater mInflater; private ArrayListUser items; public UserAdapter(Context context, int resourceId, ArrayListUser items) { super(context, resourceId, items); mInflater = LayoutInflater.from(context); this.items = items; } public boolean areAllItemsSelectable() { return true; } public boolean isEnabled(int position) { if (position = 0 position = items.size()) { return true; } return false; } public int getCount() { return items.size(); } public User getItem(int position) { if (0 == position) { return null; } return items.get(position); } �...@override public View getView(int position, View convertView, ViewGroup parent) { // A ViewHolder keeps references to children views to avoid unnecessary calls // to findViewById() on each row. ViewHolder holder = null; View v = convertView; User user = items.get(position); if (v == null) { mInflater = (LayoutInflater)getSystemService (Context.LAYOUT_INFLATER_SERVICE); v = mInflater.inflate(R.layout.user_row, null);
[android-developers] how to load private font to widget from a remote view or from xml declaration - HELP
please if anyone knows how to set an asset font from a remoteview i have a few widgets on the market that the languages in them are not suported by OS yet for now i can give the option to use those widget only to those who knows how to install the freamwork i realy want to let everybody use my widgets so i want to embed the fonts in to the app i did that to the activity on my app but i dont find a way to do it to the widget please help me to find the answer thanks in advanced --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Dialogs and SubMenus in ActivityGroup
Hello I have 6 options to put in options Menu, but 3 of them are not so mportant and i want to hide them in submenu. All of my Activities are started from one ActivityGroup which creates Menu on MENU button press. Problem is that when I open SubMenu or Dialog (which is created and displayed by ActivityGroup) my current foreground activity makes onPause, onStop and onDestroy, and when I close this submenu (usingback key) or dialog (by ok button for ex.) I don't have any response (onCreate, onResume) from any of my activities registered in LocalActivityManager Is it a bug? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 load private font to widget from a remote view or from xml declaration - HELP
RTX wrote: please if anyone knows how to set an asset font from a remoteview Quoting Jeff Sharkey: Because widgets live in other processes, they can only use system typefaces, and not additional fonts that might be internal to your package. One way around this would be to render your font onto a Bitmap in your process, and then push it across RemoteViews. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to save the screen to a file?
Hi,All, I am thinking about the Android OS principle, and do much examples to verify that. One question excuse me much days, and I have tried many ways, that is HOW TO SAVE THE SCREEN? And I got some viewpoint. 1, For a Window, it has no right to draw its child view's canvas. So, in our activity, we can't draw directly to sub-view. activity could just only send a message(call a API) to underlying views. It's the view's responsibility to draw. Maybe this is function right, just like Human Right. 2, It's likely that View class does not give programmer one draw buffer access method, so in a view, we could not get the current drawing pixels. Even that we could enable the drawCache, or canvas.setBitmap, then we could get the cacheable pixels. But that time after action, not time on action. Could anybody have other idea to capture the screen programmtically? Regards! Kerr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AMR encoding uses 8hz sampling rate?
According to wikipedia, the AMR encoding which is the only option we see for the MediaRecorder API uses a Sampling frequency of 8 kHz/13- bit We are writing a voice recognition application. We have an equivalent app on the iphone which we have found performs best with a sampling rate of 22hz or better. At 8hz the voice recognition is not usable as the word error rate goes up by about 15%. Is there an equivalent API for android to change the sampling rate? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Socket timeout not working?
In the sample code, a SocketTimeoutException should be thrown if the connection can't be stablished in a second, isn't it? try { s = new Socket(host, port); s.setSoTimeout(1000); if (s.isConnected()) s.close(); } catch (SocketTimeoutException e) { e.printStackTrace(); } catch (UnknownHostException e) { e.printStackTrace(); } catch (ConnectException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } But the timeout take a looong time to be detected. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 cut off a long string in TextView
Hi All, Maybe it is a simple problem for some of you. But how do you automatically cut off long strings and add ... to the right end in TextViews, like Activity title does? Sorry for posting twice coz I didn't see my previous post in the list --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Augmented Ajax Notifications
Can augmented ajax use Notifications? Is this Android 2.0? - Juan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Message priorities
Hi Everyone, I was searching for the priority implementation in Messaging. I didn't find any code to show the priority of say SMS( For ex: urgent SMS or high priority SMS). Anyone knows whether this feature exists in Android... Or is there any plan to add show the message priority in the notification bar(For SMS / MMS/ Voicemail)... Reply would really help. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to change android default language?
Is there a configuration file, when change the default locale, my mobile or emulator will be the language when booting up ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] screen not powering back up after enabling the gpu when in cupcake
after enabling the gpu the screen will not power back up after sleep. This only occurs in cupcake builds, 1.1 builds work fine. Are there changes required to support sleep in cupcake? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] findViewById returns null MapView when following maps tutorial
I'm following this tutorial here: http://developer.android.com/guide/tutorials/views/hello-mapview.html and am on point 11 Here's the res/layout/main.xml: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/mainlayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=hidden / LinearLayout android:id=@+id/zoomview android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignBottom=@id/mapview android:layout_centerHorizontal=true / /RelativeLayout Here's the code: package com.example.hellomapview; import android.app.Activity; import android.os.Bundle; import com.google.android.maps.*; import android.widget.LinearLayout; import android.widget.ZoomControls; public class HelloMapView extends MapActivity { LinearLayout linearLayout; MapView mapView; ZoomControls mZoom; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); linearLayout = (LinearLayout) findViewById (R.id.zoomview); mapView = (MapView) findViewById(R.id.mapview); mZoom = (ZoomControls) mapView.getZoomControls(); linearLayout.addView(mZoom); setContentView(R.layout.main); } @Override protected boolean isRouteDisplayed() { return false; } } Here's the manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example.hellomapview android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.INTERNET / application android:label=@string/app_name uses-library android:name=com.google.android.maps / activity android:name=.HelloMapView android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest I've built both this project and the avd I'm loading it to as target 3's, meaning they should have maps capability, and have acquired a proper Maps apiKey (which I've hidden in this post) If I back up to step 6 in the tutorial, everything works, which means the map loads and I can pan around, but when I try to reference the MapView in the xml with this line: mapView = (MapView) findViewById(R.id.mapview); the view returned is null. Here's the ant debug output: $ ant debug Buildfile: build.xml [setup] Project Target: Google APIs [setup] Vendor: Google Inc. [setup] Platform Version: 1.5 [setup] API level: 3 dirs: [echo] Creating output directories if needed... resource-src: [echo] Generating R.java / Manifest.java from the resources... aidl: [echo] Compiling aidl files into Java classes... compile: [javac] Compiling 2 source files to /home/doubleagent/Programming/ ANDROID/HelloMapView/bin/classes [javac] Note: /home/doubleagent/Programming/ANDROID/HelloMapView/ src/com/example/hellomapview/HelloMapView.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. dex: [echo] Converting compiled files and external libraries into bin/ classes.dex... package-resources: [echo] Packaging resources [aaptexec] Creating full resource package... debug: [apkbuilder] Creating HelloMapView-debug.apk and signing it with a debug key... [apkbuilder] Using keystore: /home/doubleagent/.android/debug.keystore BUILD SUCCESSFUL Total time: 2 seconds Any idea what I could be doing wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Why the intent from Gallery has not picture`s Uri
Hi everybody. I tried to handle a picture from Gallery as SDK said: When the user chooses Share from the menus, the system compares the Share request (an Intent object) to available activities (by looking at their intent filters) and displays choices to share. In this case, it matches Email, Gmail, Messaging and Picassa. If your activity can send a picture or upload it to a website, all it needs to do is make itself available for sharing (by setting its intent filter). With the setting in AndroidMenifest.xml intent-filter action android:name=android.intent.action.CHOOSER / category android:name=android.intent.category.SELECTED_ALTERNATIVE / action android:name=android.intent.action.SEND / data android:mimeType=image/* / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.ALTERNATIVE / category android:name=android.intent.category.SELECTED_ALTERNATIVE / /intent-filter My application is called but the intent i got a null at getIntent ().getData(). Why? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Color Spinner list items
Hi guys, I am trying to change the text color of the spinner list items individually. I would like to be able to color the top three texts black and then the bottom four grey. This way the last items look disabled, but I still want to be able to capture the event when they are chosen. I haven't been able to find any documentation on how to do that. Alternatively I would like to disable som list items, but still be able to capture the event when they are chosen. Thanks in advance, JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Missing MapPoint in 1.5r2?
I am getting this error as well. Has there been a solution? On Jun 1, 6:22 pm, Mark Murphy mmur...@commonsware.com wrote: Raphael wrote: Thanks Mark, I'll have a look. Thanks! If you think of it, keep me posted! -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books.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: Hide the virtual keyboard
Have been struggling with the same problem. Solved by a combination of methods suggested above. I set the input type for my editor to NULL only for the time of processing the touch event. Like this - MyEditor.setOnTouchListener(new OnTouchListener(){ @Override public boolean onTouch(View v, MotionEvent event) { int inType = MyEditor.getInputType(); // backup the input type MyEditor.setInputType(InputType.TYPE_NULL); // disable soft input MyEditor.onTouchEvent(event); // call native handler MyEditor.setInputType(inType); // restore input type return true; // consume touch even } }); Works like a charm. On Jun 2, 3:47 pm, Alex B alexba...@gmail.com wrote: I'm still trying to figure out how to suppress the soft keyboard from showing because I have my own custom buttons for input. I have several EditText input fields, and all of them get filled by the custom on- screen buttons. I don't want the soft keyboard to show up at all. Could someone 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] Augmented Ajax Notifications
Can augmented ajax work with Notifications? Is this Android 2.0? - Juan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Color Spinner list items
Hi guys, I am trying to change the text color of the spinner list items individually. I would like to be able to color the top three texts black and then the bottom four grey. This way the last items look disabled, but I still want to be able to capture the event when they are chosen. I haven't been able to find any documentation on how to do that. Alternatively I would like to disable som list items, but still be able to capture the event when they are chosen. Thanks in advance, JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to write .jpg/.png file to gallery in Android
I've developed an Android App. that takes a picture and save it on gallery. The problem is that I don't know how to write a Bitmap/byte[] data which I get from taking pic. to the gallery in .jpg/.png format Anyone Please Help Me THX for your helps Regard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 write .jpg/.png file to gallery in Android
I've developed an app. taking picture and save on the gallery. The problem is I don't know how to save it to gallery in .jpg/.png format Anyone please help me . THX regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Anyone know how to build the gsptest?
Hi, Does anyone can tell me how to make hardware/libhardware_legacy/tests/gpstest Thanks in advance. Regards, Hake --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Question about using TextView
Hi all, I just have a question which may be very simple to some of you. How can I make a TextView cut off long strings automatically? I noticed that Activity title can do that: from abcdefgh to abc... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: VerifyError with Maps Add-ons
This happens on the device too and is kind of a show stopper. So there is really no workaround for this? I guess we are to assume that having both a widget and a MapActivity is not fully supported under 1.5, which is a shame. -Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TextView Link to Android Settings
I am working on an android health check application - this application has a text view for displaying status - within that text view I would like the use to have the ability to take action to correct a problem. To do think I would like to use links in the text view. The problem I am having is defining a link to some part of the android platform - say WiFi Settings. So if the health check finds a problem with the WiFi settings I would like the use to click on a link that bring up WiFi Settings activity. I can create a button - and start an intent to start this activity. I can think of 2 approaches: #1 - create a URI to the WiFi settings activity - but I am not sure how to do this #2 - Extend the URLSpan class and catch the onClick method - but this seems like the wrong way to do this Help is greatly appreciated Thanks Greg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Developer Challenge
Hello Everyone, I am a Master's student at USC and am interested in participating in ADC2. Last semester my team developed an application for Android phone and we wish to submit it for ADC2. However we have submitted a paper related to the our concept to one of international conferences and were wondering whether our project is still eligible for the competition. The paper was more about our underlying concept and the framework and we are intending to actually build an application on top of it and submit it as part of ADC2. IT would be great if our projecty would be eligible 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 -~--~~~~--~~--~--~---
[android-developers] Post Only Twitter client -- POT alpha release.
Hi all, I made small app for twitter. That name is 'POT'(Post Only Twitter client). It support SHARE intent, so you can use POT from any app like browser. Still in alpha, so there must be bug :-) You can download from http://flipflaps.us. Question and comment : http://twitter.com/kabayan. Enjoy!! kabayan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Missing MapPoint in 1.5r2?
Daniel wrote: I am getting this error as well. Has there been a solution? There's a workaround that has worked for me: Fortunately, using the Google Maps JAR file from Android 1.5r1 seems to work. To fix up your SDK this way, do the following: 1. Visit http://developer.android.com/sdk/1.5_r1/index.html and download the appropriate SDK for your platform 2. UnZIP the archive file in some likely place 3. Copy the add-ons/google_apis-3/libs/maps.jar from your Android 1.5r1 SDK into the same spot in Android 1.5r2, optionally renaming the existing maps.jar to some other name if you are nervous about this step (from http://commonsware.com/AndTutorials/) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Question about using TextView
Tao wrote: Hi all, I just have a question which may be very simple to some of you. How can I make a TextView cut off long strings automatically? I noticed that Activity title can do that: from abcdefgh to abc... Use android:ellipsize http://developer.android.com/reference/android/widget/TextView.html#attr_android:ellipsize -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Color Spinner list items
JP wrote: Hi guys, I am trying to change the text color of the spinner list items individually. I would like to be able to color the top three texts black and then the bottom four grey. This way the last items look disabled, but I still want to be able to capture the event when they are chosen. I haven't been able to find any documentation on how to do that. Override getView() in your Adapter (or newView()/bindView() if you inherit from CursorAdapter) and render the rows yourself, however you wish. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Does Android support API to find out whether the SIM Card inserted is SIM or USIM ?
Hello, Is there a way in Android FW (API, field etc) which will tell whether the SIM card inserted is a 2G or 3G (USIM). I need to read certain records from SIM and 2G spec and 3G spec has different file structure for the same file. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Still searching for HOME screen, and more question about ActivityManager
I've asked how to detect home screen before. I'm still searching... I noticed when I press home button on Android emulator, I got this statement in catlog: INFO/ActivityManager(584): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.HOME} flags=0x1020 comp= {com.android.launcher/com.android.launcher.Launcher} } so I went to ActivityManager to see if I can find a clue there. Here is my findings: 1. I can not instantiate ActivityManager because it's constructor is not public, and it's not a singleton 2. it has a function called: getRunningAppProcesses sounds promising -- would it give me all the running processes? 3. since I can not instantiate ActivityManager I tried to use one of the derived class: RunningAppProcesseInfo to see if I can use it's parent methods: getRunningAppProcesses. Nope. Am I on the right track or totally lost? Thanks, Sherry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: PNG 24 with Gradient not showing correctly
That's normal. Most phones have a 16 bits (or close) display. Your gradient is converted to the 565 format. To improve its appearance you can either turn on dithering on the Paint or pre-dither your image in Photoshop, etc. On Fri, Jun 5, 2009 at 11:14 AM, daniel.benedyktdaniel.bened...@gmail.com wrote: Hi I have a LinearLayout and I am setting a Background image. I am using a PNG24, and the image has a gradient in it. When I see the image on the computer the gradient is perfect, but when I see it on the emulator or on a real phone, some colors are lost and I see only like 10 colors, so I see lines and not a perfect gradient. Is the emulator 'compressing' the images? Should I make them in other format? Thanks Daniel -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Question about using TextView
gotcha, thx :) On Jun 5, 1:27 pm, Mark Murphy mmur...@commonsware.com wrote: Tao wrote: Hi all, I just have a question which may be very simple to some of you. How can I make a TextView cut off long strings automatically? I noticed that Activity title can do that: from abcdefgh to abc... Use android:ellipsize http://developer.android.com/reference/android/widget/TextView.html#a... -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Development Wiki:http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Enhanced Sensor API
Anyone? On Jun 2, 9:18 pm, RickB rick.bullo...@comcast.net wrote: I had a discussion with a few of the Android team member at Google IO, and I'd like to throw the idea out here for general brainstorming with the community. My view is that it is not a good approach to create sensor-specific APIs with iterative releases of the Android platform and SDK's. By this, I mean that instead of adding a location API, and an accelerometer API, and whatever comes next, we should create a generic sensor API that can work with a broad range of sensor types, including sensor configuration, demand read/write/configuration, event notifications, and other functions. In this way, 3rd parties could also add innovative sensing capabilities (or external sensors) to their Android devices which would be instantly supported by the platform. Well-known sensor such as geolocation and acceleration could have agreed-to sensor names/namespaces, with full extensibility for additional sensor types. As an example, geolocation as a 2D longitude/latitude is fine for some apps, but for inside the building applications or for other apps involving the need to accurate location of people or resources in 3 dimensions, it doesn't cut it. Additionally, one can easily envision inclusion of RFID, environmental, and other sensors in devices that could dramatically enhance the capabilities of Android applications. I welcome your thoughts and comments! Rick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: PNG 24 with Gradient not showing correctly
Thanks Romain, I will try this. I watched your Google IO video. Its great. Lots of good tips :) Thanks Again Daniel On Jun 5, 3:22 pm, Romain Guy romain...@google.com wrote: That's normal. Most phones have a 16 bits (or close) display. Your gradient is converted to the 565 format. To improve its appearance you can either turn on dithering on the Paint or pre-dither your image in Photoshop, etc. On Fri, Jun 5, 2009 at 11:14 AM, daniel.benedyktdaniel.bened...@gmail.com wrote: Hi I have a LinearLayout and I am setting a Background image. I am using a PNG24, and the image has a gradient in it. When I see the image on the computer the gradient is perfect, but when I see it on the emulator or on a real phone, some colors are lost and I see only like 10 colors, so I see lines and not a perfect gradient. Is the emulator 'compressing' the images? Should I make them in other format? Thanks Daniel -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money
I don't entirely agree with Google needs to make a profit to handle these situations. They take 30% to handle e-commerce, advertise, distribute, display, etc. If you sold a game to Game Crazy (or similar game vendor) they pay you a wholesale price and then re-sell the game. 30% is probably less than their mark-up, but on-line marketing has less expenses as well. If their customer uses a bad credit card they do not come back to you as the manufacturer and say you owe us our money back (or even worse, you have to cover our expenses.) The whole idea of Android/Google/T-Mobile offering apps is to increase their sales/reputation/stock price, they are willing to do that for 30% but they have also agreed to take the e-commerce responsibility to make it easier for poor programmers to sell product. (Google stock +31% since paid apps???) If this becomes a major issue for them, then I think their first response should be 'what is wrong with our credit card handling?' not 'let the supplier foot the bill.' intbt On Jun 5, 8:30 am, Marco Nelissen marc...@android.com wrote: On Fri, Jun 5, 2009 at 8:04 AM, Disconnect dc.disconn...@gmail.com wrote: Generally you have a method of fighting back (or at least investigating). And a contact somewhere. If I go to a broker and say Good luck getting anyone to investigate the shoplifting of 50 cents worth of bubblegum. I couldn't even get anyone to investigate the theft of my bicycle... :) 'I have a product here, please sell it for me' it is not my fault if the broker takes a bad card - that is on them, and the worst I lose is one of my product. This situation is almost identical, except the duplication cost of my product is near zero. The difference is that such a broker makes a profit selling your goods, whereas Google is not making a profit from app sales. Hypothetically speaking, if you want Google to absorb these costs, you would have to be willing to let Google make a profit on app sales, which means receiving less than the 70% you're currently getting. In essence you'd be buying insurance, from Google. This, literally, says hey, we screwed up and took a bad card. So we're charging you the fees. Sorry, we can't tell you anything about the card or help you do anything to prevent it happening again. You don't know that this was about a bad (i.e. stolen) card. It could just as well have been someone being petty and wanting their dollar back, even though they waited too long to get a refund through regular means. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---