[android-developers] Re: Auto hiddable side button bar/tool bar
Hi Kostya, I started to play with sliding drawer and it seems it can do the trick. My issue for now is that I cannot set the correct size... I would like the drawer to extend just enough for its content, but it seems pretty random, I tried a number of combination for width and height specifications, but it seems that I can only do "all of the screen height" or "most of the screen height" (do not ask why and when it does "most" instead of "all", it seems to escape any logic). The issue is that I cannot make it extend just the height / width of the buttons. Is it the normal behaviour? Thanks JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Auto hiddable side button bar/tool bar
Hi there, room on screen being fairly "expensive" on small devices, I would like to implement a button/tool bar that would automatically show and hide from the side of the screen. When the user would tap anywhere on the screen, the bar would unfold and would fold back if there is no user input for a few seconds. The optionsmenu does not work well for me as I need 7 to 9 items visible at the first glance. This button bar would contain buttons, but "menu-like-buttons" as well (with an itent attached). I have started to look into SliddingDrawer but I am not sure I can have it completely invisible when folded. If you have seen something that I can use as a base, many thanks for the hint. Thanks in advance, JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 display search button in actionbar on tablet (app minSdk = 8)
I do fully agree with the process, but apparently, with these requirements (supporting x to honeycomb), we are cornered with using build targets *above* the minSdk level which is really begging for troubles. Google dropped the ball at the last hurdle. If the XML code for tablets (showAsAction, for example) would have compiled with lower SDKs, we could have kept "low" build targets and be sure that the application will run and compile from the low end of the supported range. This is still a liability at runtime, but we can exclude it from loading with resource qualifiers. This way, and with the compatibility package, developpers would have developed 3.0 compatible application much easier and much safer as well. This is really disapointing. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 display search button in actionbar on tablet (app minSdk = 8)
This is proving much harder than I thought... Basically, in order to show a search item in the action bar (or any item) I need to set "showAsAction" in my menu. In order to do that, I need to build with SDK >= 11. If I build with SDK >=11, I am at risk of including some code that will fail badly on SDK 8 to 10 devices... I have tried the API Analysis plugin from the adt addons (http:// code.google.com/p/adt-addons/), but for some reason, it does not seem to work. Other people talk about a dupplicatte build ant task that would build against minAPI, but that is late in the process (in my case after comitting code to version control). It feels like the way Google are managing upward compatibility is fairly lightweight. I wonder how other people are doing. I am definitely not the only one trying to build an application that would run from FROYO to HONEYCOMB and that would have a search button! Please help ;). JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 display search button in actionbar on tablet (app minSdk = 8)
Hi Mark, I cannot get "android:showAsAction" to be recognised/accepted in my project (minSDK = 8, targetSDK = 11). Eclipse tells me : "error: No resource identifier found for attribute 'showAsAction' in package 'android'". Is that supposed to work with projects below 11? That would mean that application with minSDK below 11 cannot do search on tablets? Cannot be right? I must be doing something wrong somewhere. > > - I am using search to trigger a custom action in a custom activity > > (still like a search, but not really a search). Think about a navigation application with some POIs in the DB. On search, I am allowing the user to search POIs in the neibourghood, indicating distance and bearing... > > - furthermore I am using long press on serach as well. Like the above, but this time, the user is so much in a hurry that they just want to choose amongst the nearest POIs, no type, no actual search (because it is better than crashlanding ;)). Thanks for your interest. JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 display search button in actionbar on tablet (app minSdk = 8)
Hi guys, I just (late and fairly stupidly) realised that one of the big differences of Honeycomb is the lack of "always there standard buttons" (home, back, search, menu). Home seems to be there all the time, as well as back (at least it is for my app). I found out how to get my menu back (target a SDK below 11), but I have been Googling for last 3 hours in order to discover how to get a search button in the action bar and I failed... So to make sure things are in perspective: - my app min SDK is 8; - I'd like to have the same code accross the board - I am using search to trigger a custom action in a custom activity (still like a search, but not really a search). - furthermore I am using long press on serach as well. How can I have that on tablets whithout ruining the "other users" experience or write a specific SDK 11+ version. Many thanks, JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Garbage collector running every second... Normal?
No Kris, I just did not think about it, and apparently it does (trigger ANR). I have transformed my service in IntentService and I have not had the problem since. I think it is solved, but it was a bit touch and go I am not 100% suree yet. Thanks JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Garbage collector running every second... Normal?
Thank you guys, I will look into this. This stated, after a bit of investigation, I was probably barking at the wrong tree. I have added a saving of a trace file that I have put into a service (thinking that it would not have an impact) but it seems that this is the culprit. The work happens in onStart, but it sometimles trigger ANR anyway. Investigating... Thanks, JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Garbage collector running every second... Normal?
It is a navigation app. Basiaclly I have a service that gets GPS location every second, stores it in an array, and that array is passed to the display activity thru a bundle (using IPC)... So yes a fairly large amount of data. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Garbage collector running every second... Normal?
Forgot to paste my logcat output : 10-06 18:44:21.072: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2294 objects / 83544 bytes in 141ms 10-06 18:44:22.350: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2288 objects / 82976 bytes in 221ms 10-06 18:44:23.360: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 3141 objects / 119880 bytes in 136ms 10-06 18:44:24.320: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2405 objects / 88208 bytes in 155ms 10-06 18:44:25.372: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2298 objects / 83872 bytes in 156ms 10-06 18:44:26.399: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2294 objects / 83368 bytes in 137ms 10-06 18:44:27.930: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2299 objects / 83920 bytes in 153ms 10-06 18:44:28.890: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2294 objects / 83552 bytes in 150ms 10-06 18:44:29.910: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2312 objects / 84432 bytes in 148ms 10-06 18:44:30.960: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2296 objects / 83536 bytes in 160ms -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Garbage collector running every second... Normal?
Hi guys, my app was all working well, but I have added a few features and now the emulator runs my PC CPU fairly hot, I had a couple of ANR exceptions, and the garbage collector is running every second. I assume this is not really normal. Unless you thinnk it is (right) could you please tell me how to track the cullprit? I am not really sure to start. Many thanks in advance. JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Serializable subclass of non-serializable class
Daniel, sorry to be a pain in the bum, but there are still 2 things I cannot figure out. First I am not sure what you mean by DTO, but from what I understand it is basicaly a place holder for the data in my non-serilizable class. I understand how to transfer dta (the one I care about) between LocationDTO and Location. Then, how am I stopping the default process to try to serialize the Location parent object. At thye moment I am doing nothing, this is all happening by default. If you would have a link on some doc or an example that would greato- smashing-fantastic ;). JM On 5 oct, 17:41, Daniel Drozdzewski wrote: > On 5 October 2011 16:20, Jean-Michel wrote: > > > No, I am serialising to disk. > > > Do you think it could work out? > > > Any idea how to use Parcelable ? > > > Many thanks, > > Jean-Michel > > Jean-Michel, > > Parcelable is used for inter-process communication and is designed > specifically for that (i.e. passing the data between services and > activities). > > In order to save it to disk, you have to create mentioned DTO. > > It can sound serious, but it is simple: > > class LocationDTO implements Serializable { > > //all properties extracted from Location that you need > //... with all getters and setters. > > } > > When you need to preserve the location, you create this DTO, populate > all properties yourDTO.setAcuracy(yourLocation.getAcuracy()); > > ... and preserve this DTO. Then when you need it back in memory, you > deserialise this DTO, create new Location object and populate its > properties from DTO. > > -- > Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Serializable subclass of non-serializable class
No, I am serialising to disk. Do you think it could work out? Any idea how to use Parcelable ? Many thanks, Jean-Michel On 5 oct, 16:43, Daniel Drozdzewski wrote: > Now luckily for you, Location in Android implements Parcelable > interface, which could be of help, depending where are you sending to > and receiveing from your Leg/Location related data. > If it is within the same machine between a service and an activity, > then you are fine. If you are passing it via network, you need to > implement a DTO, that implements Serializeable and holds all the > necessary data that you depend on. You then pass that DTO and with its > help you create new Location object at the receiving end. > > HTH > > -- > Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Serializable subclass of non-serializable class
Hi there, I am hitting a brickwall with serialization of a subclass of Location (probably more a Java question actuall, but let's try anyway). Location is not serializable. I have a first subclass called FALocation that does not have any instance variables. I have declared it serializable. Then I have a second class called Waypoint that looks like this: public class Waypoint extends FALocation implements Serializable { /** * */ private static final long serialVersionUID = 1L; /* Class variables ***/ private static int CLASS_VERSION=1; //Used to version parcels /* Instance variables / private transient String type=DataHelper.PT_TYPE_US; private transient String country; private transient String name=null; private transient String description=null; private transient int elevation = 0; private transient int population = 0; // Afterthought, added to match the DB structure /* Constructors **/ public Waypoint() { super(); } public Waypoint(double lat, double lon, String name, String description) { super(lat, lon); this.setName(name); this.setDescription(description); } public Waypoint(Location l) { super(l); } public Waypoint(String provider) { super(provider); } /* Implementing serializable */ private void writeObject(java.io.ObjectOutputStream out) throws IOException { Log.v("DroidFA", "Serialising \"%s\" (v%d).", Waypoint.class.getSimpleName(), CLASS_VERSION); out.writeInt(CLASS_VERSION); out.writeObject(type); out.writeObject(country); out.writeObject(name); out.writeObject(description); out.writeInt(elevation); out.writeInt(population); } private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { int serialClassVersion = in.readInt(); Log.v("DroidFA", "Deserialising \"%s\" (v%d).", Waypoint.class.getSimpleName(),serialClassVersion); type = (String) in.readObject(); country = (String) in.readObject(); name = (String) in.readObject(); description = (String) in.readObject(); elevation = in.readInt(); population = in.readInt(); } } Serialization works fine. Deseriamization produces the followwing exception (the leg object contains a waypoint).: 10-05 13:50:35.259: WARN/System.err(7867): java.io.InvalidClassException: android.location.Location; IllegalAccessException 10-05 13:50:35.267: WARN/System.err(7867): at java.io.ObjectInputStream.resolveConstructorClass(ObjectInputStream.java: 2010) 10-05 13:50:35.267: WARN/System.err(7867): at java.io.ObjectInputStream.readNewObject(ObjectInputStream.java:2095) 10-05 13:50:35.267: WARN/System.err(7867): at java.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java: 929) 10-05 13:50:35.267: WARN/System.err(7867): at java.io.ObjectInputStream.readObject(ObjectInputStream.java:2285) 10-05 13:50:35.278: WARN/System.err(7867): at java.io.ObjectInputStream.readObject(ObjectInputStream.java:2240) 10-05 13:50:35.278: WARN/System.err(7867): at com.droidfa.navigation.Leg.readObject(Leg.java:262) .../... Any help will be greatly appreciated. Many thanks in advance, Jean-Michel -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 database form example
Just for the record, Delphi or the Apple dev framewiork do not generate edit dialog, they rather do the opposite. You "draw" your dialog, "bind" widgets to your data(source) and the rest of it is automated. You have actually 0 line of code to write to do a simple DB edit form, even a master-detail from, just draw the page. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 database form example
I was afraid it would end up like that... Gone the Delphi days, gone... Gone the Objective-C days, gone... Thanks Steven -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ES File Explorer 1.6.0.6 does not return path in data.getPath() anymore...
Thanks Kostya, but in order to avoid reliance on external package I have now integrated my own file picker. A bit of pain in the sohort term, but probabaly a whise thing to do in the long run. Regards, JM > > > > > On Fri, Sep 30, 2011 at 4:37 PM, Jean-Michel > > wrote: > >> filepath used to conatin the path, now it looks like "/8067" > >> In the debugger, the data it self contains this : > >> content://com.estrongs.files/8067 > > They switched to using a content provider, apparently. > > >> A lot of developper/apps seem to rely on this to select a file, that > >> is going to be pretty embarassing... > > You might want to point this out to them. > > >> Thanks for suggesting alternative options, > > Somebody out there probably has a file-picker you can directly embed > > in your app via a JAR or Android library project. If not, consider OI > > File Manager: > > >http://www.openintents.org/en/filemanager > > -- > Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Simple database form example
Hi guys, I need to do a simpple form to edit data in my SQLite db and it seems that you need to do pretty everything "by hand". I want the user to select records into a listview, then a dialog would open allowing the user to edit data and save it. I am a bit prerplexed that there is not much in the jkit to make developper's life simple in this kind of situation. Any hint or pointers welcome. JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ES File Explorer 1.6.0.6 does not return path in data.getPath() anymore...
Hi guys, I used to rely on ES File Explorer in my app to select files and open them but it seems the last version of ES File Explorer has changed and it does not reteurn the path in the calling activity anymore. Any one noticed that ? Any suggestion for an alternative ? I do not need complex file manipulation, just choosing, but it is a real pain that Android does not come with some emebeded component. Here is my code : public void doImport (View v) { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("text/*"); startActivityForResult(intent, ACT_TARGET_SEL_FILE_FOR_IMPORT); } protected void onActivityResult(int requestCode, int resultCode, Intent data) { // One activity that did start with "forResult" did finish switch(requestCode){ case ACT_TARGET_SEL_FILE_FOR_IMPORT: if(resultCode==RESULT_OK){ String filePath = data.getData().getPath(); // Code removed break; default: Log.v(getString(R.string.debug_tag),String.format("%s: no valid request code.",this.getClass().getSimpleName())); } } filepath used to conatin the path, now it looks like "/8067" In the debugger, the data it self contains this : content://com.estrongs.files/8067 A lot of developper/apps seem to rely on this to select a file, that is going to be pretty embarassing... Thanks for suggesting alternative options, JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Permission denial on ACCESS_FINE_LOCATION on Samsung Galaxy (other GPS apps work)
I did that and it worked Mark, thank you very much. I am not even sure how it got there, probabl a mistake of myself in the GUI... Thanks again, JM On 30 sep, 19:08, Mark Murphy wrote: > Get rid of android:permission="android.permission.ACCESS_FINE_LOCATION" > from -- you are declaring that anything that tries to > launch your application needs ACCESS_FINE_LOCATION. > > On Fri, Sep 30, 2011 at 12:54 PM, Jean-Michel > > > > > > > > > > wrote: > > Ok, I was able to reproduce the problem in the emaulator. > > > It only happens on 2.3.3 (or from) and only with an installed app (app > > pushed from Eclipse is OK). > > > Still have no idea where it comes from... > > > Should I add the individual permissiopns on the activities? > > > Here is my permission file. > > > > > http://schemas.android.com/apk/res/android"; > > android:versionCode="1" > > package="com.droidfa" android:versionName="0.1a"> > > > > > android:name="android.permission.ACCESS_FINE_LOCATION" /> > > > android:name="android.permission.ACCESS_COARSE_LOCATION" /> > > > android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"> > uses-permission> > > > android:name="android.permission.WRITE_EXTERNAL_STORAGE"> > permission> > > > uses-permission> > > > > android:permission="android.permission.ACCESS_FINE_LOCATION" > > android:theme="@android:style/Theme.Black"> > > > android:name="com.droidfa.ControlPanel" > > android:launchMode="singleTask"> > > > > > > > android:name="android.intent.category.LAUNCHER" /> > > > > > > > android:label="@string/nav_manager_notification_title"> > > > > > activity> > > > > > android:name="com.droidfa.navigation.NavigationFPLoader"> > > > activity> > > > > > android:excludeFromRecents="true"> > > > android:theme="@android:style/Theme.Dialog" > > android:excludeFromRecents="true"> > > > service> > > > > > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, 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 > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0 > Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Permission denial on ACCESS_FINE_LOCATION on Samsung Galaxy (other GPS apps work)
Ok, I was able to reproduce the problem in the emaulator. It only happens on 2.3.3 (or from) and only with an installed app (app pushed from Eclipse is OK). Still have no idea where it comes from... Should I add the individual permissiopns on the activities? Here is my permission file. http://schemas.android.com/apk/res/android"; android:versionCode="1" package="com.droidfa" android:versionName="0.1a"> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Permission denial on ACCESS_FINE_LOCATION on Samsung Galaxy (other GPS apps work)
Hey Kostya, no the permissions are at the application level. Mark, re the rooted phone, I asked the guy, but he has not replied yet. JM On 30 sep, 15:02, Kostya Vasilyev wrote: > In addition to what Mark already said... > > ... make sure you don't have a permission="ACCESS_FINE_LOCATION" inside > in the manifest, like this: > > android:name=".ControlPanel" > android:permission="android.permission.ACCESS_FINE_LOCATION"> > ... > > > Feel free to post the manifest, if you like. > > -- Kostya > > 30.09.2011 16:41, Mark Murphy пишет: > > > > > > > > > > > That seems odd. Are you sure the user has a stock ROM? > > > On Fri, Sep 30, 2011 at 8:32 AM, Jean-Michel > > wrote: > >> Hi there, > >> just released my first app to beta testers and real life (the one with > >> real users) caught me... > > >> One of them has a Samsung Galaxy phone and he cannot launched the > >> application (had something along the lines of "application not > >> installed"). > > >> He sent me his logs and the interesting line seems to ba that one : > >> 09-30 13:16:33.027 W/ActivityManager( 125): Permission Denial: > >> starting Intent { act=android.intent.action.MAIN flg=0x1000 > >> cmp=com.droidfa/.ControlPanel } from ProcessRecord{40967030 > >> 30906:com.android.packageinstaller/10054} (pid=30906, uid=10054) > >> requires android.permission.ACCESS_FINE_LOCATION. > > >> The issue is that other GPS applications work fine on his phone (GPS > >> Test). > > >> He are the permissiopns from my manifest. > >> >> android:name="android.permission.ACCESS_FINE_LOCATION" /> > >> >> android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"> >> uses-permission> > >> >> android:name="android.permission.WRITE_EXTERNAL_STORAGE"> >> permission> > >> >> permission> > > >> Many thanks in advance for your help. > > >> JM > > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "Android Developers" group. > >> To post to this group, send email to android-developers@googlegroups.com > >> To unsubscribe from this group, send email to > >> android-developers+unsubscr...@googlegroups.com > >> For more options, visit this group at > >>http://groups.google.com/group/android-developers?hl=en > > -- > Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Permission denial on ACCESS_FINE_LOCATION on Samsung Galaxy (other GPS apps work)
Hi there, just released my first app to beta testers and real life (the one with real users) caught me... One of them has a Samsung Galaxy phone and he cannot launched the application (had something along the lines of "application not installed"). He sent me his logs and the interesting line seems to ba that one : 09-30 13:16:33.027 W/ActivityManager( 125): Permission Denial: starting Intent { act=android.intent.action.MAIN flg=0x1000 cmp=com.droidfa/.ControlPanel } from ProcessRecord{40967030 30906:com.android.packageinstaller/10054} (pid=30906, uid=10054) requires android.permission.ACCESS_FINE_LOCATION. The issue is that other GPS applications work fine on his phone (GPS Test). He are the permissiopns from my manifest. Many thanks in advance for your help. JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Managing beta testers / beta program
I was actually wondering about this kind of things as well. >From my quick search, ACRA would send the developper information on an application crash but is there an equivalent tool to capture the logs for example and send them from withiong the application. This can prove useful when the application does not crash but still misbehaves. Regards, JM On 28 sep, 21:08, b0b wrote: > The real only meaningful beta test is releasing the app on the Market so > anyone can be a beta tester. > Set an expiration date for the app and state clearly it is a beta. Any other > beta test is anecdotic. > Configure your app to automatically report all crashes online using ACRA or > similar. > I did such a large scale beta test and the number of various crash reports, > platform fails and oddities is astounding. > It could run super well for your selected beta testers yet fail for random > people that will download your app. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Managing beta testers / beta program
> it with a control group. It serves no purpose to have a large scale test > until you have most of the easy to find bugs out of the system. The general > public gets frustrated easily and they'll remember bad experiences and > forget good ones. Best to keep the general public out of the test until > you're reasonably sure your app works on a variety of devices and OS > versions. > > -John Coryat I would agree with that. Especially as a beginner in the Android space. JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Managing beta testers / beta program
Hi there, I am at the point where I question releasing my application out in the wild, but before that I would like to go through a beta phase with beta testers recruited thru some forum (not my friends from childhood I mean). I am stunned that it seems Google did not plan for this at all... I am keen to have beta testers, but not so much that an unlimited/ unrestricted app leaks all over the place. This question has been asked already and I was wondering is there were any new news on the topic... Basically, if I issue them an application with a limited lifespan siging key, I won't be able to use this key on the market (because of the 2033 thingy). If I use adifferent key on the market, my beta testers will have to uninstall the application before being able to install the final version and they will lose their data. If I issue a debug signed application, it can go everywhere unless I do something (possibly complicated) in my app to restrict it to the "beta crowd"... I am not even thinking about giving the final app for free because it seems it is another can of worms. Any idea welcome, thanks in advance. JM -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Defining custom drawables in XML
Erm... I concede, this would create some security challenges, but it is a pity there is such a limitation. Being able to use custom drawables in the XML would certainly simplify the life of a lot of developpers. Thanks for your reply anyway. JM On Sep 12, 9:18 am, Romain Guy wrote: > Hi, > > Custom drawables are not allowed from XML, mostly for security reasons. XML > drawables can be loaded as resources by other processes (including Launcher > or the system process) and it would be a terrible idea to run random 3rd > party code in these processes. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Defining custom drawables in XML
Hi there, I am trying to implement my own custom drawable to draw triangles (this is an example) by extending ShapeDrawable. Writing the component was OK. Using the component in the code is OK. I cam to a brick wall when trying to use the drawable only in XML. Example of myDrawable.xml: I have been crawling the web all day about this and it seems that this cannot be done. It is actually not possible ? (The code seem to tell it is not) If it cannot be done this is disapointing as it almost defeat the purpose of drawable outside what is provided by Google. Furthermore, it is does not seem so massively complicated. Looking at Drawable.createFromXmlInner(Resources r, XmlPullParser parser, AttributeSet attrs), it feels fairly easy to use introspection and check that "name" is or not a class from the project that extends Drawable. The same idea could be extended to ShapeDrawable when the name of the shape in unknown. Thanks for your help anyway. Jean-Michel -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 use AudioRecord and AudioTrack
Hi there, Looks like sipdroid (www.sipdroid.org) is using AudioTrack and AudioRecord for their SIP client. Go to the "Browse source" page and look at trunk > src > org > sipdroid > media > RtpStreamReceiver.java and RtpStreamSender.java, and search respectively for "track" and "record". On Apr 30, 7:07 am, Thomson wrote: > Hi, > I want to use AudioRecord and AudioTrack classes(in SDK 1.5) in > my program. > Where can I find how to use it. Is there any API demo program for > this?. > If not it is greatly appreciated if someone can post a sample code in > this forum > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android 1.5: How do we use the AudioTrack class?
Blindfold, I can get onMarkerReached() called for a STATIC AudioTrack instance. A few things you might want to try: - the marker position must be set in frames, not bytes. So make sure you're not giving a marker position that's not beyond your content. For instance if your content is stereo/8bit, you must divide the size by two, by four for stereo/16bit, to go from data size to frame count. - try setting a really low value for your marker position, like 10, to see if it gets called. - if all that still doesn't work, I'd start checking in which thread the callback is supposed to be called. By default it's in the same thread as the one in which you created your AudioTrack instance. If you want it to be called from a different thread, use setPlaybackPositionUpdateListener(listener, handler) where you pass the handler of the thread you want to use. Hope this helps. On May 1, 3:37 am, blindfold wrote: > Should I file a bug report for Cupcake's onMarkerReached() > inAudioTrackplayback? The only workaround I currently have for > onMarkerReached() never getting invoked is to explicitly poll > getPlaybackHeadPosition(), while taking into account extra margins for > sample rates 11025 and 22050 because there the getPlaybackHeadPosition > () does not quite reach the expected end values - as described in my > previous post. > > Regards > > On Apr 30, 10:02 pm, blindfold wrote: > > > Has anybody had any success with OnPlaybackPositionUpdateListener? I'm > > successfully playing one-second PCM sound clips withAudioTrackin > > MODE_STATIC mode (although the playback often appears truncated), but > > no matter what I do, onMarkerReached() is never called. I set > > setNotificationMarkerPosition() to a position a bit less than my > > sample count. I do not have any such problems with its MediaPlayer > > counterpart setOnCompletionListener(). I simply want onMarkerReached() > > to run when myAudioTrackinstance has finished playing, but the > > getPlayState() remains PLAYSTATE_PLAYING after myAudioTrackhas > > finished sounding. What might be wrong? What does it take to get > >AudioTrackto run onMarkerReached() at the end of the data? Any > > concrete sample code for this that works? > > > Another strange thing is that at the end of a one second sound at > > sample rate 16000, getPlaybackHeadPosition() returns 16000 as > > expected, but for a sample rate of 22050 getPlaybackHeadPosition() > > becomes consistently 22016, for a sample rate of 11025 > > getPlaybackHeadPosition() becomes 11008, while for a sample rate of > > 8000 the getPlaybackHeadPosition() returns consistently 8000 again. > > Are the discrepancies for sample rates of 11025 and 22050 due to > > rounding inaccuracies in theAudioTracksample rate divider? > > > 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 -~--~~~~--~~--~--~---