[android-developers] Re: android application gets killed in stand by mode

2011-12-16 Thread rich friedel
You may be having issues in the onPause() and onResume() callbacks.
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle
 

On Friday, December 16, 2011 9:14:48 AM UTC-5, sktniran wrote:
>
> Hi friends,
>
>
> When the device screen blanks or goes to stand by mode (or they turn
> it off) my app gets killed and  sometimes forces closed as well .  but
> the app should keep running and show up as soon as they turn on and
> unlock the screen after it has gone blank. how to get this please help
> me.
>
>
> Thanks,
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: android application gets killed in stand by mode

2011-12-16 Thread rich friedel
You may be having issues in the onPause() and onResume() callbacks.
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle
 

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Block and resend MMS notification later

2011-12-16 Thread rich friedel
I haven't messed with MMS too much but I do know that you need to use the 
RECEIVE_MMS permission in your manifest  
http://developer.android.com/reference/android/Manifest.permission.html#RECEIVE_MMS

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: "ScrollView can host only one direct child" Error

2011-12-08 Thread rich friedel
You need to put a single child element such as a LinearLayout or 
RelativeLayout inside the ScrollView then put the buttons inside of that 
layout view.

So it looks like...
ScrollView
+LinearLayout <- One Child in the ScrollView
++Button
++Button

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: splash screen

2011-12-07 Thread rich friedel
My bad... I just assumed he was referring to the loading of data in the 
app, not the UI elements

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: splash screen

2011-12-07 Thread rich friedel
Yeah, create an 
AsyncTaskand 
do your loading/building stuff in that. You can even post a "message" 
back for the dialog in the 
onProgressUpdate()
.

When it is done 
onPostExecute()will
 be called where you can call your startActivity(Intent).

I will warn you though, use due diligence when implementing AsyncTask: 
https://www.google.com/#hl=en&q=android+development+asynctask+crash+when+rotating+screen
 if 
you destroy the activity that the AsyncTask is tied to then recreate it (as 
in a screen rotation) the AsyncTask won't know what to do and throw an 
exception.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: splash screen

2011-12-07 Thread rich friedel
Just make an activity that is your splash screen then do the loading in the 
background. When it's done send a message back to the activity and move on. 

You could also create a "loading"/"setting things up"/"building your data 
spinner" dialog.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Reasons that the passed Intent would be NULL in onStartCommand

2011-12-07 Thread rich friedel
Asked on SO as well...

http://stackoverflow.com/questions/8421430/reasons-that-the-passed-intent-would-be-null-in-onstartcommand

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Query

2011-12-07 Thread rich friedel
I'll reply to the OP and not be so nice...

Hey OP, your laziness is insulting to me and probably to anyone who has had 
to teach themselves. You say you know what Google search is and how to use 
it... then do so, use it!!!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Reasons that the passed Intent would be NULL in onStartCommand

2011-12-07 Thread rich friedel
Also, when the service is restarted by the system the Intent.getAction() 
method returns NULL... sometimes. Intent is not NULL just getAction()

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Reasons that the passed Intent would be NULL in onStartCommand

2011-12-06 Thread rich friedel
Is there any other reason that the Intent that is passed to 
onStartCommand(Intent, int, int) would be NULL besides the system 
restarting the service via a flag such as START_STICKY?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SQLite concurrency

2011-10-11 Thread rich friedel
@Zsolt Vasvari Just a quick thought for you... Consider closing stuff like 
the database/database adapter in your onPause() method of the Activity. 
onPause is always called where onDestroy is called whenever, thus the 
database might still be "open" when it is expected to be closed. I tend to 
close close, unregister, etc.. stuff in the onPause and open, register them 
in the onResume methods.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: 9Slice and repeating image

2011-10-03 Thread rich friedel
WHOA!!! My bad man! When I read your question I was not thinking... I am 
sorry about that!

You are correct that it only stretches and does not repeat, nor is there a 
way (that I know of) to repeat a portion of a nine patch.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Activity gets (re)created when device goes to sleep?

2011-10-03 Thread rich friedel
As more of a band-aid, you could force keeping the device awake while your 
app is running

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: SQLite Open failed

2011-10-03 Thread rich friedel
Kinda sounds like a race condition between SQLiteOpenHelper and onCreate... 
maybe?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Layout

2011-10-03 Thread rich friedel
Use RelativeLayout 
http://developer.android.com/reference/android/widget/RelativeLayout.html

*hint:* look up layout_alignParentTop and layout_alignParentLeft etc...

Google is most definitely your friend here ;)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: big arrays don't cry - just an alibi

2011-10-03 Thread rich friedel
...and was it as awesome as you had hoped?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: preventing keyboard pop up on device when screen pushed

2011-10-03 Thread rich friedel
In your manifest declare the windowSoftInputMode and configChanges
http://developer.android.com/resources/articles/on-screen-inputs.html



-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: 9Slice and repeating image

2011-10-03 Thread rich friedel
Yes

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Getting a String to AppWidget via GetExtras (or) Shared prefrences

2011-09-28 Thread rich friedel
Answered your question on SO...
http://stackoverflow.com/questions/7560265/getting-a-string-to-appwidget-via-getextras-or-shared-prefrences/7588272#7588272

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: no XML code formatting options in eclipse classic?

2011-09-18 Thread rich friedel
Man... it took me well over a year of using Eclipse before I happened onto 
that!!!

Glad it works :)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: no XML code formatting options in eclipse classic?

2011-09-18 Thread rich friedel
Sure there is! It just isn't like the code formatter...

Window>Preferences>XML>XML Files>Editor

You can make each attribute on a single line, indention, etc... It's not 
super flexible but it works for what you want.

@Tor Norbye THANK YOU!!! That will be nice :) String formatting is my most 
hated thing! I have to specifically remember to NOT hit CTRL+Shift+F in my 
strings file

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] same app one tablet and phone with differnt gui

2011-09-10 Thread rich friedel
You are on the correct path... use the different layouts to target the device. 

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Get views and widgets of activities in a default android applications (Settings, contacts etc)

2011-09-10 Thread rich friedel
AFAIK you cannot do what you describe with the standard Android SDK.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Autoreload of Webview

2011-09-10 Thread rich friedel
Have you attempted to discuss this with your IT people? You are asking how to 
break their currently implemented securtiy policies. No offense, but I would 
fire anyone who did this on the spot without question.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: External images in the notification area.

2011-09-07 Thread rich friedel
http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

How are you gaining access to the external images?

Are you sure that the files and storage actually are available to your 
application?

Before you do any work with the external storage, you should always call 
getExternalStorageState()
 to 
check whether the media is available.

If not, is the device plugged in with USB? 

Caution: External files can disappear if the user mounts the external 
storage on a computer or removes the media...

 

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: project contains many error

2011-09-07 Thread rich friedel
have you tried cleaning the project? In the Eclipse toolbar select 
'Project>Clean'

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?

2011-09-07 Thread rich friedel
What you are asking is how to retrieve tweets from a user without the user 
having to authorize your application to do so. That just sounds shady to me 
at least...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to use Tap Gesture???

2011-09-07 Thread rich friedel
Nice!

as a side note... you might want to throw the @Override annotation on your 
overridden methods from OnGestureListener

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to use Tap Gesture???

2011-09-07 Thread rich friedel

>
> See nrmally when we have a button in a page in the onClick(View  v ){ 
> if(btn1==v) 
> { 
>
> startActivity(new 
> Intent(FirstScreenActivity.this,SecondScreenActivity.class)); 
>
> } 
>
> } 
>
 
If that is the way you are doing it then I would (as others have) recommend 
reading up on how to listen and respond to click events. I see absolutely no 
reason to use an if/else statement when the listener is tied directly to the 
button.

Also you can make the ENTIRE view clickable: 
http://developer.android.com/reference/android/view/View.OnClickListener.html
 

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Error starting app. Must force a close

2011-09-07 Thread rich friedel
When you first start the debugger, a force close message will appear then 
disappear after a bit... then your app will run in the debugger.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] download declined for app on market

2011-09-04 Thread rich friedel
 worked for me

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-03 Thread rich friedel
How is putting them in seperate folders going to make it any different? You are 
still going to have to name them and call them somehow...

@Appholics a switch statement is wy better in that situation.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android installer strange issue

2011-08-31 Thread rich friedel
It is per design. You should call finish() on your activity in your 
onDestroy() method.

Again, I highly recommend you familiarize yourself with the Activity class 
and its lifecycle. 
http://developer.android.com/reference/android/app/Activity.html

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] [How to open 3G data call settings dialog]

2011-08-31 Thread rich friedel


uh please unsubscribe me from this group

This is awesome check it out... 
 

> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-develop...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>

As for your original question
Using the standard SDK you cannot directly control the enabling and 
disabling of WiFi.

I don't know what you are talking about with the 3G stuff.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: AbsoluteLayout

2011-08-31 Thread rich friedel


Am I a naughty boy for wanting to use AbsoluteLayout? 

Not if you need it... do you *really* need it or will RelativeLayout work 
better?
Here is a good article discussing this topic...
http://developer.android.com/resources/articles/layout-tricks-efficiency.html

 Also, is there a way to make Eclipse stop crossing out my layout code? 

Don't use depreciated classes, methods, etc...

Also, understand that ALL iPhones have, more or less, a fixed screen 
size/density. With Android you might have one device where the screen 
density is small and one where it is huge. Imagine what you app will look 
like on not only a very low end device (MetroPcs Huwai Ascend) or on a 10+" 
tablet. Will it look the same, or as 'the same' as you can get?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android installer strange issue

2011-08-31 Thread rich friedel
That is how it is designed to work.

Read up on the Activity Lifecycle 
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: [android-discuss] Re: Embedding a Project made form Adobe FLEX inside an android project in Eclipse.Is it possible?

2011-08-31 Thread rich friedel

>
> Oopss sooryits me Saurabh...my sis was using the same account..
>
lol
 

> Well you pasted teh gogole link..thanks any ways ..have tried it enough 
> ..but will surely look with your keywords.

Yeah try that first Adobe link. I read through it and it looked like what 
you needed.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Embedding a Project made form Adobe FLEX inside an android project in Eclipse.Is it possible?

2011-08-31 Thread rich friedel
Dude! Why is your alias 'Jessica'???

http://www.google.com/search?q=android+development+adding+flex+to+apk

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Please point a noob in the right direction.

2011-08-31 Thread rich friedel
btw I forgot to put the super call in the onStart() method... so it should 
look like this instead:

@Override

public void onStart() {

super.onStart();

Button toggleButton = (Button)findViewById( R.id.toggleButton );


toggleButton.setOnClickListener( new View.OnClickListener() {


public void onClick( View v ) {

// Do some click stuff here...

}

} );

}

 

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Please point a noob in the right direction.

2011-08-31 Thread rich friedel
Hello, and I hope you are having fun learning! :)

I took your code and quickly cleaned it up for you. I didn't test it so I 
don't know if anything i've done helped. BUT you had a lot of stuff in there 
that I would be surprised if it even compiled. I wrote comments explaining 
my changes...

Hope it helps

private AudioManager mAudioManager;

private boolean  mPhoneIsSilent;


// Use something else besides a reserved word for naming your fields, 
methods, classes, etc...

// Also you don't need this boolean. You can simply use 'false' or 
'true'

// private boolean False;


/** Called when the activity is first created. */

@Override

public void onCreate( Bundle savedInstanceState ) {

super.onCreate( savedInstanceState );

setContentView( R.layout.main );


mAudioManager = (AudioManager)getSystemService( AUDIO_SERVICE );

checkIfPhoneIsSilent();


// You can wrap your listener with a method however, I find it is 
better to init my

// listeners in the onStart method. See the Activity lifecycle

// Example below in the onStart() method...

// setButtonClickListner();


Log.d( "SilentModeApp", "This is a test" );

}


@Override

public void onStart() {

Button toggleButton = (Button)findViewById( R.id.toggleButton );


toggleButton.setOnClickListener( new View.OnClickListener() {


public void onClick( View v ) {

// Do some click stuff here...

}

} );

}


// I have no idea why this is here??? You perform the check in your 
checkIfPhoneIsSilent()

// {if (mPhoneIsSilent)

// {

// mAudioManager

// .setRingerMode(AudioManager.RINGER_MODE_NORMAL);

//

// mPhoneIsSilent = False;

// }

// else

// {

// mAudioManager

// .setRingerMode(AudioManager.RINGER_MODE_SILENT);

// boolean True = false;

// mPhoneIsSilent = True;

// }


/**

 * Toggles the UI images from silent to normal and vice versa.

 */

void toggleUi() {

ImageView imageView = (ImageView)findViewById( R.id.phone_icon );

Drawable newPhoneImage;


if( mPhoneIsSilent ) {

newPhoneImage = getResources().getDrawable( 
R.drawable.phone_silent );

} else {

newPhoneImage = getResources().getDrawable( R.drawable.phone_on 
);

}

imageView.setImageDrawable( newPhoneImage );

}


/**

 * Checks to see if your phone is currently in silent mode

 * 

 */

private void checkIfPhoneIsSilent() {

int ringerMode = mAudioManager.getRingerMode();

if( ringerMode == AudioManager.RINGER_MODE_SILENT ) {

mPhoneIsSilent = true;

} else {

mPhoneIsSilent = false;

}

}


protected void onResume() {

super.onResume();

checkIfPhoneIsSilent();

toggleUi();

}

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to P2P between with the phone and reader?

2011-08-29 Thread rich friedel
Check out the NFCDemo sample code to get started... 
http://developer.android.com/resources/samples/NFCDemo/index.html

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] parsing an XML document

2011-08-17 Thread rich friedel
SAXParser is the best for me
http://developer.android.com/reference/javax/xml/parsers/SAXParser.html

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: MediaPlayer: setDataSource failed (streaming)

2011-08-17 Thread rich friedel
Do you have the proper permissions set in your manifest file?

 

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Stop compass event (/dev/input/event5)

2011-08-17 Thread rich friedel
http://www.google.com/search?sourceid=chrome&ie=UTF-8&q="dev%2Finput%2Fevent5"#q=android+%22dev%2Finput%2Fevent5%22

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

2011-08-17 Thread rich friedel
You could try obtaining the logs using something like acra 
http://code.google.com/p/acra/ and then you can see what is going on in 
those particular devices.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Select Tag - Item text not displayed in android tablet same as in Desktop browser

2011-08-17 Thread rich friedel
I don't think there is supposed to be quotes around the 5 in the size 
attribute

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: AsyncTask question

2011-08-17 Thread rich friedel
My mistake for not clarifying that AsyncTask is not the actual thread. 
Thanks for pointing that out @Streets Of Boston

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Select Tag - Item text not displayed in android tablet same as in Desktop browser

2011-08-17 Thread rich friedel
I don't know if it matters (though it should) but your option tags are not 
closed.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Just to nag about inconsistency in Android api and lack of enough documentation

2011-08-17 Thread rich friedel
public final void setText (int 
resid)
resid says to me that the param is a resource id whereas setTextColor(int) 
says to me that it is merely an int. Which btw would be the static colors 
from the Android Class 
Color. 
Thus it would be setTextColor(Color.Red)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: AsyncTask question

2011-08-17 Thread rich friedel
It will be ready to kill after onPostExecute() is called.

You can short-circuit this by calling cancel() from within your 
doInBackground() method then checking isCancelled() and if true stop 
whatever your doing and go straight to onPostExecute().

>From 
>AsyncTask
:
Cancelling a task

A task can be cancelled at any time by invoking 
cancel(boolean).
 
Invoking this method will cause subsequent calls to 
isCancelled()
 to 
return true. After invoking this method, 
onCancelled(Object),
 
instead 
ofonPostExecute(Object)
 will 
be invoked after 
doInBackground(Object[])
 returns. 
To ensure that a task is cancelled as quickly as possible, you should always 
check the return value of 
isCancelled()
 periodically 
from 
doInBackground(Object[])

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Set an integer value to an edittext

2011-08-17 Thread rich friedel
That is basic Java man come on... txtMessage.setText(String.valueOf(msg1) + 
"  " + String.valueOf(msg2));

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: just about thread

2011-08-16 Thread rich friedel
Use AsyncTask if it's a one off type thread and pass your array into that 
and do what you need to do then return any results in the onPostExecute() 
method. 
[AsyncTask
]

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Force Close Issue

2011-08-13 Thread rich friedel
Yeah I am starting to think it's the port on the mobo... :-/

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Please, Can someone give me code examples that work with html code readed on Java?

2011-08-13 Thread rich friedel
First you need to use a better club... like Real Madrid! haha j/k

Seriously though you should probably head over to somewhere like StackOverflow 
and use the Java tag to ask your question as it is more of a generic Java 
question.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Force Close Issue

2011-08-13 Thread rich friedel
I can't speak for Samsung but I have had that issue with the Motorola drivers 
on Win7. It sometimes says that I should use USB 2.0 as well. (which I am)

To correct it I simply unplug it and plug it back it and it will usually take 
the first or second time.

Hope that helps

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] TextView

2011-08-13 Thread rich friedel
Also this is the second post (i've seen) where you say LogCat shows 
"nothing"... if that is truly the case then you need to fix that!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] TextView

2011-08-13 Thread rich friedel
what is 'orgname'? Is it a string?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] xml layout error.

2011-08-13 Thread rich friedel
You are missing a layout_width in the second LinearLayout node

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: xml layout error.

2011-08-13 Thread rich friedel
Sort of... Sometimes, after using Eclipse for awhile, LogCat seems to hang and 
will display nothing until you restart eclipse. I don't know why it does this 
but it does.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: greystripe mystery

2011-08-12 Thread rich friedel
Whoops meant to post the actual search...
http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=com.greystripe.android.sdk.s

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: greystripe mystery

2011-08-12 Thread rich friedel
http://stackoverflow.com/questions/4980229/greystripe-full-ads-not-showing

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Honeycomb tablet SIP (Session Initiation Protocol) API not SUPPORTED?

2011-08-11 Thread rich friedel
>From that link you provided... 

*Note:* Not all Android-powered devices support VOIP calls using SIP. You 
should always call 
isVoipSupported()
 to 
verify that the device supports VOIP calling and 
isApiSupported()
 to 
verify that the device supports the SIP APIs.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: how best to access string resources from AsyncTask.doInBackground

2011-08-09 Thread rich friedel
My mistake... I overlooked that you were wanting to access the resource strings 
in the doInBackground() method.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how best to access string resources from AsyncTask.doInBackground

2011-08-08 Thread rich friedel
I don't know the performance hit but you can access your resource like this:

String s = TheParentActivity.this.getString( R.string.your_string_resource 
);

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: how to disable complete action using dialog, so my home application will be the only home application that avalable to the user

2011-08-08 Thread rich friedel
You cannot do this, as stated, using the current Android SDK. You might want 
to try https://groups.google.com/forum/#!forum/android-internals or another 
group where they deal with customizing the core.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Charts in android

2011-08-08 Thread rich friedel
I would hope one would not implement an entire game engine just to draw a 
simple chart/graph...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Charts in android

2011-08-08 Thread rich friedel
http://www.google.com/search?q=how+to+make+chart+in+android

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Splash + Background loading design pattern

2011-08-08 Thread rich friedel
As far as the first, when it finishes just have the app move on 
automatically to the next activity and finish the splashscreen.

The second is a bit more complex... if you think that there would be any 
reason where interrupting incoming data would be a bad thing, then you will 
want to consider using a Service to handle it. Then, when it is finished 
move to the next activity and retrieve the data from the service. This way 
if something happens to your splashscreen activity your app can continue to 
run in the background doing whatever it needs to do and you won't lose the 
network connection and/or data.

I would leave the button out of the splashscreen altogether or, at worst, 
enable it only after all the data has come in.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Screen Shot Capture Timing!!!

2011-08-08 Thread rich friedel
You would probably have better luck finding answers to this topic in the 
Android internals group. 
https://groups.google.com/forum/?hl=en#!forum/android-internals

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: how to get the resource id of the set wallpaper

2011-08-08 Thread rich friedel
You will want to look into properly accessing 
resourcesand
 probably more specifically 
Context.getResources()

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Splash + Background loading design pattern

2011-08-08 Thread rich friedel
Just move the data loading logic into the splashscreen activity then pass 
your data to the second activity (your list)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Is there a best (or worst) time to release apps?

2011-08-08 Thread rich friedel
Sir, I am sorry that you feel as if I "took a swipe" at you personally as 
you mentioned in another post. I was merely saying that this subject 
(Android Marketplace usage research) was probably better asked on the 
Android Marketplace groups forum. I still feel that way. If others do not or 
choose to reply to off-topic or semi off-topic posts, then so be it.

Anyway, after looking around at your other posts I feel as I did in fact 
post properly. Why? As most of your posts seem to be, this post also seems 
like only an attempt to once again be some sort of sounding board for yet 
another complaint about Google, Android and/or the Marketplace after 
cloaking it in innocuous questions/comments. With all that said, I still 
think you should take your negativity over there to the Marketplace people 
and let them have it :)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: I need a CamScanner like example

2011-08-08 Thread rich friedel
@Spooky Thank you sir :)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Is there a best (or worst) time to release apps?

2011-08-06 Thread rich friedel
That would be more a market question...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: I need a CamScanner like example

2011-08-06 Thread rich friedel
You did not ask for "image aligning" anything... you asked for something like 
GeniusScan... or as you called it "scam papper" which I can only assume was 
supposed to mean "scan paper". Therefore I suggested searching for "android 
open source ocr"... OCR stands for Optical Character Recognition.

So which one is it? Do you want image aligning knowledge or scan paper 
knowledge?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Still can't log in to update app...

2011-08-06 Thread rich friedel
True, which is why they make tAttachApkInstaller ;)

All this aside though, none of this drives to the heart of the problem... the 
OP cannot login to their account... I should also have asked what they have 
done to deal with that issue as well.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: I need a CamScanner like example

2011-08-06 Thread rich friedel
You have a lot of "needs" but what you really need is to do a damn search on 
google and find the information yourself and then come on back and ask specific 
questions ;)

hint: seach this... android open source ocr

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Uploading apps on Android Market

2011-08-06 Thread rich friedel
I would hate to have to pay for a tiered data plan and have to update a 4GB app 
more than once/month!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Still can't log in to update app...

2011-08-06 Thread rich friedel
You do realize that email can have attachments right? Why send them a link to 
download and install something you could send directly?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Upload Audio File over Server

2011-08-06 Thread rich friedel
@Randy I would suggest asking the article author... or reading the comment 
where a bunch of people have already faced this issue with the article's 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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Market is showing incompatible with phone, but developer console says it is compatible

2011-08-06 Thread rich friedel
I brought up the root idea because you stated they sent you a screenshot... I 
assumed you were talking about a screenshot of the device's screen.

Anyway, they did some major stuff to the market recently and things have been 
abnormally out of whack for the last week or so. Maybe, this is the cause of 
the discrepency.

You should probably consider contacting the market folks and see what they have 
to say.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Market is showing incompatible with phone, but developer console says it is compatible

2011-08-06 Thread rich friedel
Are you sure that whatever the user rooted their phone with is compatible with 
whatever you are doing?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: starting service from launch icon

2011-07-24 Thread rich friedel
Did you use the activity theme android:theme="@android:style/ Theme.NoDisplay"

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] starting service from launch icon

2011-07-24 Thread rich friedel
Off the top of my head, you could launch an "invisible" Activity then in 
onCreate() start the Service then call finish() on the Activity

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Application doesn't close with back button

2011-07-23 Thread rich friedel
I am confused. Please try to be more clear in the description of your issue.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] AndEngine - what is Mercurial?

2011-07-23 Thread rich friedel
Each developer is probabaly going to have an opinion regarding repo 
solutions... I have to say though that I use Mercurial (via Kiln) and I LOVE 
IT!!! It is so much easier to use than Subversion, which is what I came from 
using. I've not messed with GIT too much so I am pretty neutral as it seems 
good enough.

To answer your question, you are going to need the Mercurial plug-in for 
Eclipse to pull the repo so you can work on it. The best one is called 
MercurialEclipse http://www.javaforge.com/project/HGE also you might want to 
look into TortiseHG as a Mercurial client for your desktop, it integrates right 
into your right click menu.

AndEngine is a pretty decent game engine. It'll get you up and running making 
stuff happen pretty quick.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Issues with 3.2

2011-07-22 Thread rich friedel
Happens to me all the time on the Droid2 (2.2.1) and the DroidX (both 2.2.1 
and 2.3.3)... and it could be any number of ad heavy sites that it happens 
on... ESPN, WSJ, New York Times, Techcrunch, etc... there is 
no consistency as to when it just... closes (if I am lucky I get a FC 
dialog)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to know what internal process runs an application

2011-07-22 Thread rich friedel
You should know if it either started via the Activity or the Service. I 
don't see an issue, or maybe I am just confused. It is not like the app 
magically starts without you, the developer, explicitly knowing how it 
started. You created the entry points from which the app can start. From 
there you pass some sort of data to let whatever is in the hierarchy know 
that something has happened it responds accordingly.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Data Transmission

2011-07-22 Thread rich friedel
Or even better...

http://www.google.com/#q=Android+development+json+or+xml

There are some real eye opening test cases out there that show that json is 
faster up to a point then XML is king as far as parsing goes.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Help needed for dealing with NullPointerException when calling functions on a service just after binding it

2011-07-22 Thread rich friedel
I solved a similar issue by broadcasting that my service is actually active 
and running and then if my activity is active it receives that broadcast and 
does what it needs to do. This way the Activity always "knows" when the 
service is active.

The onBind is not applicable to my situation as my Activity and Service are 
independent of each other. (Activity starts/stops Service but Service does 
not need Activity for anything else)

On Friday, July 22, 2011 6:57:42 AM UTC-4, Mark Murphy (a Commons Guy) 
wrote:
>
> On Fri, Jul 22, 2011 at 4:35 AM, Animesh Sinha  wrote:
> > You are right in saying that android requires developers to write an
> > event-driven code and that effort needs to be put for designing the
> > whole chain of events.
> >
> > But for the following case as shown below, I don't think one can get
> > rid of the NullPointerException thrown in onClick() method of
> > MyServiceClient; Unless instead of storing Service Interface globally,
> > one stores it locally.
>
> Developers disable UI widgets until they can be used.
>
> Hence, developers would have R.id.someBtn disabled until
> onServiceConnected() is called, at which point they would enable that
> widget and thereby allow the user to request actions that involve the
> service.
>
> -- 
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Intent with sensitive param

2011-07-22 Thread rich friedel
@Mark That is extremely interesting! Just like you, I assumed that intent 
extras were private. This begs the question... What to do then to keep 
intent extras private? Better yet, how should we pass sensitive data in an 
intent extra in such a way that the data remains secure?

For example, in the OP's question they use the example of a password. Now 
you can encrypt that password before sending as an intent extra thus any 
nefarious app would not actually collect the "real" password. However, if 
the receiving end expects an encrypted password then all the bad app has to 
do is use the encrypted password string and voila it has access.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Launcher App

2011-07-21 Thread rich friedel
Sorry hit post to quickly...

Meant to also point you to 
HttpClient

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Launcher App

2011-07-21 Thread rich friedel
You will probably want to start with a 
WebView 
then 
do what you need to do using some sort of interwebs communication... REST, 
etc...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Where should I place the EULA check?

2011-07-21 Thread rich friedel
I'm with treking and mark... It is just not worth the headache ATM. 
My philosophy is that if corporations such as Adobe, Microsoft, etc.., who 
are (collectively) way more badass than I am (individually) cannot secure 
their software then I don't have an ice cube's chance in hell of doing it 
either.

Now this is not to say that if they fixed LVL up and made it less 
cumbersome, thus less effort in applying it, I wouldn't consider it as a 
viable option. Kinda like a lock... it's only there to keep honest people 
honest ;)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: What layout the normal 2.3 WVGA 800x480 emulator use?

2011-07-21 Thread rich friedel
You mention creating the files... did you put them in their respective 
directories? The directories that house your drawables have to be named 
specifically. e.g. drawable-hdpi, drawable-mdpi, etc... Also your xml layout 
files can be named anything.

My understanding is this... the system will determine which drawables to use 
by using the screen resolution and then using the appropriate drawables 
defined by the directory they are located in. Your layout will usually stay 
the same, thus you should use dip/dp so that your layout scales properly.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: hi my name is vinodh

2011-07-21 Thread rich friedel
Maybe...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Google checkout? Shipping paid apps?

2011-07-20 Thread rich friedel
Sort of... it will show then, for me at least, there is an ~2 hour delay then 
the transaction will finalize. From there all you need to do is review and 
archive.

Personally, I send an email to each person thanking them then archive that way 
I know who I've thanked and who I haven't.

You shouldn't have to worry about shipping at all for your market app

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


R: Re: [android-developers] Re: LVL behavior on client side license validity check for free apps

2011-07-18 Thread rich friedel
In his next post...

(Billing works just fine with free apps.)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Draw an arrow on map, which always points to the destination

2011-07-18 Thread rich friedel
You are wanting to research augmented reality.

http://www.google.com/#q=android+development+augmented+reality

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

  1   2   >