[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-21 Thread David Karr
On Monday, December 21, 2015 at 12:08:57 AM UTC-8, gjs wrote:
>
> Hi,
>
> If your phone is not a Google Nexus variety then that's not surprising, but
>  Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) 
> is what's recommended.
>
> In some respects it does not really matter which folder you use to store 
> media generated by your app (*), provided you go to the trouble of 
> 'cataloging' the media generated using MediaScannerConnection - 
> http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile(android.content.Context,
>  
> java.lang.String[], java.lang.String[], 
> android.media.MediaScannerConnection.OnScanCompletedListener) then your 
> photos / video will quickly show up in the default 'Photos' app, without 
> having to wait for it to scan the device periodically to find new media 
> files.
>
> (*) And is some other respects it really, really does matter what folder 
> you use - if you don't want the media files deleted when your app in 
> uninstalled (!) Be very careful about what you decide, here's some 
> 'interesting' history - 
> https://groups.google.com/forum/#!topic/android-platform/14VUiIgwUjY%5B1-25%5D
>
> Regards
>
>
Ok, following this information and some other advice (I created a custom 
subdir of "DCIM" for my app), I ended up with the following:

sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, 
Uri.parse("file://" + outputFilePath)));


 The problem is, it's not clear to me that this is doing anything.  After 
storing one of these and calling this, I exit my app and run the Photos 
app, and the new video is not shown there.  I've verified that the video is 
stored and viewable.

On Monday, December 21, 2015 at 5:53:49 AM UTC+11, David Karr wrote:
>>
>> On Saturday, December 19, 2015 at 10:34:46 PM UTC-8, gjs wrote:
>>>
>>> Hi,
>>>
>>> See http://developer.android.com/reference/android/os/Environment.html 
>>> it has methods to retrieve default paths of where photo, video files etc 
>>> are stored.
>>>
>>> The file naming convention should be easy enough to mimic, usually being 
>>> based on date time stamps.
>>>
>>
>> Thanks.  That gets pretty close.  I'm having trouble getting it to match 
>> what my phone is using.  For the directory expression, I'm currently using 
>> this:
>>
>> Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)
>>
>>
>> However, on my phone, the actual place where it stores pictures from the 
>> stock camera is in a "Camera" subdirectory.  This expression doesn't 
>> include that.  I could hardcode that, but doesn't feel right.  I tried some 
>> variations of this, but I never found an expression that returns "Camera" 
>> as the base directory name.
>>
>>>
>>> Regards
>>>
>>> On Sunday, December 20, 2015 at 4:58:02 AM UTC+11, David Karr wrote:

 Because I can't bring up the stock camera app with just a video 
 record/stop button (I'm using a remote bluetooth button to start/stop 
 recording), I've written a custom app that just displays the camera 
 preview 
 and a video record/stop button.

 Despite the fact that this is a custom app, as much as possible I'd 
 like to store the videos as if they were taken with the stock app.  This 
 at 
 least means storing them in the same place, with a consistent naming and 
 metadata scheme.  I might consider having custom preferences in the app, 
 but for now I'd just like to retrieve properties that will tell me where 
 the stock camera app will store videos, along with any other configuration 
 that should describe how I store the videos.

 How can I get this information within my custom app?

>>>

-- 
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/1fee646d-729f-44de-8f22-d967d14c7e34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Best strategy for emitting countdown tones for shutter delay like stock camera app

2015-12-21 Thread David Karr
On Sunday, December 20, 2015 at 11:27:14 PM UTC-8, gjs wrote:
>
> Hi,
>
> Here's some examples of using AudioTrack 
> http://www.programcreek.com/java-api-examples/index.php?api=android.media.AudioTrack
>
> Just be sure to run in a separate thread.
>
> Regards
>

Note that I did already say that I'd found multiple ways to do this, and I 
was looking for advice on the actual best (or at least better) way to do 
this, and you pointed me to a selection of choices, with no information on 
tradeoffs.

In any case, I tried the first one (creating an AudioTrack and then playing 
it), and wrapping it with a Runnable and a started Thread, and I heard no 
sound from my device when the code executed.

If it matters, here's the method I ended up with:

private void playTone() {
new Thread(new Runnable() {
@Override
public void run() {
int minSize = AudioTrack.getMinBufferSize(8000, 
AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT);
AudioTrack  audioTrack  = new AudioTrack(AudioManager.STREAM_MUSIC, 
8000, AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT, minSize, 
AudioTrack.MODE_STREAM);
audioTrack.play();
}
}).start();
}



-- 
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/e6f449ee-433c-4410-8948-0d5900b8934f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: WebView Slow Page Load

2015-12-21 Thread Jonathan S
Are you going to just view web page or modified a page content?

On Monday, December 21, 2015 at 2:09:28 AM UTC-5, Parimal Muli wrote:
>
> Hi, 
> I am using a webview in my app. The problem is that it takes a lot of time 
> (10-25 
> secs) for the sites to render in the webview. Can you please suggest some 
> methods to improve the webview page load time?
>

-- 
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/6754ab78-1ddf-4c4d-bdc3-6367e12e1bd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Checking out and building a custom kernel for shamu (Nexus 6) ROM

2015-12-21 Thread Yile Ku

Hi,

I am currently building the aosp_shamu-userdebug ROM image.  The setup is 
working.  I now want to build a kernel.  I am following the instructions 
on: http://source.android.com/source/building-kernels.html.  I checkout the 
msm source tree using git: git clone https:
//android.googlesource.com/kernel/msm.git.  I get an empty 'msm' 
directory.  The instructions then say to:

$ git clone https://android.googlesource.com/device/ti/panda
$ cd panda
$ git log --max-count=1 kernel

If I do a 'git log --max-count=1 kernel' command in the 'msm' directory I get: 
yile@ubuntu:~/msm$ git log --max-count=1 kernel
fatal: ambiguous argument 'kernel': unknown revision or path not in the working 
tree.
Use '--' to separate paths from revisions, like this:
'git  [...] -- [...]'
yile@ubuntu:~/msm$ 

Whats up?

I am building shamu 6.0.  which kernel version should I build for this release 
of android?  Also how does one tell what version the zImage-dtb is ?

Thanks
Y-

-- 
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/a3e9cc1d-4901-410a-b710-a04a9b7cfef0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-21 Thread gjs
Hi again,

Actually ../DCIM/Camera is the expected sub folder for the default Camera 
app, my apologies.

What I've seen on some devices is that different apps will create 
additional subfolders beneath ../DCIM for example the Google Cardboard 
Camera app creates ../DCIM/CardboardCamera

On a Non Google Nexus phone device I see -

../DCIM/100ANDRO
../DCIM/Camera
../DCIM/CardboardCamera
../DCIM/Screenshots

- so perhaps following that convention and create your own subfolder 
beneath ../DCIM that way it is still within the expected media folder 
hierarchy and importantly your media files probably won't get deleted when 
someone uninstalls your app (!)

Regards



On Monday, December 21, 2015 at 7:11:52 PM UTC+11, gjs wrote:
>
> (That's 
> http://developer.android.com/reference/android/media/MediaScannerConnection.html
>  
> in case of a broken link...)
>
> On Monday, December 21, 2015 at 7:08:57 PM UTC+11, gjs wrote:
>>
>> Hi,
>>
>> If your phone is not a Google Nexus variety then that's not surprising, 
>> but Environment.getExternalStoragePublicDirectory(Environment.
>> DIRECTORY_DCIM) is what's recommended.
>>
>> In some respects it does not really matter which folder you use to store 
>> media generated by your app (*), provided you go to the trouble of 
>> 'cataloging' the media generated using MediaScannerConnection - 
>> http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile(android.content.Context,
>>  
>> java.lang.String[], java.lang.String[], 
>> android.media.MediaScannerConnection.OnScanCompletedListener) then your 
>> photos / video will quickly show up in the default 'Photos' app, without 
>> having to wait for it to scan the device periodically to find new media 
>> files.
>>
>> (*) And is some other respects it really, really does matter what folder 
>> you use - if you don't want the media files deleted when your app in 
>> uninstalled (!) Be very careful about what you decide, here's some 
>> 'interesting' history - 
>> https://groups.google.com/forum/#!topic/android-platform/14VUiIgwUjY%5B1-25%5D
>>
>> Regards
>>
>>
>>
>>
>>
>> On Monday, December 21, 2015 at 5:53:49 AM UTC+11, David Karr wrote:
>>>
>>> On Saturday, December 19, 2015 at 10:34:46 PM UTC-8, gjs wrote:

 Hi,

 See http://developer.android.com/reference/android/os/Environment.html 
 it has methods to retrieve default paths of where photo, video files etc 
 are stored.

 The file naming convention should be easy enough to mimic, usually 
 being based on date time stamps.

>>>
>>> Thanks.  That gets pretty close.  I'm having trouble getting it to match 
>>> what my phone is using.  For the directory expression, I'm currently using 
>>> this:
>>>
>>> Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)
>>>
>>>
>>> However, on my phone, the actual place where it stores pictures from the 
>>> stock camera is in a "Camera" subdirectory.  This expression doesn't 
>>> include that.  I could hardcode that, but doesn't feel right.  I tried some 
>>> variations of this, but I never found an expression that returns "Camera" 
>>> as the base directory name.
>>>

 Regards

 On Sunday, December 20, 2015 at 4:58:02 AM UTC+11, David Karr wrote:
>
> Because I can't bring up the stock camera app with just a video 
> record/stop button (I'm using a remote bluetooth button to start/stop 
> recording), I've written a custom app that just displays the camera 
> preview 
> and a video record/stop button.
>
> Despite the fact that this is a custom app, as much as possible I'd 
> like to store the videos as if they were taken with the stock app.  This 
> at 
> least means storing them in the same place, with a consistent naming and 
> metadata scheme.  I might consider having custom preferences in the app, 
> but for now I'd just like to retrieve properties that will tell me where 
> the stock camera app will store videos, along with any other 
> configuration 
> that should describe how I store the videos.
>
> How can I get this information within my custom app?
>


-- 
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/1b67526e-5c2a-4e30-9701-c4a098bf14f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Relative accelerometer reading.

2015-12-21 Thread Tobiah
Given that I can read the effects of gravity on my device on three axes, 
I'm looking for some math that will get me a more logical view of what's 
happening to the device in my hands. I want to create a two dimensional 
control based on tilting the device forward and back, and tilting the 
device to the right and left.


The seemingly complex part is that I'd like to have the controls behave 
in a predictable way regardless of the starting position that the device 
happened to be in when starting the controls. For instance, if the user 
is in bed holding the phone upside down above their head, everything 
should still work the same from the user's perspective even though the 
numbers coming off of the accelerometer will be entirely different. I 
can envision some sort of transformation that would yield numbers that 
look like the device is starting off on a flat table, given the actual 
state of the device when the controls start to be used.


Thanks for any help.

--
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/56780DAE.8050105%40tobiah.org.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to get Android default application package names, also in custom android operating system to open ( like call logs, sms, contacts). please suggest me ?

2015-12-21 Thread Lalit Goswami
How to get Android default application package names, also in custom 
android operating system to open ( like call logs, sms, contacts). please 
suggest me ?

-- 
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/2cf9b598-994d-457f-a652-22a52de70d9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: WebView Slow Page Load

2015-12-21 Thread Parimal Muli
Hi,
No, I am not modifying the page content. I am simply loading a site eg.
news article in my app in a webview.
THanks,
Parimal.

On 22 December 2015 at 01:18, Jonathan S  wrote:

> Are you going to just view web page or modified a page content?
>
> On Monday, December 21, 2015 at 2:09:28 AM UTC-5, Parimal Muli wrote:
>>
>> Hi,
>> I am using a webview in my app. The problem is that it takes a lot of
>> time (10-25 secs) for the sites to render in the webview. Can you please
>> suggest some methods to improve the webview page load time?
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/rGaF9IxX8Oo/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/6754ab78-1ddf-4c4d-bdc3-6367e12e1bd1%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Warm Wishes,
Parimal

-- 
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/CAGLPELssKm_dRHWDNKgezH%2BRSxzyjiNQ7Hkpu%2BykaDnMOEH8mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] NEED HELP!!! How can I get history from Android browser in Android M without READ_HISTORY_BOOKMARKS permission?

2015-12-21 Thread Lân Lê Quang Bảo
As we know the  READ_HISTORY_BOOKMARKS permission has been removed in 
Android M, so how to get histories from Android browser without it?

-- 
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/5b22965c-b2ec-493b-bfd3-dcea245b615e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: SharedPreferences doesn't work for my app but other apps is ok.

2015-12-21 Thread VISHAL TIKKU
Hi
Is it throwing any exception firstly please trace that and can you please 
elaborate a little about your problem. 

On Monday, December 21, 2015 at 4:08:28 PM UTC+5:30, Cihan KALOĞLU wrote:
>
> Hi,
>
> I tried all ways how many i know.
>
> That is my code block for test. (MainActivity.onCreate())
>
> String REMEMBERME_PREF_NAME = "rememberme";
> SharedPreferences sharedpreferences = 
> this.getSharedPreferences(REMEMBERME_PREF_NAME, Context.MODE_PRIVATE);
> if (sharedpreferences.getString("email", "").equals("")) {
> Log.d("SHARED PREF", "onCreate() returned: " + "CAN'T REMEMBER");
> SharedPreferences.Editor editor = sharedpreferences.edit();
> editor.clear();
> editor.putString("email", "REMEMBERED");
> editor.commit();
> }
> Log.d("SHARED PREF", "onCreate() returned: " + 
> sharedpreferences.getString("email", ":("));
>
>
>
>
> This code working for all new apps or other existing apps but it still 
> doesn't work for my app.
>
> What is wrong with my app?
>
> Could anybody help me?
>
> Thank you.
>

-- 
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/543a3dde-a0f4-4ce8-9db2-4df9e1a4e2f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-21 Thread gjs
Hi,

If your phone is not a Google Nexus variety then that's not surprising, but 
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) is 
what's recommended.

In some respects it does not really matter which folder you use to store 
media generated by your app (*), provided you go to the trouble of 
'cataloging' the media generated using MediaScannerConnection - 
http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile(android.content.Context,
 
java.lang.String[], java.lang.String[], 
android.media.MediaScannerConnection.OnScanCompletedListener) then your 
photos / video will quickly show up in the default 'Photos' app, without 
having to wait for it to scan the device periodically to find new media 
files.

(*) And is some other respects it really, really does matter what folder 
you use - if you don't want the media files deleted when your app in 
uninstalled (!) Be very careful about what you decide, here's some 
'interesting' history 
- https://groups.google.com/forum/#!topic/android-platform/14VUiIgwUjY%5B1-25%5D

Regards





On Monday, December 21, 2015 at 5:53:49 AM UTC+11, David Karr wrote:
>
> On Saturday, December 19, 2015 at 10:34:46 PM UTC-8, gjs wrote:
>>
>> Hi,
>>
>> See http://developer.android.com/reference/android/os/Environment.html 
>> it has methods to retrieve default paths of where photo, video files etc 
>> are stored.
>>
>> The file naming convention should be easy enough to mimic, usually being 
>> based on date time stamps.
>>
>
> Thanks.  That gets pretty close.  I'm having trouble getting it to match 
> what my phone is using.  For the directory expression, I'm currently using 
> this:
>
> Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)
>
>
> However, on my phone, the actual place where it stores pictures from the 
> stock camera is in a "Camera" subdirectory.  This expression doesn't 
> include that.  I could hardcode that, but doesn't feel right.  I tried some 
> variations of this, but I never found an expression that returns "Camera" 
> as the base directory name.
>
>>
>> Regards
>>
>> On Sunday, December 20, 2015 at 4:58:02 AM UTC+11, David Karr wrote:
>>>
>>> Because I can't bring up the stock camera app with just a video 
>>> record/stop button (I'm using a remote bluetooth button to start/stop 
>>> recording), I've written a custom app that just displays the camera preview 
>>> and a video record/stop button.
>>>
>>> Despite the fact that this is a custom app, as much as possible I'd like 
>>> to store the videos as if they were taken with the stock app.  This at 
>>> least means storing them in the same place, with a consistent naming and 
>>> metadata scheme.  I might consider having custom preferences in the app, 
>>> but for now I'd just like to retrieve properties that will tell me where 
>>> the stock camera app will store videos, along with any other configuration 
>>> that should describe how I store the videos.
>>>
>>> How can I get this information within my custom app?
>>>
>>

-- 
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/52f27970-6265-4a7a-8d6a-daab84c7073a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-21 Thread gjs
(That's 
http://developer.android.com/reference/android/media/MediaScannerConnection.html
 
in case of a broken link...)

On Monday, December 21, 2015 at 7:08:57 PM UTC+11, gjs wrote:
>
> Hi,
>
> If your phone is not a Google Nexus variety then that's not surprising, but
>  Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) 
> is what's recommended.
>
> In some respects it does not really matter which folder you use to store 
> media generated by your app (*), provided you go to the trouble of 
> 'cataloging' the media generated using MediaScannerConnection - 
> http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile(android.content.Context,
>  
> java.lang.String[], java.lang.String[], 
> android.media.MediaScannerConnection.OnScanCompletedListener) then your 
> photos / video will quickly show up in the default 'Photos' app, without 
> having to wait for it to scan the device periodically to find new media 
> files.
>
> (*) And is some other respects it really, really does matter what folder 
> you use - if you don't want the media files deleted when your app in 
> uninstalled (!) Be very careful about what you decide, here's some 
> 'interesting' history - 
> https://groups.google.com/forum/#!topic/android-platform/14VUiIgwUjY%5B1-25%5D
>
> Regards
>
>
>
>
>
> On Monday, December 21, 2015 at 5:53:49 AM UTC+11, David Karr wrote:
>>
>> On Saturday, December 19, 2015 at 10:34:46 PM UTC-8, gjs wrote:
>>>
>>> Hi,
>>>
>>> See http://developer.android.com/reference/android/os/Environment.html 
>>> it has methods to retrieve default paths of where photo, video files etc 
>>> are stored.
>>>
>>> The file naming convention should be easy enough to mimic, usually being 
>>> based on date time stamps.
>>>
>>
>> Thanks.  That gets pretty close.  I'm having trouble getting it to match 
>> what my phone is using.  For the directory expression, I'm currently using 
>> this:
>>
>> Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)
>>
>>
>> However, on my phone, the actual place where it stores pictures from the 
>> stock camera is in a "Camera" subdirectory.  This expression doesn't 
>> include that.  I could hardcode that, but doesn't feel right.  I tried some 
>> variations of this, but I never found an expression that returns "Camera" 
>> as the base directory name.
>>
>>>
>>> Regards
>>>
>>> On Sunday, December 20, 2015 at 4:58:02 AM UTC+11, David Karr wrote:

 Because I can't bring up the stock camera app with just a video 
 record/stop button (I'm using a remote bluetooth button to start/stop 
 recording), I've written a custom app that just displays the camera 
 preview 
 and a video record/stop button.

 Despite the fact that this is a custom app, as much as possible I'd 
 like to store the videos as if they were taken with the stock app.  This 
 at 
 least means storing them in the same place, with a consistent naming and 
 metadata scheme.  I might consider having custom preferences in the app, 
 but for now I'd just like to retrieve properties that will tell me where 
 the stock camera app will store videos, along with any other configuration 
 that should describe how I store the videos.

 How can I get this information within my custom app?

>>>

-- 
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/25225bb4-5cc3-4df7-942f-ae569050b42e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] i have problem, in android studio "Cannot resolve symbol 'SetOnClickListener' ".how to handle. thanks

2015-12-21 Thread Mangesh Sambare
Hi aang,


AdapterView does not support onClickListener. You should  use
OntemClickListener instead of onclickListener. go through this link.

And see nested class documentation.

On Mon, Dec 21, 2015 at 12:30 PM, Aang Sanjaya  wrote:

>
> 
>
> --
> 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/58973e5c-b29f-4b3b-b713-a095f713dfd1%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks and Regards,
Mangesh Sambare

-- 
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/CAAiX-seCwXa8ZQ65VpN0LORFNhvMVMdyd5WuJOAEV5hgnGWk4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: MSSQL Connection error after downloading the app from google play

2015-12-21 Thread gjs
What the error in the log ?

On Sunday, December 20, 2015 at 7:46:04 PM UTC+11, Paresh Gandhi wrote:
>
> Hi,
>
> I desperately need a help.
>
> we recently developed an app for a client for their B2B needs. instead of 
> using web services we used jtds plugin to connect directly to our remote 
> MSSQL server. the app works fine in debug mode as well as release mode. So 
> we uploaded the release version on playstore and it got published too. But 
> after downloading it from the google play the app fails to connect with our 
> mssql server.
>
> thanks in advance
>
> paresh
>

-- 
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/222e23fb-dd2c-4e1f-8129-af4be7513708%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] SharedPreferences doesn't work for my app but other apps is ok.

2015-12-21 Thread Cihan KALOĞLU
Hi,

I tried all ways how many i know.

That is my code block for test. (MainActivity.onCreate())

String REMEMBERME_PREF_NAME = "rememberme";
SharedPreferences sharedpreferences = 
this.getSharedPreferences(REMEMBERME_PREF_NAME, Context.MODE_PRIVATE);
if (sharedpreferences.getString("email", "").equals("")) {
Log.d("SHARED PREF", "onCreate() returned: " + "CAN'T REMEMBER");
SharedPreferences.Editor editor = sharedpreferences.edit();
editor.clear();
editor.putString("email", "REMEMBERED");
editor.commit();
}
Log.d("SHARED PREF", "onCreate() returned: " + 
sharedpreferences.getString("email", ":("));




This code working for all new apps or other existing apps but it still 
doesn't work for my app.

What is wrong with my app?

Could anybody help me?

Thank you.

-- 
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/387886b3-9c74-4bd9-a24c-d10fac89a218%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: WebView Slow Page Load

2015-12-21 Thread VISHAL TIKKU
Hi Parimal
Please try this

webview.getSettings().setRenderPriority(RenderPriority.HIGH);


On Monday, December 21, 2015 at 12:39:28 PM UTC+5:30, Parimal Muli wrote:
>
> Hi, 
> I am using a webview in my app. The problem is that it takes a lot of time 
> (10-25 
> secs) for the sites to render in the webview. Can you please suggest some 
> methods to improve the webview page load time?
>

-- 
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/4ce1126c-cc8f-4156-9161-a81ea440f0a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] i have problem, in android studio "Cannot resolve symbol 'SetOnClickListener' ".how to handle. thanks

2015-12-21 Thread Aang Sanjaya
ok thank Mangesh Sambare for information.

On Mon, Dec 21, 2015 at 4:24 PM, Mangesh Sambare 
wrote:

> Hi aang,
>
>
> AdapterView does not support onClickListener. You should  use
> OntemClickListener instead of onclickListener. go through this link.
> 
> And see nested class documentation.
>
> On Mon, Dec 21, 2015 at 12:30 PM, Aang Sanjaya  wrote:
>
>>
>> 
>>
>> --
>> 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/58973e5c-b29f-4b3b-b713-a095f713dfd1%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Thanks and Regards,
> Mangesh Sambare
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/yq7_AZIg0SQ/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/CAAiX-seCwXa8ZQ65VpN0LORFNhvMVMdyd5WuJOAEV5hgnGWk4A%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADv9Jd6nT4%2B-xYNq-x%3DA-V7u5%2BU09dUFyD1qF48ihn3GR%2Bdofg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.