[android-developers] Re: How to capture system warnings in application ?

2011-05-23 Thread chcat
sense to simply prevent access to this permission to protect users. On Sat, May 21, 2011 at 7:53 AM, Chris Stratton cs07...@gmail.com wrote: On Friday, May 20, 2011 6:16:39 PM UTC-4, TreKing wrote: On Fri, May 20, 2011 at 4:43 PM, chcat vlya...@gmail.com wrote: OK. Asynchronous

[android-developers] How to capture system warnings in application ?

2011-05-20 Thread chcat
I am writing media streaming application... At some point i see the following warnings in LogCat: OsclNativeFile: writing xx bytes takes too long Any idea how i can capture that warning in my application code? Thank you, -- You received this message because you are subscribed to the Google

[android-developers] Re: How to capture system warnings in application ?

2011-05-20 Thread chcat
: On Fri, May 20, 2011 at 9:11 AM, chcat vlyamt...@gmail.com wrote: Any idea how i can capture that warning in my application code? Define capture. - TreKing http://sites.google.com/site/rezmobileapps

[android-developers] back button failure

2011-03-27 Thread chcat
Hello, I have an application where MediaRecord activity is called from the main activity: application android:icon=@drawable/mzeal android:label=@string/ app_name android:debuggable=true activity android:name=.Main android:label=@string/app_name intent-filter

[android-developers] MediaRecorder errors

2011-03-03 Thread chcat
i am using MediaRecorder object class to record media stream on Nexus One phone ( Froyo 2.2.1). I see the following errors in LogCat MediaRecorder m_mediaRecorder; mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); m_mediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);

[android-developers] Re: Android 3.0 questions

2011-02-05 Thread chcat
Why did you mention Honeycomb ? I saw pretty much only Android 3.0/ Gingerbread combination, like http://www.unwiredview.com/2010/06/30/android-3-0-gingerbread-details-1280x760-resolution-1ghz-minimum-specs-mid-oct-release/ I use Nexus One phone, not tablet -V On Feb 4, 11:46 am, Marcin

[android-developers] Re: Android 3.0 questions

2011-02-05 Thread chcat
Why did you mention Honeycomb ? I saw pretty much only Android 3.0/ Gingerbread combination, like http://www.unwiredview.com/2010/06/30/android-3-0-gingerbread-details-1280x760-resolution-1ghz-minimum-specs-mid-oct-release/ I use Nexus One phone, not tablet -V On Feb 4, 11:46 am, Marcin

[android-developers] Re: Android 3.0 questions

2011-02-05 Thread chcat
if that will be the part of media framework release. Any idea if that part is functional in Gingerbread, or when Honycomb might be available for Nexus? Thanks again, -V On Feb 5, 7:36 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Feb 5, 2011 at 7:19 AM, chcat vlyamt...@gmail.com wrote:th

[android-developers] power down handler

2010-11-18 Thread chcat
I have to handle power down event in my service, but so far I couldn't find how to receive power down event...Do I need to implement broadcast receiver functionality in my service? I would appreciate some pointers. -- You received this message because you are subscribed to the Google Groups

[android-developers] BatteryStatsImpl issue

2010-10-26 Thread chcat
I see BatteryStatsImpl issue Couldn't get kernel wake lock stats trying to start my service... That causes timeout executing my service. Is there some workaround for this problem? Os version is Android 2.1-update 1 Thanks, -V -- You received this message because you are subscribed to the Google

[android-developers] problems with cancelling of BackgroundAsyncTask in Activity

2010-10-23 Thread chcat
I have activity class running infinite loop in BackgroundAsyncTask (see below) I have a problem trying to finish this activity, when i press btnClose the activity window disappears, but when i try to re-start this activity from Applications group i have null pointer exception

[android-developers] emulator/ host network setup problems

2010-10-22 Thread chcat
I am trying to test some udp networking between emulator and host and I have a problem with setup. I assigned address 10.0.2.14 to the host interface with 10.0.2.1 as gateway.. Can't ping 10.0.2.15 from my host, neither can i ping 10.0.2.14 from emulator. Ping from emulator to 10.0.2.2 works fine

[android-developers] Re: emulator/ host network setup problems

2010-10-22 Thread chcat
forward and connect to the forwarded port on the development machine's loopback IP - the emulator does not create a dummy network interface in the hosting machine that can be accessed by ip address in the way that virtualbox/vmware/etc often do. On Oct 22, 10:33 am, chcat vlyamt...@gmail.com wrote

[android-developers] Android Dev Phone question

2010-10-22 Thread chcat
Hello, I need to showcase WiFi application on smartphone, so i am interested in using of smartphone as PDA (no cell access).. I wonder if i can do it with Android Dev Phone... Can i just start using it without SIM card? Or, if that is not an option, can i buy it with blank card. Any other ideas?

[android-developers] onProgressUpdate executed only once

2010-10-18 Thread chcat
I am trying to update TextView in my Activity with text messages from DatagramServer ( see below) The problem I have is that backgound UDP server receives plenty of traffic, but onProgessUpdate is ever executed only once so only the first of the messages appear in the TextView Any idea what is my

[android-developers] Re: onProgressUpdate executed only once

2010-10-18 Thread chcat
Never mind... just found problem/solution. The problem was the extra junk in memory allocated for the packet. The solution: msg = new String(packet.getData()).substring(0, packet.getLength()); .. publishProgress(msg); java.net sucks... On Oct 18, 4:20 pm, chcat vlyamt...@gmail.com wrote: I am

[android-developers] problem with updating of TextView from different thread

2010-10-16 Thread chcat
I have an Activity with TextView that I am trying to update from different thread. To do that i pass TextView to the updater thread onCreate(..) .. txtStatus = (TextView)this.findViewById(R.id.status); // start udp server as separate thread and pass TextView to that thread to print text messages

[android-developers] Re: problem with updating of TextView from different thread

2010-10-16 Thread chcat
the easiest: Activity.runOnUIThread(Runnable action) http://developer.android.com/reference/android/app/Activity.html#runO...) -- Kostya 16.10.2010 20:58, chcat пишет: I have an Activity with TextView that I am trying to update from different thread. To do that i pass TextView to the updater

[android-developers] Re: problem with updating of TextView from different thread

2010-10-16 Thread chcat
operations and publish results on the UI thread without having to manipulate threads and/or handlers. -- Kostya 17.10.2010 0:12, chcat пишет: Ok, that helps, but what is Runnable action and how is it related to thread? On Oct 16, 3:00 pm, Kostya Vasilyevkmans...@gmail.com  wrote

[android-developers] How can i set text in EditText

2010-10-13 Thread chcat
Hi all, I am trying to implement simple user input validation in EditText, something like setText(type your password:) ... if ( user input != secretword) setText(incorrect, try again: ) So i am using onTextChanged to validate keyboard input, but how can i set the text without going to infinite

[android-developers] network forwarding question

2010-09-10 Thread chcat
Hi, i am trying to write simple udp client to send echo' messages to my host, eg. from 10.0.2.15 (emulator ip) to 192.168.1.193 ( my host). I redirected host port 4 to emulator port 6 adb forward udp:4 udp:6 so my udp client sends to 192.168.193:6 but i don't receive anything