How to poistion edittext in program in android?
I am dynamically creating an Editext in my code. i want to position it in my x and y position in my code itself in an absolute layout. can anyone help me to do this. ...
I am dynamically creating an Editext in my code. i want to position it in my x and y position in my code itself in an absolute layout. can anyone help me to do this. ...
The ic_menu_info icon is properly displayed in the xml menu item that calls it but not in this AlertDialog. new AlertDialog.Builder(this).setMessage(menuInfo).setNeutralButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface d, int i) { // do nothing – it will close on its own } }) .setIcon(R.d...
Hi Does android reuse views during a orientation change? I have a progress bar in my activity. I set the progress to 50%, and then do an orientation change. But for some reason, the progress bar maintain 50% after the orientation. I have call setprogress(0) in the onCreate() of my activity. And I have put 'printf' in anywhere I call se...
I have tried to pull out the notification service from the API's and have it run alone to no avail. When I click the notifyStart button it does not go into the NotifyService class. public class NotifyWords extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d...
I have a simple application that uses the Android system service LOCATION_SERVICE. On app close I need the service to stop. I have searched hard and long for how to do this but I must not be looking for the right thing. Does anybody know how to stop this service? Here is what I'm doing. public void onCreate(Bundle savedInstanceState) ...
Welp, smooth move on my part. I can't update any applications in the Market now because I accidentally deleted my android keystore. Does anyone know how I could get it back? I've tried running a recovery program, but for whatever reason it's not showing up. ...
I just switched over from iPhone to Android and am looking for something similar to where in the iPhone SDK, when a class finishes a certain task, it calls delegate methods in objects set as it's delegates. I don't need too many details. I went through the docs and didn't find anything (the closest I got was "broadcast intents" which se...
So I'm loading images from a web service, but the size of the images are sometimes smaller or bigger than other images and the visualization looks silly when I put them in a ListView in android. I'd like to fix the size of my ImageView so that it only shows a portion of the image if it's larger than a preset amount. I've tried everythi...
I am working on an application in which I need the user to set an array of 30 values and to make it user friendly and easy to use I have decided to use a series of SeekBars and EditText widgets. I am using eclipse and have used it to set up the layout. I am looking for an efficient way to set up the application to automaticaly update th...
Most apps use ZXing, but all examples of ZXing I've seen use a dedicated full screen activity (whether via intent request or embedded Activity class). Are there other bar code scanning libraries that encapsulate the barcode scanning in a View object? If not, what are the components of ZXing I need to extract and/or rebuild? Can I reus...
I have a normal notification system that looks like this: Notification notification new Notification( R.drawable.alerts_notification, alertTitle, System.currentTimeMillis()); Intent intent = new Intent(mContext, MyActivity.class); intent.setAction(MyActivity.ONE_ACTION); PendingIntent pi = PendingIntent.getActivi...
We are building a scrollable background, and currently have one large background image that we split up into 512x512 tiles, and want to load these tiles as they are needed, instead of all at once, when calling GLUtils.texImage2D within onDrawFrame, we have noticeable lag we think because of having to load the texture onto the hardware, i...
In my application I have a title(TextView) and an Image. The image is grabbed from the web and most of the images are different sizes. Some of these images are to tall and overlap on top of my textview, covering it up. Is there anyway to prevent this? <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.and...
I have defined a custom theme, where I am drawing a dark gradient on my window background. My ListView background is set to be transparent, however whenever I scroll, the background color turns black, and then after scrolling has stopped, goes back to the gradient color. Why is this? <?xml version="1.0" encoding="utf-8"?> <resources...
Hi Team, Very new in Android app. Installed Eclipse, SDK, configured AVD but not able to debug my "Hello World" app in Eclipse running on Windows Vista Home Premium SP2. When I am trying to debug - popup appears The JRE Instance default XSLT processor does not support debugging would you like to debug using the default Xalan 2.7.1 pr...
Hello! Im using a custom listView with a Title and a Subtitle where you can read a brief explanation of the item. For each item on the list, im displaying an alertDialog to select an option (different for each case). When the option is selected, i want to change the Subtitle for the option selected by the user. This is what i tried: ...
I spend most of my time in an environment where I can package code with dependencies that are resolved at install time automatically. That's nice. I can install any item and the library needed to support it is automatically added if it doesn't already exist. In Android, this isn't yet possible, so I need another way to share some reso...
The closest example of what i want to accomplish is the "Engadget" widget. It updates it's data from the internet every 5-10 minutes and "scrolls" to the stories every 5-7 seconds. I imagine it sets the 5 -10 minutes interval to the widget's provider to call the onUpdate without the inbuild limitations , something like that .. AlarmMana...
How can I set the number of homescreens to 1 instead of 3? Android 1.6, rooted. Would rather not install a launcher replacement. Running Android 1.6 on a HTC MyTouch. I want to use this as a template for thirty other androids, so I am using Android Kitchen to make a custom ROM. ...
I am using a cursor to loop through the SMS in my phone, like this..: Uri uri = Uri.parse("content://sms"); Cursor c = getContentResolver().query(uri, null, null, null, null); while (c.moveToNext()) ........ How can I check if the current SMS, when I am looping using the cursor, is stored om my SIM card or not? Can't find a way to d...