[android-developers] Android Spinner Issue
I have a data entry layout that defines 5 spinners. Each spinner has properties defined that are identical, apart from id, hint text and so on. When rendered they all have different background and text colors. These are all defined to be the same. The containing layout has a style defined which should apply to everything in the layout. Does anyone know why this would occur? Answers really appreciated. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/ba37d30b-b404-4389-b956-65357b7d031d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Android Studio Initial Run
After developing with AS for over a year, the IDE became very unresponsive. Just setting the cursor in a line of code I'd have to wait 3 or 4 seconds until I could type anything. Background tasks, like build, were unaffected. All other apps on my PC were normal. So, I uninstalled AS, and deleted all associated folders and re-installed v 2.2. On the initial run I'm asked to enter Proxy info. I'm not connected to a proxy server, but I cannot get past this step. The original install never asked for this info. So what the heck is going on? Any advice appreciated. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/d9af42f4-768d-4169-8bdc-293322a597a5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] TabLayout problem
I've built an app that uses TabLayout. Each tab displays correctly in a scrollable horizontal toolbar. However, it displays the layout for Tab 1, by default and I do not want anything displayed until the onTabSelected code is fired. ie; Do not display anything (except for the tabs) until I click/select a specific tab. Whatever layout associated with the tab is displayed without my selecting the tab. Providing a solution would be greatly appreciated. Here's relevant code: setContentView(R.layout.main_activity_scrollable_tabs); toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); viewPager = (ViewPager) findViewById(R.id.viewpager); setupViewPager(viewPager); tabLayout = (TabLayout) findViewById(R.id.main_tabs); tabLayout.setupWithViewPager(viewPager); tabLayout.addOnTabSelectedListener( new TabLayout.ViewPagerOnTabSelectedListener(viewPager) { @Override public void onTabSelected(TabLayout.Tab tab) { super.onTabSelected(tab); Intent intent; // position zero-based! ie; tab one is pos 0. numTab = tab.getPosition(); switch (numTab) { case 0: intent = new Intent(context, PeopleEntryActivity.class); startActivityForResult(intent, 0); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/ecb3c973-b271-4b7e-9e98-0250ae88013c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] MaterialSpinner - restoring initial list after item selection
I have a data entry form in which I can choose to enter data multiple times. After a selection the selected value shows in the spinner. How do I 'disappear' that selection value from view before another set of data is entered into the form? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/053ca51a-cec8-4d56-bd37-ce0b87004a54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Windows 10 and Studio
After installing Win 10 I'm getting many lock-ups when using AS. Not sure how much Genymotion is involved. Downgraded to Win 7 and problems disappeared. So now I'm reluctant to try 10 again. Anyone seen this issue? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Using Callbacks in Master-Detail Scenario.
I have a typical master-detail scenario. That is, first activity invokes a list fragment in which I retrieve a list using a contentprovider. An Item click on this list returns the row using a callback to activity. Activity determines device type and either fires a detail fragment (for tablets etc) or fires a detail activity (for phones). I am trying to update the list in the list activity following an update, or a delete. The adapter is located in the list fragment - as is normal. I have coded callbacks from the detail activity to the first activity. That did not work. I've done the same thing but calling back to the list fragment. That does not work. I created a hard-coded reference to the ListFragment adapter in the DetailFragment in order to call ' notifyDataSetChanged' which not surprisingly also did not work. Can someone tell me what I'm missing here? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: My android studio suddenly has changed the editor font to enormous.
You can pinch to zoom. On Thursday, 16 October 2014 16:03:45 UTC+1, Christine wrote: My android studio suddenly has changed the editor font to enormous. I'm on Ubuntu, changing font size in settings (of android studio) doesn't change the font. The way it is now, it's unusable. What can I do? Christine -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Suggestion for next release of Android Studio
Double clicking on a class (and everything else) brings the class into the edit area but does not bring it into the active edit screen. The tab needs to be clicked to bring it into focus. Please bring it into focus using the double-click - like Eclipse allows. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Assets folder location
Eclipse generates an assets folder in the project structure. Where is (or how do I create one that is recognized by the build) is this folder supposed to go? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Aligning column data in a listview
I have a listview populated via a SimpleCursorAdapter backed by a ContentProvider. My final view contains a non-scrollable header (col hdgs), the ListView and a footer with totals for some of the columns. How can I ensure that (1) the data columns are all lined-up, preferably left-justified, and (2) How to line these ListView columns with my column headers? I've tried a few combinations of layout properties, like layout_width, weight and so on but cannot find a combination that does what I need. This must be a very common requirement so I'm sure this question has been asked before. Each textview in the layout for the list looks like this. TextView android:id=@+id/username android:layout_width=wrap_content android:layout_height=fill_parent android:textSize=12sp android:textColor=#FF7F3300 android:padding=5dip / Thanks for any help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Aligning column data in a listview
I finally got the first part right. Just need to line up the headings. On Wednesday, September 18, 2013 2:29:33 PM UTC-4, Phil Gibbs wrote: I have a listview populated via a SimpleCursorAdapter backed by a ContentProvider. My final view contains a non-scrollable header (col hdgs), the ListView and a footer with totals for some of the columns. How can I ensure that (1) the data columns are all lined-up, preferably left-justified, and (2) How to line these ListView columns with my column headers? I've tried a few combinations of layout properties, like layout_width, weight and so on but cannot find a combination that does what I need. This must be a very common requirement so I'm sure this question has been asked before. Each textview in the layout for the list looks like this. TextView android:id=@+id/username android:layout_width=wrap_content android:layout_height=fill_parent android:textSize=12sp android:textColor=#FF7F3300 android:padding=5dip / Thanks for any help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] JDK Path still giving problems
Couple weeks ago I tried installing Android Studio, but had problem with it not finding any JAVA_HOME, although it did exist as an environment variable. So uninstalled Studio and forgot about it since MyEclipse was working fine. Then today I downloaded and installed Studio successfully. But when I ran it it could not find JAVA_HOME. Well, at least I got to install it ok. I tried running as Admin, but no change, not that I expected any. Any ideas anyone. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] SQLite DB location on Windows PC
Just for curiosity, where exactly is the database that can be accessed via adb shell ie; /data/data/packagename/databases/database name. Must be in a file somewhere, but where? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Table Row Selection when using SimpleCursorAdapter
The subject says it all. How can I allow a user to select a row from a table generated using the CursorAdapter by clicking (or touching) it? I'd done this previously by dynamically building each table row from a List object, but then decided to use a Cursor thinking it would be more efficient. TIA for any help.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ContentValues issue
First, as a long-time Java developer I'm now learning Android. I have an app in which I use the ContentValues class to supply data to a Class that extends ContentProvider. Here's the issue. I'm 'put'ing 5 values (from a layout) into the ContentValues class. The problem - not all values are getting assigned. All values are of type String and they are valid values. Here is my code: int numColumns = 5; ContentValues newRideValues = new ContentValues(numColumns); newRideValues.put(KEY_RIDEDATE, rideDate); newRideValues.put(KEY_DURATION, rideDuration.getText().toString()); newRideValues.put(KEY_WEATHER, weather.getText().toString()); newRideValues.put(KEY_DISTANCE, distance.getText().toString()); newRideValues.put(KEY_EXERCISE_TYPE, radioExerciseButton.toString()); rideDate never gets assigned and the other values seem to not be assigned in order ie; distance may end up being the second element, when I would have expected rideDate to be the first and distance to be the fourth. This is how I use the newRideValues collection. new BikingLogsContentProvider().insert(CONTENT_URI, newRideValues); Any ideas and suggestions would be very welcome. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Software Keyboard
Hi lads, I'm running into trouble trying to make the software keyboard pop. I've already read all the posts related to that but unfortunately none helped me. I tried toggleSoftInputFromWindow, showSoftInput, getWindow().setSoftInputMode() with all possible combinations and all possible flags. I don't have an EditText, so I even tried to create a fake one. I made the call from different listeners to make sure it was not a thread related issue. I tried to delay the thread a bit. Still, those methods always return false and therefore the keyboard doesn't show... BUT! Everything works as expected as soon as I minimize the application (by pressing Home) and restore the application. From then, the keyboard shows up without any problems. Any clues? Phil. PS : My phone has a hardware keyboard. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ViewPager jumpy/laggy
I'm using a ViewPager with ListViews inside them but the transitions are quite jumpy. Can anyone tell me a good way to improve the performance of this? Thanks Phil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Strange behaviour with view pager fragments
I have a view pager with 4 different fragments, each loads a separate feed and displays the results in a list. They are all an instance of the same Fragment. This works fine while my phone has internet connection but when I've been trying to test retry mechanisms I'm getting very strange results. The retry button is correctly displayed in the first fragment, but when I hit retry it's restarting the wrong loader. All loaders have unique ids so it seams like the retry button from the wrong view is becoming visible in the currently visible fragment. Anyone have any idea what is going on here? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Broken Links in Documentation
I just found the articles section of the Android developer documentation. I found one broken link, and decided that I should report it, and future ones, here. From the page http://developer.android.com/resources/articles/avoiding-memory-leaks.html , the link to Home Screen's source code is broken, and brings me to the wrong page. Phil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Extract device phone number in international format
Hi, Is anyone aware of a way to extract the device phone number in an international format? I can get the number using TelephonyManager but this returns the local formatted number. Alternatively, perhaps there is a library I can import and use for this purpose to use the country ISO and local number and convert to international format? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: com.google.android.maps.MapView and server returned 3
OK my bad, I was punching in the wrong MD5. On Nov 2, 8:45 pm, Phil H p...@surfsoftconsulting.com wrote: I've been developing a Google Maps based application and for a few weeks I've been running with a Maps API key generated from the keystore used for signing code deployed over USB to my development phone. I've been able to see maps in the MapView, zoom, pan and add my own layers. This evening I got myself a maps API key based on the certificate I use for publishing to the marketplace. I substituted the 'debug' key for the new maps API key I've obtained, and then I exported the application to an APK file, using my certificate. I've manually installed the APK file onto my development phone but now the maps refuse to display. In logcat I'm seeing the following exception: 11-02 20:33:28.949: W/System.err(3090): IOException processing: 26 11-02 20:33:28.959: W/System.err(3090): java.io.IOException: Server returned: 3 11-02 20:33:28.959: W/System.err(3090): at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.re adResponseData(BaseTileRequest.java: 115) 11-02 20:33:28.959: W/System.err(3090): at android_maps_conflict_avoidance.com.google.googlenav.map.MapService $MapTileRequest.readResponseData(MapService.java:1473) 11-02 20:33:28.959: W/System.err(3090): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques tDispatcher.processDataRequest(DataRequestDispatcher.java: 1117) 11-02 20:33:28.959: W/System.err(3090): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques tDispatcher.serviceRequests(DataRequestDispatcher.java: 994) 11-02 20:33:28.959: W/System.err(3090): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques tDispatcher $DispatcherServer.run(DataRequestDispatcher.java:1702) 11-02 20:33:28.959: W/System.err(3090): at java.lang.Thread.run(Thread.java:1019) A quick bit of research suggests that either my certificate is expired or the API key I am using is plain wrong. However... - When exporting the application I am told that my certificate expires some time in 2061. - I've tried requesting the API key again to check that I have the right key - I do. - I've not made any mistakes pasting the API Key into my layout files. To complete the picture: - Development platform is OS X Lion, Eclipse 3.7.1 and SDK 15. - The target API level is 7 (2.1) - My phone (a Nexus One) is running Android 2.3.6. Any suggestions much appreciated... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] com.google.android.maps.MapView and server returned 3
I've been developing a Google Maps based application and for a few weeks I've been running with a Maps API key generated from the keystore used for signing code deployed over USB to my development phone. I've been able to see maps in the MapView, zoom, pan and add my own layers. This evening I got myself a maps API key based on the certificate I use for publishing to the marketplace. I substituted the 'debug' key for the new maps API key I've obtained, and then I exported the application to an APK file, using my certificate. I've manually installed the APK file onto my development phone but now the maps refuse to display. In logcat I'm seeing the following exception: 11-02 20:33:28.949: W/System.err(3090): IOException processing: 26 11-02 20:33:28.959: W/System.err(3090): java.io.IOException: Server returned: 3 11-02 20:33:28.959: W/System.err(3090): at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java: 115) 11-02 20:33:28.959: W/System.err(3090): at android_maps_conflict_avoidance.com.google.googlenav.map.MapService $MapTileRequest.readResponseData(MapService.java:1473) 11-02 20:33:28.959: W/System.err(3090): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java: 1117) 11-02 20:33:28.959: W/System.err(3090): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java: 994) 11-02 20:33:28.959: W/System.err(3090): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher $DispatcherServer.run(DataRequestDispatcher.java:1702) 11-02 20:33:28.959: W/System.err(3090): at java.lang.Thread.run(Thread.java:1019) A quick bit of research suggests that either my certificate is expired or the API key I am using is plain wrong. However... - When exporting the application I am told that my certificate expires some time in 2061. - I've tried requesting the API key again to check that I have the right key - I do. - I've not made any mistakes pasting the API Key into my layout files. To complete the picture: - Development platform is OS X Lion, Eclipse 3.7.1 and SDK 15. - The target API level is 7 (2.1) - My phone (a Nexus One) is running Android 2.3.6. Any suggestions much appreciated... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: LVL, DeviceLimiter and userId
In the developer console active installs is supposed to be the number of devices that the software is currently installed on. I know how many successful sales have gone through Google Checkout (this is lower than the total installs on the developer console which I think includes purchases cancelled inside the 15 minute returns window) and the active installs figure is 40% higher than the total of successful sales. My conclusion, given that most of my sales are in the USA, is that couples/families where at least a couple of people have an Android phone may be sharing a generic Google Checkout account so that they can buy an app once and share it around for free. That's ok-ish when there is no ongoing cost of running a back end server. It's going to destroy my business model if I need a back end server though. I'm considering using the Google Order Number as a licence key, thereby allowing multiple installations, but no simultaneous use on different devices. And I'll write up a licence to reflect that. On Oct 1, 7:17 am, Zsolt Vasvari zvasv...@gmail.com wrote: I didn't read the rest of your question when I saw this: 40% of users have my application installed on more than one device. How do you know this? If you go by the numbers given to you on the Developer Console, those numbers are at least misleading, and probably completely wrong. I have very, very hard to believe that 40% of Android users have multiple devices with the same Google Id tied to the, On Oct 1, 7:41 am, Phil H p...@surfsoftconsulting.com wrote: I'm looking at the LVL code and had a question about user identity and the DeviceLimiter interface. I've one app in the Android Market that uses LVL in its recommended form, so users can install the application on any device they have set up their account on. Early indications are that the software is being repeat-installed at a higher rate than I'd expect - 40% of users have my application installed on more than one device. That seems a bit high but, for that application in particular, it is no more significant than some lost sales - there are no ongoing running costs for me to support. It is enough to make me concerned about my next app though, which requires a server in the cloud. Application sales should cover the cost of this but if the repeat installation rate is high, my application may not be sustainable in the medium to long term - server costs will eat into income and I could end up running at a significant loss - and the more popular the app becomes, the bigger that problem is. So this got me thinking. Repeat installations by one used are not a problem, but one core function will account for the majority of server load - both processing and bandwidth. So, my tentative thought is that if a user is currently using that core function on one of their devices, they will not be able to use that function on any other until they are done with it on the first device. To be able to implement this I need access to a piece of data that is common to all the installations, which brings me round to the DeviceLimiter interface. Is the userId supplied here the same for a given application, purchased by a single user, regardless of the device it is installed on? Or is it the ANDROID_ID for the device? I don't want any identifying information (like an email address), I just want to be able to spot, from my server code, when multiple instances of a single purchase are using my (relatively) expensive resources simultaneously. A fall back solution would involve the user putting in their Google Checkout order number to activate the application - is there a service exposed to securely obtain details about an order that my server could make use of? All I really need is to know is the application purchased. A bit rambling I know, but any suggestions on ways of tackling this issue are most welcome. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: LVL, DeviceLimiter and userId
OK after playing with two different accounts across three different devices... the userId passed to DeviceLimiter is maintained across devices and between wipes. So, if a user has purchased an LVL licenced application, DeviceLimiter will always receive the same userId string. Therefore, it is possible to tell how many devices an application is being used across by using, for example, a cookie type approach. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: LVL and InApp Billing
The only thing I would say is that, in my recent investigation into LVL, you can see how many devices are using a single purchased licence, which may be useful. On Oct 1, 7:54 pm, androidmediadeveloper kamathaj...@gmail.com wrote: Have noticed several posts on this issue but no specific resolution, so, trying again. We are going to market with a paid app built using Google's InApp billing infrastructure. We've secured the purchase database with all the security best practices and it seems to be working well. Is there anything specific to gain in terms of security or performance, or any advantages in general that people see in additionally implementing the license verification via LVL ? At this point I am thinking no, but if people have advice to share, I'd appreciate it and will help us make a better informed decision. 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] LVL, DeviceLimiter and userId
I'm looking at the LVL code and had a question about user identity and the DeviceLimiter interface. I've one app in the Android Market that uses LVL in its recommended form, so users can install the application on any device they have set up their account on. Early indications are that the software is being repeat-installed at a higher rate than I'd expect - 40% of users have my application installed on more than one device. That seems a bit high but, for that application in particular, it is no more significant than some lost sales - there are no ongoing running costs for me to support. It is enough to make me concerned about my next app though, which requires a server in the cloud. Application sales should cover the cost of this but if the repeat installation rate is high, my application may not be sustainable in the medium to long term - server costs will eat into income and I could end up running at a significant loss - and the more popular the app becomes, the bigger that problem is. So this got me thinking. Repeat installations by one used are not a problem, but one core function will account for the majority of server load - both processing and bandwidth. So, my tentative thought is that if a user is currently using that core function on one of their devices, they will not be able to use that function on any other until they are done with it on the first device. To be able to implement this I need access to a piece of data that is common to all the installations, which brings me round to the DeviceLimiter interface. Is the userId supplied here the same for a given application, purchased by a single user, regardless of the device it is installed on? Or is it the ANDROID_ID for the device? I don't want any identifying information (like an email address), I just want to be able to spot, from my server code, when multiple instances of a single purchase are using my (relatively) expensive resources simultaneously. A fall back solution would involve the user putting in their Google Checkout order number to activate the application - is there a service exposed to securely obtain details about an order that my server could make use of? All I really need is to know is the application purchased. A bit rambling I know, but any suggestions on ways of tackling this issue are most welcome. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Controlling mutually exclusive preference categories with a single parent checkbox
Yes, the first two options are a bit unpleasant, and as for the third, well its an option but I couldn't help feeling there had to be a better way. After some more thought I ended up adopting a slightly different approach altogether. I took out the two mutually exclusive sets of preferences and put them in two other preference files, 'a' and 'b'. Then I created a separate, new preference activity (MorePreferences, below) that in the onCreate method loaded 'a' or 'b' based on my checkbox preference value: public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); final int preferences; if (Preferences.isPreferencesA(this)) { preferences = R.xml. } else { preferences = R.xml. } addPreferencesFromResource(preferences); } In the main preferences I put a PreferenceScreen entry in, which uses an intent to fire up the new preference activity - when activated it loads the right set of preferences: PreferenceScreen android:title=@string/announcement_settings android:summary=@string/announcement_settings_summary intent android:action=android.intent.action.MAIN android:targetPackage=mypackage android:targetClass=mypackage.MorePreferences/ /PreferenceScreen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Controlling mutually exclusive preference categories with a single parent checkbox
Ah, sorry, forgot to put the R.xml.preferences_a and R.xml.preferences_b in that onCreate! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Controlling mutually exclusive preference categories with a single parent checkbox
Thanks for the hint Mark, I've not tried it on the galaxy tab yet... fragments are top of the list of things to pick up next. On Jul 2, 2011 2:23 PM, Mark Murphy mmur...@commonsware.com wrote: Note that nested PreferenceScreen elements haven't looked good on Honeycomb when I've tried them. You may also wish to consider how you will approach this when you switch to PreferenceFragments going forward. On Sat, Jul 2, 2011 at 9:18 AM, Phil H p...@surfsoftconsulting.com wrote: Yes, the first two options are a bit unpleasant, and as for the third, well its an option but I couldn't help feeling there had to be a better way. After some more thought I ended up adopting a slightly different approach altogether. I took out the two mutually exclusive sets of preferences and put them in two other preference files, 'a' and 'b'. Then I created a separate, new preference activity (MorePreferences, below) that in the onCreate method loaded 'a' or 'b' based on my checkbox preference value: public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); final int preferences; if (Preferences.isPreferencesA(this)) { preferences = R.xml. } else { preferences = R.xml. } addPreferencesFromResource(preferences); } In the main preferences I put a PreferenceScreen entry in, which uses an intent to fire up the new preference activity - when activated it loads the right set of preferences: PreferenceScreen android:title=@string/announcement_settings android:summary=@string/announcement_settings_summary intent android:action=android.intent.action.MAIN android:targetPackage=mypackage android:targetClass=mypackage.MorePreferences/ /PreferenceScreen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.5 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Controlling mutually exclusive preference categories with a single parent checkbox
I'm trying to work out how to implement a preferences XML file that has two mutually exclusive preference categories, only one of which is displayed and enabled based on a parent checkbox preference. When checked, category 'a' should be displayed and 'b' hidden. When unchecked, category 'a' should be hidden and 'b' displayed. Now the android:dependency property allows me to identify a controlling parent preference, but the parent value that disables the dependency is specified on the parent (the android:disableDependentsState property). So it appears that I can't enable one category while disabling another: CheckBoxPreference android:key=use_option_one android:title=@string/use_option_one android:summary=@string/use_option_one_summary android:defaultValue=true / PreferenceCategory android:title=@string/option_one_options android:dependency=use_option_one android:shouldDisableView=true ... /PreferenceCategory PreferenceCategory android:title=@string/option_two_options android:dependency=use_option_one android:shouldDisableView=true ... /PreferenceCategory I've tried !use_option_one out of curiosity but this is not a supported syntax. Can somebody confirm (a) that my understanding is correct and (b) suggest an alternative implementation pattern to achieve the desired effect? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Anyone developing on the Galaxy Tab and a Mac?
But... can anybody recommend an MTP client for the mac that works with the Galaxy Tab? Fail - Google Android File Transfer 1.0.11.9326 Fail - Samsung Kies Mini Fail - XNJB (ok, it works about one time in 10 but its not a pleasant experience) On Jun 12, 7:44 am, John Coryat cor...@gmail.com wrote: If you mean the latter, Android 3.x uses MTP, not USB mass storage, and I think you need an MTP client for OS X. I never thought of that. In the decade+ I've been using the Mac, I have never downloaded a driver for anything. Last thing I would think of. Thanks Marc, as always, you have the right answers. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fragments API 11+ vs Compatibility package
Hi, I've just started playing around with fragments to make some apps work better with tablets. I've got this working nicely with my SGS and Xoom using just the compatibility package (trying to mix both resulted in crashes as I'm using the same fragment classes for both), which means I had to extend FragmentActivity for all my Activities and removed any references to android.app.Fragment in favour of the compatibility library version. I was wondering if this is the best way to implement fragments, as even API 11+ uses the compatibility package? (It's certainly the cleanest way and no code duplication) Also are there any implications/loss of features etc by doing this, or are the packages/functionality identical? Thanks! Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SAXParser throws exception for bad character in CDATA block, bug???
I'm having an issue with SAXParser on an RSS feed from a vBuletin forum. The parser throws SAXException - At line 212, column 26: not well-formed (invalid token) when it encounters a right apostrophe character - http://www.fileformat.info/info/unicode/char/2019/index.htm I realise this is a unicode character and the feed is ISO-8859-1, however the character falls in a CDATA block, which the parser is supposed to ignore. Anyone encountered this before and know a work around? I've tried things like forcing UTF-8 with no luck. Is this a bug that the parser is not ignoring data in the CDATA block? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Create animated loading image
Hi, I'm wondering what is considered the simplest way to create an animated loading image, something in line, for example like Twitter have when you refresh your feed. I tried an animated gif and it doesn't work, so is it necessary to break it into frames and animate it programmatically? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Best, easiest, cleanest, way to make a game and cross platfrom.
On Jan 22, 7:27 am, Hogus dupisani.lo...@gmail.com wrote: People spend way too much time worrying about cross-platform capability at the outset. Companies spend so much time trying to roll their product out to everyone that they back themselves into corners where there is no way to actually provide the functionality that they want to provide and end up with some watered down, me too, application that anyone else could have developed. This is an interesting viewpoint which I agree with to a certain extent. For me, the main motivation for making my code cross-platform is to avoid having all my eggs in one basket. (The Apple Basket in many cases.) Diversity, both across platforms and across apps, reduces the risk of some event beyond my control taking away the income that pays the rent. Perhaps the important thing is to at least be aware of your options, and to know what technologies are cross-platform and which are not. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Best, easiest, cleanest, way to make a game and cross platfrom.
On Jan 20, 12:30 am, brian purgert brianpurge...@gmail.com wrote: even straight opengl Go for it. Think of it as a learning investment. You may then decide that you'd like to use some sort of layer on top of that, to hide some of the details. But it will help a lot if you have had some exposure to the underlying stuff. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: glHint implementation and openGL antialiasing
On Jan 19, 2:40 pm, Guian guiandou...@gmail.com wrote: in our openGL implementation There are multiple Android OpenGL implementations, one for each graphics chip vendor, so you may see different results in each case. does someone know a way to get smooth antialiased lines rendered ? Draw triangles that fade from solid to transparent across their width. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Version code being displayed instead of Version Name in Samsung Galaxy S - GT I9000 device?
On Jan 17, 6:20 pm, Dianne Hackborn hack...@android.com wrote: If you are talking about the version shown in Manage Applications, old versions of the platform had a bug where they showed the raw version code and not the text. I don't remember in which platform version that was fixed. Between 2.1 and 2.2, AFAICT. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: What's new in honeycomb?
I'd make the assumption that with higher resolution phones on the way soon that Honeycomb would be for phones also with a similar UI and the same API, would be interesting to hear more on this though if anyone knows and is allowed to reveal at this stage. On 10 January 2011 08:43, mort m...@sto-helit.de wrote: I don't know if I get a bit off-topic, but it's still related to Honeycomb and tablets: I've seen several apps in the Honeycomb videos which displayed in one screen what must've been multiple Activities before, like e.g. the mail list and single mail view. Will there be an easy way to support multiple visible Activities, or is it just hard work to create mightier Widgets (e.g. something like the mail list as Widget instead of ListActivity) and lots of if that Widget exists in the current layout ...? I think it'd be a good idea to give developers some chance to prepare for things like that. Properly supporting tablets is more than just supporting a different screen size, it's often a completely different UI that must be supported in the same app... Also, can you give some hints how the future way is planned? Will there be a Honeycomb for smartphones with a different UI? Will tablet and smartphone APIs remain compatible? (You know the problem with the bad long f word... ;)) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Amazon to Policy Android Market Place
On Jan 7, 8:38 am, ko5tik kpriblo...@yahoo.com wrote: lmor...@earthcam.com wrote: I don't, because for some bizarre reason they are making it US-only! What on earth are they thinking? Selling all over the world is mayor PITA - all the different tax regulations, payment providers... Let me guess - you're American, right? Out here in the rest of the world, if we took that attitude, we'd be out of business. So we sell to anyone who will pay, and cope with the complexity - and it turns out to be not as complex as you fear. But in the specific case of Amazon, they have no such excuse: they are a huge company that is already selling worldwide. If they can do it for books, CDs and everything else, why can't they do it for apps? Not to speak of US export restrictions - you sell some funny app to iran providing picture entertainment to males and go straight in jail for aiding international terrorism. If they can get that right for all their other products, they can do it for apps too. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get screen density in pixels-per-inch or equivalent
On Jan 12, 8:33 pm, Dianne Hackborn hack...@android.com wrote: Unfortunately, I don't have a good solution if you want to get the real exactly screen dots per inch. One thing you could do is compare xdpi/ydpi with densityDpi and if they are significantly far apart, assume the values are bad and just fall back on densityDpi as an approximation. Be careful on this, because a correctly working device may have densityDpi fairly different than the real dpi -- for example the Samsung TAB uses high density even though its screen's really density is a fair amount lower than 240. Thanks Dianne. What's going on with the Tab? Its true dpi, which it does accurately report in the xdpi and ydpi fields, is about 170. I could imagine that a tablet might be typically held further from the face than a phone, hence the dpi that should be used to control the size of graphic elements etc. might be set to a different value - but surely, it should be set to a lower value, shouldn't it? Yet you're saying it reports a higher value. Huh? What were they thinking? I've also just looked at my AC100 (Tegra 250), and it reports xdpi = 160, yet the correct value should be about 120. As you say, this seems to be completely broken, and the Tegra example shows that 96 cannot be used as a sentinel for a wrong value. Oh well. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: searching in HUGE SQLite database
On Jan 14, 2:24 pm, Menion menion.as...@gmail.com wrote: CREATE TABLE tiles (x INTEGER,y INTEGER,z INTEGER,s INTEGER,image BYTE, PRIMARY KEY (x, y, z, s)); SELECT DISTINCT z FROM tiles You need to create an index on z, then it will be much faster. disk I/O error That's not good, but it will be hard to debug. If you just create an index it will be so much faster that it probably won't hit the bug any more. Or, if you do get the error, you could just retry. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Simple compass functionality
On Jan 11, 5:00 pm, Phil Endecott spam_from_goo...@chezphil.org wrote: There is a deprecated method Display.getOrientation(). Perhaps that is what I'm supposed to use, however its docs seem to have been removed when it was deprecated (Please Don't Do That!). Googling suggests that perhaps it returns values like Configuration.ORIENTATION_PORTRAIT and Configuration.ORIENTATION_LANDSCAPE, i.e. not including left or right or upside-down information, making it useless. Experimenting with the Google Maps app, it seems that its compass arrow points the wrong way in one of the two landscape orientations. So my guess is that it is using Display.getOrientation(), and then guessing wrongly 50% of the time if the answer is landscape. (It doesn't seem to allow upside-down portrait.) Is there really no better way to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Simple compass functionality
It seems that Display.getOrientation() probably returns the same constants as the new Display.getRotation(), i.e. Surface.ROTATION_n, and that it *does* potentially return all 4 values. Good. It's unfortunate that this information was removed from the docs when getOrientation() was deprecated: could it be re-instated? I now cannot understand why Google Maps gets its compass pointer wrong half the time, but I'm glad I discovered that now, rather than while actually trying to use it for navigation! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Loader files deletion
On Jan 14, 1:38 pm, Andy myandroa...@gmail.com wrote: Hi, I have a dictionary app, and its loads all the data from the Loader text files (as raw files), into SQL lite database initially. Why not ship a prepopulated SQLlite database file? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get screen density in pixels-per-inch or equivalent
On Jan 14, 5:26 pm, Dianne Hackborn hack...@android.com wrote: On Fri, Jan 14, 2011 at 8:30 AM, Phil Endecott spam_from_goo...@chezphil.org wrote: Thanks Dianne. What's going on with the Tab? Its true dpi, which it does accurately report in the xdpi and ydpi fields, is about 170. I could imagine that a tablet might be typically held further from the face than a phone, hence the dpi that should be used to control the size of graphic elements etc. might be set to a different value - but surely, it should be set to a lower value, shouldn't it? I think I got this the wrong way around. The Tab has a higher value, which is what you would expect for a tablet rather than a phone. Out of curiosity, what are you trying to do? Two things; I have maps where I might need to show an actual miles per inch-equivalent scale, though I now think that's impossible, and also to select things like font sizes. I appreciate that the quantised density values are appropriate for the latter, though it is slightly complicated by the fact that I also support iOS devices whose density values don't align with your choice of quantisation; if I get an Android device whose screen has the same dimensions as an iPad, I'd rather use the iPad graphics that I already have. So I'd like to quantise the actual density to a slightly different set of values than the ones you've chosen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: C++ exception support confusion
support for C++ exceptions and RTTI is not available with Android 1.5 system images. Do you care about devices running Android 1.5 and older? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get screen density in pixels-per-inch or equivalent
Note that some devices don't correctly report actual resolution (xdpi / ydpi). Does some devices include anything that I care about? How wrong is the value? Answering my own question: yes, it is wrong on my Motorola Defy, which returns 96. Googling tells me it is wrong on quite a lot of devices from Motorola. Aaarrgg. So: is the value 96 that I see a sentinel that I can use to detect this bug? I.e. do all/most devices with this bug return 96? If so, I'll trap 96 and substitute something else, e.g. DisplayMetrics.displayDpi(), which I trust is more reliable. If 96 is not the only wrong answer, can anyone suggest some other way to detect a bogus value here? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get screen density in pixels-per-inch or equivalent
Hi Richard, On Jan 12, 6:54 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: Did you try fetching the scale that will allow you to convert from DPI to actual screen pixels? I found this very reliable: final scale = getContext().getResources().getDisplayMetrics().density; The description of that says: on a 160dpi screen this density value will be 1; on a 120 dpi screen it would be .75; etc. Then multiply scale by one inch of pixels in DPI resolution (depending on the screen you're on) - 120, 160, 240, 320. This API call ... int densityDpi = getContext().getResources().getDisplayMetrics().densityDpi; will tell you the density of the screen you're on. Approximately. So, this will tell you how many screen pixels equate to an inch. I'm not at all sure that it does. Then you can use that to lay out your ruler markings: int pxPerInch = 340; // default value - note it's a new density in API version 9. switch(densityDpi){ case DisplayMetrics.DENSITY_LOW: pxPerInch = 120 * scale; break; case DisplayMetrics.DENSITY_MEDIUM: pxPerInch = 160 * scale; break; case DisplayMetrics.DENSITY_HIGH: pxPerInch = 240 * scale; break; } Note that the values of those constants DENSITY_* are their numeric values, so there is no need for the case statement; you can just write: pxPerInch = densityDpi * scale; However, I really don't think that does what you believe it does. I think that densityDpi reliably gives the approximate dpi, and density just gives densityDpi/160. Multiplying them together doesn't do anything useful. But I could be wrong! Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Simple compass functionality
I'm now trying to understand how to allow for the display orientation in my simple compass calculation, since I don't think there is an API that does that for me. It looks like the right way to get this is getWindowManager().getDefaultDisplay().getRotation() which returns values Surface.ROTATION_0 ... Surface.ROTATION_270. But that is only available in API version 8, which I don't have. There is a deprecated method Display.getOrientation(). Perhaps that is what I'm supposed to use, however its docs seem to have been removed when it was deprecated (Please Don't Do That!). Googling suggests that perhaps it returns values like Configuration.ORIENTATION_PORTRAIT and Configuration.ORIENTATION_LANDSCAPE, i.e. not including left or right or upside-down information, making it useless. Surely there must be some easy way to do this? (Related question: compass calibration. Is there ever anything like the iPhone's calibration dialog? I wasted much of this morning thinking there was something wrong with my code, until I realised that the compass also didn't work in Google Maps on my Galaxy Tab. I spent a few minutes slowly turning the device on each axis a few times and it now works better. This is the sort of issue that users will blame on the app, and that will be impossible to debug remotely...) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Simple compass functionality
Dear Experts, I'm trying to understand how to get simple compass functionality working, i.e. I have a map that I want to add a facing this way arrow to. I don't need other orientation angles i.e. it's not Augmented Reality, but I do need it to work correctly as the display orientation changes. I know about magnetic deviation but will overlook it in this post. As far as I can see, there is a reasonably simple deprecated method: I getDefaultSensor(TYPE_ORIENTATION), and use values[0]. It's unfortunate that this is deprecated. The replacement for this deprecated method seems to be: 1. getDefaultSensor(TYPE_GRAVITY) and getDefaultSensor(TYPE_MAGNETIC_FIELD) 2. When I have new values from both sensors (which don't necessarily arrive at the same rate), pass them to getRotationMatrix() and then pass the rotation matrix to getOrientation() to get the angles. ...but that doesn't allow for the display orientation. I think that I need to get that (from where?) and subtract it from the result. ...and I also don't think it does the right thing when I am holding the device near-vertically. Say you're standing, facing East, holding the device in front of your face, viewing a map; it will have East at the top. But if you tilt the device so it is slightly overhanging, this method will flip it so that West is at the top, won't it? That's certainly not what the user would expect. ...and I don't really think the accelerometer is needed for this. I think the accelerometer is only really needed to get the two other outputs (pitch and roll) from getOrientation() that I ignore. Though I may be wrong about that, if I fix the previous issue, due to varying magnetic dip angles. So, has anyone else worked out how all of this should hang together? Is there some simpler API somewhere that I have missed? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Amazon to Policy Android Market Place
On Jan 5, 10:05 pm, Leon Moreyn-Android Development lmor...@earthcam.com wrote: I am curious as to other developers take on this and how many plan to actually develop to meet the amazon market guidelines. I don't, because for some bizarre reason they are making it US-only! What on earth are they thinking? If it weren't for that, the next concern would be their pricing model that allows them to sell your app for next-to-nothing if they want to (e.g. buy one, get one free offers etc). Until it's clear how aligned their algorithm for that is with our interests, I would be cautious. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Making a video of your app running
Some devices have HDMI or composite video out, which you could record in numerous ways. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 many refunds do you get.
On Jan 1, 8:14 pm, brian purgert brianpurge...@gmail.com wrote: Im not sure if people just don't like my game or they are finishing it fast, but out of 52 sales, 14 refunded it. That's much better than my ratio at present, which is about 50%, and seems to have got worse since the refund period was reduced to 15 mins. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 many refunds do you get.
Hi Ernest, On Jan 2, 7:25 pm, ernestw ernest...@gmail.com wrote: Phil, 50% refunds would make me worry a lot if it were my game. Yes. Actually it's not a game, it's a map app, and it has a large data download when it first runs; I suspect some people are discouraged by that. I did this as a toe in the water to see how it sells compared to the iOS version (same code), and the answer is a 200X difference. So it has served its purpose... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get screen density in pixels-per-inch or equivalent
Hi All, Imagine trying to display an accurate ruler on the screen, or something like that. I'd like to know the screen's pixel density in pixels-per-inch, or equivalently its dimensions in mm and resolution in pixels, so that I know the accurate physical size of the thing that I'm drawing. Is there any way to get this info? Failing that, I'm aware that the system knows the approximate density (one of three values IIRC). How can I retrieve this programatically? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get screen density in pixels-per-inch or equivalent
Thanks Kostya, this is just what I needed. On Dec 31, 12:42 pm, Kostya Vasilyev kmans...@gmail.com wrote: Phil, This has both rounded (mdpi, ldpi, etc.) values and actual resolution, that you'd want to use for a ruler: http://developer.android.com/reference/android/util/DisplayMetrics.html Note that some devices don't correctly report actual resolution (xdpi / ydpi). Does some devices include anything that I care about? How wrong is the value? Are there any popular devices where x and y density are different? Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: compatible-screens and uses-gl-texture ?
Hi Mario, On Dec 12, 9:14 pm, Mario Zechner badlogicga...@gmail.com wrote: I think the only thing needed is a manifest tag that let's you specify the OpenGL ES profile you want to work have available. This doesn't tell me if the implementation has enough texture units or user clip planes etc. That feature is already there but it seems some devices don't report it correctly. Everything else can and should be checked at runtime. Why do you say that? In particular, emulating user clip planes in OpenGL ES 1.1 is almost impossible and most implementations provide several of them. I would much prefer to filter out those few devices that don't in the market. That's what the extension string is for. Actually, you can even check for GLES2 support via EGL. Adding all possible OpenGL extensions to the manifest file will result in a lot of pain for everyone. Why? And given that manufacturers aren't capable of letting their devices return the GLES profile i wouldn't rely on any manifest attributes the market tries to check anyways in case of OpenGL. Well I would expect the market client to call glGetString() / glGetIntegerv() to get the values to compare with, so it would use the same value that the app would test at runtime. Most drivers have horrible problems and manufacturers don't give a damn. Yes, there are certainly some bugs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: compatible-screens and uses-gl-texture ?
On Dec 12, 12:46 am, Dianne Hackborn hack...@android.com wrote: On Sat, Dec 11, 2010 at 4:17 PM, Phil Endecott spam_from_goo...@chezphil.org wrote: If you can describe supported texture formats, I would think this is very similar, no? Not really, because texture formats are very clear -- you either have them or you don't. How is I need 4 user clip planes any less clear? Either it has them or it doesn't. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: compatible-screens and uses-gl-texture ?
On Dec 12, 3:53 pm, Dianne Hackborn hack...@android.com wrote: The feature expression is I need X, and Y, and Z. Maybe in the future there will be ways to express greater than, and A or B... but on the other-hand, making this so complicated has a lot of pit falls as well. Don't overcomplicate it. 99% of reqirements are satisfied by and greater than, i.e. I need = 4 user clip planes and = 3 texture units. Don't let the theoretical possibility that someone might want to say I need exactly 2 user clip planes and anisotropic filtering OR less than 6 user clip planes and non-power-of-two mipmaps stop you from implementing the basic functionality. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Notification assistance.
Hi Damien, On Dec 12, 4:13 am, Damien Cooke cooke.dam...@gmail.com wrote: In ios I can post notifications that can be listed for by other objects. Write your own replacement. On iOS I use my own simple notification system, because Apple's version is overcomplicated. For most cases it's almost trivial to do; it only gets complicated if you need to worry about threads, queuing, merging multiple notifications and things like that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: compatible-screens and uses-gl-texture ?
Re uses-gl-texture, there are some other OpenGL features that an app might want to test, including the number of texture units and the number of user-defined clip planes. The app I've just released works on PowerVR hardware but not on Tegra because of this, and it would be great to be able to advertise this in the manifest. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: compatible-screens and uses-gl-texture ?
Hi Dianne, On Dec 11, 11:15 pm, Dianne Hackborn hack...@android.com wrote: On Sat, Dec 11, 2010 at 2:30 PM, Phil Endecott spam_from_goo...@chezphil.org wrote: Re uses-gl-texture, there are some other OpenGL features that an app might want to test, including the number of texture units and the number of user-defined clip planes. The app I've just released works on PowerVR hardware but not on Tegra because of this, and it would be great to be able to advertise this in the manifest. It is really hard to have a way for an application to consistent specify this kind of information in a way that will consistently work. If you can describe supported texture formats, I would think this is very similar, no? For the most part, you really should be looking at Android development as PC development, and adjust at runtime for the environment you are in. Well I don't do PC development, I do iPhone development, where I only have one OpenGL implementation to worry about. My recently-ported app works on those Android devices that have the same hardware as the iPhone, i.e. the PowerVR. That's certainly the majority of interesting devices at present. Yes, I could change the code to work on other hardware and I probably will eventually do so; the main obstacle is the need to buy a lot more phones for testing (I've already spent £1300 on Android devices and it looks like that will take a few years to recoup at current sales levels). In the meantime, it would be great if users with incompatible devices could not buy the app in the market, rather than having to use up my pathetic 325 characters of description with hardware compatibility information. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Tablet would you get
On Dec 9, 10:33 pm, Howard M. Harte hhar...@gmail.com wrote: Last, I bought the Vewsonic gTablet to debug some native code that was segfaulting on tegra2. The CPU is great, and I love that it has a USB host port, but now I'm convinced I'm not a fan of the 10 form factor. The biggest drawback is easily the display, which has a weird viewing angle. I guess it's the same as the Toshiba Folio 100 (which I've played with) and the AC100 (which I own). The viewing angle is quite poor compared to the Galaxy Tab or the iPad, though not as bad as the even- cheaper tablets. But that's not an inevitable consequence of the 10 form-factor, as the iPad demonstrates. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 general consensus on the non-Android affiliated app stores?
On Dec 9, 3:10 pm, Rich aguynamedr...@gmail.com wrote: I have gotten a few emails from proprietary app stores that offer distribution to their network of devices that don't come with the Android Market. Are these a sham? Are there any legit ones that stand out? I've also been looking into this. Alongside these stores, you should consider selling the download directly from your own website as people with these non-market devices will also be able to install things in that way. My expectation would be to get very modest download numbers, so my main consideration is the level of admin overhead. I looked at SlideMe, and it seems to be more bureaucratic than even Google or Apple! (You have to send them an invoice before they will pay you.) If anyone can suggest other stores that are really easy to set up and use, it would be interesting to hear about them. Maybe Amazon will be good, but their obvious deficiency is their geographic limitation. Regards, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: OpenGL on multiple threads with sharegroups
Hi Adam, On Dec 6, 11:26 am, Adam Hammer adamhamm...@gmail.com wrote: Yes, it does. Not sure exactly what you're replying to there. Maybe this: Does Android really implement EGL? Anyway, based on this: http://groups.google.com/group/android-ndk/browse_thread/thread/6d60f6bcc5cec83a (See Dianne Hackborn's reply dated Dec 1, 6:48 am) I've decided not to try to create multiple contexts in different threads for the time being, since they're unlikely to work reliably. Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Strategies for large apps
On Nov 29, 11:15 pm, Phil Endecott spam_from_goo...@chezphil.org wrote: Dear All, I have just discovered that the Android Market limits apps to a maximum size of 25 MB. Is that really true? - Download the data when the app first runs. Well I've now found the example code here: http://code.google.com/p/apps-for-android/source/browse/trunk/Samples/Downloader/README.txt and this seems to do what I need, albeit in a rather clunky fashion. I would be interested to hear about how others have dealt with this. Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Detect touch event on a OpenGL object
I've read about picking in OpenGL Beware that selection mode is not available in OpenGL ES. I want to understand if there are other solutions. You have various options, but none is simple: 1. unproject from the (x,y) screen coordinates to a ray in model space, and work out which object(s) intersect that ray. 2. unproject from the (x,y) screen coordinates and the corresponding z coordinate from the depth buffer to a point in model space, and work out which object includes that point. 3. Draw your entire scene a second time into an off-screen framebuffer (possibly at lower resolution), but instead of using the objects' actual textures or colours, use a unique colour for each object. Then just look at the colour in this framebuffer at the selected (x,y) point, and you can decode the corresponding object. These are all general techniques. Sometimes your application will have characteristics that let you do something simpler, e.g. a constrained projection or object layout. Good luck! Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Detect touch event on a OpenGL object
gl.glColor4f(colorCount, 0, 0, 1); markers.get(i).draw(); colorCount++; but unfortunately it doesn't work. The color remains always white (0,0,0,1) in RGBA. White is 1,1,1,1. The colour components passed to glColor4f are floats and should range between 0 and 1. So colorCount++ is probably not what you want. Maybe it will work if you do colorCount+=0.01. But I suggest using glColour4ub (if that's available in the Java binding) as that lets you pass bytes and you know you'll get the exact same values back without any float-to-int conversion issues. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Types of multitouch on deployed devices
Dear All, I'm looking at these three hardware uses-features: android.hardware.touchscreen android.hardware.touchscreen.multitouch android.hardware.touchscreen.multitouch.distinct Is anyone aware of any data, like the version distribution at http://developer.android.com/resources/dashboard/platform-versions.html, that describes what fractions of available devices support each feature? I'm guessing that all of the current and recent high end phones support the distinct feature - is that reasonable? Also, in the multitouch but not distinct case, how will my code see those touches? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Strategies for large apps
Dear All, I have just discovered that the Android Market limits apps to a maximum size of 25 MB. Is that really true? My most popular iPhone apps are 68 MB, 180 MB and 318 MB respectively. Although I have one of them ported now, I can't sell it in its current form. So my options are probably: - Substantially strip down the content in the Android versions. - Distribute the app not via the Market. - Download the data when the app first runs. - Wait and see if this size limit is changed (*). Only the third option seems sane. I do have server infrastructure that could be used; the main challenge is the required code. The apps currently consist almost entirely of C++ OpenGL with a very minimal Java wrapper (literally one page). If I download from C++ I need to write an OpenGL GUI to display while it happens. If I download from Java, well, I need to learn about 20 times more Java than I know right now; in either case, I need to learn a whole load of stuff about the filesystem layout. So I'm hoping that someone can either suggest a work-around, or perhaps point me to some nice example code that accomplishes this, or maybe would even offer to do it for me ($!) (*) I mention the possibility that it might change because (a) there is now the install to SD option in 2.2, and (b) there do seem to be changes afoot in the market. It would be great to get some feedback about that, but presumably it is secret. Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: OpenGL on multiple threads with sharegroups
On Nov 26, 5:29 am, String sterling.ud...@googlemail.com wrote: Is that an OpenGL ES feature, or something specific to iOS? My understanding is that creating OpenGL contexts is always platform- specific. EGL seems to define textures and vertex buffers as shared by default; see section 2.4 of the EGL spec (http://www.khronos.org/registry/egl/ specs/eglspec.1.4.20101006.pdf). Does Android claim to support EGL? Earlier I found another post saying that this didn't work, but now I can't find it... Generally, all your Android threads run in one process, and it's not hard to share data between them. Might it be possible to save your OpenGL context from your rendering thread, then use it to create textures in another thread? You would need a mutex since there is so much state in the context (currently bound texture, etc). So it would be easier to move everything onto one thread. Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: OpenGL on multiple threads with sharegroups
On Nov 26, 11:08 am, Adam Hammer adamhamm...@gmail.com wrote: I do bitmap loading in another thread, but I do glBindTexture in the main graphics thread. Works well for me, I load bitmaps stored in zips delivered by contentproviders into textures. Yes; thanks; I'm actually doing something like that at the moment, and it's not ideal. (I think you mean calling glTexImage2D(), not just glBindTexture(), don't you?) I think opengl es does have mechanisms for sharing textures across GL contexts Yes. I've investigated some more and eglCreateContext() takes an EGLContext to share from: If share_context is not EGL_NO_CONTEXT, then all shareable data ... will be shared by share_context ... and the newly created context (from the EGL spec, section 3.7.1.) So the question is, can I call eglCreateContext() from my C++ code, and/or is there a way to access this functionality from Java? Looking through the Java docs I have found the EGLContext and EGLContextFactory reference pages, but they are almost totally content- free. Does Android really implement EGL? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OpenGL on multiple threads with sharegroups
Dear All, I'm porting some iPhone OpenGL code that uses a separate thread for OpenGL texture loading. To do this, I create a new OpenGL context in the same sharegroup as the main rendering context, and then the textures loaded in one context are available to the other. I've not seen any equivalent to this on Android. Is this correct, or am I missing something? My code is C++, but as far as I can see the situation is the same for Java OpenGL code. Thanks for any suggestions. Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Selling app from own website
Dear All, I have an app in preparation that will be most useful on tablet devices. Although I'll sell it on Google's Android Market, many of the tablet devices that are best suited for running the app don't have that. I will probably also sell the app via some of the other manufacturer stores, but I'm also considering selling it direct from my own website. I have some experience with paypal payment processing and enabling time-limited downloads, so I can probably put that together reasonably easily. But there are two issues that I'm unsure about: one is piracy, which I suspect I can't do much about, and the other is how to supply updates to users who have bought previous versions. If anyone has experience with selling apps from their own site, I would love to hear about how you have done it. Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: redirecting printf
Hi Dhaval, On Nov 15, 9:48 pm, Dhaval dhaval.shre...@gmail.com wrote: Hello all, I'm trying to use a c library for my android project and I need to redirect the output from printf to Logcat. After spending sometime looking into a solution for this, I stumbled across:http://developer.android.com/guide/developing/tools/adb.html#logcat Which indicates we should be able to do something like this: $ adb shell stop $ adb shell setprop log.redirect-stdio true $ adb shell start I tried this and haven't had much luck. Should this work as easily as that? Am I missing something? I fell into the same trap. It doesn't work. The docs are wrong. See this thread: http://groups.google.com/group/android-ndk/browse_thread/thread/1f40777f4c4e27ea/7b34b69669a46ab0?lnk=gstq=stdout#7b34b69669a46ab0 And several other threads on the android-ndk 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] Re: Product images for marketing materials
On Nov 13, 1:24 am, dan raaka danra...@gmail.com wrote: http://www.samsung.com/us/support/contact Thanks Dan. Actually I had spent quite a long time on the phone trying to find the right person at Samsung before I posted here. The closest I was able to find was their press relations team, but they didn't return my calls. The flyers are now done, but with only Apple product images. Those of you who are also iPhone developers will know that they have an artwork license agreement that you print out and mail to them to get permission to use the product images. At the time I thought this was a bit bureaucratic, but it's better than having nothing at all! This raises the more general question of who our contacts with the industry are supposed to be. Do we talk to Google, or to the product vendors? Google do seem to have some points of contact, but my (brief) research can't find any significant developer support contacts or resources from Samsung, HTC or Motorola. Am I looking in the wrong places? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Making window full-screen on Galaxy Tab
Dear All, I have a simple app that is mostly native-code OpenGL with about a page of Java to interface to it. On my new Galaxy Tab, it creates a window that is about 480x800 pixels, while on other devices (including an AC100 with a larger screen) it fills the whole screen. Searching the web, it seems that this affects many existing apps when they are run on this device, and there is plenty of end-user advice about how to make apps fill the screen. But I've failed to find any advice about how I should do it from within the app. My current Java code is not much more than this: public class FooActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); gl_view = new FooGLSurfaceView(this); setContentView(gl_view); } .. } My impression is that that will generally create a full-screen view on devices other than the Galaxy Tab. I've experimented with passing a ViewGroup.LayoutParams(FILL_PARENT,FILL_PARENT) as a second parameter to setContentView, but that doesn't change anything. From what I understand of the docs, I should perhaps be changing the window properties to ask for full-screen mode, but it's not obvious to me how to do that; how do I get the current window? Can anyone help? Many thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Making window full-screen on Galaxy Tab
OK, I've found the supports-screens thing - it works! Sorry for the noise. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 2.2 - Portable Hot Spot - WifiManager class
Mark, Thanks for your reply. I'm not sure when my original message got approved - I missed it and your reply - and in the meantime found this for myself in the source code. Interestingly there must be another way to do this than through the official hidden API as there is at least one hot spot widget in the marketplace already. I tried writing a spoof version of android.net.wifi.WifiManager which allowed me to compile and deploy the code, but this results in a noSuchMethod error at runtime - so the @hide annotation applies not just to what gets put into the SDK API that I compile against in Eclipse - although the Reflection API shows that these methods are present. Thanks again, Phil. On Nov 9, 8:58 pm, Mark Murphy mmur...@commonsware.com wrote: They are not part of the public SDK at present. If you look at the source code, you will see they all have the @hide annotation. They might be introduced in the future, but for the moment they are hidden, perhaps because the API is unstable. On Tue, Nov 9, 2010 at 5:04 AM, Phil p...@surfsoftconsulting.com wrote: I'm looking at how Android supports wifi portable hot spot functionality with a view to writing simple home screen widget that allows people toturnthe phone's wifi hotspot on and off without digging into the device settings. There was nothing obvious at developer.android.com so I dug through my copy of the Android source code and found that the WifiManager class (android.net.wifi.WifiManager) provides the basics to allow the state to be queried. So as well as 'getWifiState()' there is 'getWifiApState()' and a matching set of state constants. However, in my bang-up-to-date Eclipse IDE, this class has none of the Apmethods or constants. Can anyone shed any light on this? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.2 - Portable Hot Spot - WifiManager class
Mark, Yes, what I am doing is first and foremost for my own benefit and not a financial one... I've not decided whether to put this out as a free download in the app store yet. I have something working now and it's been a satisfying puzzle to crack. I gather that this approach might be used to provide tethering on 2.2 devices that don't have the capability enabled by the carrier. Personally I'd rather Google bundle a widget if they're not yet willing to make the API public. I find myself frequently needing to turn the AP on for a few minutes before turning it off again on client premises. Phil. On Nov 11, 6:31 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Nov 11, 2010 at 7:53 AM, Phil p...@surfsoftconsulting.com wrote: Interestingly there must be another way to do this than through the official hidden API as there is at least one hot spot widget in the marketplace already. Oh, well, there are known tricks for dealing with hidden APIs. Those tricks are highly unreliable over time, as there is no guarantee they will work on any given Android release or device, which is why I generally don't talk about them. I tried writing a spoof version of android.net.wifi.WifiManager which allowed me to compile and deploy the code, but this results in a noSuchMethod error at runtime I'll be somewhat surprised if your spoof trick will work. although the Reflection API shows that these methods are present. Which means that you already know a trick for dealing with hidden APIs. I VERY SERIOUSLY DISCOURAGE THE USE OF TRICKS LIKE THIS BY COMPANIES SMALLER THAN $1 BILLION IN MARKET CAP. (figuring that anybody who's that big can afford to field the team required to test, support, and maintain their hack over time) Any solo developer or tiny firm playing games like this is simply begging for crap Market ratings, and too many users posting too many crap Market ratings spells trouble for Android in the long term. While I am sure what you have in mind is very very cool, please don't distribute it. If all you're doing, though, is writing something for yourself, have at it. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.2 - Portable Hot Spot - WifiManager class
I think if a small company is willing to put out such a widget they should also be willing to keep up with API updates, or pull the widget. Personally, having solved the problem, I will use this for a while and if it proves reliable I will strongly consider pushing it out as a freebie. After all, if I find it useful then I will want to use and maintain it until such time as it is superseded by a built-in widget. As for crap market ratings, my experience as a user is that even good products get crap ratings when the user doesn't understand them properly. If the widget is unable to function as designed, it needs to inform the user of this fact. If the user understands why the widget won't work, then they are less likely to take their frustration out on the supplier of said widget. Personally I think Google had it right with the distribution model for the Nexus One; I've just picked up a Galaxy Tab (which supports AP on Vodofone UK) and the stock applications have been replaced or 'enhanced' for no obvious reason, which I think is some of the reason behind bad reviews from (eg) Gizmodo. If Google didn't have to kowtow to the networks then AP functionality probably wouldn't have been marked as hidden in the first place. On Nov 11, 8:01 pm, Pent tas...@dinglisch.net wrote: Any solo developer or tiny firm playing games like this is simply begging for crap Market ratings, and too many users posting too many crap Market ratings spells trouble for Android in the long term. Meanwhile, back in RL, my experience is that I get 1-stars for *not* adding such functions when there are competing apps available that have done it. If the developers of Android don't want people using particular functions in a stock ROM they need to put a permission on them. If it's just 'hidden' the profit motive means someone will use it and everyone else has to follow. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Product images for marketing materials
Dear All, What do people know about rights to reproduce device graphics for web sites and marketing materials? I have some great images of the Galaxy Tab that were published with their launch press release, and I have assembled a flyer showing my app running on it. However, my printer won't print it unless I can convince him that I have the right to do so. I've spent a long time trying to reach the right person at Samsung but so far without any luck (you are in a twisty maze of telephone menu options, press 1 to abandon hope). So, I'm wondering if anyone has any experience to share or perhaps suggestions of other manufacturers whose material is published with a clear re-use rights statement. If not, the flyer is only going to have pictures of Apple devices on it, which would be unfortunate. Many thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Product images for marketing materials
I am not a lawyer No, that quite clear. I'm not asking for legal advice, and certainly not from a non-lawyer who doesn't even know what country I'm in. I'm looking for pointers to product images that have clear re-use terms associated with them. Can anyone 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: Product images for marketing materials
Your printer is a douchebag Somehow I just knew that I would get replies like this... Is there anyone out there who can offer a sensible reply? Do any Android device vendors publish product images with terms that allow developers to re-use them? Is anyone from Samsung reading this 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] Android 2.2 - Portable Hot Spot - WifiManager class
I'm looking at how Android supports wifi portable hot spot functionality with a view to writing simple home screen widget that allows people to turn the phone's wifi hotspot on and off without digging into the device settings. There was nothing obvious at developer.android.com so I dug through my copy of the Android source code and found that the WifiManager class (android.net.wifi.WifiManager) provides the basics to allow the state to be queried. So as well as 'getWifiState()' there is 'getWifiApState()' and a matching set of state constants. However, in my bang-up-to-date Eclipse IDE, this class has none of the Ap methods or constants. Can anyone shed any light on this? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Failed to upload .apk on device
I had this same error come up after successfully uploading to my android device many times. My solution was to use a different USB cable. I've read a different USB port might also solve the issue. On Aug 17, 10:36 pm, Lukas Adamec luk.ada...@gmail.com wrote: Phone has debugging allowed and I've set android:debuggable=true in manifest. Is it what that what you mean? It's not solve my problem. On 18 srp, 03:46, Jenus Dong jenus.ne...@gmail.com wrote: You should set the phone to debug allowed. Cause your apk is packaged with debug signature. Try it. On Tue, Aug 17, 2010 at 4:47 PM, Lukas Adamec luk.ada...@gmail.com wrote: I've checked what you adviced me, but the problem hasn't been solved. Here is log from DDMS: [2010-08-17 10:29:50 - ddms]transfer error: Permission denied [2010-08-17 10:29:50 - Device]Unable to open sync connection! reason: Unable to upload file: Permission denied Device runs on Android 1.5, so I've set minSdkVersion=3 in manifest and target=android-3 in default.properties. When I copy .apk to SD card, application runs normally. But in Eclipse not. I need debugging, so I need run it from Eclipse. I don't know, what is wrong. On 16 srp, 15:49, RichardC richard.crit...@googlemail.com wrote: I can't seen anything in your manifest that might be a problem. Things to try/check: Have you set the flag - settings Application Unknown sources ? Try setting targetSdkVersion to 4 in your manifest On Aug 16, 5:27 am, Lukas Adamec luk.ada...@gmail.com wrote: AndroidManifest.xml: ?xml version=1.0 encoding=utf-8 ? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=cz.xadamec1.apps.bitmap android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name android:debuggable=true activity android:name=.BitmapDrawing 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 uses-sdk android:minSdkVersion=3 / /manifest On 15 srp, 21:13, RichardC richard.crit...@googlemail.com wrote: Can we see your manifest please? On Aug 15, 7:43 pm, LukasAdamecluk.ada...@gmail.com wrote: If somebody dealt with this kind of problem, could you give me some advice. I would really appreciate it. Thanks On 12 srp, 14:47, LukasAdamecluk.ada...@gmail.com wrote: Hi, I have problem with uploading my .apk file on device Highscreen Zeus. In emulator everything works fine, but when I can upload application on the device, I always get following error: [2010-08-12 14:41:25 - BitmapDrawing] Failed to upload BitmapDrawing.apk on device 'ZUSM1M10A02691' [2010-08-12 14:41:25 - BitmapDrawing] java.io.IOException: Unable to upload file: Permission denied [2010-08-12 14:41:25 - BitmapDrawing] Launch canceled! Could somebody advise me, how to solve this problem? Thanks a lot. Lukas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Routing audio input to bluetooth headset
In 2.2, check out android.media.AudioManager: startBluetoothSco() and setBluetoothScoOn() One thing to watch out for, however, is: If you pair up a bluetooth headset, and start the SCO connection to record the bluetooth input, any phone calls you take will now control the bluetooth connection. On Jul 22, 10:58 am, Garima garimasrivastava.gar...@gmail.com wrote: Is it possible to record an audio (not a phone call) using the bluetooth input and not the device microphone? I am able to playback whatever am saying through device's mic but am not able to figure out how to use the bluetooth mic instead. Any assistance would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to prevent phone from taking control of BT SCO connection
In 2.2, I have an active Bluetooth SCO connection to a BT headset, outside of a phone call. Is there a way to prevent the phone from taking control of the BT SCO connection for the phone call, and/or prevent the phone from dropping the BT SCO connection when the call ends? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 much does an Nexus One cost?
https://www.google.com/phone/ I just bought two of the unlocked (no contract) N1s for a client project. According to the site they are still available. For development they are great. If it were for my own use, however, I would seek out an eBay one as John mentioned. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Simple Question about Res folders
They are there to allow your app to display icons, etc of different sizes, for different devices. For example, H.D. icons are 72x72, MD are 48x48 and LD are 36x36. On Jul 2, 10:37 am, B Woods bradleydeanwo...@gmail.com wrote: What are the differences between drawable-hdpi, drawable-ldpi, and drawable-mdpi? Do I need to place my graphics in each of these folders? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Stanford researchers looking for a programmer in Silicon Valley to write code for two Android apps
I'm also looking for two Android developers in the bay area - so if you get too many replies Eric, please send them my way.. I have a similar research project, but it's passively collecting data for use in a new type of security approach - perhaps we could get together and compare notes, as our data collection may be similar.. Phil Montgomery Majura LLC phil.montgom...@majura.com On May 27, 6:11 pm, Eric Hekler ehek...@stanford.edu wrote: Dear programmers, Our group, led by Dr. Abby King of the Stanford Prevention Research Center-School of Medicine and Dr. Banny Banerjee of the Stanford Design Program, is looking to hire a programmer with experience developing for the Android platform. Specifically, we are looking for someone with experience in Java, PHP, and SQL Database. We are developing a mobile-phone based platform that passively monitors individuals’ behaviors and promotes increased physical activity and decreased sedentary behaviors. We have already developed the conceptual framework for two different intervention applications and have also created a starting framework for gathering data from the built-in accelerometers of Android-based phones. *We are looking for a programmer to write the code for the programs prototyped by the transdisciplinary team.* The Android-based applications include several elements: 1) background assessment of activity (we can share code on what we’ve already developed for this); 2) live wallpaper that is linked to a user’s behavior; and 3) a mixture of Push and Pull interaction for providing feedback and increased interactivity between the user and the application. Our design team has already developed most of the graphic artwork and we are developing flow diagrams and other general instructions for a programmer to use to code. All interested individuals should contact, Dr. Eric Hekler at ehek...@stanford.edu (650-721-2516). Please include your resume. Payment is commensurate with experience. We are looking to hire someone ASAP -- Eric Hekler, Ph.D. Post Doctoral Research Fellow Stanford Prevention Research Center Medical School Office Building: Mail Code 5411 251 Campus Drive Stanford, CA 94305-5411 Office # (650) 721-2516 Fax: 650-725-6247 Email: ehek...@stanford.edu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Looking for interns as Android Developers
Hi all I know I've left my run a bit late for this summer, but if there are any students looking for intern roles over the summer who want to get involved in an exciting Android research project, then I have two positions available in the San Francisco bay area (Pleasanton on the East Bay to be precise). Majura (www.majura.com) was recently founded to build a completely new approach to device security - we've already been able to garner a lot of attention and significant funding. We're looking for two interns right now to help complete our initial proof-of-concept. We don't care about years of experience and a one inch thick resume - rather we want people that understand the new wave of non-PC devices, and of course know how to develop on these platforms - if you're really talented Linux programmer, we'll even teach you how to do Android development. A mathematics background would be useful, as we have some heavy duty algorithms in our approach. A passion for the coming wave of non-PC devices is essential - we're not just building apps here, but a whole infrastructure service that is targeted at business (initially) and then consumers. Android is just our initial platform, and we're planning to extend this to any system, such as Smartgrid. The founders are extremely experienced and have bought and sold numerous companies, building businesses from $0 to $100M in four years, and making people rich in the process. We also like to have fun in the office and often have business meetings out on a hike in the nearby parks - none of those sterile silicon valley offices for us! I know the website is lame right now so don't complain. And we're not hiring beyond interns right now, and do really need them local - once we kick this into the next phase we'll start general hiring. Look forward to hearing from you! Phil Montgomery Founder www.majura.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to config Android screen from landscape to portrait
My LCD hardware is 800x600 size, so after booting, the Android default screen is landscape. How do I modify the framework to let android show default portrait screen? I hope all booting procedures are portrait. for example, when booting, the Android logo and banner shows on screen are portrait. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 2-D Graphics Performance after Motorola Droid 2.1 Update
I have observed a marked difference in frame rate of 2-D (Canvas) graphics following a 2.1 update on the Motorola Droid. Details are here: http://tesujigames.blogspot.com/2010/04/2-d-graphics-slowdown-after-motorola.html Can anyone else corroborate this? I have posted the code and an apk in the above blog entry. Also, it would be interesting to know whether there is a difference between manual and OTA updates. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update
No. Only the Motorola Droid with 2.1 seems to be affected, and only 2D graphics, not OpenGL. On Apr 2, 3:55 pm, Ralf Schneider li...@gestaltgeber.com wrote: UUUhh! Does this mean the Nexus One would be faster if it would use 2.0.1? Is OpenGL affected, too? This would explain why it is nearly impossible to reach 60FPS, even if only doing a glClear... ... There is so much idle time! Does Android 2.1 try to keep an upper limit of 30 FPS to save battery? So, many questions! 2010/4/2 MrChaz mrchazmob...@googlemail.com Wow that is a big difference in performance! On Apr 2, 6:29 pm, Phil tesujiga...@gmail.com wrote: I have observed a marked difference in frame rate of 2-D (Canvas) graphics following a 2.1 update on the Motorola Droid. Details are here: http://tesujigames.blogspot.com/2010/04/2-d-graphics-slowdown-after-m... Can anyone else corroborate this? I have posted the code and an apk in the above blog entry. Also, it would be interesting to know whether there is a difference between manual and OTA updates. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update
Emmanuel, my test uses only 2D (Canvas) graphics. Are these also limited to 30fps? What about the Droid? What exactly does fill- limited mean? I have not heard of this limitation before. On Apr 2, 9:16 pm, Emmanuel emmanuel.ast...@gmail.com wrote: I think the Nexus One can't go above 30 FPS in OGL because of the screen resolution : It is fill limited Emmanuelhttp://androidblogger.blogspot.com/http://www.alocaly.com/ On Apr 2, 9:55 pm, Ralf Schneider li...@gestaltgeber.com wrote: UUUhh! Does this mean the Nexus One would be faster if it would use 2.0.1? Is OpenGL affected, too? This would explain why it is nearly impossible to reach 60FPS, even if only doing a glClear... ... There is so much idle time! Does Android 2.1 try to keep an upper limit of 30 FPS to save battery? So, many questions! 2010/4/2 MrChaz mrchazmob...@googlemail.com Wow that is a big difference in performance! On Apr 2, 6:29 pm, Phil tesujiga...@gmail.com wrote: I have observed a marked difference in frame rate of 2-D (Canvas) graphics following a 2.1 update on the Motorola Droid. Details are here: http://tesujigames.blogspot.com/2010/04/2-d-graphics-slowdown-after-m... Can anyone else corroborate this? I have posted the code and an apk in the above blog entry. Also, it would be interesting to know whether there is a difference between manual and OTA updates. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update
patbenatar, Verizon started the rollout of 2.1 to Droid devices earlier this week. If it has been halted, it's news to me. On Apr 2, 10:30 pm, patbenatar patbena...@gmail.com wrote: If you updated to 2.1, you must have root and have installed some custom ROM, correct? Motorola has not yet rolled out 2.1 updates [and from what I've been hearing they've put it on some sort of indefinite hiatus] so any version of 2.1 you're running is not OFFICIALLY built for Droid... Maybe the ROM is the reason for this behavior? What ROM are you running? On Apr 2, 6:16 pm, Emmanuel emmanuel.ast...@gmail.com wrote: I think the Nexus One can't go above 30 FPS in OGL because of the screen resolution : It is fill limited Emmanuelhttp://androidblogger.blogspot.com/http://www.alocaly.com/ On Apr 2, 9:55 pm, Ralf Schneider li...@gestaltgeber.com wrote: UUUhh! Does this mean the Nexus One would be faster if it would use 2.0.1? Is OpenGL affected, too? This would explain why it is nearly impossible to reach 60FPS, even if only doing a glClear... ... There is so much idle time! Does Android 2.1 try to keep an upper limit of 30 FPS to save battery? So, many questions! 2010/4/2 MrChaz mrchazmob...@googlemail.com Wow that is a big difference in performance! On Apr 2, 6:29 pm, Phil tesujiga...@gmail.com wrote: I have observed a marked difference in frame rate of 2-D (Canvas) graphics following a 2.1 update on the Motorola Droid. Details are here: http://tesujigames.blogspot.com/2010/04/2-d-graphics-slowdown-after-m... Can anyone else corroborate this? I have posted the code and an apk in the above blog entry. Also, it would be interesting to know whether there is a difference between manual and OTA updates. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] R.xml cannot be resolved
In case anyone is interested (I might be saving your life here) I had the error - R.xml cannot be resolved - no visible solution - on a GLS project. h. After looking in R.java I found an auto generated class XML.java (I think) was not there and should have been. I guessed the solution - impossible to work it out exactly yourself! Solution? It needed a new folder in res: res\xml and a file called default_values.xml in there. Then all OK. Just in case you have not got that file its: (less than) ?xml version=1.0 encoding=utf-8? (greater than) (less than) PreferenceScreen xmlns:android=http://schemas.android.com/ apk/res/android (greater than) (less than/) PreferenceScreen (greater than) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Astro File Manager java sources ?
hello, i am developping a Management Application that has similar features than the Astro File Manager Application, mainly the process/services/ apps montoring feature GUI. Do you know if the java sources for the Application are available somewhere .. Not found right now seem not open source software ... Thanks in advance philippe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en