[android-developers] Eclipse ADT Support Going Forward

2014-12-09 Thread authorwjf
Now that Android Studio has reached the 1.0 landmark will future versions of the build tools, support libs, and ADT images continue to be released for both ADT and AS in tandem or can we expect to start seeing Android Studio only packages and features? It would be awesome if someone from the A

Re: [android-developers] Re: Dynamically changing the language at runtime

2012-08-22 Thread authorwjf
Related to this same question, if it is not supported to change the locale outside of the built-in OS configurations, how can I request a language specific soft keyboard on-the-fly? I don't necessarily need code, just a push in the right direction. -- You received this message because you are

Re: [android-developers] Re: Dynamically changing the language at runtime

2012-08-21 Thread authorwjf
> > I know this is a pretty old thread, but I'm curious if it is still the > contention of the team at Google that changing the language at runtime is a > bad idea? If so, what are my alternatives? I am doing a kisosk > application for a corporate customer so I can't fire the intent to bring

[android-developers] Layer Drawables

2012-04-03 Thread authorwjf
Hi UI Framework Gurus! I'm trying to create a drawable list in code to act as the selector for a button. Because of the special requirements of my application it needs to happen all in code so I can't use the XML or inflated layouts, which is too bad because I've seen that approach working. W

[android-developers] Re: ICS Listview Selector

2011-12-29 Thread authorwjf
One solution I've come across is not to use: for the default state but rather a solid color such as white. This effectively "fixes" the demo code, however it still causes issues in my production environment because the background of the listview itself is a custom graphic and thus I wanted it to

[android-developers] ICS Listview Selector

2011-12-28 Thread authorwjf
Howdy UI Gurus! I am having an issue with a custom list selector. I tried to whittle the code down to a very small subset that runs independently of my project in hopes someone more familiar with the UI framework than I could assist. Basically, I have a custom selector I have been using for list

[android-developers] Re: Reusing Views in Custom Adapter

2011-11-29 Thread authorwjf
extView tv = (TextView)v.findViewById(R.id.grid_item_text); >                 tv.setText("Item #"+mItems.get(position)); > >                return v; > > > > > > > > > > } > On Tue, Nov 29, 2011 at 5:17 PM, Kumar Bibek wrote: > > What exactly

[android-developers] Reusing Views in Custom Adapter

2011-11-29 Thread authorwjf
Hi Android Framework Gurus! I am hoping someone out there can answer a question for me about re- using views in my adapters. My understanding, is that for performance reasons this is something I should always always always do. Yet in my experience, doing so always results in the view, whether a

[android-developers] Re: using java decimal formatter outside USA

2011-08-30 Thread authorwjf
just for completeness float gb = 0; NumberFormat dfm = new DecimalFormat.getInstance(); dfm.setMaximumFractionDigits(1); dfm.setMinimumFractionDigits(1); float mTotalRamInstalled = (float) new Float(dfm.format(gb)).floatValue(); -- You received this message because you are subscribed to the Goog

[android-developers] Re: using java decimal formatter outside USA

2011-08-30 Thread authorwjf
Thanks for pointing me in the right direction! I knew I had to be doing something wrong :) -- 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 gr

[android-developers] using java decimal formatter outside USA

2011-08-30 Thread authorwjf
Hello All, I am running into an issue with some of my European users. To demonstrate the issue I isolated the following three lines of code: float gb = 0; DecimalFormat dfm = new DecimalFormat( "#,###,###,##0.0" ); float mTotalRamInstalled = (float) new Float(dfm.format(gb)).floatValue(); I am

[android-developers] JRE and class loader on an Android device.

2011-08-26 Thread authorwjf
Hello, I have a question concerning how classes are loaded at runtime and I am hoping someone out there has the inside scoop. Basically I am supporting an app that has a significant following. The app parses JSON responses from a web server. A handful of users are getting a JSON parse error. T

[android-developers] Re: Issue with Android Menu

2011-07-26 Thread authorwjf
You need a lower case "o" when you declare "public boolean onOptionsItemSelected(MenuItem item){ ". Java is case sensitive and using an uppercase letter as you are doing now creates a new method that while valid is not actually hooked to the OS menu framework. Cheers! -- You received this messag

[android-developers] Re: A little help with layout params in code.

2011-07-26 Thread authorwjf
No responses so either my question stumped everyone or it was too obvious for anyone to bother :) Either way I finally got it to work so if it saves anyone else 4 days of pouring over documentation here is the code. if (v.getId()==R.id.add_row) { mRowCount++;

[android-developers] Re: A little help with layout params in code.

2011-07-25 Thread authorwjf
Does anybody out there have experience formatting table row contents, (not comments), in code? -- 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

[android-developers] A little help with layout params in code.

2011-07-24 Thread authorwjf
Hi All, I am hoping someone out there can give me an idea what I am doing wrong. I wanted to create a table dynamically in my application, which I did, but also I wanted to be able to set some of the layout parameters, specifically the gravity and layout_gravity for a couple text views and one im

[android-developers] Re: Eclipse - Android - can't connect my device to Eclipse

2011-07-15 Thread authorwjf
And don't forget to turn on USB debugging on your phone under application settings. -- 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, sen

[android-developers] Re: Soft Keyboard appears when entering on an Activity

2011-07-05 Thread authorwjf
I encountered a similar problem and found with some testing that adding: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); as the last line of the onCreate() for each class that extends Activity did the trick. P.S. I apologize in advance if this post shows up

[android-developers] Re: Soft Keyboard appears when entering on an Activity

2011-07-05 Thread authorwjf
I had similar issues and with some testing found that adding: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); as the last line of my onCreate() in each class that extends Activity did the trick. Like you the issue with the soft keyboard popping up did not s

[android-developers] Re: How do you deal with "skins" clashing with your UI?

2011-06-01 Thread authorwjf
If you want to use the spinner theme and insure its integrity why not package that theme with your application? Just move a copy to your / res folder, rename it, and reference your local version. -- You received this message because you are subscribed to the Google Groups "Android Developers" gr

[android-developers] Re: UI Framework Bug?

2011-05-13 Thread authorwjf
For anyone encountering similar problems Kostya was correct in both of his suggestions. Using the built-in progress bar works, or if you need a custom animated icon you can modify the getView method as in my sample as so: @Override public View getView(int position, View convertView, ViewGroup par

[android-developers] Re: UI Framework Bug?

2011-05-12 Thread authorwjf
ogressBar, that can show the > standard progress "wheel', and it works well with setVisbiblity, leaving > no artifacts. Perhaps you could just use that? An added benefit is that > you'll get vendor-specific customizations automatically. > > -- Kostya > > 13.05.20

[android-developers] Re: UI Framework Bug?

2011-05-12 Thread authorwjf
BTW--I think it is interesting that I can show and hide the loading image/icon correctly, its only when I enable the animation that things start going wonky on rows other than the view I'm trying to affect. -- You received this message because you are subscribed to the Google Groups "Android Deve

[android-developers] Re: UI Framework Bug?

2011-05-12 Thread authorwjf
Yet the view that gets affected, is not the one being passed into the function. Meaning I get the callback to update say row 3, and row 3 updates correctly, but the image in row 7 might change as well. Not the text in row 7 though, and the only code that updated the image view first updates the t

[android-developers] Re: UI Framework Bug?

2011-05-12 Thread authorwjf
I am curious what you mean by "make sure you have the states of the views set up correctly". In my original implementation, I was using the convertView in the manner I thought was correct. i.e. View v = convertView; if (v == null) { LayoutInflater vi = (LayoutInflater)c.getSystemService(Conte

[android-developers] Re: UI Framework Bug?

2011-05-12 Thread authorwjf
Yahel's post got me to thinking. I modified the getView method of my data adapter to look like this: @Override public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater vi = (LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View v = vi.inflat

[android-developers] Re: UI Framework Bug?

2011-05-12 Thread authorwjf
Thanks, Yahel. I will give your suggestion a try this morning. -- 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-d

[android-developers] Re: UI Framework Bug?

2011-05-12 Thread authorwjf
I'm also including a few pics to illustrate the issue in case my text isn't entirely clear. [IMG]http://i53.tinypic.com/339oemx.png[/IMG] (http://tinypic.com/r/339oemx/7) [IMG]http://i53.tinypic.com/2qjhevo.png[/IMG] (http://tinypic.com/r/2qjhevo/7) [IMG]http://i56.tinypic.com/2s1agsp.png[/IMG

[android-developers] UI Framework Bug?

2011-05-12 Thread authorwjf
Hello Android UI Gurus, I have been struggling for a few days now with an annoying UI issue. I've whittled the project down to nothing but a small demonstration of the problem. I admit I'm pretty new to Android UI work, but at the same time I'm an experienced, qualified engineer and I just can't

[android-developers] Custom Menu Layout

2011-04-06 Thread authorwjf
, here is my solution: http://www.codeproject.com/KB/android/AndroidMenusMyWay.aspx. There is plenty of room for improvement I realize but hopefully the code will help save some of my fellow devs some time. Regards, authorwjf -- You received this message because you are subscribed to the Google

[android-developers] Re: rotating a bitmap

2011-03-16 Thread authorwjf
Thanks for the suggestions Nicholas & Marcin. I hope to get a chance to give them both a try tomorrow night. I especially like not having the overhead of creating the second bitmap. I didn't realize that was an option. I should have explored the canvas object more closely. -- You received thi

[android-developers] rotating a bitmap

2011-03-15 Thread authorwjf
Howdy Android Gurus! I am hoping someone out there who is an expert in GFX (or at least not a n00b like me), can give me some words of wisdom. In my onDraw callback I am presently displaying a simple bitmap, its just 48x48 pixels. I load it up early on like this: // during initialization i load

[android-developers] Re: Virtual keypad is hiding data elements of the screen.

2010-11-23 Thread authorwjf
Add: android:windowSoftInputMode="adjustResize" to your manifest for each activity that is giving you problems. -- 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 un

[android-developers] Re: New ADT available.

2010-10-13 Thread authorwjf
"My conclusion is that 0.9.9 is not ready for prime time; I recommend everyone to avoid it." Well said, String. I second that. Short of re-installing I found no way to get the environment operational after the update. Though at least I am up and running again. -- You received this message bec

[android-developers] Re: New ADT available.

2010-10-06 Thread authorwjf
I too have ran into this same issue. I literally selected update from the Eclipse (3.5.1) menu and allowed the IDE to download and install the ADT 0.9.9 update and poof my development environment was FUBAR. I appreciate the work that goes into patches and updates but all of that takes a back seat

[android-developers] Re: Using Eclipse - can it get faster?

2010-09-20 Thread authorwjf
Have you tried increasing some of the memory allocations for Eclipse up front in your ini file? It maybe sounds counter intuitive but giving Eclipse a little more memory will save some of the disk swapping and I/O is where the real slow down is for any desktop application in my experience. Basic

[android-developers] Re: Debugging on a real device

2010-09-17 Thread authorwjf
m/group/android-developers/browse_thread/thread/3571170253b99d0/92c8a626e08e2574?lnk=gst&q=authorwjf#92c8a626e08e2574 -- 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@googleg

[android-developers] Re: Developing Android REST Client Applications

2010-09-01 Thread authorwjf
In its most basic format, calling a rest service is simply doing an HTTP call. For example: public void callSomeApi() throws Exception { DefaultHttpClient httpclient = new DefaultHttpClient(); httpclient.getCredentialsProvider().setCredentials( new AuthSc

[android-developers] Re: Droid 2 ADB Issue

2010-09-01 Thread authorwjf
http://groups.google.com/group/android-developers/browse_thread/thread/3571170253b99d0/92c8a626e08e2574 On Aug 30, 1:11 pm, Jon Cook wrote: > Has anyone had any problems with you're Droid 2 to ADB? Things were > great on the Droid 1. I updated all of the Motorola drivers and so > forth but no lu

[android-developers] Re: How to make the eclipse to recognize my mobile phone?

2010-08-26 Thread authorwjf
See this thread. http://groups.google.com/group/android-developers/browse_thread/thread/3571170253b99d0/cf5ff7cdbec6e42d?lnk=gst&q=authorwjf#cf5ff7cdbec6e42d Might help. On Aug 26, 7:31 am, Lidia G wrote: > Hello guys, > > I am testing my android application and i want to run

[android-developers] Re: connected Motorola Droid not recognized by adb

2010-08-19 Thread authorwjf
Like you I had similar problems getting my Motroloa DROID to show up as a device in Android Device Chooser dialog under Eclipse. I am running the 32-bit version of Windows 7. I found a number of forums that tried to address this issue, but no one seemed exactly sure what was happening, and a number

[android-developers] keyboard textfield selected color

2010-06-15 Thread authorwjf
Howdy, I am sure there is an easy answer for this but I've yet to find it. Our application requires us to change out a number of the system 9.png images (okay, actually our marketing dept is requiring as I'm fine with the orange). Anyhow, I've been successful in getting most buttons to change by