[android-developers] Using a JNI JAR inside of Android Studio

2016-01-11 Thread darrinps
I have a Jar file that contains .so files. I need to use these inside of an Android Studio application. What steps do I have to take to load the jar and access the methods? With normal .so files you would create a directory and drop the .so files there, then load each and every .so file up,

[android-developers] BlueTooth Low Energy quick question

2013-08-11 Thread darrinps
Anyone know what status 129 means? I can't seem to find much on it via Google. I connect to a BLE device and it says it has services to discover (via using BluetoothGatt.discoverServices()). It then hits this method: @Override public void onServicesDiscovered(BluetoothGatt gatt, int

[android-developers] Helicopter view inside an app (think thumbnails of Activities)

2013-07-11 Thread darrinps
Want to have a helicopter view of other Activities so that the user can click on one of the thumbnails and be sent to that Activity as it looks in the thumbnail. This will mean pre-rendering each Activity then storing what they look like off someway then adding those images to some sort of

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-11 Thread darrinps
down like that. Not sure what axe you have to grind. On Monday, December 10, 2012 5:02:54 PM UTC-6, Lew wrote: Mark Murphy (a Commons Guy) wrote: darrinps wrote: Yes, I am thinking that's the issue. Just did everything needed to get your other project set up (downloaded Action

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-11 Thread darrinps
You are a complete hypocrite Lew, but this is not the forum to discuss it. On Tuesday, December 11, 2012 9:39:52 AM UTC-6, Lew wrote: Darrin, Your private email to me was as inappropriate as it was filled with obscenity and insult. Aren't you a piece of work. I help you and this is how

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-11 Thread darrinps
This isn't the forum to discuss it Lew. I tried to help you understand that. Continuing to post here is showing the exact thing you are accusing me of. I've reported your posts as abusive. If you wish you can delete them and I will do the same to mine in reply to yours. This is a forum to

[android-developers] How is everyone configuring their JUnit tests?

2012-12-10 Thread darrinps
Curious how everyone is configuring their JUnit tests. Using Eclipse Indigo, there doesn't seem to any way to store the tests inside of the application itself (I even tried to do it manually then ran into problems running the tests) so is everyone just creating a separate test project outside

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-10 Thread darrinps
believe that is The Android Way - you have your application in one project and your tests in another. Larry On Mon, Dec 10, 2012 at 9:14 AM, darrinps darr...@gmail.com javascript: wrote: Curious how everyone is configuring their JUnit tests. Using Eclipse Indigo, there doesn't

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-10 Thread darrinps
:32:24 AM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 10, 2012 at 11:14 AM, darrinps darr...@gmail.comjavascript: wrote: Using Eclipse Indigo, there doesn't seem to any way to store the tests inside of the application itself (I even tried to do it manually then ran

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-10 Thread darrinps
to run by gripes that it cannot find the Prefs.apk (which for a JUnit test I'm not sure why it is searching for anyway) On Monday, December 10, 2012 12:50:16 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 10, 2012 at 1:39 PM, darrinps darr...@gmail.com javascript: wrote

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-10 Thread darrinps
this to work. On Monday, December 10, 2012 2:00:53 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 10, 2012 at 2:45 PM, darrinps darr...@gmail.com javascript: wrote: So, just how are you running your JUnit tests? Select the test project and press the Run button in the toolbar

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-10 Thread darrinps
empty. Is yours filled out? However that gets set is the key to the issue I think. On Monday, December 10, 2012 2:21:38 PM UTC-6, darrinps wrote: There must be something that doesn't get saved correctly or something in git with the zip. When I tried doing what you said (select tests, hit

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-10 Thread darrinps
, December 10, 2012 8:35:28 AM UTC-8, darrinps wrote: Thanks. I was beating my head against the wall trying to do it the other way after reading the recommendation here: http://developer.android.com/tools/testing/testing_android.html Much easier to just keep them apart. I don't understand

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-10 Thread darrinps
but some (Mark) have gotten it to work the suggested way. On Monday, December 10, 2012 3:04:30 PM UTC-6, Lew wrote: On Monday, December 10, 2012 8:35:28 AM UTC-8, darrinps wrote: Thanks. I was beating my head against the wall trying to do it the other way after reading the recommendation here

Re: [android-developers] How is everyone configuring their JUnit tests?

2012-12-10 Thread darrinps
not declare uses-library android.test.runner in its AndroidManifest.xml Same thing. THANKS for trying though! On Monday, December 10, 2012 3:22:42 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 10, 2012 at 4:18 PM, darrinps darr...@gmail.com javascript: wrote: FWIW, you SHOULD

[android-developers] Problem loading some web pages on some devices

2012-11-30 Thread darrinps
I have some old 2.3 devices that just won't display some HTML pages which all other devices seem to work just fine. All the ones with problems show is a blank page. The really odd thing is that if I copy the HTML file onto the phone, then do this:

Re: [android-developers] Problem loading some web pages on some devices

2012-11-30 Thread darrinps
Nothing really special. No javascript (and I even turned that off in the webview first thing as a guess). One line of CSS is all. Are you suggesting that I read in the HTML, save it off and then load it back from file like I did to test it? On Friday, November 30, 2012 11:02:06 AM UTC-6,

Re: [android-developers] Problem loading some web pages on some devices

2012-11-30 Thread darrinps
30, 2012 12:03:33 PM UTC-6, darrinps wrote: Nothing really special. No javascript (and I even turned that off in the webview first thing as a guess). One line of CSS is all. Are you suggesting that I read in the HTML, save it off and then load it back from file like I did to test

Re: [android-developers] Problem loading some web pages on some devices

2012-11-30 Thread darrinps
By golly it is a secured site. Hmmm...that could just be it. Odd that some versions of Android would care more than others but, hey, if it's the way it is then that's just the way it is. I would think that onReceiveError would get called though and it isn't. Just an over site by 2.3 possibly

Re: [android-developers] Problem loading some web pages on some devices

2012-11-30 Thread darrinps
it showed, you guessed it, a security warning about the certificate! When I pressed Continue to add the exception the page loaded just fine! So, it's either forgo the WebView or get the site to update their certificate. THANKS! On Friday, November 30, 2012 2:20:24 PM UTC-6, darrinps wrote

[android-developers] Re: OnDateChanged broken in ICS. Anyone have a work around?

2012-09-19 Thread darrinps
, but I'm not sure about older versions. pb Open Source Android App Developer Dining Out (with friends) - The History and Future of Your Foodhttps://play.google.com/store/apps/details?id=net.sf.diningout On Tuesday, 18 September 2012 20:53:27 UTC+2, darrinps wrote: I tried

[android-developers] Re: OnDateChanged broken in ICS. Anyone have a work around?

2012-09-18 Thread darrinps
) - The History and Future of Your Foodhttps://code.google.com/p/dining-out/ On Monday, 17 September 2012 20:25:20 UTC+2, darrinps wrote: Looks like onDateChanged never gets called in ICS (and above I assume) after the very first time the DatePickerDialog is displayed. Here is a bug that has

[android-developers] OnDateChanged broken in ICS. Anyone have a work around?

2012-09-17 Thread darrinps
Looks like onDateChanged never gets called in ICS (and above I assume) after the very first time the DatePickerDialog is displayed. Here is a bug that has been filed: http://code.google.com/p/android/issues/detail?id=25838 I tried the work around suggested in it (not calling

[android-developers] Webview not using cache

2012-04-23 Thread darrinps
I am having a problem with Webview in that it will not use the cache. I start my app up, load the HTML5 page, then back out of the page, enter airplane mode on the phone, then try to go to the web page again. It should be cached, but I get a message saying that the URL could not be retrieved.

[android-developers] Getting a complete bitmap.

2012-04-09 Thread darrinps
I have a bitmap, a canvas, and an imageview. They are set up something like this: mBitmap = Bitmap.createBitmap((int) mWidth, (int) mHeight, Bitmap.Config.ARGB_); mCanvas = new Canvas(mBitmap); mImageView.setImageBitmap(mBitmap); I flood the

[android-developers] Re: Any way to change one color to another on a bitmap?

2012-03-05 Thread darrinps
3, 6:56 am, darrinps darri...@gmail.com wrote: I have a bitmap and want to be able to change all black pixels to all blue. I know you can do this via Bitmap.setPixel but that process is extremely slow (believe me, I tried it). Researching this is see where people recommend using

[android-developers] Any way to change one color to another on a bitmap?

2012-03-02 Thread darrinps
I have a bitmap and want to be able to change all black pixels to all blue. I know you can do this via Bitmap.setPixel but that process is extremely slow (believe me, I tried it). Researching this is see where people recommend using PorterDuff Xor, but there isn't any posts on how this was

[android-developers] Hovering text boxes (plural) over an image at specified locations.

2012-02-23 Thread darrinps
I have a requirement to allow multiple text areas to be placed over top of an image on Android at specified locations. Envision a image of a face for example. Say the user clicks nose over to the side in a selection area of some sort. I want a text area saying Nose to appear above the nose when

[android-developers] Re: Hovering text boxes (plural) over an image at specified locations.

2012-02-23 Thread darrinps
Doing a little more digging I still haven't found any built in way so I think I will just do it via extending View, overriding OnDraw, and using Canvas.drawText() for this. On Feb 23, 10:56 am, darrinps darri...@gmail.com wrote: I have a requirement to allow multiple text areas to be placed

[android-developers] Updating the contact list

2012-02-10 Thread darrinps
I am having...mmmdifficulty let's say, updating the contact list. I can add to it just fine, but when I go to update it, it processes, but makes no change. Here is my code: private void continueHandleEdit() { ArrayListContentProviderOperation ops = new

[android-developers] Stream issues

2012-02-02 Thread darrinps
I have a Bluetooth application based on BluetoothChat. In fact, I've seen the same issue running that application as a test. The app communicates with another Bluetooth device (not Android). That device doesn't always send all the data in one chunk to Android (although supposedly it does to other

[android-developers] Bluetooth without UUID?

2012-01-25 Thread darrinps
I am working on an Android Bluetooth application to mimic one done on Blackberry. The Blackberry app connects to a Bluetooth server without issue. My Android app OCCASIONALLY connects to the Bluetooth server (pairs and discovers just fine every time) I began to suspect the common UUID they were

[android-developers] Using various parts of an image to select on. Possible?

2012-01-25 Thread darrinps
OK, so this is a good one. I need the ability to allow an image to be re-sizable (pinch zoom for example) and scrollable (finger drag) yet still allow parts of that image to be pressed and depending on which part is pressed, have a different action take place. For example, suppose my image had

[android-developers] What do you all use for automated testing?

2012-01-09 Thread darrinps
I'm doing a little research into automated testing and curious to know what the folks here use. What I am looking for is a tool to allow testers the ability to just hit a button to begin recording, bring up our app as normal, input the data, and then save the test off by a button click. This of

[android-developers] Re: Giving away my book: Genius Android Marketing

2012-01-09 Thread darrinps
Count me in. :) On Jan 5, 10:50 am, scp89 jayvanbui...@gmail.com wrote: I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling

[android-developers] Re: How to get this to wrap?

2011-11-04 Thread darrinps
does not prevent wrapping. -- Kostya Vasilyev 04.11.2011 2:31 пользователь darrinps darri...@gmail.com написал: I have two TextViews. One to the left of the other. The first can hold a very long name and the other is pretty much fixed in width. If the name is very long I want

[android-developers] How to get this to wrap?

2011-11-03 Thread darrinps
I have two TextViews. One to the left of the other. The first can hold a very long name and the other is pretty much fixed in width. If the name is very long I want it to wrap to the next line but I cannot seem to get it to do the wrapping. It's always the second TextView that wraps. I've tried

[android-developers] Re: How to get this to wrap?

2011-11-03 Thread darrinps
Oh, and yes I know using a maxWidth would do it, but I don't want to calculate the number of pixels and the app will be used on many devices of varying screen densities. For example though, this does do the trick on my Galaxy S: android:maxWidth=250px On Nov 3, 5:31 pm, darrinps darri

[android-developers] Partial field masking. Can it be done easily?

2011-10-20 Thread darrinps
I have what I consider to be a rather odd requirement. Give an EditView that is masked as in a password field and populated with some amount of text, I need to let the user enter more data that is unmasked. So, the old data is masked out, and the new data that gets appended to the old data is

[android-developers] Re: Partial field masking. Can it be done easily?

2011-10-20 Thread darrinps
/magouyaware On Thu, Oct 20, 2011 at 11:30 AM, darrinps darri...@gmail.com wrote: I have what I consider to be a rather odd requirement. Give an EditView that is masked as in a password field and populated with some amount of text, I need to let the user enter more data

[android-developers] Re: Graphical anomaly with hints disappearing. Can anyone explain?

2011-10-13 Thread darrinps
) and it worked just fine. If you want to post the XML that contains the layout, that would be helpful. Steven Studio LFP http://www.studio-lfp.com On Saturday, October 8, 2011 10:11:33 AM UTC-5, darrinps wrote: I have tried it out on a 2.2 device (Samsung Galaxy) and using the 2.3

[android-developers] Re: Graphical anomaly with hints disappearing. Can anyone explain?

2011-10-08 Thread darrinps
I have tried it out on a 2.2 device (Samsung Galaxy) and using the 2.3 emulator. Same thing on both. What is odd though is that is shows up in the preview just fine! I know, you would think that there is something shifting it in the code but the just isn't. This is very frustrating. On Oct 7,

[android-developers] Graphical anomaly with hints disappearing. Can anyone explain?

2011-10-07 Thread darrinps
I am having an issue with hints in an EditText. Everything works just fine in the preview in design mode, but whenI execute the thing if I set the gravity on the EditText to right: android:gravity=right, the hint becomes invisible. If I set it to the left: android:gravity=left, then the hint

[android-developers] Re: How make Bluetooth constantly discoverable

2011-09-14 Thread darrinps
It's not so much that t is hard, and you can vary the discovery time: http://stackoverflow.com/questions/3190623/make-bluetooth-on-android-2-1-discoverable-indefinitely The thing is though, it eats battery so you probably don't want to do it. On Sep 14, 2:45 am, Luitas liuta...@gmail.com wrote:

[android-developers] Problem loading an HTML asset in WebView

2011-09-12 Thread darrinps
I have an asset that I am trying to load in WebView. If the same file is read from the SD card, all works fine, but I cannot read it when packaged as an asset. Here is the code WebView webview = new WebView(this); ((ViewGroup)findViewById(R.id.content)).addView(webview, 0);

[android-developers] Re: Got the Bluetooth blues: Service Discovery Failed

2011-09-11 Thread darrinps
11, 1:44 am, darrinps darri...@gmail.com wrote: I have two text books that cover Bluetooth and have read multiple articles and not one has mentioned the need to do that. What I read in the documentation is that the UUID is random: A Universally Unique Identifier (UUID

[android-developers] Re: Got the Bluetooth blues: Service Discovery Failed

2011-09-10 Thread darrinps
in bluetoothchat usually needs to be changed, see the Android bluetooth docs. Regards On Sep 8, 2:45 pm, darrinps darri...@gmail.com wrote: I've been fighting this for a long time now and thought I'd ask the group. I have a Samsung Galaxy S running 2.2. I am trying to connect

[android-developers] Re: Bluetooth sync fails.

2011-09-09 Thread darrinps
I've had to do a lot of research with Bluetooth recently (trying to connect to a non-Android device and haven't had any luck at all...may be a flaw is the other Device's adherence to the spec perhaps). Anyway, in doing my research I ran across someone complaining about a situation similar to

[android-developers] Got the Bluetooth blues: Service Discovery Failed

2011-09-07 Thread darrinps
I've been fighting this for a long time now and thought I'd ask the group. I have a Samsung Galaxy S running 2.2. I am trying to connect to a Bluetooth device (Free2move dongle). I can get up to the point where I do the createRfcommSocketToServiceRecord and then I get Service Discovery Failed.

[android-developers] Is there a table that lists permissions with the commands that precipitate their need?

2011-09-06 Thread darrinps
There are some permissions in an app I am working on that I inherited. It's a large app, and I would like to know if there is a table out that that tells you what command (read this/write that/etc.) requires which permission. In other words, given a permission, is there a way to look up what

[android-developers] Re: Is there a table that lists permissions with the commands that precipitate their need?

2011-09-06 Thread darrinps
the permission and then going to where it is referenced in the book to show what command it is related to. On Sep 6, 9:53 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Sep 6, 2011 at 10:51 AM, darrinps darri...@gmail.com wrote: There are some permissions in an app I am working on that I

[android-developers] Bluetooth issue

2011-09-03 Thread darrinps
I am trying to build an app that receives data from a device that sends out information via a dongle attached to an RS232 port over Bluetooth. I can pair to the device and others like a Garmin Nuvi just fine, but I cannot see the data. For example, when I type in the phone number on the Garmin

[android-developers] Re: Bluetooth issue

2011-09-03 Thread darrinps
over the BluetoothSocket.getInputStream() on the Android side of things. On Sep 3, 3:15 pm, darrinps darri...@gmail.com wrote: I am trying to build an app that receives data from a device that sends out information via a dongle attached to an RS232 port over Bluetooth. I can pair

[android-developers] Re: Adding markers to a video recording you take.

2011-08-23 Thread darrinps
/browse_thread/thread/3cc326af... Hope that helps, esse On Aug 22, 9:47 am, darrinps darri...@gmail.com wrote: I looked through the API for the Android Mediarecorder and didn't see any way to do this, but I was hoping maybe I missed something. In short, what I want to do is allow the user

[android-developers] Adding markers to a video recording you take.

2011-08-22 Thread darrinps
I looked through the API for the Android Mediarecorder and didn't see any way to do this, but I was hoping maybe I missed something. In short, what I want to do is allow the user to click a button on the screen and have an application insert a marker of sorts into the video stream as they are

[android-developers] Re: App working on 2 phones and emulator but not on other phones

2011-08-17 Thread darrinps
I see this all the time and think it is a known issue and not all that big of a deal as far as the blocking entry. When I run a similar application (check out NiteLite2 on the market) in the emulator, I get really poor playback at times which corresponds to the blocked logging event. On the actual

[android-developers] Bug in connectivityManager?

2011-08-16 Thread darrinps
Does anyone know why when you advance your phone's date, say three months, into the future that the connectivityManager.getActiveNetworkInfo() returns null? I have code in my application like this NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); After setting the date into

[android-developers] Re: Tricky layout

2011-08-15 Thread darrinps
Thanks. This app is going to be used on a lot of devices of varying sizes and in both landscape and portrait orientation so I need something automatic and cannot really calculate exact X/Y coordinates. On Aug 13, 8:17 pm, Matt Clark mrclark32...@gmail.com wrote: If you use FrameLayout instead of

[android-developers] Re: Tricky layout

2011-08-15 Thread darrinps
Got it! I started thinking about using the FrameLayout as Matt mentioned but as a wrapper to the table and just using it to house the backgroung, then I added padding on the uppermost area that held the background I wanted and voila! That did it. On Aug 15, 8:47 am, darrinps darri...@gmail.com

[android-developers] Tricky layout

2011-08-12 Thread darrinps
I am trying to create something that looks like this: http://i254.photobucket.com/albums/hh105/darrinps/SameImage.jpg In short, an area that has borders all the way around it but the background is white for the text views and edit boxes inside that area which need to be seamless beside one

[android-developers] Re: Tricky layout

2011-08-12 Thread darrinps
I hear you, but it has to be native. surely there is a way to do this though? On Aug 12, 5:11 pm, Mark Ayers markthe...@gmail.com wrote: You might be better off using jQuery Mobile inside of a webView, and coding it as a website. I could be totally wrong here. On Aug 12, 2011 2:28 PM, darrinps

[android-developers] Blank page after directing to URL

2011-08-05 Thread darrinps
I have a couple instance where I send the user to a URL. Currently the logic starts an activity to forward the user to a URL then it finishes the activity they were on. Well, all that works great, but when the user hits the back button from the HTML page, they are shown a blank screen and have to

[android-developers] Re: Blank page after directing to URL

2011-08-05 Thread darrinps
as to how to get around this? On Aug 5, 3:58 pm, darrinps darri...@gmail.com wrote: I have a couple instance where I send the user to a URL. Currently the logic starts an activity to forward the user to a URL then it finishes the activity they were on. Well, all that works great, but when the user

[android-developers] Re: Blank page after directing to URL

2011-08-05 Thread darrinps
Nope...that isn't it. It's the actual web page I go to getting redirected that is causing it! So has anyone ran into this issue before and what do you do about it? On Aug 5, 4:15 pm, darrinps darri...@gmail.com wrote: Actually, I don't think it has anything to do with that. I bring up

[android-developers] Advanced Android training

2011-08-02 Thread darrinps
Can anyone recommend an advanced Android training course, preferably in the Dallas or DC area but on-line instructor led is fine, that they have attended? Not a whole lot out there from what I can see. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Problem after upgrading to revision 12

2011-07-29 Thread darrinps
Everything was working fine until I upgraded to revision 12. Now every layout I try to bring up gives me the message: LayoutLib is too recent. Update your tool Well, I did update it! Anyone know what the problem is? Thanks. -- You received this message because you are subscribed to the

[android-developers] Re: Problem after upgrading to revision 12

2011-07-29 Thread darrinps
: You need to update to ADT 12 as well. On Fri, Jul 29, 2011 at 11:36 AM, Scott Hammer shamme...@gmail.com wrote: I'm in the same boat here. Recently updated to r12 and I can no longer preview layouts. On Jul 29, 1:01 pm, darrinps darri...@gmail.com wrote: Everything was working fine

[android-developers] Re: Bet practice for determining when a Service has done its work.

2011-07-21 Thread darrinps
some other folks! On Jul 20, 4:51 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jul 20, 2011 at 5:38 PM, darrinps darri...@gmail.com wrote: I don't see any way to register for a callback which was what I was hoping for. That's pretty much the point of the LocalService example

[android-developers] Bet practice for determining when a Service has done its work.

2011-07-20 Thread darrinps
I have an Activity that starts a service and needs to know when that Service completes its job before continuing on. The service itself throws up a spinner BTW. The way it works now is that the Activity fires up the Service, the Service throws up the spinner, and before the Service completes its

[android-developers] Re: Bet practice for determining when a Service has done its work.

2011-07-20 Thread darrinps
using a lot of CPU. On Jul 20, 3:51 pm, TreKing treking...@gmail.com wrote: On Wed, Jul 20, 2011 at 3:36 PM, darrinps darri...@gmail.com wrote: What is the recommended approach to blocking in this case? http://developer.android.com/reference/android/app/Service.html#Local

[android-developers] Re: Bet practice for determining when a Service has done its work.

2011-07-20 Thread darrinps
On Jul 20, 4:22 pm, TreKing treking...@gmail.com wrote: On Wed, Jul 20, 2011 at 4:15 PM, darrinps darri...@gmail.com wrote: Thanks, but I am not seeing how that solves it. Getting access to know if the service is done or not isn't the problem as I just use a public static variable

[android-developers] Any way to clear EditText box while testing?

2011-07-11 Thread darrinps
I have a case where the application remembers the last text that was entered into it. I want to be able to replace that text with something else in my test but I don't see any such method in the Instrumentation class! What I do is something like this. See the comment for an instruction I need to

[android-developers] Re: Any way to clear EditText box while testing?

2011-07-11 Thread darrinps
for(int x = 0; x 7; x++) { instrumentation.sendCharacterSync(KeyEvent.KEYCODE_DPAD_RIGHT); instrumentation.sendCharacterSync(KeyEvent.KEYCODE_DEL); } On Jul 11, 12:13 pm, darrinps darri...@gmail.com

[android-developers] Dynamically adding a group of views

2011-06-08 Thread darrinps
I have a layout that contains a ScrollView Inside of that ScrollView, I would like to dynamically add a group of views as a package. I know I can do this as single lines, but I have a complex row made up of several views that I need to add as a group. What I want is a CheckBox on the left side,

[android-developers] Any way to add team members so they can see Android Market data?

2011-05-19 Thread darrinps
Let's say that you have a team that develops Android applications and you want each team member to be able to see the crash reports on the Android Developer Console. Is there any way to do that? I am told that such a thing exists for IPhone and in fact you can even set up roles with different

[android-developers] Re: SoundPool - sample XXX not READY

2011-01-25 Thread darrinps
I have a sound based application on the market and use SoundPool. Long story short, it is quirky to say the least and only likes small sound files. I have been able to play sounds over and over (as in a loop) and change sounds though without issue once I matched up loading and unloading

[android-developers] Having issues with one type of phone.

2011-01-24 Thread darrinps
I have an app on the market. Everyone I have had try it (half dozen folks or so) likes the thing and it works well, but one type of Android based phone seems to have major issues with it. In specific, Droids! The app plays Ogg Vorbis (ogg) sound files and displays a white screen at varying

[android-developers] Anyone know how to calculate speed WITHOUT GPS?

2011-01-11 Thread darrinps
All the examples I see use GPS, and I have that working just fine but I've noticed that every time I'm in a car, that unless the phone is close to a window or the windshield the GPS does not work so... I thought that there should be a way using course grained location between cell towers. Does

[android-developers] LocationManager speed

2011-01-01 Thread darrinps
I have a KML file that I feed to the emulator through the DDMS emulator control. The latitude and longitude values come through just fine, but the thing never has any speed (doing a LocationManager.hasSpeed() is always false as is getSpeed() always 0.0). Is there some sort of trick you have to

[android-developers] Re: Dynamically reading drawable file names

2010-12-19 Thread darrinps
provided went directly to just the line pulling out the resource data.) On Sat, Dec 18, 2010 at 4:47 PM, darrinps darri...@gmail.com wrote: This was just an example that fit the example you provided. I trimmed down the array to only one .png file which I verified time  and again was under

[android-developers] Re: Dynamically reading drawable file names

2010-12-18 Thread darrinps
have shown is just not right, so it's not surprising it doesn't work. On Fri, Dec 17, 2010 at 8:42 PM, darrinps darri...@gmail.com wrote: Thanks.  I tried doing that but it seems to be an old API so I tried to convert it to what is there today. There must be some mistake I have made

[android-developers] Re: Dynamically reading drawable file names

2010-12-17 Thread darrinps
, darrinps darri...@gmail.com wrote: Is there any way for an Android app to read the file names of all the files stored under drawable (or for that matter any other directory)? I'd like to have it so I can plop in a new file and have the app read the name for me for use in a dynamically

[android-developers] Re: Dynamically reading drawable file names

2010-12-17 Thread darrinps
What I am wanting to do is offer the user a list of image names and allow them to choose one then display that image in another activity. On Dec 17, 10:42 pm, darrinps darri...@gmail.com wrote: Thanks.  I tried doing that but it seems to be an old API so I tried to convert it to what

[android-developers] Dynamically reading drawable file names

2010-12-12 Thread darrinps
Is there any way for an Android app to read the file names of all the files stored under drawable (or for that matter any other directory)? I'd like to have it so I can plop in a new file and have the app read the name for me for use in a dynamically sized list of radio buttons (one button per

[android-developers] Re: Combining an image

2010-12-11 Thread darrinps
Thanks for the suggestion Doug. I am using small PNG files that easily fit within the screen. That said, I'm cutting my losses on this (10 hours or so) and just going to go without it. If I ever get back to it I'll maybe do as you suggest and try it without table layout. Can't believe someone

[android-developers] Re: Combining an image

2010-12-11 Thread darrinps
treking...@gmail.com wrote: On Fri, Dec 10, 2010 at 10:20 PM, darrinps darri...@gmail.com wrote: So how can I get this concoction to center? For gravity on the top row use center_horizontal and bottom, then for the bottom row use center_horizontal and top. And if that doesn't work, try

[android-developers] Re: Combining an image

2010-12-10 Thread darrinps
, darrinps darri...@gmail.com wrote: Anyone know how to set them to where they butt up against one another in the middle to form one big photo? Try playing with padding and margins. - TreKing http

[android-developers] Re: Combining an image

2010-12-10 Thread darrinps
it in the kindest way I know how. On Dec 10, 2:53 pm, TreKing treking...@gmail.com wrote: On Fri, Dec 10, 2010 at 2:51 PM, darrinps darri...@gmail.com wrote: Any suggestions as to how to go about adding padding or margins? I've never dealt with doing that. I'd probably just set all padding

[android-developers] Combining an image

2010-12-09 Thread darrinps
I have an image that I split into four parts and would like to combine it back into one large image on my splash screen but am having a little trouble figuring out just how to do this. I have it like this so far: TableLayout android:id=@+id/TableLayout01

[android-developers] Re: Can we Import contacts in List Preferences

2010-11-29 Thread darrinps
Here is a very good overview of a Contact API: http://www.higherpass.com/Android/Tutorials/Working-With-Android-Contacts/ As for preferences, if I understand correctly what it is you want to do, then you could use modifyIntent passing in a unique string and value to save off. On Nov 29, 4:53 am,

[android-developers] Issues debugging multi-threaded Android app?

2010-11-27 Thread darrinps
I was debugging just fine until I added a thread to do some background work. After I did that, the debugger could no longer connect to my Samsung Galaxy. I got the problem fixed without the debugger but now I have to chose between deactivating the threading in my app or being able to use the

[android-developers] A scroll view with only part of the screen scrolling

2010-11-22 Thread darrinps
I've done this before but what worked for another project isn't working now. All I want to do is have a text field and some buttons at the top that stay anchored and a scroll view under them that scrolls. Here is what I have. All that does is show the button with everything else writing over top

[android-developers] How best to suggest changes to the API?

2010-11-12 Thread darrinps
I would really like to see the voice recognition service accept other display options than the one that it has now (a single, dialog that always shows). What is the process for requesting mods to the API? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How best to suggest changes to the API?

2010-11-12 Thread darrinps
Done (http://code.google.com/p/android/issues/detail?id=12524) Thanks! On Nov 12, 9:03 am, Kumar Bibek coomar@gmail.com wrote: Use the Issue Tracker. http://code.google.com/p/android/issues On Fri, Nov 12, 2010 at 8:32 PM, darrinps darri...@gmail.com wrote: I would really like to see

[android-developers] Is there any way to hide a dialog yet have it remain active?

2010-11-11 Thread darrinps
I don't think there is any way to disassociate the voice input dialog in the voice recognizer, but maybe there is a way to hide it behind an Activity so that it is still active and receiving voice commands? In short, what I want is the user to be presented with something other than the voice

[android-developers] Do many folks here go to the trouble of copyrighting their program?

2010-11-09 Thread darrinps
Just curious if many here do that. Not a quick process and not free. -- 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] Switching orientation crashes app with larger image.

2010-11-06 Thread darrinps
I have an application that works fine with smaller images (say 1024x768 or so) but when you rotate the phone into a different orientation (say landscape to portrait) mode with a larger image on the screen, and then call ImageView.setImageUri() it goes into the BitmapFactory.class and never

[android-developers] onConfigurationChanged not being invoked

2010-11-03 Thread darrinps
I have an activity with onConfigurationChanged in it. I also have the manifest set up like this: activity android:name=.MySplashActivity android:configChanges=orientation|keyboardHidden android:label=@string/app_name intent-filter I thought

[android-developers] Re: Help with scroll view placement

2010-09-27 Thread darrinps
Thanks. I'll give your suggestion a try although I was able to get it to work by placing the top and bottom (ScrollView) areas inside of a table. On Sep 26, 6:18 am, Paweł Zięba pawzi...@gmail.com wrote: In ScrollView add: android:layout_alignParentBottom=true

[android-developers] Can you have RadioButtons in a RadioGroup in a TableRow?

2010-09-09 Thread darrinps
I currently have code that creates rows in a table that hold a string in column 1 with a RadioButton in column 2. There can be a variable number of these rows so I cannot just create it in the layout xml as radio1, radio2, etc. My code displays the table with the string and RadioButton pairs

  1   2   >