[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

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

Re: [android-developers] ScrollView (fill_parent)

2012-01-22 Thread TreKing
On Sun, Jan 22, 2012 at 12:55 AM, John j...@julientech.com 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

[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

[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 j...@julientech.com wrote: Hi, I have a scroll view with height=fill_parent.  The child is a LinearLayout with

[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 android:layout_width=wrap_content android:layout_height=wrap_content android:id=@+id/img_01 android:src=@drawable/img_01/ ImageView img_01 = (ImageView)findViewById(R.id.img_01);

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

[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 j...@julientech.com 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

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 relative

[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 treking...@gmail.com 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 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] 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] 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 treking...@gmail.com wrote: On Thu, Jan 19, 2012 at 6:39 AM, Harpreet Singh harry...@gmail.comwrote: How can I communicate with the database

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 dhavalkva...@gmail.comwrote: 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

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 mrclark32...@gmail.com 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

[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,

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 ambi1...@gmail.com 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

[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

[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

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 mmur...@commonsware.com wrote: On Sun, Jan 22, 2012 at 3:51 AM, Matt Clark mrclark32...@gmail.com wrote: Is there some kind of SQL library that i could

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 j...@julientech.com 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 |

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 ubiracy@gmail.com wrote: Can anyone give me an idea of

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 arkamr...@gmail.com 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

[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

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 dhavalkva...@gmail.com 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

[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,

[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

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 dhavalkva...@gmail.com wrote: I want to fire my app on lock/unlock key

[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

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 matt...@gmail.com 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

[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

[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,

[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

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

[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 strCurrent

[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

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 mrpc.cambo...@gmail.com 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

[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

[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;

[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,

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

2012-01-22 Thread Abhilash baddam
Hi, Any help on this issue. On 1/23/12, Abhilash baddam abhilash.androiddevelo...@gmail.com 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

[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: uses-permission

[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

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