[android-developers] Re: how to send a pdf file from android to wifi printer programatically?

2011-11-30 Thread Kenny Riddile
On 11/30/2011 4:38 AM, Hrishi wrote: Please bare if is repeated question... I am able to connect to wifi device (printer). Now i want to print a pdf file programatically using wifi connection. can someone tell me how to do it because i am not getting any way to do it. I am able to print text

[android-developers] Re: retrieve resource string from plain class

2011-09-14 Thread Kenny Riddile
On 9/14/2011 3:41 PM, John Goche wrote: Hello, I would like to retrieve the value of a resource string from a plain class that does not have a Context superclass. Is this possible? I see the API: http://developer.android.com/guide/topics/resources/string-resource.html which do not list

[android-developers] Re: word wrapping

2011-09-13 Thread Kenny Riddile
On 9/13/2011 4:22 PM, bob wrote: Is there a way to make Eclipse do word wrapping? Do you all use word wrapping or no? You mean word wrapping your source code? I've never seen anyone want to or do that ever in my entire development career. -- You received this message because you are

[android-developers] Re: word wrapping

2011-09-13 Thread Kenny Riddile
On 9/13/2011 4:38 PM, Tor Norbye wrote: He's probably asking about soft wrapping. Eclipse does not support it directly; see https://bugs.eclipse.org/bugs/show_bug.cgi?id=35779 (though from a quick skim it looks like there might be some support in the framework and some plugins to enable it.) --

[android-developers] Re: Finishing Activities

2011-06-28 Thread Kenny Riddile
On 6/28/2011 12:03 PM, Diogo Salaberri wrote: Hi.. I have a problem, whe I start my aplication the launcher activity is called HOME, and that HOME automatically call other activity called LOGIN. Now, I have to finish this aplication when I click on default back button overwriting onKeyDown. The

[android-developers] Re: Spinner with added Text

2011-04-18 Thread Kenny Riddile
On 4/18/2011 1:13 PM, Kumar Bibek wrote: You cant do that with a spinner. Are you so sure? I believe spinners can be populated both manually and from a database. Just google android dynamic spinner content. Here's one:

[android-developers] Re: Scope of Singletons

2011-03-23 Thread Kenny Riddile
On 3/23/2011 12:37 PM, Jake Colman wrote: I use the following standard paradigm for singletons: private static MyClass instance = null; public static MyClass getInstance() { if( instance = null ) instance = new MyClass(); return instance; } If my application gets killed by

[android-developers] Re: Global Variables

2011-03-10 Thread Kenny Riddile
On 3/9/2011 7:35 PM, TreKing wrote: On Wed, Mar 9, 2011 at 4:30 PM, Kenny Riddile kfridd...@gmail.com mailto:kfridd...@gmail.com wrote: Assuming the singleton is modifiable via its interface, then for all intents and purposes, yes, they are. Again, no. Singleton is a design pattern

[android-developers] Re: Global Variables

2011-03-10 Thread Kenny Riddile
On 3/10/2011 10:41 AM, TreKing wrote: Hmm, perhaps this is semantics at this point. I don't think a singleton is a global, as it's usually a private member that is statically accessible. However, there is global access, of course. If it's a single piece of state that's accessible globally,

[android-developers] Re: Global Variables

2011-03-09 Thread Kenny Riddile
On 3/9/2011 3:41 PM, David Williams wrote: All, What is the best way of going about setting up global variables? There will be like 5-6 global variables that I would like to set when my app is launched that are then available for any code anywhere in my app. I did something similar to this

[android-developers] Re: Global Variables

2011-03-09 Thread Kenny Riddile
On 3/9/2011 4:26 PM, TreKing wrote: On Wed, Mar 9, 2011 at 3:15 PM, David Williams dwilli...@dtw-consulting.com mailto:dwilli...@dtw-consulting.com wrote: That said, why avoid them like the plague? Global variables are one of those things, like Singletons, that on the surface seem to make