¡@

Home 

2014/10/16 ¤W¤È 08:21:39

android Programming Glossary: ps

PhoneGap 1.4 wrapping Sencha Touch 2.X - What about performance?

http://stackoverflow.com/questions/10085637/phonegap-1-4-wrapping-sencha-touch-2-x-what-about-performance

http www.sencha.com blog sencha touch 2 developer preview PS While it's much relevant to the OS's limit you can also optimize..

Error importing HoloEverywhere

http://stackoverflow.com/questions/10608539/error-importing-holoeverywhere

this problem and use this library in my project . Thanks PS. Sorry for my english I know it is not very good. android themes..

Javamail api in android using XOauth

http://stackoverflow.com/questions/12503303/javamail-api-in-android-using-xoauth

a sample code available on the net Thanks in advance. PS I have never ever worked with mailing services SMTP requests...

How to use web camera in android emulator to capture a live image?

http://stackoverflow.com/questions/1276450/how-to-use-web-camera-in-android-emulator-to-capture-a-live-image

canvas capture the frame onto the canvas cs.close PS I haven't been able to test this because I'm getting an error.. I'm getting an error when I run WebcamBroadcaster . PPS I just started experimenting with Android today so all this..

Failed to load map. Error contacting Google servers. This is probably an authentication issue

http://stackoverflow.com/questions/17667935/failed-to-load-map-error-contacting-google-servers-this-is-probably-an-authent

permission android name com.jertt.yummymap.permission.MAPS_RECEIVE android protectionLevel signature uses permission android.. permission android name com.jertt.yummymap.permission.MAPS_RECEIVE uses permission android name android.permission.INTERNET.. verify meta data .... should be inside application tag PS. 1. Also try by adding following Permission uses permission..

Changing background color of ListView items on Android

http://stackoverflow.com/questions/2217753/changing-background-color-of-listview-items-on-android

to change those background colors and keep the selector PS I would rather not change the selector itself. EDIT Authors.. android listview colors share improve this question PS I would rather not change the selector itself. If you don't..

Prevent ProgressDialog from being dismissed when I click the search button (Android)

http://stackoverflow.com/questions/2502443/prevent-progressdialog-from-being-dismissed-when-i-click-the-search-button-andr

other keys. Would be curious if you can figure that out... PS I read somewhere there are more holes in the dialog i.e you..

Android 2.1 View's getDrawingCache() method always returns null

http://stackoverflow.com/questions/2817166/android-2-1-views-getdrawingcache-method-always-returns-null

works. What is the right way or what I'm doing wrong PS In real code I want to apply getDrawingCache on a ViewGroup..

How to get the number of unread gmail mails (on android)

http://stackoverflow.com/questions/2992635/how-to-get-the-number-of-unread-gmail-mails-on-android

the knowledge to find this out on my own from the source. PS I would like to clarify that I want to do it without having..

Android file uploader with server-side php

http://stackoverflow.com/questions/3204476/android-file-uploader-with-server-side-php

to no experience in this and I am at a loss. Thanks NS PS. I have no experience in PHP coding. java php android file..

Removing address bar from browser (to view on Android)

http://stackoverflow.com/questions/4068559/removing-address-bar-from-browser-to-view-on-android

Detect touch press vs long press vs movement?

http://stackoverflow.com/questions/4324362/detect-touch-press-vs-long-press-vs-movement

controls to pop up and long press it for an options menu. PS. I'm trying to get it to work on Android 1.5 since my phone..

Screen blinking when using a webview with flash

http://stackoverflow.com/questions/5095977/screen-blinking-when-using-a-webview-with-flash

of black screen then the animation finally appear. PS My layout is quite simple too xml version 1.0 encoding utf 8..

How can I improve the look and feel of an Android app?

http://stackoverflow.com/questions/5296767/how-can-i-improve-the-look-and-feel-of-an-android-app

have some sort of tutorial place it inside a SwipeView . PS If you want your login to be secure use naked password for Android..

Install apps silently, with granted INSTALL_PACKAGES permission

http://stackoverflow.com/questions/5803999/install-apps-silently-with-granted-install-packages-permission

root with granted android.permission.INSTALL_PACKAGES PS I am writing an app that will install many apk's from folder..

R cannot be resolved - Android error

http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error

be resolved on line setContentView R.layout.main Why PS I do have an XML file named main.xml under res layout . android..

How to query a web service via POST request in Android?

http://stackoverflow.com/questions/9237082/how-to-query-a-web-service-via-post-request-in-android

GetFeature version 1.1.0 typeName ogdwien BAUMOGD srsName EPSG 4326 String url http data.wien.gv.at daten geoserver wfs TODO.. and let's read it in the Web service definition PS I did not test these but namespace i think should be http www.opengis.net..

android: broadcast receiver for screen on and screen off

http://stackoverflow.com/questions/9477922/android-broadcast-receiver-for-screen-on-and-screen-off

when your service is running which won't irritate user. PS start the service in foreground to make it running longer. ..

Accessing localhost of PC from USB connected Android mobile device

http://stackoverflow.com/questions/9887621/accessing-localhost-of-pc-from-usb-connected-android-mobile-device

any wireless connection using only USB connection . PS This same scenario works when I run the app on an emulator and..

Fix 3GP file after streaming from Android Media Recorder

http://stackoverflow.com/questions/11994470/fix-3gp-file-after-streaming-from-android-media-recorder

with any player. It's because Android not filling some gaps in the file because socket is not seekable. As I understand.. code. Here is sample file that saved from stream https dl.dropbox.com u 17510473 sample_not_playable.3gp Can anyone.. you most probably don t you cannot pre create the header. ps. mp4 and 3gp are cousins so the same thing applies. Many people..

How to keep only first added Fragment in back stack (fragment overlapping)?

http://stackoverflow.com/questions/14269350/how-to-keep-only-first-added-fragment-in-back-stack-fragment-overlapping

launch time. If sequential back navigation fallows then apps exit. My code protected override void OnCreate Bundle savedInstanceState.. that the transaction that you're backing from have two steps remove infoFrag add detailsFrag that is the first1 detail container.. that one transaction is reverting exactly those 2 steps and it say nothing about the last detailFrag that was added..

Android - Hide WebView until JavaScript is done

http://stackoverflow.com/questions/16342100/android-hide-webview-until-javascript-is-done

page for a second and than the JavaScript is done.. Anyone ps. The website is not mine its 3th party website javascript android..

Delete SMS in Android 1.5

http://stackoverflow.com/questions/2183680/delete-sms-in-android-1-5

catch Exception e return count Thanks everyone for help ps if this code is useful for some one remember that catch Exception..

Listen to ActivityManager events?

http://stackoverflow.com/questions/2272168/listen-to-activitymanager-events

and older ones after in order. For details check docs Perhaps though Android is a Linux you can run system tools like Runtime.getRuntime.. you can run system tools like Runtime.getRuntime .exec ps aux grep smth But I think it would be hard to detect particular..

AlarmManager and BroadcastReceiver instead of Service - is that bad ? (Timeout)

http://stackoverflow.com/questions/3117350/alarmmanager-and-broadcastreceiver-instead-of-service-is-that-bad-timeout

the update starts but then after about 10 seconds it stops Timeout 06 25 11 55 05.278 WARN ActivityManager 76 Timeout of.. 76 Process com.cousinHub.myapp remote pid 819 has died. ps strangely enough this Timeout does not happen after about 10.. your BroadcastReceiver delegate to an IntentService perhaps a WakefulIntentService . Did I set up my BroadcastReceiver correctly..

Moving icons on a Android MapView

http://stackoverflow.com/questions/3795834/moving-icons-on-a-android-mapview

need to use a different type of overlay android google maps android mapview itemizedoverlay share improve this question..

Runnable is posted successfully but not run

http://stackoverflow.com/questions/4083787/runnable-is-posted-successfully-but-not-run

things right. Does anybody understand what's going on here ps. this was all observed on an Android 1.6 phone and android 3..

Rendering HTML in a WebView with custom CSS

http://stackoverflow.com/questions/4950729/rendering-html-in-a-webview-with-custom-css

able to find and use css files from the assets directory. ps And yes if you load your html file form the assets folder you..

Wifi sleeps, even with Lock

http://stackoverflow.com/questions/5147203/wifi-sleeps-even-with-lock

sleeps even with Lock Summary even when wifi lock is acquired when.. running on battery and the user turns off the phone it keeps sending strings for some time and then WiFi is disconnected.. byte 1000 try s new Socket 192.168.0.16 2000 PrintStream ps new PrintStream s.getOutputStream InputStream is s.getInputStream..

Is there a way to tell if the soft-keyboard is shown?

http://stackoverflow.com/questions/5457486/is-there-a-way-to-tell-if-the-soft-keyboard-is-shown

1 then use it in your ListActivity. hope this helps ps. check Configuration Changes only works for hand keyboard... 1 then use it in your ListActivity. hope this helps ps. check Configuration Changes only works for hand keyboard. ..

Android rotate imageview, i cant set the final position of imageview in onAnimationEnd()

http://stackoverflow.com/questions/5928412/android-rotate-imageview-i-cant-set-the-final-position-of-imageview-in-onanimat

the way i actualize the position in the onAnimationEnd . ps sorry for my bad english... android animation imageview rotation.. the internal image by 30 degrees. This effectively jumps the image to a rotation of 60 degrees as seen by the user 30..

Problem with Runtime.exec and Android

http://stackoverflow.com/questions/6018126/problem-with-runtime-exec-and-android

N° i BEGIN try Process process runtime.exec system bin ps process.getErrorStream .close process.getOutputStream .close..

Every Activity in Android is a Process,or One Application is one process

http://stackoverflow.com/questions/6468126/every-activity-in-android-is-a-process-or-one-application-is-one-process

One Application is one process In this page http androidapps.org.ua androidintro_ipc.html intent switching between activities.. above manifest all activities run in process com.so.test ps command output in adb shell # ps app_39 668 33 84492 20672 ffffffff.. in process com.so.test ps command output in adb shell # ps app_39 668 33 84492 20672 ffffffff afd0c51c S com.so.test If..

android list inside layout

http://stackoverflow.com/questions/8814556/android-list-inside-layout

inside my layout and place it to specified location center ps. I havent found a list in the graphical layout editor of the..

change process priority in android

http://stackoverflow.com/questions/9281543/change-process-priority-in-android

found nothing on changing process priority by some method. ps I need this to test only some feature of application which is..

PhoneGap 1.4 wrapping Sencha Touch 2.X - What about performance?

http://stackoverflow.com/questions/10085637/phonegap-1-4-wrapping-sencha-touch-2-x-what-about-performance

article about iOS Android devices performance comparison. http www.sencha.com blog sencha touch 2 developer preview PS While it's much relevant to the OS's limit you can also optimize your app to make it perform better on Android devices...

Error importing HoloEverywhere

http://stackoverflow.com/questions/10608539/error-importing-holoeverywhere

wrap_content android text @string text How I can solve this problem and use this library in my project . Thanks PS. Sorry for my english I know it is not very good. android themes actionbarsherlock android holo everywhere share improve..

Javamail api in android using XOauth

http://stackoverflow.com/questions/12503303/javamail-api-in-android-using-xoauth

API any other mail api 2 how to get OAuth Token 3 Is there a sample code available on the net Thanks in advance. PS I have never ever worked with mailing services SMTP requests. android oauth 2.0 javamail share improve this question..

How to use web camera in android emulator to capture a live image?

http://stackoverflow.com/questions/1276450/how-to-use-web-camera-in-android-emulator-to-capture-a-live-image

deal with failure to obtain camera while some condition cs.capture canvas capture the frame onto the canvas cs.close PS I haven't been able to test this because I'm getting an error when I run WebcamBroadcaster . PPS I just started experimenting..

Failed to load map. Error contacting Google servers. This is probably an authentication issue

http://stackoverflow.com/questions/17667935/failed-to-load-map-error-contacting-google-servers-this-is-probably-an-authent

RelativeLayout Manifest.xml Google Map permission android name com.jertt.yummymap.permission.MAPS_RECEIVE android protectionLevel signature uses permission android name com.jertt.yummymap.permission.MAPS_RECEIVE uses permission.. android protectionLevel signature uses permission android name com.jertt.yummymap.permission.MAPS_RECEIVE uses permission android name android.permission.INTERNET uses permission android name android.permission.ACCESS_NETWORK_STATE.. 0x00020000 android required true uses feature and also verify meta data .... should be inside application tag PS. 1. Also try by adding following Permission uses permission android name com.google.android.providers.gsf.permission.READ_GSERVICES..

Changing background color of ListView items on Android

http://stackoverflow.com/questions/2217753/changing-background-color-of-listview-items-on-android

but then the selector overlays the whole item. Any ideas how to change those background colors and keep the selector PS I would rather not change the selector itself. EDIT Authors of GMail application have managed to achieve exactly this so.. managed to achieve exactly this so it's definitely possible. android listview colors share improve this question PS I would rather not change the selector itself. If you don't want to do that why you must create a state drawable as the..

Prevent ProgressDialog from being dismissed when I click the search button (Android)

http://stackoverflow.com/questions/2502443/prevent-progressdialog-from-being-dismissed-when-i-click-the-search-button-andr

button presses and only handle these return true for any other keys. Would be curious if you can figure that out... PS I read somewhere there are more holes in the dialog i.e you can get rid of it without hitting any buttons on it. This was..

Android 2.1 View's getDrawingCache() method always returns null

http://stackoverflow.com/questions/2817166/android-2-1-views-getdrawingcache-method-always-returns-null

boolean and View.setWillNotCacheDrawing boolean but nothing works. What is the right way or what I'm doing wrong PS In real code I want to apply getDrawingCache on a ViewGroup like RelativeLayout. Is the behaviour the same when using a..

How to get the number of unread gmail mails (on android)

http://stackoverflow.com/questions/2992635/how-to-get-the-number-of-unread-gmail-mails-on-android

Count Sorry if it seams a bit insistent but I clearly lack the knowledge to find this out on my own from the source. PS I would like to clarify that I want to do it without having to ask the user for credentials. Just 2 add some colors to the..

Android file uploader with server-side php

http://stackoverflow.com/questions/3204476/android-file-uploader-with-server-side-php

provide code and or a good link to what I need I have little to no experience in this and I am at a loss. Thanks NS PS. I have no experience in PHP coding. java php android file upload share improve this question Yeah so I found the java..

Removing address bar from browser (to view on Android)

http://stackoverflow.com/questions/4068559/removing-address-bar-from-browser-to-view-on-android

Detect touch press vs long press vs movement?

http://stackoverflow.com/questions/4324362/detect-touch-press-vs-long-press-vs-movement

it's too large for the screen. You can tap it once for some controls to pop up and long press it for an options menu. PS. I'm trying to get it to work on Android 1.5 since my phone only runs on 1.5. android touch move long press share improve..

Screen blinking when using a webview with flash

http://stackoverflow.com/questions/5095977/screen-blinking-when-using-a-webview-with-flash

really more every activity with a webview blink a few milliseconds of black screen then the animation finally appear. PS My layout is quite simple too xml version 1.0 encoding utf 8 LinearLayout xmlns android http schemas.android.com apk res..

How can I improve the look and feel of an Android app?

http://stackoverflow.com/questions/5296767/how-can-i-improve-the-look-and-feel-of-an-android-app

Install apps silently, with granted INSTALL_PACKAGES permission

http://stackoverflow.com/questions/5803999/install-apps-silently-with-granted-install-packages-permission

installation dialog. How can I install app silently without root with granted android.permission.INSTALL_PACKAGES PS I am writing an app that will install many apk's from folder into the system on the first start replace Setup Wizard . I..

R cannot be resolved - Android error

http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error

R.layout.main but Eclipse gives me the error R cannot be resolved on line setContentView R.layout.main Why PS I do have an XML file named main.xml under res layout . android eclipse android resources share improve this question..

How to query a web service via POST request in Android?

http://stackoverflow.com/questions/9237082/how-to-query-a-web-service-via-post-request-in-android

action http data.wien.gv.at daten wfs service WFS request GetFeature version 1.1.0 typeName ogdwien BAUMOGD srsName EPSG 4326 String url http data.wien.gv.at daten geoserver wfs TODO Is this the correct way to add GetFeature SoapObject soapObject.. schemas.opengis.net wfs 1.1.0 wfs.xsd take the method GetCapabilities and let's read it in the Web service definition PS I did not test these but namespace i think should be http www.opengis.net wfs from targetNamespace methodName GetCapabilities..

android: broadcast receiver for screen on and screen off

http://stackoverflow.com/questions/9477922/android-broadcast-receiver-for-screen-on-and-screen-off

Accessing localhost of PC from USB connected Android mobile device

http://stackoverflow.com/questions/9887621/accessing-localhost-of-pc-from-usb-connected-android-mobile-device

. However is it possible to access the localhost page without any wireless connection using only USB connection . PS This same scenario works when I run the app on an emulator and use the ip 10.0.2.2 to access the localhost on my PC android..

Fix 3GP file after streaming from Android Media Recorder

http://stackoverflow.com/questions/11994470/fix-3gp-file-after-streaming-from-android-media-recorder

to sdcard. Everything works fine except file is not playable with any player. It's because Android not filling some gaps in the file because socket is not seekable. As I understand I need to make some modifications after video stream is over... so afterwards it will be trivial to do the same in the Android code. Here is sample file that saved from stream https dl.dropbox.com u 17510473 sample_not_playable.3gp Can anyone fix to make it playable and tell how he done it EDIT I erase.. which you don't and the exact length of encoding which you most probably don t you cannot pre create the header. ps. mp4 and 3gp are cousins so the same thing applies. Many people confuse live streaming with http pd and pseudo streaming...

How to keep only first added Fragment in back stack (fragment overlapping)?

http://stackoverflow.com/questions/14269350/how-to-keep-only-first-added-fragment-in-back-stack-fragment-overlapping

back he falls back to intial infoFragment what was added in launch time. If sequential back navigation fallows then apps exit. My code protected override void OnCreate Bundle savedInstanceState ... var listFrag new ListFragment var infoFrag.. Why android share improve this question The problem is that the transaction that you're backing from have two steps remove infoFrag add detailsFrag that is the first1 detail container that was added we know that because the documentation.. same arguments given here. So whenever the system is reverting that one transaction is reverting exactly those 2 steps and it say nothing about the last detailFrag that was added to it so it doesn't do anything with it. There're two possible..

Android - Hide WebView until JavaScript is done

http://stackoverflow.com/questions/16342100/android-hide-webview-until-javascript-is-done

after the JavaScript is done Now you get to see the whole page for a second and than the JavaScript is done.. Anyone ps. The website is not mine its 3th party website javascript android webview share improve this question Tested on API..

Delete SMS in Android 1.5

http://stackoverflow.com/questions/2183680/delete-sms-in-android-1-5

Listen to ActivityManager events?

http://stackoverflow.com/questions/2272168/listen-to-activitymanager-events

that are currently running with the most recent being first and older ones after in order. For details check docs Perhaps though Android is a Linux you can run system tools like Runtime.getRuntime .exec ps aux grep smth But I think it would be..

AlarmManager and BroadcastReceiver instead of Service - is that bad ? (Timeout)

http://stackoverflow.com/questions/3117350/alarmmanager-and-broadcastreceiver-instead-of-service-is-that-bad-timeout

process remote PROBLEM The alarm gets fired on time and the update starts but then after about 10 seconds it stops Timeout 06 25 11 55 05.278 WARN ActivityManager 76 Timeout of broadcast BroadcastRecord 44bb4348 null receiver android.os.BinderProxy@44bcc670.. signal. PID 819 SIG 9 06 25 11 55 05.298 INFO ActivityManager 76 Process com.cousinHub.myapp remote pid 819 has died. ps strangely enough this Timeout does not happen after about 10 seconds on my HTC Hero still on Android 1.5 API Level 4 but.. significant work 100ms on the main application thread. Have your BroadcastReceiver delegate to an IntentService perhaps a WakefulIntentService . Did I set up my BroadcastReceiver correctly in the manifest Please please please please please..

Moving icons on a Android MapView

http://stackoverflow.com/questions/3795834/moving-icons-on-a-android-mapview

Do I need to tell the app to make my overlay animate or do I need to use a different type of overlay android google maps android mapview itemizedoverlay share improve this question There are two things that I have in mind about your problem...

Runnable is posted successfully but not run

http://stackoverflow.com/questions/4083787/runnable-is-posted-successfully-but-not-run

blocking the UI thread does fix things but I want to get things right. Does anybody understand what's going on here ps. this was all observed on an Android 1.6 phone and android 3 sdk java android multithreading runnable share improve this..

Rendering HTML in a WebView with custom CSS

http://stackoverflow.com/questions/4950729/rendering-html-in-a-webview-with-custom-css

text html UTF 8 null And only after that WebView will be able to find and use css files from the assets directory. ps And yes if you load your html file form the assets folder you don't need to specify a base url. share improve this answer..

Wifi sleeps, even with Lock

http://stackoverflow.com/questions/5147203/wifi-sleeps-even-with-lock

sleeps even with Lock Summary even when wifi lock is acquired when the phone is running on batteries WiFi is disconnected after.. and released after of course . However when the phone is running on battery and the user turns off the phone it keeps sending strings for some time and then WiFi is disconnected and the phone does not even respond to ping. It takes from 600s.. .setText Doing... _keepOnStart Socket s byte buffer new byte 1000 try s new Socket 192.168.0.16 2000 PrintStream ps new PrintStream s.getOutputStream InputStream is s.getInputStream for int i 0 i 100000 i ps.println System.currentTimeMillis..

Is there a way to tell if the soft-keyboard is shown?

http://stackoverflow.com/questions/5457486/is-there-a-way-to-tell-if-the-soft-keyboard-is-shown

Android rotate imageview, i cant set the final position of imageview in onAnimationEnd()

http://stackoverflow.com/questions/5928412/android-rotate-imageview-i-cant-set-the-final-position-of-imageview-in-onanimat

turnImg.startAnimation anim I think the problem came from the way i actualize the position in the onAnimationEnd . ps sorry for my bad english... android animation imageview rotation share improve this question The problem is that your.. true . Then the onAnimationEnd handler runs which rotates the internal image by 30 degrees. This effectively jumps the image to a rotation of 60 degrees as seen by the user 30 for the View 30 for the bitmap . Then the next time the animation..

Problem with Runtime.exec and Android

http://stackoverflow.com/questions/6018126/problem-with-runtime-exec-and-android

Runtime.getRuntime for int i 0 i 20 i Log.d TESTEXEC EXEC N° i BEGIN try Process process runtime.exec system bin ps process.getErrorStream .close process.getOutputStream .close process.getInputStream .close process.waitFor catch Throwable..

Every Activity in Android is a Process,or One Application is one process

http://stackoverflow.com/questions/6468126/every-activity-in-android-is-a-process-or-one-application-is-one-process

Activity in Android is a Process or One Application is one process In this page http androidapps.org.ua androidintro_ipc.html intent switching between activities is described as Inter Process Communication. Now I am confused.. intent filter activity application manifest In the above manifest all activities run in process com.so.test ps command output in adb shell # ps app_39 668 33 84492 20672 ffffffff afd0c51c S com.so.test If android process is specified.. application manifest In the above manifest all activities run in process com.so.test ps command output in adb shell # ps app_39 668 33 84492 20672 ffffffff afd0c51c S com.so.test If android process is specified for Activity new process will..

android list inside layout

http://stackoverflow.com/questions/8814556/android-list-inside-layout

a table list inside the view layout So how to show a list inside my layout and place it to specified location center ps. I havent found a list in the graphical layout editor of the xml where is the list table 2. I have done some tests with..

change process priority in android

http://stackoverflow.com/questions/9281543/change-process-priority-in-android

and thread description process priorities but I have found nothing on changing process priority by some method. ps I need this to test only some feature of application which is connected with process priority and it won't be used in program...