[android-developers] Re: I want to develop browser app but i am getting errors help me please

2016-09-26 Thread Doug Carey
Hi David, i am also facing this problem and If you still search to solve this problem please please contact pankaj to solve this problem email id : pankaj[dot]s[at]shaligraminfotech[dot]com On Friday, September 23, 2016 at 12:08:34 PM UTC+5:30, David Miller wrote: > > Hi I am new to android i

[android-developers] Re: BLE Data Transfer Question

2016-03-19 Thread 'Doug Stevenson' via Android Developers
BLE is designed for broadcasting tiny amounts of data in packets (20 bytes). That would be entirely inefficient for larger amounts of data. There is no reliable data streaming mode for BLE. These little chunks of data broadcast periodically are what make it "low energy". The typical use case

[android-developers] Re: Difference between swiping in all apps menu and pressing back to exit

2016-01-04 Thread Doug
The service IS the app. There is no service without an app process to host it. When your app process is killed (and you can never prevent that from happening) the service and all other app components will go with it. Anything else would be impossible for Android to manage since it chooses no

[android-developers] Re: Difference between swiping in all apps menu and pressing back to exit

2016-01-02 Thread Doug
uld persist any changes that you do not want to be potentially lost. Doug On Wednesday, December 30, 2015 at 7:29:43 PM UTC-8, Nick Teo wrote: > > Hi all, > > I'm working on a messaging app that starts a service in the background > that will receive messages from a Pebble sma

Re: [android-developers] How to send reference object to a fragment in android studio

2015-12-04 Thread Doug
ed data object to dependents. Sometimes receiving from a singleton is good enough as long as it's not adding too much weight to the app. Sometimes querying a content provider (backed by sqlite database) for very large collections is appropriate. Doug -- You received this message because

[android-developers] Re: Is runOnUiThread() ever 'safe' to call? If not why is it not deprecated?

2015-06-23 Thread Doug
sing a better mechanism. But this is short and to the point. The best production-worthy example would, unfortunately, take at least twice as many lines of code. Also, this particular BT API is deprecated. Doug On Sunday, June 21, 2015 at 7:40:10 AM UTC-7, RLScott wrote: > > Google

[android-developers] Re: Is runOnUiThread() ever 'safe' to call? If not why is it not deprecated?

2015-06-13 Thread Doug
es for managing background work. I teach them in my class at AnDevCon, and they have better support on the official Android documentation and tutorials. Doug On Wednesday, June 10, 2015 at 5:59:39 AM UTC-7, Sam Duke wrote: > > I agree. The method has no real business being on an activity tho

[android-developers] Re: Is runOnUiThread() ever 'safe' to call? If not why is it not deprecated?

2015-06-10 Thread Doug
on Activity because that could be misleading to the caller. Doug On Tuesday, June 9, 2015 at 11:39:13 AM UTC-7, Sam Duke wrote: > > Due to the nature of config changes, the runnable submitted to > runOnUiThread may be executed after an activity has been destroyed (i.e. on > a stale a

[android-developers] Re: where does Android Studio put the APK file?

2015-04-29 Thread Doug
On Tuesday, April 28, 2015 at 4:08:07 AM UTC-7, Spooky wrote: > > On Mon, Apr 27, 2015 at 11:42:12PM -0700, Doug wrote: > > > Since Studio just delegates to gradle for all of its build activity, you > > too should just use the gradle command line if you want a particular

[android-developers] Re: where does Android Studio put the APK file?

2015-04-27 Thread Doug
te to gradle. This is a good thing -- your IDE should not be the thing responsible for producing your build artifacts. Doug On Monday, April 27, 2015 at 12:52:26 PM UTC-7, Spooky wrote: > > Ok, I give up All of the posts (StackOverflow, etc.) I've found that > tell me wh

[android-developers] SQLite case insensitive matching

2015-04-18 Thread Doug Gordon
g the uppercase equivalent, e.g. É. My understanding is that Android SQLite does not support this automatically as it does for ASCII characters, but is there a solution within Android? I have no control over what is in the database (it comes from an outside source) or what the user inputs. Doug G

[android-developers] Re: Image is being oriented differently once uploaded to server, why?

2015-04-12 Thread Doug Gordon
I've seen this happen in a number of places when uploading images. The basic issue is that there are two ways to save a "rotated" image: save the raster data in the correct orientation and without metadata, or save the raster data in its "native" orientation and set the metadata value to indica

[android-developers] Re: Reusable code organization with Android Studio

2015-01-24 Thread Doug
r teams that need to agree how collaborate well together. Doug On Friday, January 23, 2015 at 10:07:58 AM UTC-8, Nobu Games wrote: > > I set up a *Maven repository for my library modules* and add the needed > modules as dependencies to my app project > >- Very elegant, but...

Re: [android-developers] ViewPager pages not drawn

2014-12-20 Thread Doug Gordon
ling > - Scroll positions > > Or I would try to debug into the view pager's onMeasure / onLayout / > populate + scrollToItem > > For this second part, I would perhaps add a button in the layout that > calls requestLayout or setCurrentItem on the pager, to trig

Re: [android-developers] ViewPager pages not drawn

2014-12-20 Thread Doug Gordon
t? > > Another thing I often use in cases like this -- is to set the background > color of various views to distinct noticeable colors, like pink, cyan, etc. > In this case, I'd try the view pager itself, its parent view, and your > fragments' views. > > -- K > &

[android-developers] ViewPager pages not drawn

2014-12-19 Thread Doug Gordon
hat also uses a ViewPager with fragments, and it continues to work with either the native or support library classes. (I'm about to throw in the towel and just forget this whole update.)) Doug Gordon -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: WebView and ConnectivityManager.requestNetwork

2014-12-14 Thread Doug
call that function with whatever parameters it needs. Google "android webview inject javascript" for more details. (Google answers most of your questions if you just ask it.) Doug On Sunday, December 14, 2014 1:45:46 PM UTC-8, Krystian Lewandowski wrote: > > Hi, > the proble

[android-developers] Re: WebView and ConnectivityManager.requestNetwork

2014-12-14 Thread Doug
Did you actually try WebViewClient.shouldInterceptRequest? I'm looking through old code of mine that suggests it will work. Also, you should try searching for "WebViewClient shouldInterceptRequest" to see what places like StackOverflow say. Doug On Sunday, December 14, 2014

[android-developers] Re: WebView and ConnectivityManager.requestNetwork

2014-12-14 Thread Doug
It's been a long time since I've been active on it, but I believe you can intercept everything that passes through a url, both what would be loaded by navigation, image, and ajax. Give it a try and implement all the callbacks exposed by webview, log a simple message, and see how it g

[android-developers] Re: WebView and ConnectivityManager.requestNetwork

2014-12-13 Thread Doug
You could use a WebViewClient to intercept everything a WebView is trying to fetch and fetch it yourself using whatever API suits your needs. Doug On Friday, December 12, 2014 12:15:35 PM UTC-8, Krystian Lewandowski wrote: > > Hi, > I'm trying to update ConnectivityManager.requ

[android-developers] Can't update widget preview on Nexus 5/Lollipop

2014-12-01 Thread Doug Gordon
this a Lollipop bug? Doug Gordon GHCS -- 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+unsubsc

Re: [android-developers] Simple PagerAdapter does not display views

2014-11-25 Thread Doug Gordon
Adapter (all the samples are using FragmentPagerAdapter or FragmentStatePagerAdapter. I am now considering changing over to use fragments instead of simple views since I know that works even though to me it seems less efficient in this case. Thanks for your response in any case! -- Doug On Monday, Novembe

[android-developers] Simple PagerAdapter does not display views

2014-11-24 Thread Doug Gordon
of child views. Any clues on where to look? I've implemented a FragmentPagerAdapter elsewhere with no issues, but this does seem like it would be easier, especially since these views have no controls on them (just data). Doug Gordon GHCS Software -- You received this message because yo

[android-developers] Re: Creating a custom-view with rounded corners

2014-11-13 Thread Doug Gordon
I don't believe that would (or could) be possible. After all, the Android o/s doesn't "understand" the content of your background image. Those rounded corners just exist as pixels in an image and are not defined mathematically in any way so that the drawing software could clip to them. All that

[android-developers] Android Studio Editor feature

2014-10-27 Thread Doug Gordon
alled? Can I switch it on and off (once I had collapsed the string to the constant, I could not get it to revert until I opened the file again)? -- Doug Gordon GHCS Software http://www.ghcssoftware.com g...@ghcssoftware.com -- You received this message because

[android-developers] Re: Fragment animations using objectAnimator to slide over the previous fragment

2014-06-06 Thread Doug
I have not thought through this myself thoroughly, but have you considered using a FragmentPagerAdapter with a ViewPager? Doug On Thursday, June 5, 2014 11:41:02 AM UTC-7, Simon Giddings wrote: > > > I have seen the kind of effect I want being demonstrated with the > ViewPa

[android-developers] Re: Share Loader's data between multiple fragment

2014-06-04 Thread Doug
make all the fragments implement an interface such as ModelReceiver which a method receiveModel(Model) so they can get the model object. Doug On Tuesday, June 3, 2014 3:53:41 PM UTC-7, Nathan Barraille wrote: > > Hello, > I have a problem with the Android framework for which I'm not

[android-developers] Re: ListView getCount is wrong - how do I reset it?

2014-05-17 Thread Doug
y setting a new (non-public, non-static) adapter into the ListView instead. Never change the contents of the data in an adapter after you've given it to the ListView. Make a deep copy of the data before sending it if you have to. Doug -- You received this message because you are

[android-developers] Re: Order of intents delivery

2014-05-16 Thread Doug
Yes, if they are called from the same thread because they will eventually be processed serially from the queue on the main thread's looper. Doug On Thursday, May 15, 2014 4:49:59 AM UTC-7, Durgadoss Ramanathan wrote: > > Hi, > > I have a Service from which I send an intent tw

Re: [android-developers] Re: looking for HTML5 and javascript based sdk....

2014-05-12 Thread Doug
Please, just stop. You are arguing with a fool! On Sunday, May 11, 2014 10:30:22 PM UTC-7, Kristopher Micinski wrote: > > What are you even talking about: Any JavaScript program is also going > to have threads, too. > > You seem to be making this argument: Java has multiple threads, and > that

[android-developers] Re: Choreographer regularly skipping frames during OpenGL Render

2014-04-13 Thread Doug
NING_LIMIT = SystemProperties.getInt( "debug.choreographer.skipwarning", 30); So maybe you can lighten up your own acceptable threshold for frames skipped (unless you're actually observing the jank that you're trying to avoid)? Doug On Friday, April 11, 2014 10:37

[android-developers] Re: Can't create handler inside thread that has not called Looper.prepare()

2014-03-28 Thread Doug
ple, you could create a Handler against the main thread's looper from any other thread like this: new Handler(Looper.getMainLooper()) Now that handler will schedule work on the main thread. Doug -- You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Re: Image captured from my app is rotated by default

2014-03-25 Thread Doug Gordon
This may not be related to your problem, but I believe that there are basically two ways that the orientation of a JPEG photo is determined. One is simply by the way the actual data in the file is laid out; for example, whether it is stored as 1024x768 or 768x1024. The other determinate is an (

[android-developers] Re: ContentResolver obtaining java.io.File instead java.io.FileDescriptor

2014-03-09 Thread Doug
ust read or write it. Doug On Saturday, March 8, 2014 4:51:02 AM UTC-8, jb wrote: > > Dear All, > > I am using an intent to invoke a file chooser. > Some of the file chooser applications return an > Uri of scheme "file" others return an Uri of > "scheme"

[android-developers] Re: Android API for editing video.

2014-02-04 Thread Doug
Nothing exists for high level editing functions, if you mean operations like copying and moving sections of video. On ICS you have direct access to the low level A/V codecs on the device, but that's a lot of work to manipulate at such a low level for the purpose of editing. Doug On S

[android-developers] Re: Android how to manage the text size for different screen sizes.

2014-02-01 Thread Doug
How are you measuring your font sizes? If you're not using sp units in the xml from which the text was inflated, you're not doing things the best possible way. Doug On Saturday, February 1, 2014 11:52:00 AM UTC-8, 12169 wrote: > > Hi, > > I have an application and tex

[android-developers] Re: Using CSS Height Attributes in Android App Screen

2014-01-25 Thread Doug
ative amount of space you want. Doug On Friday, January 24, 2014 3:18:04 PM UTC-8, Cayce wrote: > > I have an Android app that delivers live text content in various div > blocks that have to maintain a relationship with each other. The obvious > problem is that using pixel values in a

[android-developers] Re: LinearLayout as child of ScrollView and View weight's are being ignored

2014-01-02 Thread Doug
kind of options you have: http://developer.android.com/guide/practices/screens_support.html Doug On Wednesday, January 1, 2014 7:04:05 AM UTC-8, stanlick wrote: > > Thanks Doug! > > This is what I was thinking, but always like a second opinion. I think > I'm going to study t

[android-developers] Re: LinearLayout as child of ScrollView and View weight's are being ignored

2013-12-31 Thread Doug
dp to override its natural height measurement. Doug On Monday, December 30, 2013 2:39:16 PM UTC-8, stanlick wrote: > > I have a LinearLayout with three views on it TextView, ImageView > and TextView. The image was pushing the third TextView off the bottom of > the screen, so I added

[android-developers] Re: ViewPager and ListFragments with onLongClick listener problem

2013-12-31 Thread Doug Gordon
1) It seems like you could figure this out just by setting a few breakpoints and following what happens when the long-press menu is activated. 2) Do you really have a separate copy of code for each fragment that differ only by the FRAGMENT_DAY_NAME constant? This is bad practice for a number o

[android-developers] Re: part of text to bold when using AlertDialog.setMessage .

2013-12-17 Thread Doug
Pass a custom view to AlertDialog with that view containing a TextView with the Spanned being returned from Html.fromtHtml. Don't use the AlertDialog's setMessage since that only accepts regular strings and not Spanned strings with markup. Doug On Sunday, December 15, 2013 11:04:3

[android-developers] Re: WeakReference containing callback interface

2013-12-16 Thread Doug
ou're trying to do async image loading. Doug On Wednesday, December 11, 2013 6:43:56 AM UTC-8, TheNetStriker wrote: > > I've got a question regarding WeakReferences in Android. I'am using > AndroidQuery in my app to load images asynchronous. I've modified the > And

Re: [android-developers] Google Drive says Action Bars on the bottom are ok?

2013-12-15 Thread Doug
Hamburger menu. On Saturday, December 14, 2013 7:17:44 PM UTC-8, Nathan wrote: > > Somewhat related. > > What's that thing called on Gmail where they got three bars in the upper > left that slides out to become a menu on the left? > -- You received this message because you are subscribed to t

[android-developers] Re: Passing the "design for tablets" checks (dev console optilmization tips)

2013-11-23 Thread Doug Gordon
My app seems to have passed the tests once I added some 7-inch tablet screen shots. I do have some resources in folders with the *-xlarge*attribute, so maybe that's a clue to what they're looking for. On Friday, November 22, 2013 4:20:28 PM UTC-5, b0b wrote: > > > I have an app that I think is t

[android-developers] xxHdpi Displays

2013-11-12 Thread Doug Gordon
supposed to now be providing graphic resources in a "drawable-xxhdpi" resource subfolder? That's about all I need is yet another set of graphics to resize and tweak endlessly! :-( Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Gr

[android-developers] Re: Drawing rapidly into Bitmap from non-UI thread results in "Cannot generate texture from bitmap"

2013-11-06 Thread Doug
sider instead using SurfaceView and its SurfaceHolder. It specifically has provisions for drawing to its Canvas off the main thread. Doug On Tuesday, November 5, 2013 7:09:20 AM UTC-8, Michael Zoech wrote: > > Hi, > > In my current application that I'm developing I draw into an >

[android-developers] Re: Deposits From Google Wallet Weirdness

2013-07-18 Thread Doug Gordon
According to Bank of America's site, all three payouts did go into my account. I guess the simplest thing would be to just consider it an "advance" for the next couple of months. At least it wasn't like the guy whose Paypal account got an erroneous balance of 94 quadrillion dollars the other da

[android-developers] Overloading of Back Key functionality

2013-05-06 Thread Doug Gordon
Excuse me for a minor rant, but is anyone else bothered by what I call the "overloading" of the Android Back key? What I mean by this is that pressing it can have two vastly different results: it can return you to an earlier "view" in the app you are using, or it can effectively exit the app an

[android-developers] Re: Playing HLS (Http Live Stream) using Android VideoView (ICS 4.0.3 and 4.0.4)

2013-04-22 Thread Doug
eing are likely not a problem with VideoView or MediaPlayer, but the stuff deep inside Android, or maybe even the particular device you're working with. Doug On Monday, April 22, 2013 3:43:43 AM UTC-7, A_User wrote: > > I am writing an application for playing HLS video stream

[android-developers] Re: Which is more suitable for uploading large files? a service on separate process or ...

2013-04-18 Thread Doug
I would definitely dedicate a service for things that do persistent work in the background. There is no real advantage to using a separate process unless your upload needs a truckload of memory. Doug On Thursday, April 18, 2013 12:21:47 AM UTC-7, AndroidCompile wrote: > > Hi, >

[android-developers] Re: error message displays on gingerbread emulator but not icecream sandwich emulator

2013-04-17 Thread Doug
> Binary XML file line #6: Error inflating class fragment Fragments are not available in GB unless you are using the compatibility library and using only the fragment objects and activities available through it. Doug On Tuesday, April 16, 2013 2:48:06 PM UTC-7, John Merlino wrote: &g

[android-developers] Re: How to detect if music is playing?

2013-04-14 Thread Doug
http://developer.android.com/reference/android/media/AudioManager.html#isMusicActive() Doug On Saturday, April 13, 2013 5:11:53 AM UTC-7, MobileVisuals wrote: > > Is there any way to detect if music is playing from players like Spotify > and Winamp? -- -- You received this messag

[android-developers] Re: Adjust ActionBar Tabs Width

2013-02-16 Thread Doug Gordon
If you hide the app title and icon and use the splitActionBar option, you can get up to 4 tabs on the top row on a smartphone-size screen. I think that 4 is about the limit, but if there is not enough room for all the tabs in the top row, Android converts the tabs to a spinner (dropdown) selecto

[android-developers] Unexpected Action Bar Behavior

2013-02-01 Thread Doug Gordon
n items on the right. In this case, the tab highlight correctly follows when swiping.) Doug Gordon GHCS Software -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

[android-developers] Re: Fragment Transition Animation Crashes

2013-01-29 Thread Doug Gordon
. Animator anim = AnimatorInflater.*loadAnimator*( >mActivity, fragment.mNextAnim); > > > -- K > > On Monday, January 28, 2013 4:14:36 AM UTC+4, Doug Gordon wrote: >> >> The following code used to work fine in a previous iteration of my app >> that was

[android-developers] Fragment Transition Animation Crashes

2013-01-27 Thread Doug Gordon
The following code used to work fine in a previous iteration of my app that was targeted to V11 but used the support library to support fragments, etc., from the minimum V7 and up: Fragment frag = ShowExhibit.ShowExhibitFrag.newInstance(args); FragmentTransaction ft = m

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

2012-12-26 Thread Doug
The easiest thing is to put them on the same network and point the mobile browser to the desktop's IP address and port that is hosting the web server. Doug On Tuesday, December 25, 2012 4:24:27 PM UTC-5, David Karr wrote: > > If I have an unrooted Android device, a USB cable, and a

[android-developers] Kudos to ADT package developers

2012-11-28 Thread Doug Gordon
kaged into a single download that almost instantly gets me back to being productive. I think the only thing I needed to do was to tell it where the SDK was and download some earlier platforms. So thanks to whoever it was that did this work -- greatly appreciated! Doug Gordon GHCS Software -

[android-developers] Windows 8

2012-11-21 Thread Doug Gordon
My development PC just took a dive, and most of the decent PCs that I can find locally are now coming with Windows 8. I really don't want to go that route, but if I do, will the Android development environment, i.e., Eclipse and the various SDK tools, run OK on Windows 8? And how about drivers f

[android-developers] FrameLayout in ViewSwitcher doesn't resize

2012-11-09 Thread Doug Ponsford
Hi All, I have a problem with a FrameLayout inside a LinearLayout/ViewSwitcher which has been dogging me for days! Any help would be appreciated: In the XML, I have a LinearLayout that defines a background theme, a ViewSwitcher inside that, and a LinearLayout in the first (upper) half of the

[android-developers] Re: IllegalStateException after ListView's adapter has changed

2012-09-20 Thread Doug Turner
ttp://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/ListView.java;h=7c8151e65132a91aecadd2048fe205bd1c6768a9;hb=HEAD--Jayesh > > Hello Jayesh. Were you able to resolve the issue you were having? I am getting the same IllegalStateException, but it seems like this happens only when s

[android-developers] Re: Async pattern required (professionals welcome)

2012-09-05 Thread Doug
several eyeballs to iron out all the details. Doug On Wednesday, August 29, 2012 12:25:31 PM UTC-7, itai wrote: > > I’m struggling to figure out a straight forward design for the > following scenario: > > A user clicks a button which results in sending an http request > asynchr

[android-developers] Re: Prevent Installation of armv7 neon compiled app on Non Neon Devices

2012-08-28 Thread Doug
app). Doug On Wednesday, August 22, 2012 2:06:36 AM UTC-7, B.Arunkumar wrote: > > Hi, > >What about upload to the Google PlayStore? If we compile the app > for armv7 neon support, is it that Google PlayStore will automatically > restrict the app from being seen o

[android-developers] Re: VideoView seetTo() takes longer time to start video after pause

2012-08-28 Thread Doug
seekTo doesn't restart a paused video. Seeking is independent of playback state. Doug On Wednesday, August 22, 2012 3:57:33 AM UTC-7, Ashutosh wrote: > > > did you get any solution for this issue, I am also facing it. > > thanks for help > > -ashutosh > On Thursd

[android-developers] Re: simulate just onPause() without onStop()

2012-08-28 Thread Doug
On devices running gingerbread or older (I think), just turn off the screen. Or start an activity whose theme is transparent (or something like that, google it). Sorry to be so imprecise. Doug On Tuesday, August 21, 2012 10:04:03 PM UTC-7, Ubuntu guy wrote: > > Hello, > >I&

[android-developers] Re: Is there any way to know a view's height and width before it is really shown on screen?

2012-08-10 Thread Doug
to be able to respond to that arbitrary view's actual size being known. Doug On Thursday, August 2, 2012 7:21:25 AM UTC-7, Fang wrote: > > Hi Android Developers, > > As a request of a function in my app, I need to know a view's height and > width before it's really

[android-developers] Re: AnimationDrawable: animation can't be started in onResume

2012-08-06 Thread Doug Heisler
I know this post is old but if you are still having trouble, start your AnimationDrawable in the onWindowFocusChanged method. Good luck:) On Tuesday, January 27, 2009 10:36:03 AM UTC-5, G. Blake Meike wrote: > > There's already been some discussion of this, in various lists and > blogs. I

[android-developers] Re: Scanning root of SDcard does not work on 4.1

2012-07-31 Thread Doug
7;re taking the file object from Environment.getExternalStorageDirectory, then turning that into a string, then turning it into a File again. That's not necessarily wrong, but you might want to reconsider that. Doug On Wednesday, July 25, 2012 9:43:07 AM UTC-7, Alessandro Pellizzari wrote

[android-developers] Re: Jelly Bean conversational TTS?

2012-07-27 Thread Doug
I find that JB's TTS is most definitely more natural and overall much better. You might want to find a way to listen to it next to ICS if you have two devices and see if you can spot the differences. Doug On Saturday, July 21, 2012 8:06:34 PM UTC-7, Josh Burton wrote: > > Hi, &g

[android-developers] Re: WebView / JavaScriptInterface / String []

2012-07-16 Thread Doug
If you need to return something more complex, you could always generate a serialized JSON data structure from JS using your favorite library, return it as a string, and then parse the results using Android's JSONObject. Doug On Friday, July 13, 2012 6:46:57 AM UTC-7, Pent wrote: > >

[android-developers] Re: adk 2012 / usb accessory not connecting

2012-07-14 Thread Doug
and deploy. I'm on OSX Lion on a Mac Mini if that makes any difference. Doug On Tuesday, July 10, 2012 12:07:00 PM UTC-7, Joe wrote: > > Hey Doug, > > What problems did you run into using the Mac IDE for the ADK2? I just > finished installing the ADK IDE and managed to upload

[android-developers] Re: MediaPlayer.isPlaying() question

2012-07-13 Thread Doug
If you think the system is stopping your audio temporarily and you need to know about that, you probably instead want to pay attention to the callback defined in AudioManager.OnAudioFocusChangeListener. Doug On Sunday, March 13, 2011 12:24:04 PM UTC-7, Ken H wrote: > > What I'm re

[android-developers] Re: how to replace "" with " in android or java ?

2012-07-11 Thread Doug
What is the context for needing to do this? Doug On Wednesday, July 4, 2012 2:32:09 AM UTC-7, hari2012 wrote: > > hi > I am working on a project.I have stuck in a problem so please help me asap. > how to replace "" with " in android or java ? > how to replace two do

[android-developers] Re: MediaPlayer.setNextMediaPlayer

2012-07-08 Thread Doug
is that you want a continuous stream of PCM data, going to audio out, not where the (decoded) PCM is coming from. > -does it work with http URIs passed to setDataSource() ? > If the source prepares in time, I imagine so. Doug -- You received this message because you are subscribed to

Re: [android-developers] Separate design based on resolution. Android 2.3

2012-07-08 Thread Doug
resolution of the screen, so may vary across devices—for example a 1024x720 tablet with a system bar actually has a bit less space available to the application due to it being used by the system bar. Hopefully they will get things worked out with the upgrade to ICS. Doug On Tuesday, July 3, 2012 12

[android-developers] Re: activity looses ArrayList<> items

2012-07-08 Thread Doug
Recents in both onCreate and onRestoreInstanceState. Pick one or the other. Doug On Thursday, July 5, 2012 1:35:07 PM UTC-7, alex b wrote: > > I saw the notice about the syncronization of the Vector type, but it > didn't help me find a solution to the problem. What I believe i n

[android-developers] Re: Sample for new MediaCodec API (available in Android 4.1)

2012-07-08 Thread Doug
There was a talk on this at Google I/O. It's probably your best bet right now. https://developers.google.com/events/io/sessions/gooio2012/117/ Doug On Sunday, July 1, 2012 4:39:16 PM UTC-7, JohnOR wrote: > > Hi, > > I just installed Android 4.1 (Jelly Bean) on to Nexus her

[android-developers] Re: Method for passing information between Fragments

2012-07-08 Thread Doug
This pattern is documented. Use the host activity to pass messages between fragments as needed. http://developer.android.com/guide/components/fragments.html "Creating event callbacks to the activity" Doug On Friday, June 29, 2012 12:55:44 PM UTC-7, EpsilonOrion wrote: > >

Re: [android-developers] Can't get AVD to run my noddy app!

2012-07-07 Thread Doug Ponsford
King wrote: > On Wed, Jun 27, 2012 at 11:29 AM, Doug Ponsford wrote: > >> Eclipse says that my app is loding, but it never runs. All I get >> is the simulator window with "ANDROID" on the screen and the buttons >> on the righ-hand side. >> > > Is this the

[android-developers] Re: adk 2012 / usb accessory not connecting

2012-07-04 Thread Doug
retty much give up now. Doug On Saturday, June 30, 2012 12:28:31 PM UTC-7, michael wrote: > > Testing the new adk2012 and having a few issues. I have uploaded the > usbaccessory sketch, and installed the adk2012 app to the nexus 7. Then I > connect the adk & nexus with usb,

[android-developers] Re: how to share the audio played on android device to multiple audio devices

2012-07-04 Thread Doug
An app can't know exactly what is being played on the device in a general sense, unless it is the app playing the audio, and it is generating the raw PCM to send to an AudioTrack. Doug On Tuesday, June 26, 2012 4:09:04 AM UTC-7, kuldeep wrote: > > I am planning to impleme

[android-developers] Can't get AVD to run my noddy app!

2012-06-28 Thread Doug Ponsford
Hi, I'm a newbie that needs some help on getting the AVD running with my app. I've been developing C code for decades, but I have to admit the Eclipse/AVD setup has me stumped! I'm following the 'HelloWorld' tutorials on this website (and some others) and everything seems to be working OK, up to

[android-developers] Re: Compil assembly code for ARM and X86

2012-06-21 Thread Doug
This is an NDK question, so I suggest taking it to the NDK group, not here. groups.google.com/group/android-ndk Doug On Friday, June 15, 2012 2:26:03 AM UTC-7, WebShaker wrote: > > Hi. > > I've just bought an Intel Android smartphone ! > > I've change My Applic

[android-developers] Re: How do I save a complete webpage displayed in Android's WebView?

2012-06-20 Thread Doug
I don't think you can do this with documented public APIs. I wouldn't go reaching into that cache folder unless you have a very clear understanding of how that works in all versions of Android that you need to work with. Doug On Wednesday, June 13, 2012 11:55:53 AM UTC-7, VP wrote

[android-developers] Re: Landscape/Portrait and more... an advanced question

2012-06-20 Thread Doug
that just needs a single activity to host the game display. Doug On Wednesday, June 13, 2012 2:18:10 AM UTC-7, Mark Cz wrote: > > > Is it possible to show a *Translucent * activity is in portrait while the > activity below is in landscape ? > -- You received this message

Re: [android-developers] Re: Widget Product Updates

2012-06-04 Thread Doug Gordon
Good info. This actually explains some of the "buggy" behavior I've seen, not on my own apps, but on various others on my own devices. Especially when I apply an update and then the screen widget stops working with an "App not installed" error popping up. On Sunday, June 3, 2012 10:57:37 PM UTC

[android-developers] Widget Product Updates

2012-06-02 Thread Doug Gordon
d to remove the existing instances and add back the updated widget? Doug Gordon GHCS Software -- 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 fr

[android-developers] Re: Audio / Performance Issues on ICS / Android 4

2012-05-03 Thread Doug
#x27;ve solved problems this way before when having to deal with larger buffers of audio. Doug On Friday, April 27, 2012 2:25:14 AM UTC-7, piezo wrote: > > Hello > > > I have a music (sequencer/synth) app in Android Market. One of its > strengths is that it uses very little res

[android-developers] Re: Stereo AudioRecord

2012-05-03 Thread Doug
Are there two microphones on the Galaxy Nexus, one for each of the left and right channels? I'm guessing the answer will be no. I don't think there are any phones that have two microphones for stereo recording. Doug On Tuesday, April 24, 2012 2:23:58 AM UTC-7, Akshay Malhotra wr

[android-developers] Re: Access denied error while trying to install new API

2012-05-02 Thread Doug Davis
you guys rule thank you On Wednesday, December 14, 2011 4:26:17 PM UTC-5, Uday (Dave) wrote: > > Hi, I have installed the android sdk 16 on my Windows7 machine I have > installed the Android2.1 API initially without any glitch. But then > again when I try to install the other APIs using the SDK ma

[android-developers] Getting "Unable to Instantiate activity; Component ClassNotFound exception"

2012-04-18 Thread Doug Gordon
I'm suddenly unable to run my app due to this error, where the ClassNotFound refers to my main activity class. It happens on my phone as well as in the emulators in various versions. This is an existing stable app that's been around for quite a while, and I haven't made any code changes since t

[android-developers] Re: use of audio streams

2012-03-31 Thread Doug
You can use STREAM_MUSIC and also request audio focus to try to gain priority. Doug On Tuesday, March 27, 2012 8:09:26 AM UTC-7, RedBullet wrote: > > I am building an app that will do TTS to read turn by turn directions for > navigation. > > When I am using a bluetooth headse

[android-developers] Re: Media player no video

2012-03-31 Thread Doug
Does your app have internet permissions to do streaming (required in ICS)? Is the video codec supported by your device? Doug On Tuesday, March 27, 2012 6:25:56 AM UTC-7, aglasofmilk wrote: > > Hi! I have a problem with playing videos through mediaplayer. I have a > sound but no vid

Re: [android-developers] R17: a library project cannot depend on another library project?

2012-03-26 Thread Doug
How does one downgrade to r16, or any non-latest version of the SDK at any time? Doug On Monday, March 26, 2012 6:35:18 AM UTC-7, Nikolay Elenkov wrote: > > The best thing you can do is update your projects, or have them > > updated. If you can't do it right now, use ADT16 f

[android-developers] Re: How to read Peoples address in android 4.0 platform

2012-03-25 Thread Doug
It is not hard to search for. http://developer.android.com/resources/articles/contacts.html Doug On Thursday, March 22, 2012 2:29:33 AM UTC-7, Sandeep Nemuri wrote: > > i am not able to find any code for reading peoples address from address > book in android 4.0 platform . can any

[android-developers] Re: Is it possible to open an Audio Recorder by more than one app using OpenSL?

2012-03-21 Thread Doug
I think you would have to get all the components that want to share audio recording responsibilities to be coordinated using some other mechanism. Doug On Tuesday, March 20, 2012 2:58:41 AM UTC-7, smichak wrote: > > OK - so sharing is impossible. > > My follow-up is therefore: Is

[android-developers] Re: Removing an item from ListView

2012-03-21 Thread Doug
apter. Doug On Tuesday, March 20, 2012 7:34:00 AM UTC-7, radhakrishna wrote: > > @seshu > > You mean updating onListItemClick method in > TestListItemsView1Activity : > - > > >

Re: [android-developers] Same permission defined in multiple applications

2012-03-20 Thread Doug
Dianne, when would you recommend using sharedUserId? Also, are these subtleties documented anywhere? Doug On Monday, March 19, 2012 5:57:33 PM UTC-7, Dianne Hackborn wrote: > > I strongly recommend avoiding sharedUserId. Note that once you publish an > app with this, you can neve

[android-developers] Re: Is it possible to open an Audio Recorder by more than one app using OpenSL?

2012-03-20 Thread Doug
s the reason why only one app can record audio at a time. Doug On Sunday, March 18, 2012 10:14:05 AM UTC-7, smichak wrote: > > Hi, > > I am writing an application that runs as a background service > recording and analyzing audio samples. I have noticed that it is > impo

[android-developers] Re: Application Recycling

2012-03-17 Thread Doug
will killed and restored at each activity transition. Older devices and emulators might have a Spare Parts app that can toggle a similar setting. Doug On Wednesday, March 14, 2012 8:51:15 AM UTC-7, Trey wrote: > > I'm trying to test my application's ability to be restored after my

  1   2   3   4   5   6   7   >