[android-developers] Re: How to create TextView without write the XML file

2010-09-01 Thread rb
Thanks for the suggestions San and Fllip. I have tried the example that San gave but still errors. Here's the revised code in the main.xml file: package com.HelloWorld; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; imp

Re: [android-developers] Urgent Help - Diff between Phone Window and Mid Window

2010-09-01 Thread Dianne Hackborn
These are not part of the SDK, they are implementation details, that change over time. In fact MidWindow will be gone in the next release. On Tue, Aug 31, 2010 at 11:31 PM, Revathi K J Ramanan < revathiramana...@gmail.com> wrote: > Hi, > > What is the basic difference between the PhoneWindow and

Re: [android-developers] KeyEvent Methods

2010-09-01 Thread Dianne Hackborn
On Tue, Aug 31, 2010 at 10:47 PM, Tez wrote: > 1. what is the getKeyDownTime() method? What does its return value > mean logically? > The time when the key down event occurred. > 2. what is the getKeyEventTime() method? What does its return value > mean logiccaly? > The time when the current

[android-developers] Re: Can Android 2.X connect to 3G and Wifi data networks simultaneously?

2010-09-01 Thread Jens
Yup, i usually don't commit the exact name of hidden constants to memory, the value of that constant is however defined as "enableHIPRI" - and should produce the desired effect of enabling explicit connection routing over 3G. On 31 Aug, 14:11, Mark Murphy wrote: > On Tue, Aug 31, 2010 at 7:36 AM

[android-developers] Re: How to create TextView without write the XML file

2010-09-01 Thread rb
As a newbie, I am just trying to program the various functions to ensure that I am doing things right (gui wise). An example would be to set a default template with textview, editview, buttons, etc and just changing the parameters of those objects either by direct (as by this code) or by calling a

[android-developers]

2010-09-01 Thread vineeshkc
There is a user input then on submit pass the search keywords to the db server and return the results (the db server has to be external by the way). Could i pass the search query to server side (php) and get the php script to execute the queries and return the scripts output? eg. just a bunch of a

Re: [android-developers] Re: How to create TextView without write the XML file

2010-09-01 Thread Filip Havlicek
You still need to specify the tv variable type (of course, think about it!!!). TextView tv = (TextView) findViewById(R.id.TextView01); Best regards, Filip Havlicek 2010/9/1 rb > As a newbie, I am just trying to program the various functions to > ensure that I am doing things right (gui wise).

Re: [android-developers] What is Context and what is its use?

2010-09-01 Thread Martin Obreshkov
http://developer.android.com/reference/android/content/Context.html gives you what you need On Tue, Aug 31, 2010 at 7:07 PM, cool.manish wrote: > What is context. We always pass an argument context in the intent or > manageQuery etc. What is it and what is the use of it? > does it have the infor

Re: [android-developers] Reducing Permissions

2010-09-01 Thread Dianne Hackborn
On Mon, Aug 30, 2010 at 1:37 PM, Brad Gies wrote: > > I've been following the "Is there a way to request permissions from a user > as you need them?" thread with a lot of interest, but even if someone is > convinced to make the Android permissions system better, it doesn't do > anything for right

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-09-01 Thread Dianne Hackborn
Thank for the update. I am just very glad to know that it isn't a nasty platform bug. :) On Mon, Aug 30, 2010 at 3:49 PM, TreKing wrote: > PROBLEM SOLVED! > > Conclusion: I'm an idiot (shocked!?) > > So, for those of you that care, here was the problem. I followed Zsolt's > suggestion to go bac

[android-developers] Re: Enabling wifi tethering mode

2010-09-01 Thread guru
Hi All How to enable Tethering UI in froyo. I got some help from group, but still I am unable to enable UI. Please let me know procedure if any one enabled it. Thanks Gururaja B O On Aug 30, 2:45 pm, guru wrote: > Hi All, > > I am not seeing Wif tethering app in my phone. I enabled wifi in fro

[android-developers] Re: KeyEvent Methods

2010-09-01 Thread Tez
I tried subtracting the 2 values. I always get zero. On Sep 1, 1:04 pm, Dianne Hackborn wrote: > On Tue, Aug 31, 2010 at 10:47 PM, Tez wrote: > > 1. what is the getKeyDownTime() method? What does its return value > > mean logically? > > The time when the key down event occurred. > > > 2. what is

[android-developers] Not detecting soft keyboard keypresses

2010-09-01 Thread Tez
I have an EditText. I have set a OnKeyListener to listen to key presses. I get proper info when I use the keyboard in the emulator. If i try to use the "soft keyboard" I dont receive any events. Is this behavior normal? If so, How do I get the soft keyboard key presses? Cheers, Earlence -- You r

[android-developers] Re: how can i store a view in a .png file in emulator sdcard

2010-09-01 Thread Vishal
When you create the instance of Canvas, you need to provide the reference of the bitmap and when you are done with drawing use this http://developer.android.com/reference/android/graphics/Bitmap.html#compress%28android.graphics.Bitmap.CompressFormat,%20int,%20java.io.OutputStream%29 Vishal On Au

Re: [android-developers] Reducing Permissions

2010-09-01 Thread Tauno Talimaa
On 1.09.2010 11:36, Dianne Hackborn wrote: On Mon, Aug 30, 2010 at 1:37 PM, Brad Gies > wrote: Now... I also want to use the camera (optional) and vibrate (optional but most users will want it) so I have to add : Here again, vibrate is a normal

Re: [android-developers]

2010-09-01 Thread Miguel Morales
Yes, yes you can. On Wed, Sep 1, 2010 at 1:20 AM, vineeshkc wrote: > There is a user input then on submit pass the search keywords to the db > server and return the results (the db server has to be external by the way). > Could i pass the search query to server side (php) and get the php script t

Re: [android-developers] Help with simple Bitmap issue

2010-09-01 Thread Pedro Teixeira
The same old error... NullPoinerException which is strange considering I have the correct values on the variables when I run them on the debugger.. any suggestion? On Aug 31, 2010, at 4:26 PM, Pedro Teixeira wrote: Hi there... I'm having an issue with a Bitmap which is giving me an error bu

[android-developers] Android Window policy

2010-09-01 Thread Pilu
Hello, My query is regarding the window policy in android. As far as i know two policies are present i.e. phonewindow and midwindow. What is the difference between these two and on what basis the policy will be choosen ? Any pointer will be appreciated. Thanks. -- You received this message bec

[android-developers] Re: How to clear static variable values when will i close my application in android

2010-09-01 Thread joebowbeer
There are several alternatives listed at http://developer.android.com/guide/appendix/faq/framework.html#3 I like to maintain global state in a subclass of android.app.Application. I share your concerns about static variables, particularly in Android because the process classloader may outlive any

Re: [android-developers]

2010-09-01 Thread vineeshkc
sorry pls give me exact idea -- 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 group, send email to android-developers+unsubscr...@googlegroup

[android-developers] EditText field not update, how to do this?

2010-09-01 Thread Mystique
Hi, I have an EditText field and a button. My aim is to let user enter text info to the EditText or click the button to launch a dialog to select some checkbox and radio button which it will perform some computation and return a value to display at the EditText field. I can't seems to get the val

[android-developers] Re: layout_gravity

2010-09-01 Thread Zsolt Vasvari
> I believe that layout_gravity (for LinearLayout) probably only has an > effect if it specifies a direction that is orthogonal to the > orientation of the layout. > Ie if the LinearLayout orientation is horizontal then the only > acceptable layout_gravity options fors its children are top, bottom

[android-developers] Re: How do I create a background loop method

2010-09-01 Thread Laxs
Thanks for your answers, there are no Server connections required for my method. What I'm doing is to check my actual position and compare it to defined areas in the database. if I find a matching Area I want to start an Intent and notify the user. If I get it right, my method should be a Broadca

Re: [android-developers] Urgent Help - Diff between Phone Window and Mid Window

2010-09-01 Thread Revathi K J Ramanan
Hi Dianne, Thanks for the immediate response. I need the basic difference between the PhoneWindow and MidWindow.Like why android is choosing PhoneWindow for its implementation not MidWindow. And In the x86 code of Cupcake 1.6 version, I found that MidWindow was being used. But in x86 of Eclair 2

Re: [android-developers] Urgent Help - Diff between Phone Window and Mid Window

2010-09-01 Thread Revathi K J Ramanan
Hi Dianne, I was trying to find the reply for the below question in short.. What is the difference between these two and on what basis the policy will be choosen ? Please help me... Regards, Revathi K J Ramanan On Wed, Sep 1, 2010 at 4:09 PM, Revathi K J Ramanan < revathiramana...@gmail.com> w

Re: [android-developers] Re: How do I create a background loop method

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 6:28 AM, Laxs wrote: > Thanks for your answers, > > there are no Server connections required for my method. What I'm doing > is to check my actual position and compare it to defined areas in the > database. > if I find a matching Area I want to start an Intent and notify the

Re: [android-developers] EditText field not update, how to do this?

2010-09-01 Thread Shashidhar
Can you please post the code here.. On Wed, Sep 1, 2010 at 3:42 PM, Mystique wrote: > Hi, > > I have an EditText field and a button. > My aim is to let user enter text info to the EditText or click the > button to launch a dialog to select some checkbox and radio button > which it will perfo

Re: [android-developers] Re: Can Android 2.X connect to 3G and Wifi data networks simultaneously?

2010-09-01 Thread Mark Murphy
My point is that it is not in the Android SDK and therefore is not safe to use. On Wed, Sep 1, 2010 at 4:12 AM, Jens wrote: > Yup, i usually don't commit the exact name of hidden constants to > memory, the value of that constant is however defined as "enableHIPRI" > - and should produce the desir

Re: [android-developers] Re: Problem with spinner in a list view

2010-09-01 Thread Shashidhar
Thanks for the replies. I have fixed this one. Previously while returning the view from getview() method it was checking for convertview to null or not, if its null then only I was creating a new view. But I have removed the null checking login now and always returning a new view. This sovled my p

[android-developers] Re: EditText field not update, how to do this?

2010-09-01 Thread Mystique
Thanks, I did 1 week ago and receive no reply :D I thought I can keep it simple this time to have some direction and I figure it out myself. Here it is, but the formatting is lost.. so hard to read it here. http://groups.google.com/group/android-developers/browse_thread/thread/cf34462df693208d/7dc

Re: [android-developers] Re: Problem with spinner in a list view

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 6:47 AM, Shashidhar wrote: > Thanks for the replies. I have fixed this one. > Previously while returning the view from getview() method it was checking > for convertview to null or not, if its null then only I was creating a new > view. > But I have removed the null checking

Re: [android-developers] Re: Problem with spinner in a list view

2010-09-01 Thread Shashidhar
Yeah agreed, but I have no other quick option. On Wed, Sep 1, 2010 at 4:20 PM, Mark Murphy wrote: > On Wed, Sep 1, 2010 at 6:47 AM, Shashidhar > wrote: > > Thanks for the replies. I have fixed this one. > > Previously while returning the view from getview() method it was checking > > for conver

[android-developers] Re: Apps availability on US Market

2010-09-01 Thread Yahel
> A world of faces is on the market with a 5 star rating. Thanks you Traveler. 5 stars rating, looks like I'm not the only one with a little voyeur side :D Take care. Yahel -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to thi

[android-developers] softKeyboard's next button not taking focus to the next edit text

2010-09-01 Thread Shashidhar
Hi, In My code I have an alter window in which I take a mac address as input. For this I have created 6 Edit texts to accept mac address. Now my problem is When I am in first edit text and click on "next" button in soft keyboard it does not take the focus to the next available edittext. I have se

Re: [android-developers] Re: Can Android 2.X connect to 3G and Wifi data networks simultaneously?

2010-09-01 Thread Tauno Talimaa
Indeed but imagine a case where you have two options (after spending quite a lot of resources on a project already): a) Don't release your software at all. b) Release your app and use hidden constants( that do work on current devices) but risk with the fact that your application will break in t

[android-developers] Disabling Autolock

2010-09-01 Thread Uander
Hello All , When I am booting my android OS , by default it is in Locked State . Can someone tell me how to disable this autolock of screen at startup . ? Is there a corresponding APK present ? Where to disable this LOCK_PATTERN_ENABLED ? I am using Froyo right now . Thanks : Uander -- You

[android-developers] ListActivity with Button at bottom

2010-09-01 Thread chetan
Hi, I have created a class extends ListActivity and i want to add a button at bottom of Listactivity. Can any body tell me how it can be done. Thanks Chetan Chauhan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

Re: [android-developers] Re: Can Android 2.X connect to 3G and Wifi data networks simultaneously?

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 7:14 AM, Tauno Talimaa wrote: >  Indeed but imagine a case where you have two options (after spending quite > a lot of resources on a project already): > a) Don't release your software at all. > b) Release your app and use hidden constants( that do work on current > devices)

Re: [android-developers] ListActivity with Button at bottom

2010-09-01 Thread Mark Murphy
Use a RelativeLayout, putting the Button at the bottom and anchoring the ListView to the top of the screen and the top of the Button. Or, use a LinearLayout, setting the ListView's android:layout_height to 0px and its android:layout_weight to 1, and leaving android:layout_weight off the Button. O

[android-developers] Re: softKeyboard's next button not taking focus to the next edit text

2010-09-01 Thread Shashidhar
Figured it out. I thought android will automatically create id's for dynamically created UI elements. Thats why I put * input1.setNextFocusDownId(input2.getId()); Here I was not assigning any id explicitly for "input2". If I set explicitly some id to "input2" and the set the next focus down id,

Re: [android-developers] ListActivity with Button at bottom

2010-09-01 Thread Damien Cooke
Chetan, Like Mark said: here is one I prepared earlier in xml:) http://schemas.android.com/apk/res/android"; android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> On 01/09/2010, at 8:45 PM, chetan wrote: > Hi, > I

[android-developers] traversing activity stack

2010-09-01 Thread kamiseq
hi, how can I assure I always go back clicking on custom menu option to previous activity. I think it is a good idea to start new activities by startActivity(context, XActivity.class) but then when option is selected I should call finish on that activity or again call startActivity(this, previousAc

Re: [android-developers] traversing activity stack

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 8:15 AM, kamiseq wrote: > how can I assure I always go back clicking on custom menu option to > previous activity. Don't have a "custom menu option to previous activity". Let the user press the BACK button. > on the other hand android has all activities on a stack so click

[android-developers] Re: what member variable in Activity class stores its state?

2010-09-01 Thread Anil
ok, so perhaps the ActivityManager or some such class stores the state of each activity? On Sep 1, 1:12 am, TreKing wrote: > On Tue, Aug 31, 2010 at 8:47 PM, Anil wrote: > > just wondered what the member variable in Activity is that stores it - we > > are after all, extending from it - so we cou

[android-developers] start emulator with ant

2010-09-01 Thread for android
I need to start the emulator from an ant script run the test cases and stop the emulator.Any pointers on how to acheive this? -- 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@googlegrou

[android-developers] stop listview kinetic scrolling

2010-09-01 Thread manigault
How can i stop listview kinetic scrolling ? -- 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 group, send email to android-developers+unsubscr..

[android-developers] deep effect in gallery?

2010-09-01 Thread genxsol
Hi Folks, I am looking for Deep effect in Android gallery. i did some work around coverflow at http://www.inter-fuser.com/search/label/Coverflow but it also do scroll left and right. it does give me the idea to calculate offset top and left for each item separately but still there is no access.

Re: [android-developers] start emulator with ant

2010-09-01 Thread Mark Murphy
Create an ant task that executes the emulator command: http://developer.android.com/guide/developing/tools/emulator.html#starting On Wed, Sep 1, 2010 at 8:56 AM, for android wrote: > I need to start the emulator from an ant script run the test cases and stop > the emulator.Any pointers on how t

Re: [android-developers] start emulator with ant

2010-09-01 Thread Guru
yep thanks i was able to start it:- On Wed, Sep 1, 2010 at 6:50 PM, Mark Murphy wrote: > Create an ant task that executes the emulator command: > > http://developer.android.com/guide/developing/tools/emulator

[android-developers] Memory problem with UI elements

2010-09-01 Thread Shashidhar
Hi, In my application I change layouts very frequently with most of the user interactions. Each time when a new layout is drawn, the applications memory size is increasing. I can see this in DDMS. This is absolutely fine. I have analyzed my application with memory analyze tool and it shows that t

Re: [android-developers] Memory problem with UI elements

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 9:48 AM, Shashidhar wrote: >   In my application I change layouts very frequently with most of the user > interactions. Do you mean you call setContentView() repeatedly? Or how do you "change layouts"? > Now my > question is why doesn't the GC collect the stale layout obje

[android-developers] Re: traversing activity stack

2010-09-01 Thread kamiseq
ok I know I can always press on phone back button, but I want to mimic such a functionality and allow a user can choose option from option menu. the problem I see is that when starting activity by passing context and next-activity-name I cannot get context (the caller) from intent that started that

[android-developers] Sensors with thread or not?

2010-09-01 Thread Paolo
I have an activity, that uses sensor strongly. Until now I have managed the sensor with a background thread, because I thought it was better to understand and to develop my app, but now I'm not sure about it. The performance is very low. Do you think i should use sensor in the activity directly, w

Re: [android-developers] Help with simple Bitmap issue

2010-09-01 Thread Pedro Teixeira
Can someone help me with this? I'm really having a hard time to understand why this error is happening... my code is simple as: File imageFile = new File(thenPicPath); if(imageFile.exists()){ Bitmap myBitmap = BitmapFactory.decodeFile(thenPicPath); Imag

[android-developers] Re: traversing activity stack

2010-09-01 Thread kamiseq
just one more thing, what is the difference between startActivity and startActivityForResult, can I have two activities of the same class on a stack displaying ie list with different data each? in another words what android really does when startActivity is called, does it resume or create activity

Re: [android-developers] Re: traversing activity stack

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 10:27 AM, kamiseq wrote: > ok I know I can always press on phone back button, but I want to mimic > such a functionality and allow a user can choose option from option > menu. Please do not do that. Android developers have a bad reputation for ignoring what few human interf

[android-developers] Edittext Cursor and Highlight Problem

2010-09-01 Thread SurtaX
I am trying to implement a textview which has select text/copy and paste functionality. I tried to do this by making an Edittext with the following properties. I currently have the following Edittext: I want users to be able to highlight the text with long click --> select text. This works fine

[android-developers] GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-01 Thread niko20
Yes we have threads about this already but we still have not gotten an answer AND I think it's about time somebody at least explain what does this number actually MEAN. I'm getting frustrated with the lack of transparency on this. My apps used to be around 56% active installs VERY soon after I up

[android-developers] Re: EditText field not update, how to do this?

2010-09-01 Thread Brion Emde
You should update the value of you EditText in onResume(), which you don't seem to have right now. That is called when your activity returns to the foreground. At that point you should have your new value and you just do a setText() on the EditText to display the new value. On Sep 1, 6:49 am, Myst

[android-developers] Re: Sensors with thread or not?

2010-09-01 Thread Bret Foreman
I use sensors extensively and find that they work best in a Service which you can bind to your Activity. -- 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

[android-developers] Understanding Horizontal Scrollview and relationship to bitmap

2010-09-01 Thread Robert Schmid
I am creating an app with a very long horizontal custom view (about 500 pages horizontally). I don't draw to it often enough to justify using a surface view. As I approached the problem I inserted my custom view into a horizontal scroll view and that works OK. Still, I think it can be smoother.

[android-developers] Re: GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-01 Thread Maps.Huge.Info (Maps API Guru)
As stated in the other thread, the problem may just be that the algorithm that computes active install percentage may just be more accurate now. It could also be that your user base started uninstalling your app when you posted the update. Many people will uninstall an app they haven't used for a w

Re: [android-developers] Understanding Horizontal Scrollview and relationship to bitmap

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 11:09 AM, Robert Schmid wrote: > I am creating an app with a very long horizontal custom view (about > 500 pages horizontally).  I don't draw to it often enough to justify > using a surface view. That would seem to be bad from a memory consumption standpoint. For example,

Re: [android-developers] Re: what member variable in Activity class stores its state?

2010-09-01 Thread TreKing
On Wed, Sep 1, 2010 at 7:24 AM, Anil wrote: > ok, so perhaps the ActivityManager or some such class stores the state of > each activity? > Maybe, there's probably *some* class somewhere that's aware of the Activity stack and what's where and whatnot. But you really don't need to know this. If y

Re: [android-developers] Understanding Horizontal Scrollview and relationship to bitmap

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 11:24 AM, Mark Murphy wrote: > You could look at the code for ListView (and AbsListView) to see how > they do what they do. That's a few thousand lines of code and, I > suspect, took a few engineer-months to get to its current state. Another strategy, if you can settle for

Re: [android-developers] GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-01 Thread TreKing
On Wed, Sep 1, 2010 at 9:57 AM, niko20 wrote: > Yes we have threads about this already but we still have not gotten > an answer And don't expect one. It's not how Google rolls. > AND I think it's about time somebody at least explain what does this number > actually MEAN. Yeah, don't hold yo

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-09-01 Thread Huynh Ngoc Vu Nguyen
Hi, You can use antena. Same as J2ME. Best. 2010/7/31 Kostya Vasilyev > The absence of preprocessor has to do with Java, not Android. > > And tlhere is a lot of Java software out there... > > -- > Kostya Vasilyev -- http://kmansoft.wordpress.com > > 01.08.2010 0:00 пользователь "sblantipodi" >

[android-developers] Re: How to create TextView without write the XML file

2010-09-01 Thread rb
I knew there was something that I missed. Thanks to all who shed light on this thread. Here's the final code for those newbies who may have the same problem. package com.HelloWorld; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClick

[android-developers] SQLite implementation - need help!

2010-09-01 Thread kingh32
Hello All I'm stuck on an SQLite problem and have been for the past few day so I thought I would share it with you. All I'm trying to do is create an SQLite database to display the data generated by the use of my app. I've managed to get the app to send data to a MySQL database (quite easily) but

[android-developers] Re: Can't use ServerSocket

2010-09-01 Thread shuwo
You were right. It appears that it's something wrong with my phones WiFi. The problem should be that it's not responding to the ARP request. Is there anything I can do in my server/client code to make it work anyway? For example connect to the phone without sending any ARP request to it, just conn

[android-developers] Launch Local Drawable Resource in the Gallery app Using Intents

2010-09-01 Thread Christopher
I have an app with locally stored .jpg files. I would like to be able to send the images (1 at a time, on user interaction) to the Gallery app's activity using an explicit intent. Any thoughts? -- You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] Re: Intent not opening correct ativity

2010-09-01 Thread Christopher
What is the preferred method to send a drawable (like a bitmap) to another activity (such as the Gallery app) then? On Aug 23, 9:26 am, Dianne Hackborn wrote: > Please don't send bitmaps like that.  When you start an intent, the bitmap > needs to be marshaled for delivery (one copy).  It is then

[android-developers] Re: Memory problem with UI elements

2010-09-01 Thread DanH
If you can see an object it's not garbage. On Sep 1, 8:48 am, Shashidhar wrote: > Hi, >   In my application I change layouts very frequently with most of the user > interactions. Each time when a new layout is drawn, the applications memory > size is increasing. I can see this in DDMS. > This is

Re: [android-developers] Reducing Permissions

2010-09-01 Thread Brad Gies
Actually, you are correct. Many of the permissions don't show to the user. It's been awhile since I installed the app from the internet, but I do have it installed as a draft in the market, so I was using the market stats (silly me... ). This apk requests 13 permissions that users will be wa

[android-developers] live singleton after ending activity

2010-09-01 Thread siva
Hi Firends, I have a singleton in an activity. When I end my application (like pressing back button), and start it again after some time, the singleton is not recreated, but is holding previous state. Singleton is not destroyed if the application is destroyed? Do I have to null its static members

Re: [android-developers] Re: Intent not opening correct ativity

2010-09-01 Thread Mark Murphy
2010/9/1 Christopher : > What is the preferred method to send a drawable (like a bitmap) to > another activity (such as the Gallery app) then? Keep it within your own application, using a Service or custom Application object or something. Then, display it in your own application. Or, store it on

[android-developers] Re: SQLite implementation - need help!

2010-09-01 Thread San
Hey King, Your SQL query is not right. You have to give space before you add the type. Try this String sql = "create table " + TABLE_EVENT + "(_id integer not null primary key autoincrement," + COL_ENTRYID + " integer, " + COL_EVENTNAME + " varchar, " + COL_DATE + " date,

[android-developers] Same SMS is received multiple times- HTC Tattoo

2010-09-01 Thread Amit
Hi All, I am facing one issue on my HTC tattoo device. I have written a code which sends an SMS to the given number. At the recipient end I am receiving more than one SMSs. One time I have even received 17 same messages. I am posting the code snippet for the reference- private void sendSMS(fina

Re: [android-developers] Re: traversing activity stack

2010-09-01 Thread TreKing
On Wed, Sep 1, 2010 at 9:45 AM, kamiseq wrote: > just one more thing, what is the difference between startActivity > and startActivityForResult, > The latter will call the onActivityResult on the first activity after the second activity it started finishes. can I have two activities of the same

[android-developers] Re: Same SMS is received multiple times- HTC Tattoo

2010-09-01 Thread San
When/where do you call this method? On Sep 1, 10:27 am, Amit wrote: > Hi All, > > I am facing one issue on my HTC tattoo device. > > I have written a code which sends an SMS to the given number. At the > recipient end I am receiving more than one SMSs. One time I have even > received 17 same me

[android-developers] How Write a background service to read and store SMS/MMS

2010-09-01 Thread Hotouch
Hello Android Community, As i have posted a question previously and got pretty good answers form experts here on Android Developer Google Group and have successfully completed my app and this time i am looking for more help :) This application is to take the backup of all the incoming and outgoin

Re: [android-developers] live singleton after ending activity

2010-09-01 Thread Mark Murphy
On Wed, Sep 1, 2010 at 1:19 PM, siva wrote: > I have a singleton in an activity. When I end my application (like > pressing back button), and start it again after some time, the > singleton is not recreated, but is holding previous state. Singleton > is not destroyed if the application is destroye

Re: [android-developers] SQLite implementation - need help!

2010-09-01 Thread Kostya Vasilyev
The "from" and "to" arrays need to have equal size, and contain values (column names and view ids) that are used for mapping data to UI elements. Your code seems to try and map a number of data column items into one text view. The fix is to add more elements to the item layout, and specify t

[android-developers] How to start application when bootup complete of emulator

2010-09-01 Thread Sohan badaya
Hi All, I want to start my application when i start emulator like as Email application. I created a Receiver class "BootReceiver" and i want to print a Log from onReceive() method of my Receiver class when my emulator's boot up complete. I did two things in manifest file as below , but it's not wo

Re: [android-developers] Re: Can't use ServerSocket

2010-09-01 Thread Kostya Vasilyev
01.09.2010 20:40, shuwo пишет: The problem should be that it's not responding to the ARP request. If your code is correct, this indicates a serious problem. Is there anything I can do in my server/client code to make it work anyway? For example connect to the phone without sending any ARP requ

[android-developers] 401 Unauthorized in c2dm sent message to server

2010-09-01 Thread chenthil
HI, i got the c2dm device registration id and auth token. but while sending message to the c2dm server am getting 401 Unauthorized. can anyone 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] signing apk using netbeans compile

2010-09-01 Thread brewrich
I've gone around in circles it seems. Does anyone develop in Netbeans. I desperately need a concise How-To to get an app signed for Android Market. Up against a brick wall on this. HELP !! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Android with XML-RPC

2010-09-01 Thread Tsolmon Narantsogt
Hello everyone I am trying to build xml rpc client for android. What library i should use for this. Regards Tsolmon. -- 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.c

[android-developers] DatePicker : size, font, etc...

2010-09-01 Thread Cyril
Hi there ! Is there any way to change a datePicker size (I mean scaling it), or at least just the font's size ? The fact is that the datePicker frame displayed in the UI designer in Eclipse, is not the same than the one showing in the emulator : button parts are same but fields are bigger, wich is

Re: [android-developers] Re: Is there a way to request permissions from auser as you need them?

2010-09-01 Thread yenmaxonic
UKth Sent from my Verizon Wireless BlackBerry -Original Message- From: Indicator Veritatis Sender: android-developers@googlegroups.com Date: Sun, 29 Aug 2010 17:11:56 To: Android Developers Reply-To: android-developers@googlegroups.com Subject: [android-developers] Re: Is there a way to

[android-developers] stretch_copybit::run_render fail causing noticeable pauses in my display

2010-09-01 Thread Gino
Hi, I'm developing an Android game and I've got the garbage collection to the point where it GC's only about once every 5 minutes or so, which I think is acceptable, for now. The problem is that, every once in a while, I'll see this message in the logs: 08-29 09:58:46.410 W/copybit ( 1912): stret

[android-developers] Bes resource to get started with Android development.

2010-09-01 Thread David Smith
Hi, I'm looking for something to get up and running quickly with Android development. Perhaps a great tutorial covering the basics. I see a lot of posts on getting started but the ones I have looked over so far aren't great. What do people here recommend? Thanks! -- You received this message bec

[android-developers] Android - Large Application size (Memory) issue

2010-09-01 Thread paresh mayani
Hello all, I am facing the "Memory" related issues and i am searching the possible solution to this issues since last 2 weeks. Right now i have developed an android application for the personal perpose, whose size is 54 MB, from which 52 MB of only Images/Photos. So i want to install it on Androi

[android-developers] Getting started with Android

2010-09-01 Thread sdoyle_2
Google produces a lot of hits on getting started with Android development but I was wondering if there is any generally accepted material as being one of if not the best in getting started with Android? Thanks -- You received this message because you are subscribed to the Google Groups "Andro

[android-developers] Why i cann't login my account of android market?

2010-09-01 Thread android
Why i cann't login my account of android market? Today when i login my account of android market.I found the page redirect to signup page.And my apps cann't be found in the client of android market.I give money to sign up the account.Should i get any notice about that?Should i get email about that

[android-developers] Problem with INTERNET permission

2010-09-01 Thread umakantpatil
Hi, I'm making socket connection to my localhost i.e. http://localhost/fetch.php is the URL. Now I have added in permission for internet in manifest. Still it says Connection refused to http://localhost I even tried http://127.0.0.1 Still it gives the same error. I'm using emulator; not android

[android-developers] Strange error on HTC Hero running 2.1 in Turkey

2010-09-01 Thread Andy G.
A user got the following error when opening a regular old preference screen with just a single list preference. Can anyone tell what is going on with this? E/AndroidRuntime(32133): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime(32133): java.lang.NullPointerExcept

[android-developers] Re: Background apps (Instant Messaging) being killed without user notification

2010-09-01 Thread erdal
Hi Simon, We've encountered the same problem while developing our app. We are using the new startForeground method (and falling back on the old API if the new one is not available; there is an example somewhere in the docs of how to do that using reflection). This seems to keep our process around

[android-developers] Using socket in a service communicating with more activities...

2010-09-01 Thread kukukk
Hy! I want to create an application to remote control my PC. For example: Volume (get actual volume level, increase/decrease/mute volume), TVtime (start/quit tvtime, get actual channel, toggle fulscreen, channel up/down, toggle input source, toggle aspect ratio), Amarok (start/quit amarok, get cur

[android-developers] Using android:drawableLeft with diferent icons

2010-09-01 Thread JPBerrocal
Hi Im using a ListView and each row have an ImageView and a TextView, each image is diferent, is there anyway to set the drawableleft property of the textview inside the getView method of my adapter? I was looking but havent found how to that dynamically. Thanks!!! -- You received this message

  1   2   3   >