[android-developers] How to make sure an app is eligible to use REQUEST_IGNORE_BATTERY_OPTIMIZATIONS permission?
Our app is a location app that will run in background and report user’s locations to server so that his members can track them. In Android 6, because of the Automatic Battery Optimisation (Doze mode), our app couldn’t report user’s location to server because the Data Connection was disconnected. We found out that an app can actually make use of the permission REQUEST_IGNORE_BATTERY_OPTIMIZATIONS so that it can be whitelisted for battery optimisation without user’s interaction. However, we are not sure if we are allowed to use that permission because there’s no clear definition on what kind of app can use it, and in developer forum, we read some developers posting that their apps got removed from Play Store because Google thinks their app are not eligible to use the permission. We would like to seek your advise, that how can we make sure we are allowed to use this permission? Thank you very much! -- 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/757aaf82-7681-4fab-9147-1948d867fb04%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Can Android support NTFS-3G file system?
Dear all, I tried to make Android to support NTFS file system. First, I modified menuconfig in kernel, like File systems --- * FUSE (Filesystem in Userspace) support DOS/FAT/NT Filesystems --- [*] NTFS write support So, I can mount the sdcard of NTFS but it can't be written. After google, I found NTFS-3G should support read/write NTFS. NTFS-3G can be compiler directly on linux distribution, like # ./configure # make # make install The last step will copy a lot of head files, scripts into relative folders. I want to put NTFS-3G to arm base Android. So I used arm-2009q3 toolchain to compiler source codes completely. Now I got a big problem. I can't type # make install command in Android system. Because the install process will create several new folders, like /usr/ local/include/ntfs-3g/bitmap.h In the Android system, these folders can't be created. How can I put NTFS-3G binary files into Android? Have anyone implement NTFS-3G on Android? Or give me some suggestions? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] WebView email support
Hi, Can anyone tell me if there was a change from 1.6 to 2.0 in the support for email in a WebView. In android 1.6 I used to be able to mouse click on a web page email link (WebView) and it would activate the email activity and take that email address and drop it into a email module. In android 2.0 it just returns Unsupported action - that action is not currently supported message. How can I change this so when I click on the email address, on a web page, it takes me to email with the address I clicked on placed in the to: box? Thanks in advance, Lawrence -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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.0 SDK is here!
Now just waiting for Android 2.0 Firmware for the Google Dev 1 Phone... So can actually test apps. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
I could be wrong here but I think there is something that should be pointed out about the added libraries situation. I also had this problem: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] and the threads in this email assisted in solving the problem. The situation I want to point out is that when building a standard java application in eclipse we include the libraries necessary for the application to run. They in turn are added to the class path and/or added to the jar file as part of the application. It seems that the situation in android is slightly different. The added libraries are not added to the .apk file but included in the environment, i.e., in the AVD and the developer needs to construct/build it. My question: Does this mean that any and every application that needs a library like maps.jar file does not need to duplicate it in their environment? If one application specifies a need for the maps.jar, other application will have maps.jar available to them? Where are the specification for how libraries and resources are shared out of the sandbox? Thank you for any help, Lawrence On Sep 4, 9:21 am, Marco Schmitz netzprofi.ma...@googlemail.com wrote: maybe its just that simple: choose eclipse to export the library for you. it can be found there where you can add exernal jars and stuff... greetings darolla --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 the network camped event
Hi, i am wondering how to get noticed once the phone has been successfully registered to a valid network. Anybody has a point on this? Thanks, Lawrrence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 system make. error 45
Hi Andrew, Not only lack # symbole but also lack parameter type. So need to modified it to be following: * further and longer, when used with {...@link #setFinalX(int)} or {...@link #setFinalY(int)}. Following is the function definction of setFinalX in Scroller.java: public void setFinalX(int newX) { } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 system make. error 45
This problem is caused by not only lack # symbol but alos lack the parameter data type. So Scroller.java, line 365 should be modified to be following: --- * further and longer, when used with {...@link #setFinalX(int)} or {...@link #setFinalY(int) --- Following is setFinalX function definition in Scroller.java: --- public void setFinalX(int newX) { mFinalX = newX; mDeltaX = mFinalX - mStartX; mFinished = false; } --- On 5月7日, 上午9時38分, Andrew Shomette twilightwol...@gmail.com wrote: I'd like to chip in and say that I also have the error... I am also running 64-bit 9.10 ubuntu. I am a newb, but I can help a bit... First, is it only on this specific version of Ubuntu? Does anyone else have this error on another system? Second, I modified the file Scroller.java, line 365 from: * further and longer, when used with {...@link #setFinalX()} or {...@link setFinalY()}. to: * further and longer, when used with {...@link #setFinalX()} or {...@link #setFinalY()}. for consistancy... also failed. However, with the change, the javadoc returns only warnings and outputs a readable javadoc. Thanks, twilightwolf90 On May 6, 6:37 pm, cary cary.lo...@gmail.com wrote: Wow. This was frustrating. I was having the exact same problem. I am a nube to the Java and eclipse stuff and on top of that I had to get Ubuntu 9.04 for AMD 64 Dual Core running. Anyway, the Error 45 is generated in the build/coreidroiddocs.mk make file if javadocs command fails. The error generating line is: || (rm -rf $(PRIVATE_OUT_DIR) $(PRIVATE_SRC_LIST_FILE); exit 45) This appears twice: once for droiddocs and once for javadocs - don't ask me what the difference is. This file hides all the details from us so debugging requires an expert. I removed the exit 45 and enabled some extra output (like removing the -quiet option from the javadocs command and removing the $(hide) . Eventually I got to an actual error description - cannot resolve {...@link #setFinalX()} and { c...@link setFinalY()} links in this comment segment in (android root)/ frameworks/base/cor/java/android/widget/Scroller.java. /** * Extend the scroll animation. This allows a running animation to scroll * further and longer, when used with {...@link #setFinalX()} or {...@link setFinalY()}. * * @param extend Additional time to scroll in milliseconds. * @see #setFinalX(int) * @see #setFinalY(int){...@link setFinalY()} */ As I said, I am a nube. I would not have expected a comment field to generate errors. Apparently the javadocs command scours the code files for specially formatted comment fields to automatically generate documentation that someone finds useful. So even if the code compiles, the special comment fields can crash the javadocs function. I removed the @link phrased from this file, and viola the make file could progress. Eventually I ran into more errors that I was unable to debug, so far, but I was eventually able to complete the make process. While debugging, I was using make docs to isolate the problem. In this mode, at least, several javadocs are generated, each getting a new folder in (android root)/out/target/comman/docs and once completed the empty file *-timestamp is created in the same directory. The offline-sdk-timestamp should be generated when the offline-sdk documents have been successfully generated. The -offline-sdk- timestamp is used to signal make that these documents have already been generated. Since these documentation files should not be essential (for now, at least) you should be able to get around the problem by created the *-timestamp file with: touch (android root)/out/target/common/docs/offline-sdk-timestamp specifying the appropriate (android root) directory and the timestamp file given in the error 45 decsription This should let you finish the build, or a least progress beyound the javadoc portion. On Apr 20, 9:54 am, murray kmoore...@gmail.com wrote: I think this must be a conspiracy of some sort, as I too have had the same issue for many weeks now... I have not been able to get an answer from this forum or any other.. google dev is not talking... why?...who really shot Kennedy? I'll take either answer..thanks On Apr 16, 4:20 am, pcstal...@gmail.com pcstal...@gmail.com wrote: hi there guys. im trying to make the latest android system. ive gotten past quite a few errors on my own. but i have been stoped dead in my tracks here. im makeing the system. and around 3 to 4 minutes into it. i get line after line
[android-developers] Re: how to get the network camped event
Any guy can kindly give me a point? On May 7, 5:06 pm, Lawrence lejie.zh...@gmail.com wrote: Hi, i am wondering how to get noticed once the phone has been successfully registered to a valid network. Anybody has a point on this? Thanks, Lawrrence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] where is APN setting stored in emulator/device?
Dear all, I am wondering where is APN setting stored in emulator/devices. and what's its file format, in xml or anything else? Thanks, Lawrrence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SystemProperties.get()/set()
Anybody has any idea on this? On 4月1日, 下午10时43分, Lawrence lejie.zh...@gmail.com wrote: Hi all, In case of reading/setting properties defined in /default.prop /system/build.prop /system/default.prop /data/local.prop, i am finding many source code in android release are using SystemProperties.get()/set() for this purpose. But i am also finding that SystemProperties is not published any more. I am really confused about this. Anyone can kindly give me a clue on this? Since SystemProperties is not exposed, could System.getProperty()/ setProperty() take its place? Thanks, Lawrrence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SystemProperties.get()/set()
Hi all, In case of reading/setting properties defined in /default.prop /system/build.prop /system/default.prop /data/local.prop, i am finding many source code in android release are using SystemProperties.get()/set() for this purpose. But i am also finding that SystemProperties is not published any more. I am really confused about this. Anyone can kindly give me a clue on this? Since SystemProperties is not exposed, could System.getProperty()/ setProperty() take its place? Thanks, Lawrrence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 preload an android application
Hi, i am now wondering how to preload an application. Does it work if only place it under /system/app/? Thanks, Lawrence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 preload an application
Dear all, i am finding all android preloaded applications are located under / system/app/. So i am wondering if there is way that we can preload our own applications. Does it work that we just placed an app under / system/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: how to preload an application
Anybody has some idea on this? On 3月5日, 下午3时55分, Lawrence lejie.zh...@gmail.com wrote: Dear all, i am finding all android preloaded applications are located under / system/app/. So i am wondering if there is way that we canpreloadour own applications. Does it work that we just placed an app under / system/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: how to preload an application
After we make build, kernel, system.img and userdata.img are generated. My question is, i wanna unpack system.img, and put my apk directly to this image. is it possible, and what is the step? Thanks, On 3月6日, 上午10时12分, Mark Murphy mmur...@commonsware.com wrote: Lawrence wrote: Anybody has some idea on this? On 3月5日, 下午3时55分, Lawrence lejie.zh...@gmail.com wrote: Dear all, i am finding all android preloaded applications are located under / system/app/. So i am wondering if there is way that we canpreloadour own applications. Does it work that we just placed an app under / system/app/? You would need to make your application be part of the firmware for whatever phone you are building. Details on that are best found at: http://source.android.com -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: TabHost and New Activities
Hi all, same problem here.. I've been trying to debug this problem all day long and can't seem to find the breakthrough. I'm using tabhosts to create tabs on the main screen, then I try to put list inside the other tab.To achieve that, I'm using setContent(Intent e ) methods.. hoping that the list will be contained on the tab. Here's my errorr I'm getting: Did you forget to call 'public void setup (LocalActivityManager activityGroup)'? But as you see on the codes below, I already call tabs.setup(); So here's the structure of my program: public class myHome extends TabActivity { @Override public void onCreate(Bundle home) { super.onCreate(home); // call the home screen try { setContentView(R.layout.home); } catch (Exception e) { Log.e(ERROR0001, e.getMessage()); // TODO: handle exception } // do the actual work here... // manage tab try { final TabHost tabs = (TabHost) findViewById(R.id.tabhost); tabs.setup(); TabSpec tab = tabs.newTabSpec(TabOne); tab.setContent(R.id.home_scroll); tab.setIndicator(TabOne); tabs.addTab(tab); // tabs.setup(); tab = tabs.newTabSpec(TabTwo); // tab.setContent(R.id.home_scroll_events); tab.setContent(new Intent(this, myList.class)); tab.setIndicator(TabTwo); tabs.addTab(tab); tabs.setCurrentTab(1); } catch (Exception e) { // TODO: handle exception Log.e(ERROR0002, e.getMessage()); } } It triggers the second exception (ERROR0002) when it reach tabs.setCurrentTab(1) Commenting out the setContent(Intent) method and use R.id, everything works fine... minus the list I wanted... Here is the error: java.lang.IllegalStateException: Did you forget to call 'public void setup(LocalActivityManager activityGroup)'? I already add activity android:name=.myList android:label=@string/app_name android:theme=@android:style/Theme.NoTitleBar /activity on the android manifest file Here's the content of myList.java public class myList extends ListActivity { @Override public void onCreate(Bundle home_list) { super.onCreate(home_list); setContentView(R.layout.two); String[] items={lorem, ipsum, dolor, sit, amet, consectetuer, adipiscing, elit, morbi, vel, ligula, vitae, arcu, aliquet, mollis, etiam, vel, erat, placerat, ante, porttitor, sodales, pellentesque, augue}; this.setListAdapter(new ArrayAdapterString(this, R.layout.row, R.id.label, items)); } } where two.xml is simply like this: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Second tab / /LinearLayout and here is row.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical TextView android:id=@+id/label android:layout_width=wrap_content android:layout_height=wrap_content android:textSize=44sp / TextView android:id=@+id/information android:layout_width=wrap_content android:layout_height=wrap_content android:textSize=20sp android:text=life.. / /LinearLayout I must have missing something here...can anyone please help? Thanks. -- Lawrence Samantha On Nov 23, 3:52 pm, g1bb [EMAIL PROTECTED] wrote: Eureka! I got this to work by taking a look at this sample project:http://www.mail-archive.com/android-developers@googlegroups.com/msg06... Set my class that extends TabActivity as the main layout. Thanks again Mark for your help. On Nov 23, 12:45 pm, g1bb [EMAIL PROTECTED] wrote: Hi Mark, My question now is, now that I have the subclass created, how do I create the tabs using _it_, instead of how I was doing it before via the code in my first post? Thanks again for your help. On Nov 23, 12:23 pm, Mark Murphy [EMAIL PROTECTED] wrote: g1bb wrote: I have no problem with that at all. I found this API demo: http://code.google.com/android/samples/ApiDemos/src/com/example/andro