[android-developers] How to get writable DocumentFile Uri from a Media real path?

2015-05-23 Thread Ichsan
I have a situation in Lollipop where I have: 1. Directory tree (`DocumentFile`) which is granted from user. 2. A collection of audio files that need to modify retrieved from media provider. Uri mediaUri = Uri.withAppendedPath(MediaStore.Audio.Media. EXTERNAL_CONTENT_URI,

[android-developers] Android transition doesn't care about targetId in transitionSet?

2015-02-02 Thread Ichsan
I'm confused about how transitionSet is used. This is my definition: ?xml version=1.0 encoding=utf-8? transitionSet xmlns:android=http://schemas.android.com/apk/res/android; android:transitionOrdering=sequential slide android:slideEdge=bottom android:startDelay=0 targets target

[android-developers] Mocking ContentResolver

2014-05-25 Thread Muhammad Ichsan
Dear All I want to test my activity which uses media ContentResolver. Is there any way to test it without using real ContentResolver but, only mock? From http://dtmilano.blogspot.com/2009_12_01_archive.html#MockContextWithMockContentProv, it is said that I have to use

[android-developers] Compass Library

2012-11-18 Thread Ichsan
Dear All I'm developing a compass application. I see that orientation sensor is deprecated, so I use magnetic sensor in combination with acceleration sensor (for devices which have ones). I'm only interested in azimuth value. Some devices give me smooth value, but some give me very unstable

[android-developers] Warning users of strong magnetic field

2012-10-13 Thread Ichsan
Does anybody know how to warn users of string magnetic field? I'm creating a compass application. But when there are magnetic items around, the north direction is going wrong. Using SensorEventListener#onAccuracyChanged doesn't help. Is there any tutorial telling me how to handle this problem?

Re: [android-developers] Best strategy in handling location change

2012-09-26 Thread Ichsan
On Monday, 24 September 2012 12:17:51 UTC+7, TreKing wrote: On Sun, Sep 23, 2012 at 11:25 PM, Muhammad Ichsan ich...@gmail.comjavascript: wrote: To simplify, this is an application which set off alarm by location. The alarm is determined by user coarse location. Providing less

[android-developers] Best strategy in handling location change

2012-09-23 Thread Ichsan
Currently, I'm creating an app which alarms user tasks at specific time. The time is automatically calculated based on coarse location. So, when users fly miles away, the alarm time has become invalid. So the app needs to recalculate the time. FYI, the alarm should be always on (when exiting

Re: [android-developers] Best strategy in handling location change

2012-09-23 Thread Muhammad Ichsan
To simplify, this is an application which set off alarm by location. The alarm is determined by user coarse location. On Sep 24, 2012 10:22 AM, TreKing treking...@gmail.com wrote: -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Re: Android LVL

2012-09-15 Thread Ichsan
If you read the documentation, it is clear that you need to upload the app without publishing it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Best practice in handling huge overlay items on Android Maps

2012-08-30 Thread Ichsan
Dear All, I have a situation where I need to tell users where the nearby ATMs are located. The problem is if the bank has 1 ATMs. When I use Maps for web programmings, I usually only load ATMs on visible area. When user do panning or zooming out, I request back-end server to provide more

[android-developers] Confused with C2DM

2012-05-31 Thread Ichsan
Dear All, I'm currently learning how to use C2DM. But I still got confused about concept of sender and client login. *# The sender* Do I have to create an email account e.g. ichsan.my...@gmail.com? It seems that one email is for one app only (e.g. package = ichsan.myapp). Is it true? *#