Re: [android-developers] widget stop working after force close in setting page

2012-01-22 Thread dara kok
force stop is supposed to reset the app. But it does not seem right that the widget stops working. logically The force stop button should act as a single point to reset both the app and widget that belong to the app -- You received this message because you are subscribed to the Google Groups "A

[android-developers] arabic text

2012-01-22 Thread Areesha kamran
hello i m new in monoandroid. and i want to make an android application i which i can enter arabic text . Can any one help me -- 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@google

[android-developers] Writing a wav audio file using RandomAccessFile

2012-01-22 Thread Raneez
I want to write a wav audio file using randomacessfile, but when i check through DDMS i find no such file in the sd card. What is the problem with this? I also wrote permission to write in external storage in the manifest file: Here is my code: private RandomAccessFile randomAccessWriter; File

[android-developers] Re: Twitter Integration...?

2012-01-22 Thread Abhilash baddam
Hi, Any help on this issue. On 1/23/12, Abhilash baddam wrote: > Hi, > > I tried a lot to integrate twitter in my application but it's not working > for me. > I had give proper consumer key and consumer secret key even though i am > getting this exception. Anyone help me out from this issue. >

[android-developers] Re: Debugging native code using eclipse apart from Sequoyah/ndk guide

2012-01-22 Thread Matt Clark
What do you mean by 'native code' as in the OS itself? Or your application? If for your application code, on the left of the code. right click and click add breakpoint where you wish to start the debugging. When you deploy your code to your device, click the button to the left of the RUN button, wh

[android-developers] Dynamic Layout In Array

2012-01-22 Thread Matt Clark
I am making an application that takes data from a database and outputs it on the screen in various ways, one of the ways is that i need to take from a long list of strings, and put them into a homemade list, ie: TextView[] teamNumbers; TextView[] teamNames; TextView[] teamFavorites; RelativeLayout

[android-developers] Debugging native code using eclipse apart from Sequoyah/ndk guide

2012-01-22 Thread srinivasan shanmugam
Dear All, I want to debug my native code by keeping breakpoints in my java code where am calling my native code & by keeping breakpoints in my native code defination. Could any body pls share any appropriate documents with all the necessary steps in how to debug native code by keeping breakpoints

Re: [android-developers] widget stop working after force close in setting page

2012-01-22 Thread TreKing
On Sun, Jan 22, 2012 at 9:54 PM, dara kok wrote: > Never thought it is this hard to explain someone what I mean. Well, sorry, but your grammar is far from perfect and your terms are confusing. "Force *Close*" is when your app crashes. What you're referring to is the "Force *Stop*" button - and

[android-developers] Re: Getting Blank page in WebView

2012-01-22 Thread Pawan
Is there no one who can help me out, that what setting I need do add that for twitter url. -- 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] How to set the preferred APN through code?

2012-01-22 Thread Put_tiMe
I am trying to set a preferred APN through code. Here's what I'm doing: ** *private static* *final* Uri *PREFERRED_CONTENT_URI* = Uri.*parse*( "content://telephony/carriers/preferapn"); // getCurrentPreferredAPN is an internal function to retrieve the "_id" of the current APN. String strCurre

Re: [android-developers] widget stop working after force close in setting page

2012-01-22 Thread dara kok
Kristopher Micinski, u're right. Never thought it is this hard to explain someone what I mean. -- 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 t

[android-developers] SimpleCursorTreeAdapter bind Child Cursor to Child Checkbox

2012-01-22 Thread Hank
I have a list where the children have textviews and checkboxes, and I want to bind a cursor's column to the checkbox. I tried using SimpleCursorTreeAdapter.ViewBinder but that only works for the group views and not the children views. How do I do this? -- You received this message because you are

[android-developers] Re: Config Change on Ice Cream Sandwich!

2012-01-22 Thread yaturner
I am experience the same problem, eventhough I specify android:configChanges="keyboardHidden|orientation|ScreenSize|Keyboard" in ICS, it ignores the setting and calls onDestry() and onResume() when I change orientation It works correctly in Honeycomb and Gingerbread On Dec 7 2011, 2:51 am, "N

[android-developers] Failed to register input channel

2012-01-22 Thread William Ferguson
I get about one of these errors occurring roughly every 50,000 app starts, so it's starting to occur pretty regularly now. I have never managed to make it occur on a local device so I can't check the logs for details. The only other mention on the list was 6+ months ago and Nikolay didn't get much

Re: [android-developers] Delayed modification of ListView row causing a rebuild of the entire list when scrolling

2012-01-22 Thread Mark Murphy
On Sun, Jan 22, 2012 at 8:11 PM, mattcoz wrote: > My > problem is that modifying the row after it has been initially drawn in the > list is somehow setting the ListView into a state where it thinks it needs > to rebuild everything when scrolling. How have you determined this? What is "rebuild eve

[android-developers] Delayed modification of ListView row causing a rebuild of the entire list when scrolling

2012-01-22 Thread mattcoz
I've got a ListView that I am populating with a list of videos from my server. For each row I'm showing the title, a thumbnail, and some additional information. The thumbnail is being loaded from a URL and the loading of the thumbnail is being done off of the main UI thread. When the thumbna

Re: [android-developers] App fire on pressing lock key of phone

2012-01-22 Thread Kristopher Micinski
What is the "lock unlock key?" If you mean the power button, or really any button except back, (and even then overriding this might not be a good idea, you shouldn't do this. kris On Fri, Jan 20, 2012 at 8:28 AM, Dhaval Varia wrote: > I want to fire my app on lock/unlock key press for few times

[android-developers] Re: Dynamic ImageButtons

2012-01-22 Thread Matt Clark
What i am currently doing with my app, is using a PHP script on my server, that access an SQL Server to retrieve spectific information ,ad nthe it is returned to the device, allowing me to change global setting, such as allowing the app to run without a valid license, etc. You could do something li

[android-developers] Re: Database Access from Android Application

2012-01-22 Thread Matt Clark
John, The web script does not allow for open queries, it takes in the users username, password, and device id, and authenticates them with the server, before it then takes and executes a built in query on the script, using more POST data. If i store each persons information into different Tables, t

Re: [android-developers] how to create and get mode of phone

2012-01-22 Thread Kristopher Micinski
On Sun, Jan 22, 2012 at 8:49 AM, Dhaval Varia wrote: > dear > i am having two question > > 1. is there any way to create custom mode like general,silent,meeting.? > No. > 2. is there any way to get,in which mode ur phone is? like general,silent? > Yes. See TelephonyManager and PhoneStateListen

[android-developers] Twitter Integration...?

2012-01-22 Thread Abhilash baddam
Hi, I tried a lot to integrate twitter in my application but it's not working for me. I had give proper consumer key and consumer secret key even though i am getting this exception. Anyone help me out from this issue. 01-23 00:22:57.848: W/KeyCharacterMap(305): No keyboard for id 0 01-23 00:22:5

Re: [android-developers] mono for Android installation prob

2012-01-22 Thread Adorilson Bezerra de Araujo
On Sun, Jan 22, 2012 at 7:30 AM, Areesha kamran wrote: > hello > >i m new in android . I have to make an application in c#. For this i > install visual studio 10 professional, jdk, android sdk tools,monodevelop. > But when i install mono for android sdk via xamarin. i got an error > installat

Re: [android-developers] Dynamic ImageButtons

2012-01-22 Thread Kristopher Micinski
This is a fairly simple, and common, problem. Do you know how to dynamically add things to views? For example, you could have a LinearLayout, and then on the fly allocate Button objects. On Sat, Jan 21, 2012 at 5:13 PM, Ubiracy Santos wrote: > Can anyone give me an idea of how to create dynamic

Re: [android-developers] Database Access from Android Application

2012-01-22 Thread Mark Murphy
On Sun, Jan 22, 2012 at 11:22 AM, John Julien wrote: > What would be the preferred way of storing a database on a server to > allow dynamic changes to data? Front the database with a Web service. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commons

Re: [android-developers] Database Access from Android Application

2012-01-22 Thread John Julien
What would be the preferred way of storing a database on a server to allow dynamic changes to data? On Jan 22, 2012, at 6:16 AM, Mark Murphy wrote: > On Sun, Jan 22, 2012 at 3:51 AM, Matt Clark wrote: >> Is there some kind of SQL library that i could >> just use insted of sending HTTP requests

[android-developers] Re: Dynamic ImageButtons

2012-01-22 Thread Ubiracy Santos
Thanks for the tip! These actions come from the database.Could easily read the number of rows in the table and make a repetition of the buttons? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-d

[android-developers] how to create and get mode of phone

2012-01-22 Thread Dhaval Varia
dear i am having two question 1. is there any way to create custom mode like general,silent,meeting.? 2. is there any way to get,in which mode ur phone is? like general,silent? thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

Re: [android-developers] Re: Read sensor value without using SensorEventListener

2012-01-22 Thread Mark Murphy
On Sun, Jan 22, 2012 at 8:14 AM, ambi wrote: > Thanks Mark. I understand that SensorEventListener.onSensorChanged() > is the only way right now to read the value of sensor. But why is it > that way? Because that's the way they wrote it. > I mean isn't there a need for a method that can give the

[android-developers] Re: Read sensor value without using SensorEventListener

2012-01-22 Thread ambi
Thanks Mark. I understand that SensorEventListener.onSensorChanged() is the only way right now to read the value of sensor. But why is it that way? I mean isn't there a need for a method that can give the sensor value at some instant rather than when the value changes? Just a thought. Regards, Amb

Re: [android-developers] Database Access from Android Application

2012-01-22 Thread Mark Murphy
On Sun, Jan 22, 2012 at 3:51 AM, Matt Clark wrote: > Is there some kind of SQL library that i could > just use insted of sending HTTP requests parsed by PHP files? That is not a good idea, for security reasons. That would mean that your database is open for the script kiddies of the world to atta

Re: [android-developers] App fire on pressing lock key of phone

2012-01-22 Thread unicus unicus
you can get help here http://androidbasic-answer.blogspot.com/ On Fri, Jan 20, 2012 at 6:58 PM, Dhaval Varia wrote: > I want to fire my app on lock/unlock key press for few times. > > how to do it? > thanx > > -- > You received this message because you are subscribed to the Google > Groups "And

Re: [android-developers] How I use Web Services in android.?

2012-01-22 Thread unicus unicus
Is your web service is soap based or simple servlet?. -- More info, http://androidbasic-answer.blogspot.com/ On Fri, Jan 20, 2012 at 11:21 PM, TreKing wrote: > On Thu, Jan 19, 2012 at 6:39 AM, Harpreet Singh wrote: > >> How can I communicate with the database which that site is using? > > > Ha

[android-developers] mono for Android installation prob

2012-01-22 Thread Areesha kamran
hello i m new in android . I have to make an application in c#. For this i install visual studio 10 professional, jdk, android sdk tools,monodevelop. But when i install mono for android sdk via xamarin. i got an error installation failed . I also try to install monoandroid 4.0.3 but but got an

RE: [android-developers] ScrollView (fill_parent)

2012-01-22 Thread John
Setting fillViewport="true" along with a relative layout with button having layout_alignParentBottom="true" did the trick. Thanks! From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Sunday, January 22, 2012 3:22 AM To:

[android-developers] Re: Android Webview - How to retain text data when orientation changes

2012-01-22 Thread IndianDragon
No, I just posted an updated question. On Jan 22, 1:38 pm, TreKing wrote: > Was there something wrong with your original thread for this > topic?http://groups.google.com/group/android-developers/browse_thread/threa... > > --

Re: [android-developers] ScrollView (fill_parent)

2012-01-22 Thread Kostya Vasilyev
http://developer.android.com/reference/android/widget/ScrollView.html#attr_android:fillViewport Tryandroid:fillViewport="true" on the ScrollView. And layout_gravity="bottom" won't work in a vertical linear layout. You can use layout_weight on the table layout, or replace linear layout with relat

[android-developers] Re: ScrollView (fill_parent)

2012-01-22 Thread Matt Clark
As in my method worked? Or you are still experiencing a problem? On Jan 22, 4:08 am, "John" wrote: > This does appear to be the behavior. > > From: android-developers@googlegroups.com > [mailto:android-developers@googlegroups.com] On Behalf Of TreKing > Sent: Sunday, January 22, 2012 2:41 AM > To

RE: [android-developers] ScrollView (fill_parent)

2012-01-22 Thread John
This does appear to be the behavior. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Sunday, January 22, 2012 2:41 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] ScrollView (fill_parent) On Sun

[android-developers] Re: Dynamic ImageButtons

2012-01-22 Thread Matt Clark
So in short you need just 6 buttons (with images) that you can dynamically change their action? ImageView img_01 = (ImageView)findViewById(R.id.img_01); img_01.setClickable(true); img_01.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { switch(action){ ca

[android-developers] Re: ScrollView (fill_parent)

2012-01-22 Thread Matt Clark
I use RelativeLayout for everything, so i do not know if it works for LinearLayout, but you could try android:layout_alignParentBottom="true" On Jan 22, 1:55 am, "John" wrote: > Hi, > > I have a scroll view with height="fill_parent".  The child is a LinearLayout > with height="fill_parent".  I th

[android-developers] Database Access from Android Application

2012-01-22 Thread Matt Clark
I am making an application for users to take notes about other teams they are competing against at robotics competitions, which will be collaborative will all member of the same team across devices, so all information will be stored in an SQL database on my webhost. My first question is what would

Re: [android-developers] ScrollView (fill_parent)

2012-01-22 Thread TreKing
On Sun, Jan 22, 2012 at 12:55 AM, John wrote: > the LinearLayout does not appear to be filling the height of the parent.** > ** > > ** ** > > Does anyone know why this might be? > I think ... if the parent is a ScrollView, it will only fill up as much as is needed. If it's more than is available

Re: [android-developers] Android Webview - How to retain text data when orientation changes

2012-01-22 Thread TreKing
Was there something wrong with your original thread for this topic? http://groups.google.com/group/android-developers/browse_thread/thread/98cecc91fef16e4f - TreKing

[android-developers] Re: Image Quality problems using Canvas and canvas.scale(Scale, Scale);

2012-01-22 Thread Peter Webb
At the risk of stating the bleeding obvious, if you upscale a bitmap *anywhere* in your code by a factor which is not an exact integer (1, 2, 3, etc) then the system will not be able to exactly reproduce the original image, and will be interpolating and/or duplicating pixels to make it fit. Which g