[android-developers] Re: Build of Studio app from command line fails with weird exceptions and then hangs forever

2016-08-06 Thread David Karr
Oh, and if it isn't obvious from my other post at about the same time, I currently have Android Studio version 1.5.1. On Saturday, August 6, 2016 at 9:54:25 AM UTC-7, David Karr wrote: > > I occasionally bring up Studio to work on a personal project. It was > basically working at

[android-developers] Build of Studio app from command line fails with weird exceptions and then hangs forever

2016-08-06 Thread David Karr
I occasionally bring up Studio to work on a personal project. It was basically working at one point, at least it appears to be built in Studio. I decided I wanted to try to build it from the command line. From what I understand, this just requires "./gradlew assemble". This produced the

[android-developers] Studio prompts me to update from 1.5.1 to 2.1.2, but the download button leads in circles

2016-08-06 Thread David Karr
My platform (right now) is CentOS Linux. I occasionally work on a personal project in Studio. I still find much of it pretty baffling after years being used to Eclipse. In any case, when I brought up Studio today, it prompted me to update the version of studio. I had version 1.5.1

[android-developers] Re: clone from github didn't get all the branches

2016-08-04 Thread David Karr
Never mind, I figured out how to attach the other branch. On Thursday, August 4, 2016 at 8:26:40 PM UTC-7, David Karr wrote: > > I have a project on github, and my recent work is on a branch, and it's > all pushed to github. I installed studio on a new box and checked out from > g

[android-developers] clone from github didn't get all the branches

2016-08-04 Thread David Karr
I have a project on github, and my recent work is on a branch, and it's all pushed to github. I installed studio on a new box and checked out from github. What I got appears to be the master branch. When I went to a shell to look closer at the git configuration (as I can't figure out how to

[android-developers] Re: How do I make my custom video app not exit when it's been idle for a while?

2016-04-15 Thread David Karr
ting, setting the parameter in the activity seemed to do the trick by itself. Thanks. > > Regards > > On Friday, April 15, 2016 at 12:07:03 PM UTC+10, David Karr wrote: >> >> I've assembled a custom video recorder app based on a common sample from >> Google.

[android-developers] How do I make my custom video app not exit when it's been idle for a while?

2016-04-14 Thread David Karr
I've assembled a custom video recorder app based on a common sample from Google. You can see the entire source at https://github.com/davidmichaelkarr/android-Camera2Video/tree/refinements . Except for an annoyance I recently posted about here (writes zero length file in addition to valid

[android-developers] Why is sample video app storing good video file and also zero-length video file?

2016-04-10 Thread David Karr
I managed to find a good video app sample at https://github.com/googlesamples/android-Camera2Video . I forked this to make some simple utilitarian changes. The result is functional, but not pretty at all. For what I'm using it for, pretty isn't important. My fork of this is at

[android-developers] Android Studio doesn't show code samples in doc tooltips

2016-03-27 Thread David Karr
I mostly use Eclipse, so there may be conventions in Android Studio that I'm not familiar with. I was editing some Android code in Android Studio, and I wanted to read the javadoc detail for a method that's being called. After I managed to pin the tooltip (is there a convenient function key

[android-developers] Re: Camcorder app produces video that is out of focus, and upside down

2016-03-26 Thread David Karr
rror. > - you could verify that by examining the metadata / properties of the video > you have already recorded. > > > Regards > > > On Friday, March 25, 2016 at 11:58:15 AM UTC+11, David Karr wrote: >> >> >> >> On Thursday, March 24, 2016 at 3:49:

[android-developers] Re: Camcorder app produces video that is out of focus, and upside down

2016-03-25 Thread David Karr
orded videos with that. It shows a "Properties" list, along with a "View Atom Structure" function. How can I tell from this whether it's "high quality" or not? > > Regards > > > On Friday, March 25, 2016 at 11:58:15 AM UTC+11, David Karr wrote: >&g

[android-developers] Re: Camcorder app produces video that is out of focus, and upside down

2016-03-24 Thread David Karr
On Thursday, March 24, 2016 at 3:49:52 PM UTC-7, gjs wrote: > > Hi, > > Re - I imagine I'm doing something horribly wrong, > > Well yes, particularly for this code, calling methods on a null object ??? > - > > if (mCamera == null) { > mCamera.setPreviewDisplay(holder); ... > > >

[android-developers] Re: Camcorder app produces video that is out of focus, and upside down

2016-03-24 Thread David Karr
ead > final Handler mHandler = new Handler(); > > > mHandler.postDelayed(new Runnable() > { >@Override >public void run() >{ > doAutoFocus(.. >} > > }, 500 ); > > > Regards > > Ok. I'll give that a try. > >

[android-developers] Re: Camcorder app produces video that is out of focus, and upside down

2016-03-23 Thread David Karr
gt; vs when you use the default Camera App. (NOTE also that Nexus 5X has some > wrong camera preview orientation issues...) > > Regards > > > > On Wednesday, March 23, 2016 at 3:41:02 PM UTC+11, David Karr wrote: > > I've assembled a relatively small camcorder app. It on

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

2015-12-31 Thread David Karr
e device then you need to provide you own viewer activity > of some sort as previously suggest, or else be willing to help your users > get the (Google) Photos app configured to find photos, video created with > your app and be ready to do that all over again with next the (Google) &

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

2015-12-28 Thread David Karr
tion I get that the process did anything. Despite the "completed" callback being called, the recorded videos are never visible in the "Photos" or "Gallery" app. On Saturday, December 19, 2015 at 9:58:02 AM UTC-8, David Karr wrote: > > Because I can't brin

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

2015-12-23 Thread David Karr
On Tuesday, December 22, 2015 at 10:33:17 AM UTC-8, David Karr wrote: > > On Tuesday, December 22, 2015 at 12:49:55 AM UTC-8, gjs wrote: >> >> Hi, >> >> MediaScannerConnection scanFile() (& the equivalent Intent), is just a >> request to the OS, it does

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

2015-12-22 Thread David Karr
videos. > > Regards > > > On Tuesday, December 22, 2015 at 5:29:36 AM UTC+11, David Karr wrote: >> >> On Monday, December 21, 2015 at 12:08:57 AM UTC-8, gjs wrote: >>> >>> Hi, >>> >>> If your phone is not a Google Nexus var

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

2015-12-22 Thread David Karr
if ( frequency < 1000 ) > { > sleep = 250; > } > } > > sleep = 500; > > for ( int frequency = 3000; frequency >= 300; frequency -= 300 ) > { >

[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
CAN_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 viewab

[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

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

2015-12-20 Thread David Karr
I'm attempting to implement the conventional countdown shutter delay strategy for a custom camcorder app, just like the stock camera app. I've implemented the visual and functional part of the countdown, but now I have to implement the audio part. This emits a tone every second and multiple

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

2015-12-20 Thread David Karr
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 b

[android-developers] Re: Layout structure to display button over camera preview (like in stock camera app)

2015-12-19 Thread David Karr
stants in the component? I started with "bottom" and wanted to make it "bottom | center_horizontal", but it barfs on that. > Regards > > On Saturday, December 19, 2015 at 5:20:35 AM UTC+11, David Karr wrote: >> >> I'm working with a sample video capture

[android-developers] Best way to determine output file path at time of stopping media recording?

2015-12-19 Thread David Karr
When I start to record a video, I have to call "mediaRecorder.setOutputFile(filepath)". When I later stop recording, I can report that the video is recorded, but it would be nice to know at the point of stopping the recording what the output file path was. As I have the "mediaRecorder" there,

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

2015-12-19 Thread David Karr
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

[android-developers] Re: Build app using video camera that stores separate preferences and doesn't prompt to save videos

2015-12-18 Thread David Karr
all right, and I'm fairly certain it isn't bulletproof yet), but it's basically working as advertised. Now I have to make several adjustments to get it closer to what I need. > Regards > > On Friday, December 18, 2015 at 6:07:13 AM UTC+11, David Karr wrote: >> >> I'm a ver

[android-developers] Layout structure to display button over camera preview (like in stock camera app)

2015-12-18 Thread David Karr
I'm working with a sample video capture app (http://examples.javacodegeeks.com/android/core/android-video-capture-example/). I've made some changes to it, but the basic structure is the same. The layout used displays the preview in a pane on the left side of the screen, with a layout

[android-developers] Re: Can't copy text from "Rendering Problems" in Android Studio on CentOS7.2

2015-12-17 Thread David Karr
On Thursday, December 17, 2015 at 11:47:52 AM UTC-8, David Karr wrote: > > I recently installed Android Studio on my CentOS7.2 laptop. It basically > works, but while stepping through a simple "HelloWorld" exercise, it > displayed some "Rendering Problems" in

[android-developers] Re: Can't copy text from "Rendering Problems" in Android Studio on CentOS7.2

2015-12-17 Thread David Karr
On Thursday, December 17, 2015 at 11:49:47 AM UTC-8, David Karr wrote: > > > > On Thursday, December 17, 2015 at 11:47:52 AM UTC-8, David Karr wrote: >> >> I recently installed Android Studio on my CentOS7.2 laptop. It basically >> works, but while steppin

[android-developers] Build app using video camera that stores separate preferences and doesn't prompt to save videos

2015-12-17 Thread David Karr
I'm a very experienced Java dev, but an Android dev newbie (although I went through a lot of Eclipse-based Android dev tutorials years ago). I'm starting with a simple open-source app that runs the camcorder (probably mostly based on a tutorial itself). Using a remote bluetooth button device,

[android-developers] Can't copy text from "Rendering Problems" in Android Studio on CentOS7.2

2015-12-17 Thread David Karr
I recently installed Android Studio on my CentOS7.2 laptop. It basically works, but while stepping through a simple "HelloWorld" exercise, it displayed some "Rendering Problems" information over the "Design" view of the layout file. I wanted to copy the text of that to post a question

[android-developers] Use unrooted Android device to test web site running on desktop, through usb cable?

2012-12-25 Thread David Karr
If I have an unrooted Android device, a USB cable, and a laptop, can I run a web or application server on my laptop and test a site running on that server on the Android device? I know I can do some testing with the Android emulator, but I'd like other options. -- You received this message

[android-developers] RemoteViewsService can't access ContentProvider in same app

2012-12-01 Thread David Karr
I'm stepping through Professional Android 4 Application Development. I'm attempting to enter most of the code samples by hand, but I'm deploying the provided downloaded apps if what I've entered doesn't match what I expect. I'm on chapter 14, the 3rd iteration of the Earthquake example, which

[android-developers] Re: starting avd fails, saying it can't find emulator, but it exists

2012-05-29 Thread David Karr
, David Karr wrote: 0 down vote favorite share [g+] share [fb] share [tw] I've installed the SDK on Ubuntu 12.0.4. I started up the SDK manager and updated several packages. I ran the avd manager and tried to create an avd, but it just failed with no information. I then tried to create

[android-developers] starting avd fails, saying it can't find emulator, but it exists

2012-05-25 Thread David Karr
0 down vote favorite share [g+] share [fb] share [tw] I've installed the SDK on Ubuntu 12.0.4. I started up the SDK manager and updated several packages. I ran the avd manager and tried to create an avd, but it just failed with no information. I then tried to create the avd from the command

[android-developers] How to set clipboard in android emulator for ice cream sandwich?

2012-05-10 Thread David Karr
I found a StackOverflow post that showed me how I can use adb to set the clipboard in the emulator: http://stackoverflow.com/questions/7283446/pasting-text-into-android-emulator-clipboard-using-adb-shell . I'm finding that this only works for Gingerbread, both reading and writing. When I try the

[android-developers] Browser in emulator with proxy setting just exits when url is entered

2012-04-18 Thread David Karr
Today I installed the SDK and created a Phone_IceCreamSandwich AVD. I started it up and ran the browser in the emulator. I noticed that it wasn't completing the request for the home page. I'm inside a corporate firewall, so that's not surprising. I then restarted the AVD with a command-line

[android-developers] Re: Will the browser in the ADT emulator use my desktop network connection for browsing sites?

2012-04-18 Thread David Karr
server. What are the GUI device settings? On Apr 17, 3:39 pm, David Karr davidmichaelk...@gmail.com wrote: I can't test this right now, but if I start up an emulator instance on my desktop, if I bring up the browser on the emulator, will that use my desktop network connection for DNS

[android-developers] Will the browser in the ADT emulator use my desktop network connection for browsing sites?

2012-04-17 Thread David Karr
I can't test this right now, but if I start up an emulator instance on my desktop, if I bring up the browser on the emulator, will that use my desktop network connection for DNS and resolving urls? If my desktop is connected to VPN, I want the browser on the phone to be able to view a page inside

[android-developers] Re: Looking for Jersey/Restlet/REST recommendations

2012-03-28 Thread David Karr
On Wednesday, March 28, 2012 1:44:44 PM UTC-7, Mark Phillips wrote: I forgot to include a subject line. On Wed, Mar 28, 2012 at 11:38 AM, Mark Phillips m...@phillipsmarketing.biz wrote: My android app needs to talk to a MySQL database on a server. I have been googling for solutions

[android-developers] So why is the style attribute for a view not in the android namespace?

2012-03-24 Thread David Karr
I'm just curious about the background on this, but I was wondering why the style attribute in a view definition isn't in the android namespace. For instance, in the following sample: TextView android:id=@+id/errorText style=@style/ErrorText android:text=No errors at this time

[android-developers] Question about using dimension resources in other resources vs. in Java code

2012-03-17 Thread David Karr
I'm just reading about dimension resources (Pro Android 4), and it seems curious how dimension resources are referenced in Java code (at least as specified in this book). The resource value consists of the value and the dimension, like 5px or 5dp or 5sp. You could reference this in a layout

[android-developers] What needs to be in place for Javascript in a webapp to be able to get phone model and phone number?

2012-03-14 Thread David Karr
I know that an Android app can get the phone model and phone number, but what has to be in place for Javascript in a webapp, running in the Android browser, to get the same information. I know that I could have an Android app that creates a WebView, but is it possible for a webapp running in

Re: [android-developers] What needs to be in place for Javascript in a webapp to be able to get phone model and phone number?

2012-03-14 Thread David Karr
On Wed, Mar 14, 2012 at 10:54 AM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Mar 14, 2012 at 1:46 PM, David Karr davidmichaelk...@gmail.com wrote: I know that an Android app can get the phone model and phone number, but what has to be in place for Javascript in a webapp, running

[android-developers] Why doesn't the ADT show me the javadoc for a class in android.jar when I have the javadoc path set for the jar?

2012-01-01 Thread David Karr
This may be completely Eclipse-specific, but perhaps not. I find it's very inconsistent whether I can get Eclipse to show me the Javadoc for an Android class or method, even when I appear to have valid javadoc attached to the android.jar file. For instance, right now I'm viewing a class in a

[android-developers] Android Support package, as described on Android site, not found in SDK Manager

2011-12-31 Thread David Karr
I was looking at the new Android Training section on the Android Developer's site. One of the first required steps is installing the Android Support package. In the Downloading the Support Package section, it first says to Launch the SDK and AVD Manager. This is curious, as my Eclipse has two

[android-developers] Why isn't layoutopt in my sdk?

2011-12-31 Thread David Karr
I noticed the mention of the layoutopt tool in the Android Training pages. I see that I don't have that in my sdk distro anywhere. I've kept the SDK installed from the ADT pretty up to date, but perhaps that's separate from this. Why might it be missing? -- You received this message because

[android-developers] Is Spinner.setOnItemClickListener() supposed to work, or not?

2011-11-20 Thread David Karr
I'm looking at the 3.2 API for android.widget.Spinner. The documentation for public void setOnItemClickListener (AdapterView.OnItemClickListener l) says this: A spinner does not support item click events. Calling this method will raise an exception. I'm also looking at the sample code

Re: [android-developers] Layout Question

2011-11-20 Thread David Karr
I would think that changing the layout_height of the LinearLayout to wrap_content would help. With what you have, both children of the RelativeLayout are set to fill_parent, so they'll have the same height. Also, I would recommend you make up your mind whether you're going to use fill_parent

Re: [android-developers] Is Spinner.setOnItemClickListener() supposed to work, or not?

2011-11-20 Thread David Karr
Oh, duh. That was actually the one I was using. I didn't notice the difference. -- 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

Re: [android-developers] Is Spinner.setOnItemClickListener() supposed to work, or not?

2011-11-20 Thread David Karr
When someone says Oh, duh, that's an idiom for I understand now. I was using Selected, but I read the advice on Click, and I didn't notice the difference in method names. I don't have an issue anymore. Thanks. -- You received this message because you are subscribed to the Google Groups

[android-developers] Android Eclipse plugin: setting background in wysiwyg didn't set background

2011-03-30 Thread David Karr
Is this the best place to ask about the Android Eclipse plugin? I just noticed that when I changed the background property of my main layout in the wysiwyg mode (Graphical Layout), it looks fine in the graphical mode, but it doesn't appear to have changed the actual layout file. The display

[android-developers] Re: Android Eclipse plugin: setting background in wysiwyg didn't set background

2011-03-30 Thread David Karr
Just so it's clear, I then manually added the property setting to the XML view and then ran on the emulator, and the background was changed. -- 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] Re: Camera works fine, but deployed camera app says that I need an SD card

2010-12-19 Thread David Karr
, and this time it worked. On Dec 19, 5:24 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Dec 19, 2010 at 1:29 AM, David Karr davidmichaelk...@gmail.com wrote: Sorry, I need more information. ? You're saying that because I had the phone connected to my computer with the USB

[android-developers] Re: Camera works fine, but deployed camera app says that I need an SD card

2010-12-19 Thread David Karr
On Dec 19, 8:48 am, Kostya Vasilyev kmans...@gmail.com wrote: 19.12.2010 19:36, David Karr пишет: After finally figuring out how to do this (Windows doesn't make it easy), I found it didn't make any difference.  I went through the Safely remove hardware steps, and that removed the drive

[android-developers] How to actually see log messages in ADT, or anywhere for that matter?

2010-12-19 Thread David Karr
I've deployed an app to my device that calls Log.v(String, String). I'm using the ADT. I have the LogCat view showing. I step over the line of code that calls Log.v(). Nothing appears in the LogCat view. I haven't added any filters. I've tried clicking the V toggle button in the LogCat view,

[android-developers] Re: How to actually see log messages in ADT, or anywhere for that matter?

2010-12-19 Thread David Karr
On Dec 19, 2:29 pm, Kostya Vasilyev kmans...@gmail.com wrote: You could try running adb logcat from your computer's command line. That would tell you if it's the device or Eclipse that is the problem. If the device's logcat works, you will see lots of output, not just your application's. All

[android-developers] Re: How to actually see log messages in ADT, or anywhere for that matter?

2010-12-19 Thread David Karr
On Dec 19, 4:20 pm, David Karr davidmichaelk...@gmail.com wrote: On Dec 19, 2:29 pm, Kostya Vasilyev kmans...@gmail.com wrote: You could try running adb logcat from your computer's command line. That would tell you if it's the device or Eclipse that is the problem. If the device's logcat

[android-developers] Camera works fine, but deployed camera app says that I need an SD card

2010-12-18 Thread David Karr
I have a droid2. I can take pictures with the camera. I can browse the pictures I've taken on the phone. I can connect the phone to my WinXP box and browse the SD card through File Explorer. I'm now trying a sample tutorial (SizedCameraIntent) from the Pro Android Media book. When I deploy to

[android-developers] Re: Camera works fine, but deployed camera app says that I need an SD card

2010-12-18 Thread David Karr
, Dec 18, 2010 at 5:00 PM, David Karr davidmichaelk...@gmail.com wrote: I have a droid2.  I can take pictures with the camera. I can browse the pictures I've taken on the phone. I can connect the phone to my WinXP box and browse the SD card through File Explorer. I'm now trying a sample

[android-developers] Why do the Date/Time controls have + on the top and - on the bottom?

2010-12-04 Thread David Karr
I've always thought it was strange that the Date/Time controls have the increment and decrement buttons in the order that seems opposite to the natural order. Experience in user interfaces tells you that numbers increase down and decrease up, just like the entries in a list. If you had a

[android-developers] Possible to populate context menu at draw time?

2010-12-04 Thread David Karr
I don't necessarily have a need for this, but I noticed while reading through some of the Menu features that there wasn't an obvious way to populate a menu (context menu, for instance) just before drawing it. I believe this is a typical feature of other menu systems. Is it possible to do this in

[android-developers] hardware update wizard doesn't start when I plug in the phone with the USB cable

2010-11-29 Thread David Karr
I'm experimenting with android development on my work XP laptop. I installed the SDK and the ADT in my Eclipse 3.5.2 environment. I then connected my device to my laptop with the USB cable. Although my computer appeared to recognize that a device had been connected, it didn't bring up the

[android-developers] Bad link for Using the Contacts API article

2010-11-29 Thread David Karr
As this appears to be the only place to report issues with the articles and the pages linking to them: On the Technical Articles page, the link for Using the Contacts API actually goes to the article for the previous link, to the Using Text-to-Speech article. -- You received this message

[android-developers] USB driver won't install

2010-11-29 Thread David Karr
I'm trying to install the USB driver for Windows, with the information provided at http://developer.android.com/sdk/win-usb.html. I've connected my device with the cable. I can now see files on my device from Windows. After I connected, the Hardware Update Wizard came up. I followed the