[android-developers] GPS MapView: animate to current position

2010-12-30 Thread Stephan Wiesner
Hi, I have a MapActivity, using Google Maps and need to center that map on my current position. The map is displayed correctly and I can even mark my current location with MyLocationOverlay here = new MyLocationOverlay(this, mapView); here.enableCompass(); // compass is displayed here.enableMyLoca

[android-developers] sqlite illeagal state exception unable to close due unfinallised statements.

2010-12-30 Thread Kapil Lokhande
Hi all I am developing one database app. in which i am getting exception named as unable to close database due to unfinallised statements, and throwing finallized cursor becoz cursor is not deactivated or closed. And beauty of the exception its not getting when i am doing it on emulator but on som

[android-developers] Detect Codec of local media File

2010-12-30 Thread Alok Kulkarni
Hi, I am streaming local audio and video files of a mobile device to another android devce using FFMpeg. Is there a way to detect/ know the Codec format of the file programatically as it needs to be passed to FFMpeg. I am using the Media Scanning logic of ContentProvider ( MediaStore.Audio.Media an

[android-developers] How can i implement geochat in android application?

2010-12-30 Thread rokson
Hi friends, I want to implement geo chat in my android application. Can anybody know how to implement geo chat in android. Please give me any reference document or examples. Thanks and Regards, Kiran -- You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] Need Info

2010-12-30 Thread yogi
Hi All Can any buddy provide me some info regarding the use of CachedNode and CacheFrame in webkit native code. Regards Yogendra -- 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@googl

[android-developers] Re: AsyncTask why not must be created in UI thread?

2010-12-30 Thread Bob Kerns
You need to create the AsyncTask instance on the UI thread, but the doInBackground() method runs in a separate thread. The reason for creating the AsyncTask instance on the UI thread is so that it can connect to the proper Looper and MessageQueue for that thread. (It does this through a single sta

[android-developers] display columns name at the top of list.

2010-12-30 Thread pramod.deore
Hi from last 3 days I trying to display names at the top of list but not succeed. every time column name is added for each row. What I want is columns name is added only at the top of list. Here is my xml file http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:

Re: [android-developers] How to read file from assets dir?

2010-12-30 Thread Ankur Avlani
String [] fileList = getAssets().list("textImages"); Note, textImages is a folder under Assets. for (int i = 0; i < fileList.length; i++) { InputStream is = getAssets().open("textImages/"+fileList[i]); } Thanks, Ankur. On Thu, Dec 30, 2010 at 10:09 PM, Stephan Wiesner < tes

Re: [android-developers] How to read file from assets dir?

2010-12-30 Thread Stephan Wiesner
thanks :-) 2010/12/31 Dianne Hackborn > API demo here: > http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/content/ReadAsset.html > > On Thu, Dec 30, 2010 at 10:09 PM, Stephan Wiesner < > testexpe...@googlemail.com> wrote: > >> Hi, >> I want to read a txt file

Re: [android-developers] is it possible to play flash in videoview?

2010-12-30 Thread Dianne Hackborn
Sorry, it is not. On Thu, Dec 30, 2010 at 9:49 PM, ArcDroid wrote: > Hello, > It would be great to point videoview to a url to play flash, is this > possible? If so an example would be great. > Thanks > http://www.arcdroid.com > > -- > You received this message because you are subscribed to the

Re: [android-developers] How to read file from assets dir?

2010-12-30 Thread Dianne Hackborn
API demo here: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/content/ReadAsset.html On Thu, Dec 30, 2010 at 10:09 PM, Stephan Wiesner < testexpe...@googlemail.com> wrote: > Hi, > I want to read a txt file that is deployed with my application. > The file is i

[android-developers] Re: the new eclipse UI design - absolute frustration and waste of time

2010-12-30 Thread Bob Kerns
I don't really agree with this. I find that, especially for RelativeLayout, it's really a lot quicker to drag and drop than to edit the XML. It's also, in theory, a lot easier to see how things are related -- but this needs to be improved. On the other hand, any time savings was more than eaten u

[android-developers] How to read file from assets dir?

2010-12-30 Thread Stephan Wiesner
Hi, I want to read a txt file that is deployed with my application. The file is in the assets directory and I try to read it with: String url = "file:///android_asset/text.txt"; InputStream instream = openFileInput(url); This results however in: 12-31 07:05:46.638: DEBUG/GMAP(14396): Read error:j

[android-developers] Re: HTTP Live Streaming

2010-12-30 Thread Samuh
> I can't say anything about which (if any) Android video players support > RTSP, including authorization, so do your own research. This guy here[http://justdevelopment.blogspot.com/2009/10/video- streaming-with-android-phone.html] says streaming video over RTSP is possible using the MediaPlayer A

[android-developers] is it possible to play flash in videoview?

2010-12-30 Thread ArcDroid
Hello, It would be great to point videoview to a url to play flash, is this possible? If so an example would be great. Thanks http://www.arcdroid.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] Re: javax.xml.xpath.XPath For android 2.0.1

2010-12-30 Thread kiran
I don't have any progress to bring javax.xml.xpath to android 2.0.1 I am rewriting my application using dom4j. Downloaded the dom4j- full.jar I have seen some tutorial at http://www.javabeat.net/articles/44-introduction-to-dom4j-1.html Everything is working fine with this api. But i am unable to

RE: [android-developers] Re: AsyncTask why not must be created in UI thread?

2010-12-30 Thread Tommy
Async tasks runs in the background automatically not on the ui thread. If you want to call something on the ui thread you need to use RunOnUIThread or post a message if that’s what you asking. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegro

[android-developers] Re: AsyncTask why not must be created in UI thread?

2010-12-30 Thread water boiled
I mean that can i create AsycnTask instance not in UI thread? On 12月31日, 下午1时30分, water boiled wrote: > I mean that can i AsycnTask instance not in UI thread? > > On 12月31日, 下午1时24分, water boiled wrote: > > > > > > > > > the AsycnTask document says that:The task instance must be created on > > t

[android-developers] Re: AsyncTask why not must be created in UI thread?

2010-12-30 Thread water boiled
I mean that can i AsycnTask instance not in UI thread? On 12月31日, 下午1时24分, water boiled wrote: > the AsycnTask document says that:The task instance must be created on > the UI thread. > > why create task instance must be created in UI thread? > > On 12月29日, 上午10时26分, Frank Weiss wrote: > > > >

[android-developers] Re: How to store date and time in database

2010-12-30 Thread Bob Kerns
Somehow I missed seeing your first paragraph when I responded before. Your first paragraph seems to be *exactly backwards*. You appear to be mixing calendars and times. DST has no bearing on subtracting two times, any more than timezone does. In general, if you want to calculate tine intervals,

[android-developers] Re: AsyncTask why not must be created in UI thread?

2010-12-30 Thread water boiled
the AsycnTask document says that:The task instance must be created on the UI thread. why create task instance must be created in UI thread? On 12月29日, 上午10时26分, Frank Weiss wrote: > It's difficult to understand what you are asking. What problem are you > having with AsyncTask. -- You received

[android-developers] disappearing USB functionality with Nexus S and Vista

2010-12-30 Thread greg
After a couple days of Nexus S USB functionality with USB debugging and USB drive mode, the functionality seemingly disappeared: when I connect the Nexus S and my laptop (running Vista), there is now no USB notification on the Nexus S and there is no Nexus S USB recognition on my laptop. My Nexus

[android-developers] Re: ADB server didn't ACK, cannot bind tcp...

2010-12-30 Thread Jim Power
I'm having this same issue. Thinking the only solution may be to reinstall the android sdk tools? -- 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

[android-developers] Default Buttons appearing as black rectangles on DROIDX?

2010-12-30 Thread JRock
Hopefully someone can point me in the right direction as to what is going on here: In my app, I use standard buttons and spinners, which have always appeared as basic beveled silver buttons. I have seen these look fine on my Nexus One running 2.2.1 as well as a couple of other phones. I just saw

Re: [android-developers] Augmented Reality - AR

2010-12-30 Thread J Handal
> > Danilo Very nice link te felicito y ten me al tanto si estas desarrollando AR. BTW is 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

Re: [android-developers] Re: Image show problem

2010-12-30 Thread TreKing
On Thu, Dec 30, 2010 at 5:56 PM, Indicator Veritatis wrote: > Well, in a certain important sense, yes, 2.0 is 'obsolete'. > Well, it's more like in the "official" sense. http://developer.android.com/resources/dashboard/platform-versions.html "* *Other: 0.1% of devices running obsolete versions"*

[android-developers] A plan that provides you with regular income for life

2010-12-30 Thread khushitiwari2...@rediff.com
Keep your car protected with motor insurance http://www.insuranceworlds1.com/ukinsurance.htm -- 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 g

[android-developers] Re: Does Android's GPS location provider do a built-in optimization?

2010-12-30 Thread Indicator Veritatis
To be more precise, the GPS draws more power than most other things on the phone. On my phone, for example, WiFi draws the most power, then GSP, then Bluetooth, with the ordinary GSM radio link being way down on the list. Other phones may have slight variations of this order. And I get such low po

[android-developers] Re: the new eclipse UI design - absolute frustration and waste of time

2010-12-30 Thread Zsolt Vasvari
Totally agree. If you use XML, you will actually understand what's going on instead of relying on a GUI editor to do the work for you. Personally, in over a year and a half of using Eclipse, I've yet to drag and drop a single control with the editor. On Dec 31, 8:50 am, John Oliver wrote: > I w

[android-developers] Re: Denisity dependent resource resolution bug?

2010-12-30 Thread Zsolt Vasvari
My widget is showing the user's upcoming bills -- it's kind of useless if you can only display 1 or 2 to cater to the least common denominator. If there are all kinds of variations possible, I think some sort API is needed about the size so that I can make an intelligent decision on what to displa

[android-developers] Re: Listview using ArrayAdapter trouble

2010-12-30 Thread Mystique
Wow, this is new knowledge to me. Thanks! On Dec 31, 5:51 am, jotobjects wrote: > On Dec 29, 11:00 pm, Mystique wrote: > > > Good day, > > I do not understand the outer LinearLayout you was pointing out. > > Don't we need to declare a Layout so we can put component such as > > listview, textview

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2010-12-30 Thread jotobjects
You get an InputStream from the Process returned by the exec call. Read and study the javadoc for java.lang.Runtime an java.lang.Process. On Dec 30, 3:14 pm, Jay wrote: > I also want to be able to run commands like 'ls' and 'cat' > > On Dec 30, 5:09 pm, Jay wrote: > > > Hello, > > > Here's what

[android-developers] Re: the new eclipse UI design - absolute frustration and waste of time

2010-12-30 Thread John Oliver
I was under the assumption that developers were expected to use pure XML to design layouts, and then use the GUI to test and see how it looks (though honestly it still doesn't match what actually happens on the screen). Try using a different GUI editor (droiddraw I believe is one) or just using xml

[android-developers] the new eclipse UI design - absolute frustration and waste of time

2010-12-30 Thread hiwa
Hi guys, I am really frustrated with the new Development tool for layouts, I just hope one Android Tech guy can do this: Drag a LinearLayout, within the top LinearLayout then try and drag and drop a RelativeLayout within the top LL, its so frustrating, took me ages to learn the previous version,

[android-developers] Edit Bitmap Channels?

2010-12-30 Thread John Oliver
It's possible to access the alpha channel of a given bitmap with extractAlpha(), but I haven't been able to find any way to actually set the alpha channel (or any other channel) of a bitmap. How can multiple greyscale images be recombined as channels into a Bitmap with Android? -- You received t

[android-developers] Re: Image show problem

2010-12-30 Thread Indicator Veritatis
Well, in a certain important sense, yes, 2.0 is 'obsolete'. But I am afraid people will read this out of context, so I have to object here: any Android developer should still keep 2.0 in mind as a probable target for his applications, even if never the primary target platform. That is, most of us

[android-developers] Re: /sys/devices/virtual/gpio access from Java?

2010-12-30 Thread FrankG
This is the wrong group .. but beside this use the ndk .. and the native file command to interact with you sysfs entry. Good luck ! Frank On 28 Dez., 03:49, A Curtis wrote: > Hello, > > I have enabled GPIO SYSFS access to export GPIOs to user space. From > the command shell I have been able t

Re: [android-developers] Planning to create a 3rd party library need your help identifying some potential issues and any workaround for the same.

2010-12-30 Thread TreKing
> > In traditional desktop applications we can add more than one handlers > but here if I do one more Button.setOnclickListenersomeOtherListener) this > one overwrites the previous listener. Is there any way I can attach my own > listener along with application's existing listeners dynamically? >

[android-developers] Re: app security

2010-12-30 Thread Indicator Veritatis
Well, yes, it exists for all software ever written, but you are comparing oranges and apples when you call the problem the same. After all, the obvious conspicuous difference is that when the software is written in C or C++ and distributed in binary form (whether executable or linkable), there is

Re: [android-developers] PhoneStateListener in widget

2010-12-30 Thread Mark Murphy
No, but an app widget (which is what I'm assuming the OP is referring to) should not be keeping a service around 24x7 solely to watch for phone state changes. On Thu, Dec 30, 2010 at 6:28 PM, TreKing wrote: > On Tue, Dec 28, 2010 at 3:02 PM, b_t wrote: >> >> But I don't know how to use it in a w

Re: [android-developers] PhoneStateListener in widget

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 3:02 PM, b_t wrote: > But I don't know how to use it in a widget. > What limitations does using the widget impose? A cursory look at the doc for PhoneStateListener does not show any requirement of or dependency on an Activity.

Re: [android-developers] need the meta data of the music library

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 5:56 PM, Kyle wrote: > How can I get the genre with the most songs. Assuming each song has a genre associated with it, it should be a simple matter of iterating the list of songs and counting, no? Besides, is there a possible way to get the top played music playlist?

Re: [android-developers] regarding facebook and twitter api integration

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 7:53 AM, newbee wrote: > Can anyone help me on integrating facebook api & twitter api in my app. > Questions regarding facebook and / or twitter are never answered here. Try a group or forum dedicated to these APIs. ---

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2010-12-30 Thread Jay
I also want to be able to run commands like 'ls' and 'cat' On Dec 30, 5:09 pm, Jay wrote: > Hello, > > Here's what I'm trying to accomplish: I want to be able to show dmesg > logs and logcat output in an app I'm writing. I know that I'm supposed > to use Runtime.getRuntime().exec(), however other

Re: [android-developers] Relace Style.xml or Strings.xml

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 8:30 AM, maccoy wrote: > How can i replace the style.xml or strings.xml in the res/ directory from > the web, after the application is compiled and deployed. > You can't. > Can i use a webservice, load this file from a URL and replace these files, > and still use."R...

[android-developers] Running adb logcat and dmesg commands from within my app.

2010-12-30 Thread Jay
Hello, Here's what I'm trying to accomplish: I want to be able to show dmesg logs and logcat output in an app I'm writing. I know that I'm supposed to use Runtime.getRuntime().exec(), however other than that, I'm pretty lost. I tried to find some examples, but couldn't. Can someone here give me s

Re: [android-developers] Leveraging google account credentials to send emails in the background

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 6:41 AM, zemariamm wrote: > Hello everyone, I would like to leverage the goggle account credentials > belonging to the synced user on android to send emails in the background, it > is possible to achieve that ? > Don't think so. > If not, is it possible to ask the user

[android-developers] Re: Listview using ArrayAdapter trouble

2010-12-30 Thread jotobjects
On Dec 29, 11:00 pm, Mystique wrote: > Good day, > I do not understand the outer LinearLayout you was pointing out. > Don't we need to declare a Layout so we can put component such as > listview, textview etc? No - this is an unnecessary layer that is quite expensive in memory and CPU resources.

Re: [android-developers] app security

2010-12-30 Thread Mark Murphy
Who is "we"? This problem exists for all software ever written, where the software is distributed. Desktop applications and mobile applications are equally susceptible. Even Web apps, where this data is distributed via Javascript (versus being run on the Web server) can have this problem. On Thu,

Re: [android-developers] Re: PreferenceActivity interface question

2010-12-30 Thread Mark Murphy
On Thu, Dec 30, 2010 at 4:25 PM, dashman wrote: > i tried to implement > registerOnSharedPrefereneChangeListener() > > - is it correct that it works only from the PreferenceActivity > sub-class. No. You call that method on a SharedPreferences object. For a PreferenceActivity, you specifically cal

[android-developers] Re: PreferenceActivity interface question

2010-12-30 Thread dashman
i tried to implement registerOnSharedPrefereneChangeListener() - is it correct that it works only from the PreferenceActivity sub-class. because registering from my main activities onCreate() method - works intermittently only. if i do have to do it from the PrefActivity() sub-class, how can i

[android-developers] app security

2010-12-30 Thread jacek
Apps that integrate with various web services and APIs, such as Twitter, need to use service provisioned API keys and shared secrets which are Java Strings. Such Strings should be retrievable by anyone who decompiles an .apk (I must try this myself against my own apk) In the next step the malicio

Re: [android-developers] Augmented Reality - AR

2010-12-30 Thread TreKing
On Mon, Dec 27, 2010 at 5:43 PM, Danilo Veras wrote: > I want someone to discuss and share ideas. Try a group or forum dedicated to this topic. This group is for Android development. - TreKing

Re: [android-developers] CursorAdapter performance

2010-12-30 Thread TreKing
On Mon, Dec 27, 2010 at 9:32 PM, Steven Nieh wrote: > Everything works well except when I try to scroll 1000 lines, the > application freezes and stop responding. Everything backs to normal after 3 > seconds. What's going on there? > Based on this little information: you're doing too much work i

Re: [android-developers] Android Twitter client Storing in shared preference

2010-12-30 Thread TreKing
On Mon, Dec 27, 2010 at 8:11 AM, jayavenkat wrote: > But once after getting Access token I have to change orientation of > emulator or some other changes to be done to store the access tokens . here > i use shared preference to store values .I don't know where i do mistakes > pls can anyone help

Re: [android-developers] Issue with wikitude API cam-view orientation and layout

2010-12-30 Thread TreKing
On Mon, Dec 27, 2010 at 7:25 AM, bgkarthikeyan wrote: > If I select the Cam-View Tab - it starts the WikitudeAR Intent (Which is > another activity). To clarify, this "Cam-View" is some external app that you launch? Because if so you can't put that in your tab. -

Re: [android-developers] PreferenceActivity interface question

2010-12-30 Thread Mark Murphy
On Thu, Dec 30, 2010 at 1:50 PM, dashman wrote: > i've got a PreferenceActivity subclass. > > in the PreferenceActivities, one makes the changes and then > press he back-key to return to the app. > > what's the proper-way  to intercept this back-key within > the activity or the parent activity so

Re: [android-developers] Re: Converting Touch Inputs to Vectors

2010-12-30 Thread Frank Weiss
I suppose this is primarily an issue of a smoothing algorithm. That is, transforming a dense list of 2D vectors into a shorter list of lines and/or arcs that approximate the input to a desired level of accuracy/quality. This would probably be a bulk algorithm (at least in concept) but perhaps there

[android-developers] PreferenceActivity interface question

2010-12-30 Thread dashman
i've got a PreferenceActivity subclass. in the PreferenceActivities, one makes the changes and then press he back-key to return to the app. what's the proper-way to intercept this back-key within the activity or the parent activity so that the changes can be reflected. also, what's the interfac

Re: [android-developers] eula with asynctask ?

2010-12-30 Thread Frank Weiss
I suppose the main problem is you are expecting the Eula.show() method to block. Looking at the referenced code, it is evident that the object you pass to the show() method should implement the Eula.OnEulaAgreedTo interface (line 69). That interface declares the callback for the acceptance of the

Re: [android-developers] Image show problem

2010-12-30 Thread TreKing
On Sun, Dec 26, 2010 at 7:32 PM, 小浣熊 wrote: > These tutorials have the same proplem on displaying images on 2.0 device. > 2.0 is obsolete, AFAIK. Forget about it. - TreKing

Re: [android-developers] Help, is there any programming way to set a bimtap image to contact when creating a new one

2010-12-30 Thread TreKing
On Sun, Dec 26, 2010 at 9:33 PM, Droid.Lee wrote: > Is there any way to achieve that? Use the contacts API to create the contact first, using the bitmap. Then launch the edit activity (NOTE: I have no idea of this is actually possible). -

Re: [android-developers] List of Android tablets

2010-12-30 Thread TreKing
On Mon, Dec 27, 2010 at 12:11 AM, Nandlal Viranni wrote: > Is there any site from which i can know no of android tablets > device avilable today and its profile & configuration also. > There are many. -

Re: [android-developers] Re: Denisity dependent resource resolution bug?

2010-12-30 Thread Dianne Hackborn
You really shouldn't make widgets that are so sensitive to size. Note that app widgets are not well defined about the size they will get -- they are a very general mechanism, and all kinds of things can host them. Today the built-in launcher does, and most third party launchers support them as we

Re: [android-developers] How to use a homescreen widget button to shutdown a service?

2010-12-30 Thread TreKing
On Sun, Dec 26, 2010 at 7:37 PM, Tim wrote: > How do I similarly attach an event handler to the button so that when it is > pressed a second time, it shuts the service down? Is there an appropriate > pattern to follow for something like this? > Start the service again with the same PendingIntent

[android-developers] Re: Converting Touch Inputs to Vectors

2010-12-30 Thread Robert Green
Define a minimum distance, say 10 dips. Make or use a Vector2D class. (just x and y) Allocate an array for your Vector2Ds. pseudocode: onPointerMoved() { if (points.size() == 0) { points.add(new Vector2d(pointerx, pointery)); } else { Vector2D lastpoint = points.get(points.size() - 1);

[android-developers] Re: Export Problem with Eclipse Helios

2010-12-30 Thread Bob Kerns
I am rather baffled as to why you would be exporting a project, and then importing again??? Could you be more specific about the sequence of operations you are performing? Are you using a revision control system, such as Subversion? If not, you really, really should be. If you are, are what files

Re: [android-developers] making Toast like notification?

2010-12-30 Thread TreKing
On Sat, Dec 25, 2010 at 9:17 PM, Karim B wrote: > I'm trying to create a custom version of the Toast notification > while keeping a similar functionality but customizing it > http://developer.android.com/guide/topics/ui/notifiers/toasts.html#CustomToastView

Re: [android-developers] problem in graphics

2010-12-30 Thread TreKing
On Sat, Dec 25, 2010 at 5:56 AM, kiran choudhary wrote: > not getting any sucess so plz help me Your post is very unclear. You need to better explain the issue you're having, perhaps including your layout file and a picture that demonstrates the issue. --

Re: [android-developers] eula with asynctask ?

2010-12-30 Thread TreKing
On Fri, Dec 24, 2010 at 8:36 AM, dan wrote: > Am I missing something programmatic? The fact that all the code in your onCreate executes sequentially. You show your EULA dialog then you start your Task. No where are you specifying that that execution of said task is dependent on the acceptance o

Re: [android-developers] Using google

2010-12-30 Thread TreKing
On Fri, Dec 24, 2010 at 1:54 AM, 진홍 김 wrote: > Is it permitted to use google voice recognition API within android SDK for > commercial purpose? > It is permitted to use any API within Android SDK for commercial purpose. That's kind of the point. -

Re: [android-developers] Youtube Upload

2010-12-30 Thread TreKing
On Thu, Dec 23, 2010 at 11:33 PM, ashu wrote: > Plz provide information about youtube APIs for uploading video in android > platform. > http://tinyurl.com/2a6fvwk > Is Google Data APIs are helpful?? > That makes no sense. > Plz share some references. > Plz take the time to spell "please" -

[android-developers] Bluetooth SCO... start/stop versus setOn(bool)

2010-12-30 Thread DulcetTone
I do not understand the model of AudioManager.startBluetoothSco() AudioManager.stopBluetoothSco() and AudioManager.setBluetoothScoOn(boolean) The description in the documentation is not clear. is start/stopness an underlying state for on/offness? Is SCO started/stopped for the whole device, o

Re: [android-developers] Android Contacts

2010-12-30 Thread TreKing
On Fri, Dec 24, 2010 at 2:55 AM, maddy wrote: > Can anyone help me with any pointers regarding this query? You should probably post a bit more information on what you're doing and what you want to achieve.

[android-developers] Re: Converting Touch Inputs to Vectors

2010-12-30 Thread Paul
On Dec 30, 5:09 am, Daniel Drozdzewski wrote: > > On Dec 29, 1:18 am, Paul wrote: > >> Hi all.  I am writing an app that will convert touchscreen user inputs > >> (such as the user 'handwriting' on the screen) into vectors that can > >> then be saved and recalled later.  I need to get the vectors

[android-developers] Re: Converting Touch Inputs to Vectors

2010-12-30 Thread Paul
Yes, have looked at those, in fact, I've gone ahead and created a custom gesture detector that I make use of to recognize the concept of a 'stroke', reporting back to the view when a stroke starts, is in progress and ends. Again though, this is feeding me back point data via the MotionEvent, but I

[android-developers] Re: Change Texture

2010-12-30 Thread pedr0
Thanks so much, I thought this solution and it worked but isn't too much elegant, any suggestion? Thanks anyway MrChaz! On 30 Dic, 16:51, MrChaz wrote: > onDrawFrame() will be called repeatedly and in there should be a piece of > code like > glBindTexture(GL10.GL_TEXTURE_2D, textures_ids.get(

[android-developers] Augmented Reality

2010-12-30 Thread bgkarthikeyan
Hello, I am developing an application using the WikitudeAPI (Wikitude AR Browser). But, I am having problem with defining the layout and orientation of the Cam-view. I have attached screenshot of the application. If I select the Cam-View Tab - it starts the WikitudeAR Intent (Which is another ac

[android-developers] Handango licensing models

2010-12-30 Thread bagelboy
Hello Devs, I'm considering whether to put my apps on Handango, if only for the marketing benefits. On the android market I have a demo and a paid version of my app but on Handango there is a possibility of having a shareware setup where a user downloads the full version after the trial runs out.

[android-developers] Re: Change Texture

2010-12-30 Thread MrChaz
onDrawFrame() will be called repeatedly and in there should be a piece of code like glBindTexture(GL10.GL_TEXTURE_2D, textures_ids.get(0)); that's the bit that is selecting the texture to be drawn, all you'll need is an if statement or something to make it use the other one. -- You received t

[android-developers] Re: How can I achieve this menu in android?

2010-12-30 Thread Sergio Luceno
Thanks both of you! Today I'm starting to implement it. Thanks a lot! On 30 dic, 08:25, Muhammad Hakim wrote: > you can user > framelayouthttp://developer.android.com/resources/articles/layout-tricks-merge.html > > On Thu, Dec 30, 2010 at 12:27 PM, Sarwar Erfan wrote: > > > > > > > > > > > Its

[android-developers] Re: Does Android's GPS location provider do a built-in optimization?

2010-12-30 Thread MrChaz
1) You're using the GPS and the CPU so it's going to drain the battery like any other task. The system deals with talking GPS etc all you're doing is registering a *listener *which receives the information when updates happen. -- You received this message because you are subscribed to the Goog

Re: [android-developers] Re: Access database (in static method?) in non-Activity class

2010-12-30 Thread Kostya Vasilyev
30.12.2010 17:52, svebee пишет: I understand that reference to the context that I pass in will go away if activity is destroyed (and because of that I use application context which will stay until whole application is destroyed), but when I should use it (activity context) any why? Some example w

[android-developers] Re: Converting Touch Inputs to Vectors

2010-12-30 Thread MrChaz
You might want to look at the GestureDetector ( http://developer.android.com/reference/android/view/GestureDetector.html) as it's designed to do pretty much this exact task iirc. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: Access database (in static method?) in non-Activity class

2010-12-30 Thread svebee
"gContext." - ofcourse, I was calling it on Partner activity (context) not the one I passed into it (actually applicationContext). Now I get it ;) I understand that reference to the context that I pass in will go away if activity is destroyed (and because of that I use application context which wi

[android-developers] Re: How to store date and time in database

2010-12-30 Thread Bob Kerns
Knowing the policy is not an adequate solution, because the information about leap seconds just isn't there. You can add "external" knowledge of historical leap seconds, but you still can't tell the difference between a leap second, and one second prior to that leap second (or after, depending on y

Re: [android-developers] Android proximity messaging

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 2:10 PM, Stuart wrote: > How do I send messages from one android to another android phone within > close proximity? > Try this: http://code.google.com/android/c2dm/index.html

Re: [android-developers] Running two Activities in Android Project

2010-12-30 Thread Marcin Orlowski
> i am storing both classes in a single package. i am not able to run > application. Because of what? Also mind you have all activities listed in Manifest or your app won't work. > I think this is because i have two Activities in single package and it > is bit confusing. You can have as many Act

Re: [android-developers] Re: Licensing an Application : Android Library Projects cannot be Launched.

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 12:27 PM, cuil yahoo wrote: > I again had a look at both the AndroidManifest.xml files. They both seem to > be in order. Post the relevant sections, if you can. You might be missing something. -

[android-developers] Re: Denisity dependent resource resolution bug?

2010-12-30 Thread Zsolt Vasvari
Well, this whole thing is part of work I have to do to fix up my widgets. I have a widget that lists a number of items. On HDPI, I can fit 5 items, while on MDPI, only 4. I thought that I'd put the number of rows as an "integer" resource. Since I don't know what the correct values should be for

Re: [android-developers] How to creating Launcher "home screen" behavior on my app?

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 10:47 AM, Moto wrote: > Any ideas how I could approach at creating such feature? First recommendation would be to look at the source for the home screen, if that's what you want to emulate. Second idea: I've not used Animations, but I assume you can control them dynamic

Re: [android-developers] Re: Does Android's GPS location provider do a built-in optimization?

2010-12-30 Thread Mark Murphy
On Thu, Dec 30, 2010 at 8:55 AM, t wrote: > 1. i see that keeping the GPS provider activated drains the battery. > do you have suggestions to why is that? Because it keeps the GPS radio on. The GPS radio draws power. Drawing power drains the battery. > 2. continuing to my first question, how doe

Re: [android-developers] How to view the logs when USB dubug is disabled?

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 10:04 AM, bharath wrote: > How to view the logs when USB dubug is disabled? Please let me know. > Download a log-reading app. - TreKing

[android-developers] Re: Does Android's GPS location provider do a built-in optimization?

2010-12-30 Thread t
thank you for the quick response. could you please explain to me the following: 1. i see that keeping the GPS provider activated drains the battery. do you have suggestions to why is that? is there a main loop that checks for location updates every once in awhile and notifies LocationManager on ch

[android-developers] Change Texture

2010-12-30 Thread pedr0
Hi at all, I am developing an application which use some OPENGLES feature, I have some problem when I want change textures of a object which I had created before, this is my code: public OpenGLRenderer(Context context,Bitmap first,Bitmap second,Sphere sphere) { [.creation a sphere with ve

Re: [android-developers] Re: Access database (in static method?) in non-Activity class

2010-12-30 Thread Kostya Vasilyev
As far as I can see, your DatabaseOptions is not a real Activity, but rather your helper class. If so, don't derive it from Activity. The line that's failing to compile should be: db = gContext.openOrCreateDatabase(DATABASE_NAME, Context.MODE_PRIVATE, null); You have gContext, which you can ke

Re: [android-developers] Can't get Scrollbar Fastscroll to work. Need help.

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 8:06 AM, Dominik Erbsland wrote: > So here is my code, maybe you can see the error? What is fastScrollEnabled a property of? Where are you actually using it? -

Re: [android-developers] facebook android app

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 6:43 AM, yanamala siddaiah < siddaiahforj...@gmail.com> wrote: > how to maintain cookie for the user name and password until logged out from > facebook. > You probably can't. -

Re: [android-developers] Market "related application" functionality - "feature"?

2010-12-30 Thread Evgeny V
Actualy I have the same! Thanks! Will change it. On Dec 30, 2010 2:25 PM, "TreKing" wrote: On Thu, Dec 30, 2010 at 2:33 AM, EvgenyV wrote: > > Need I change something in ... There's nothing you can do, manifest wise, to change this, AFAIK. One thing to try is make sure you have a similar if not

Re: [android-developers] Changes doesn't reflect in Launcher

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 5:20 AM, nubh bhargava wrote: > I am trying to make some changes in the Launcher app. As much changes I > make changes doesn't affect the workspace, please let me know more > information on this as I need to know more about this app as I want to make > some changes in the m

  1   2   >