[android-developers] Real-time audio capture and streaming on Android ... the latency problem ?

2011-11-07 Thread Emre A. Yavuz
Hi, We would like to capture audio using the MIC on the phone and stream it to a laptop/desktop to play it in real-time. We have a RTSP server on the phone and a RTSP client on the laptop/desktop. The client side is supported by the Live555 streaming library and the MPlayer. We have a code wo

RE: [android-developers] Compiling an app with JAR files or else ...

2011-07-24 Thread Emre A. Yavuz
Thanks Mark ... Emre > From: mmur...@commonsware.com > Date: Sun, 24 Jul 2011 17:21:23 -0400 > Subject: Re: [android-developers] Compiling an app with JAR files or else ... > To: android-developers@googlegroups.com > > On Sun, Jul 24, 2011 at 5:14 PM, Emre A. Yavuz wro

[android-developers] Compiling an app with JAR files or else ...

2011-07-24 Thread Emre A. Yavuz
Hi, We have an application which runs as an Android Service in the background. Let's assume that we would like to have another application (an activity rather than a service this time) which is supposed to bind to this service (assuming that the service is already up and running when thi

RE: [android-developers] Broadcast in WiFi ad-hoc mode

2011-03-12 Thread Emre A. Yavuz
FYI. http://conferences.sigcomm.org/sigcomm/2010/papers/mobiheld/p21.pdf http://code.google.com/p/android-wifi-tether/ Emre > Date: Thu, 10 Mar 2011 16:00:38 -0800 > Subject: [android-developers] Broadcast in WiFi ad-hoc mode > From: lewis.tseng.taiwan.u...@gmail.com > To: android-developers@

[android-developers] Peer to Peer Streaming Protocol on Android ?

2011-02-09 Thread Emre A. Yavuz
Hi, Can anyone suggest a peer to peer streaming protocol library that works well with Android ? Cheers, Emre -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send e

RE: [android-developers] How to take a snapshot of phone's screen ?

2011-01-26 Thread Emre A. Yavuz
ow to take a snapshot of phone's screen ? To: android-developers@googlegroups.com For most devices you can attach DDMS to it and take a screenshot with it. On Wed, Jan 26, 2011 at 11:46 AM, Marcin Orlowski wrote: On 26 January 2011 20:42, Emre A. Yavuz wrote: > > Hi, > >

[android-developers] How to take a snapshot of phone's screen ?

2011-01-26 Thread Emre A. Yavuz
Hi, Is anyone aware of a method to take the snapshot of phone's screen while an app is running ? Running the app on the emulator is not an option since network connectivity is needed. Is there any internal method that we can use ? Thanks in advance, Cheers, Emre

RE: [android-developers] Re: Battery usage measurements

2011-01-21 Thread Emre A. Yavuz
Hi Roger, Could you also send it to the list ? Cheers, Emre > Date: Fri, 21 Jan 2011 12:59:57 -0800 > Subject: [android-developers] Re: Battery usage measurements > From: rogerpodac...@gmail.com > To: android-developers@googlegroups.com > > Filip, later today I will link you all the work tha

RE: [android-developers] Calling a non-static method in an Activity class from a non-Activity class ?

2011-01-04 Thread Emre A. Yavuz
cleaner way is to pass a callback interface reference from your activity to "the other" class instance. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 04.01.2011 16:49 пользователь "Emre A. Yavuz" написал: > > Hi, > > This question might actually have been

[android-developers] What happens when MapView.invalidate() is called ?

2011-01-04 Thread Emre A. Yavuz
Hi, Is anybody aware of a link or a tutorial on the web that explains what happens in detail when MapView's invalidate() method is called ? Isn't the onCreate() method in the MapActivity class recalled ? Cheers, Emre -- You received this message bec

[android-developers] Calling a non-static method in an Activity class from a non-Activity class ?

2011-01-04 Thread Emre A. Yavuz
Hi, This question might actually have been brought to developer's attention here on the list before, yet I wasn't able to find a solution after a brief search on the net. I have a method in one of my Activity classes which I would like to call from a non-Activity class when the Activity cla

[android-developers] Drawing a circle on a MapView to mark the accuracy of the location estimation ?

2010-11-28 Thread Emre A. Yavuz
Hi all, Does anybody have a piece of code or a link that can guide me to draw a circle on a MapView to mark the accuracy of the location estimation ? Is using GPolygon() the only way ? Thanks in advance, Emre -- You received this message because y

RE: [android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ?

2010-11-12 Thread Emre A. Yavuz
onnection.java, line 275, you should see your updateWithNewLocation method (modified sample?). On that line, you will find code that uses a null reference. -- Kostya 12.11.2010 15:07, Emre A. Yavuz пишет: I know ... ; ) This is what I meant by "not much": 11-12 12:34:15.666: WARN/d

RE: [android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ?

2010-11-12 Thread Emre A. Yavuz
here this exception is being generated. On Fri, Nov 12, 2010 at 1:59 PM, Emre A. Yavuz wrote: Not much, just NullPointer Emre Date: Fri, 12 Nov 2010 10:37:56 +0530 Subject: Re: [android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ? Fr

RE: [android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ?

2010-11-12 Thread Emre A. Yavuz
at your logcat. On Fri, Nov 12, 2010 at 5:25 AM, Emre A. Yavuz wrote: Hi, I have created a Tab Layout based on the sample code given in the "Tutorials" section on the Android website. I have two Tabs with two Activities for each one of them. All I want to do is to update a

[android-developers] how to call the setText() method in an Activity that is part of a Tab Layout ?

2010-11-11 Thread Emre A. Yavuz
Hi, I have created a Tab Layout based on the sample code given in the "Tutorials" section on the Android website. I have two Tabs with two Activities for each one of them. All I want to do is to update a "TextView" variable that belongs to a layout of one of the Activities when needed using t

RE: [android-developers] UI -using the setText() method ?

2010-11-11 Thread Emre A. Yavuz
oid-developers] UI -using the setText() method ? > To: android-developers@googlegroups.com > > On Tue, Nov 9, 2010 at 6:20 PM, Emre A. Yavuz wrote: > > I have a TableLayout and I populate its columns (and rows) dynamically by > > calling the setText() method whenever the correspo

[android-developers] UI -using the setText() method ?

2010-11-09 Thread Emre A. Yavuz
Hi, I have a TableLayout and I populate its columns (and rows) dynamically by calling the setText() method whenever the corresponding values are updated. How can I be sure that the new value of a certain table location will fit into its allocated space to avoid any runtime errors ? Thanks in

RE: [android-developers] How to pass a Context variable from one Activity to another ?

2010-11-03 Thread Emre A. Yavuz
en data base is always there. Vinay Julme ** On Wed, Nov 3, 2010 at 5:36 AM, Emre A. Yavuz wrote: Hi, I have a Tab Layout which has two tabs that correspond to one Activity each ("A" and "B") . When I run my application, let's say by running MainActivity(

[android-developers] How to pass a Context variable from one Activity to another ?

2010-11-02 Thread Emre A. Yavuz
Hi, I have a Tab Layout which has two tabs that correspond to one Activity each ("A" and "B") . When I run my application, let's say by running MainActivity(), I expect it to display the first Tab and thus run Activity "A" by default and switch to Activity "B" when the second Tab is selected.

[android-developers] Testing the speed and quality of service of a connection

2010-10-27 Thread Emre A. Yavuz
Dear all, I am looking for an open source app or code snippet to measure the speed (in both directions) and quality of service (delay, jitter and packet loss; probably via ping) of a connection for academic purposes. Is anybody aware of such apps, open source projects or code snippets ? T

RE: [android-developers] To finish() an "Activity" ?

2010-10-06 Thread Emre A. Yavuz
an...@gmail.com > To: android-developers@googlegroups.com > > Maybe you have a memory leak. > > http://developer.android.com/resources/articles/avoiding-memory-leaks.html > > > On Thu, Sep 30, 2010 at 4:19 AM, Mark Murphy wrote: > > On Wed, Sep 29, 2010 at 1

[android-developers] To finish() an "Activity" ?

2010-09-29 Thread Emre A. Yavuz
Hi, Does anybody know why an "[app_process]" stays alive after the finish() method is called to stop an "Activity" ? Here's the (simplified) story in detail; Let's say I have an "Activity" where I call a class instance within its onCreate() method. Let's call this class "ClassA".

[android-developers] Auto-focus problem in Camera class (HTC Hero) ? ...

2010-05-18 Thread Emre A. Yavuz
Hi, We are trying to capture images using phone's camera, which is HTC Hero in this case, using the Camera class in Android. However, we haven't been able to let the phone's camera to autofocus on any object it is pointing at for some reason. Has anybody experienced a similar problem before? A

[android-developers] Auto-focus problem in Camera class (HTC Hero) ? ...

2010-05-18 Thread Emre A. Yavuz
Hi, We are trying to capture images using phone's camera, which is HTC Hero in this case, using the Camera class in Android. However, we haven't been able to let the phone's camera to autofocus on any object it is pointing at for some reason. Has anybody experienced a similar problem before? A

[android-developers] wlan.ko and tiwlan.ini ?

2010-04-15 Thread Emre A. Yavuz
Does anybody know where to find a good tutorial on wlan.ko module and tiwlan.ini configuration file ? What do they do ? How do they do it etc. ? They are associated with the Tethering process. I've searched the net, but I haven't noticed anything solid yet. Cheers, Emre

[android-developers] Renaming image files created by the Camera class ?

2010-04-10 Thread Emre A. Yavuz
Hi, I was just wondering whether anybody has experienced a similar problem before: We're using the Camera class (SDK 1.5) to capture images in HTC Hero. However when we try to rename the image files after, the device does not let us do it even though we have the root privileges. We just

[android-developers] Need a suggestion regarding an app architecture: IPC ?

2010-03-25 Thread Emre A. Yavuz
Hi, I'm looking for suggestions regarding an app architecture that I've just started working on. Let's say I have a "Main Activity" which starts a "Service" which will run until further response from the Main Activity that it should stop. The Service ,once it starts, will start a couple of

[android-developers] Need a suggestion regarding an app architecture: IPC ?

2010-03-25 Thread Emre A. Yavuz
Hi, I'm looking for suggestions regarding an app architecture that I've just started working on. Let's say I have a "Main Activity" which starts a "Service" which will run until further response from the Main Activity that it should stop. The Service ,once it starts, will start a couple o

RE: [android-developers] su access

2010-03-12 Thread Emre A. Yavuz
It could be something to do with your code, but did you have the permissions below in your Android Manuscript file ? Emre > Date: Fri, 12 Mar 2010 06:43:05 -0800 > Subject: [android-developers] su access > From: abdulraqee...@gmail.com > To: android-developers@googlegroups.com >

[android-developers] LocationManager not working on a production device (HTC Hero - SDK 1.5) ?

2010-03-06 Thread Emre A. Yavuz
Hi, I have a short script, which is pasted below, to test the Location Management function on a production device. The code works well in the emulator and captures the location as expected when it is fixed using the DDMS application in Eclipse. However, when I try it on a production device

[android-developers] LocationManager not working on a production device (HTC Hero - SDK 1.5) ?

2010-03-06 Thread Emre A. Yavuz
Hi, I have a short script, which is pasted below, to test the Location Management function on a production device. The code works well in the emulator and captures the location as expected when it is fixed using the DDMS application in Eclipse. However, when I try it on a production dev

[android-developers] Delay Tolerant Networking (DTN) Protocol

2010-02-18 Thread Emre A. Yavuz
Hi, Does anybody know whether Delay Tolerant Networking (DTN) protocol has been added to Android's mobile stack or not ? Any references or links would be great if you're aware of a group, webpage, code repository etc. Cheers, Emre _

RE: [android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-07 Thread Emre A. Yavuz
Thanks for all the responses ... Cheers, Emre > Date: Sat, 6 Feb 2010 11:18:44 -0800 > Subject: [android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions > ? > From: jotobje...@gmail.com > To: android-developers@googlegroups.com > > On Feb 5, 5:

RE: [android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-05 Thread Emre A. Yavuz
Thanks to you both ... Cheers, Emre > Date: Fri, 5 Feb 2010 09:23:54 -0800 > Subject: [android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions > ? > From: rbgrn@gmail.com > To: android-developers@googlegroups.com > > I've used all 3. Which one to use depends a lot on wh

[android-developers] DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-05 Thread Emre A. Yavuz
Hi, We need to convert XML messages to a stream or string which can then be sent via sockets. However, Android does not support the standard javax classes that are used to convert a DOM XML object to a stream. Besides, as far as I know, DOM parser reads all of the XML document into the memory

RE: [android-developers] HTC Hero Album app source code, anyone ?

2010-01-30 Thread Emre A. Yavuz
Thanks Mark. I wanted to ask just in case ... ; ) Cheers, Emre > Date: Fri, 29 Jan 2010 20:47:43 -0500 > Subject: Re: [android-developers] HTC Hero Album app source code, anyone ? > From: mmur...@commonsware.com > To: android-developers@googlegroups.com > > > Does anyone in the list hav

[android-developers] HTC Hero Album app source code, anyone ?

2010-01-29 Thread Emre A. Yavuz
Hi, Does anyone in the list have the source code for the Album application (the one that comes with the phone by default) in HTC Hero or at least know where to find it ? We need it for a research project and appreciate any suggestion towards obtaining it. If you think it's not poss

[android-developers] Setting up an ad-hoc WiFi network using HTC Hero devices ?

2010-01-13 Thread Emre A. Yavuz
Hi, We're trying to set up an ad-hoc WiFi network using our HTC Hero devices. We would like the phones to communicate peer-to-peer to exchange information without using an access point which may serve as a router. I was wondering whether anybody on the list has tried something similar and

[android-developers] Setting up an ad-hoc WiFi network using HTC Hero devices ?

2010-01-13 Thread Emre A. Yavuz
Hi, We're trying to set up an ad-hoc WiFi network using our HTC Hero devices. We would like the phones to communicate peer-to-peer to exchange information without using an access point which may serve as a router. I was wondering whether anybody on the list has tried something similar a

[android-developers] Re: How to pass a variable to a new activity via intent ?

2009-09-16 Thread Emre A. Yavuz
Problem solved. Thanks Mark. Emre > Date: Wed, 16 Sep 2009 18:44:45 -0400 > From: mmur...@commonsware.com > To: android-developers@googlegroups.com > Subject: [android-developers] Re: How to pass a variable to a new activity > via intent ? > > > Emre A.

[android-developers] How to pass a variable to a new activity via intent ?

2009-09-16 Thread Emre A. Yavuz
Hi, I'd like to pass a variable to a new activity which I start using an Intent. I know that I need to use the putExtra() method on the intent which I create in the old Activity. I also know that I need to use the getIntExtra() method (assuming that the variable I am trying to pass is an

[android-developers] Looking for a KML parser ...

2009-09-04 Thread Emre A. Yavuz
Hi, I am looking for a KML parser or a way to use the KML file directly to display the location on the map. Any suggestions ? Cheers, Emre _ New: Messenger sign-in on the MSN homepage http://go.microsoft.com/?linkid=9

[android-developers] Re: can one cmulator control controls two emulators in the same computor at the same time ?

2009-08-29 Thread Emre A. Yavuz
Did you try opening two command screens and telneting to each emulator seperately ? You can then use the command "geo fix lat long .. " to send mock locations. Cheers, Emre Date: Sat, 29 Aug 2009 13:23:11 +0800 Subject: [android-developers] can one cmulator control controls two em

[android-developers] Re: Icons for Android

2009-08-26 Thread Emre A. Yavuz
Have you checked the link below ? http://developer.android.com/guide/practices/ui_guidelines/icon_design.html Emre > Date: Wed, 26 Aug 2009 13:14:23 -0700 > Subject: [android-developers] Icons for Android > From: ehab.bassi...@googlemail.com > To: android-developers@googlegroups.com

[android-developers] Re: LocationManager always returns null ... ?

2009-08-26 Thread Emre A. Yavuz
Thanks Mark, I'll give it a try ... Emre > Date: Wed, 26 Aug 2009 13:16:33 -0400 > Subject: [android-developers] Re: LocationManager always returns null ... ? > From: mmur...@commonsware.com > To: android-developers@googlegroups.com > > > > Anyway, the code seems to work fine, but location

[android-developers] LocationManager always returns null ... ?

2009-08-26 Thread Emre A. Yavuz
Hi, Below is a short script I wrote to obtain the location of the phone using the embedded GPS device. ... LocationManager locationManager; locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); Location location = locationManager.getLastKnow

[android-developers] Re: How to place an ImageView to a specific location on the screen ?

2009-08-22 Thread Emre A. Yavuz
@googlegroups.com Don't use AbsoluteLayout, use FrameLayout, as AbsoluteLayout is deprecated. - Dan On Fri, Aug 21, 2009 at 12:51 AM, peeyush varshney wrote: Use Absolute Layout or WebView On Fri, Aug 21, 2009 at 3:15 AM, Emre A. Yavuz wrote: Hi, Does anybody know how to place an ImageView o

[android-developers] How to scale a background in a View ?

2009-08-21 Thread Emre A. Yavuz
Hi, Suppose, I have a LinearLayout for which I have a background image to set. However, the background image has a longer height than what is left available (from another LinearLayout above) even though its width fits perfectly. As expected, when I set this image as a background it overlays

[android-developers] How to scale a background in a View ?

2009-08-21 Thread Emre A. Yavuz
Hi, Suppose, I have a LinearLayout for which I have a background image to set. However, the background image has a longer height than what is left available (from another LinearLayout above) even though its width fits perfectly. As expected, when I set this image as a background it over

[android-developers] How to place an ImageView to a specific location on the screen ?

2009-08-20 Thread Emre A. Yavuz
Hi, Does anybody know how to place an ImageView object to a specific location on the screen or a tutorial/website etc. that may help me to figure it out myself ? Let's say I have an image to be placed exactly at a certain location (when x and y coordinates are provided) on the screen.

[android-developers] Re: Accessing the sqlite3 database via shell ?

2009-08-18 Thread Emre A. Yavuz
Re: Accessing the sqlite3 database via shell ? > From: marc...@android.com > To: android-developers@googlegroups.com > > > It might help others if you told us what the problem and solution were. > > > On Tue, Aug 18, 2009 at 12:41

[android-developers] Re: Accessing the sqlite3 database via shell ?

2009-08-18 Thread Emre A. Yavuz
Aug 18, 2009 at 8:05 AM, Emre A. Yavuz wrote: > > > > Hi, > > > > I've been using the "SQLiteOpenHelper" class to create/open a database for > > my application. During the initialization process, I've been adding two > > tables to it and fil

[android-developers] Re: Accessing the sqlite3 database via shell ?

2009-08-18 Thread Emre A. Yavuz
To: android-developers@googlegroups.com > > > On Tue, Aug 18, 2009 at 8:05 AM, Emre A. Yavuz wrote: > > > > Hi, > > > > I've been using the "SQLiteOpenHelper" class to create/open a database for > > my application. During the initialization p

[android-developers] Accessing the sqlite3 database via shell ?

2009-08-18 Thread Emre A. Yavuz
Hi, I've been using the "SQLiteOpenHelper" class to create/open a database for my application. During the initialization process, I've been adding two tables to it and fill one of them with some data. Everything seems to be working fine and I'm getting no errors or whatsoever when I run my c

[android-developers] How to DROP a Database in Android ?

2009-08-12 Thread Emre A. Yavuz
Hi, Does anybody know how to DROP a database in Android ? I've tried ContextWrapper.deleteDatabase(), mDb.close(), mDbHelper.close() etc. methods with no luck so far. I tried to remove it using the shell, but I don't have the permission to do it. I was able to drop the TABLES etc. in t

[android-developers] Re: Calling setContentView() more than once in method onCreate() ?

2009-08-11 Thread Emre A. Yavuz
Thanks Mark, the problem is fixed. Emre > Date: Mon, 10 Aug 2009 16:50:12 -0400 > From: mmur...@commonsware.com > To: android-developers@googlegroups.com > Subject: [android-developers] Re: Calling setContentView() more than once in > method onCreate() ? > >

[android-developers] Re: Calling setContentView() more than once in method onCreate() ?

2009-08-10 Thread Emre A. Yavuz
bserved until *after* onCreate() returns ? Emre > Date: Mon, 10 Aug 2009 12:35:57 -0400 > From: mmur...@commonsware.com > To: android-developers@googlegroups.com > Subject: [android-developers] Re: Calling setContentView() more than once in > method onCreate() ? > >

[android-developers] Calling setContentView() more than once in method onCreate() ?

2009-08-10 Thread Emre A. Yavuz
Hi, I was wondering whether anybody has tried calling setContentView() more than once in method onCreate() when creating an Activity. It seems only the last view is displayed. Or am I missing something here ? Say we have an Activity: public class SampleActivyt extends Activity {

[android-developers] Re: Handling a layout ...

2009-07-30 Thread Emre A. Yavuz
re > Date: Thu, 30 Jul 2009 07:20:21 -0400 > From: mmur...@commonsware.com > To: android-developers@googlegroups.com > Subject: [android-developers] Re: Handling a layout ... > > > Emre A. Yavuz wrote: > > Sorry about the late response. > > > > Here's

[android-developers] Re: Handling a layout ...

2009-07-29 Thread Emre A. Yavuz
rs@googlegroups.com > Subject: [android-developers] Re: Handling a layout ... > > > Emre A. Yavuz wrote: > > "You can, but then the child is already added to the parent; you do not > > need to add it yourself." > > > > I agree with you, but if you're n

[android-developers] Re: Handling a layout ...

2009-07-25 Thread Emre A. Yavuz
t; > You appear to have written to me directly by accident. Please keep > threads like this on-list, for the benefit of others. > > Emre A. Yavuz wrote: > > I was using findViewById() to get the layout which I wanted to modify > > and casting it to type ImageView afterward.

[android-developers] Handling a layout ...

2009-07-24 Thread Emre A. Yavuz
Hi all, Does somebody know how to handle a specific layout (say LinearLayout), which was given in a XML layout file, previously set in the Activity class using a SetContentView () method ? I am trying to add an image (probably as a child) to a previously set layout. Thanks, Emre

[android-developers] Floating button ... ?

2009-07-24 Thread Emre A. Yavuz
Hi, I was wondering whether anyone has written any code to implement a customized button that can be placed anywhere on the device screen (probably based on coordinates etc.) which will sit on top of a layout. Say, you have a LinearLayout with a couple of vertical sublayouts drawn on a