[android-developers] Print from device

2011-11-17 Thread ecspertiza
HI, can i print document from android device ? May be there is Action
or 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] Re: Print from device

2011-11-17 Thread ecspertiza
Thanks, i find this 
http://www.slideshare.net/wolfpaulus/android-print-intent-8431140
may by that help me :)

On Nov 17, 3:42 pm, Carlos A. M. dos Santos unixma...@gmail.com
wrote:
 On Thu, Nov 17, 2011 at 6:01 AM, ecspertiza ecspert...@gmail.com wrote:
  HI, can i print document from android device ? May be there is Action
  or SDK ?

 Unfortunately there is no official print action. Some printing
 applications answer to the share and/or view action, but this is
 just a workaround.

 --
 The flames are all long gone, but the pain lingers on

-- 
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: Hide\show aplication and restart activity

2011-10-31 Thread ecspertiza
I don`t press Back, i press Big button :) http://i39.tinypic.com/jsj3x1.png
his called finish() ?

I use this sample 
http://www.droidnova.com/how-to-create-a-splash-screen,561.html
first start run SplashScreen then MyApp, if i hide\show app i see how
run only MyApp.


i have this is my AndroidManifest.xml

activity android:name=.SplashScreen
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity android:name=.MyActivity
android:configChanges=orientation|locale|fontScale|keyboard|
keyboardHidden
intent-filter
action android:name=ru.systtech.mobile.MyActivity /

category
android:name=android.intent.category.DEFAULT /
/intent-filter
/activity

Upon completion of the SplashScreen his call finish()
but if i hide\show app i se how restart all Activity. This happens
spontaneously? Or is there a pattern ?

On Oct 27, 9:20 pm, TreKing treking...@gmail.com wrote:
 On Wed, Oct 26, 2011 at 10:41 AM, ecspertiza ecspert...@gmail.com wrote:
  Why activity restart ?

 You pressed Back, called finish(), or the system killed your Activity.

  How to do hide\show  without restart ?

 This will happen automatically, if possible.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered 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] Hide\show aplication and restart activity

2011-10-26 Thread ecspertiza
HI all. If i hide and show application i see to my log how activity
restart, (onCreate ... blablabla) . Thereby many function work not
correct. Why activity restart ? How to do hide\show  without restart ?

-- 
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] ErrorMessageHandler.handleMessage(-1) to start camera

2011-10-10 Thread ecspertiza
Hi all, I use code

Intent intent = new Intent(android.media.action.IMAGE_CAPTURE);
startActivityForResult(intent, 0);

to start standart camera. Standart camera run and i get message
ErrorMessageHandler.handleMessage(-1).

what 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 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 enable\disable GPS ?

2011-10-04 Thread ecspertiza
Hi, all. I need to enable\disable gps programmatically. I used code

String provider =
Settings.Secure.getString(QtApplication.mainActivity().getContentResolver(),
Settings.Secure.LOCATION_PROVIDERS_ALLOWED);

if(!provider.contains(gps)){ //if gps is disabled
   final Intent poke = new Intent();
   poke.setClassName(com.android.settings,
com.android.settings.widget.SettingsAppWidgetProvider); //$NON-
NLS-1$//$NON-NLS-2$
   poke.addCategory(Intent.CATEGORY_ALTERNATIVE);
   poke.setData(Uri.parse(3)); //$NON-NLS-1$
   sendBroadcast(poke);
}

but this, not work.

or this code

Settings.Secure.setLocationProviderEnabled(QtApplication.mainActivity().getContentResolver(),gps,true);

but this return exception

Writing exception to parcel
java.lang.SecurityException: Permission Denial: writing
com.android.providers.settings.SettingsProvider uri content://settings/secure
from pid=29196, uid=10067 requires android.permission.WRITE_SETTINGS

i added uses-permission
android:name=android.permission.WRITE_SETTINGS in
AndroidManifest.xml but still the exception.

What wrong ?

P.S. Sorry for my English :)

-- 
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