android-widget

Android Spinner - How to remove radio buttons?

In Android 1.6, upon tapping a spinner (drop-down menu), radio buttons appear next to the spinner options. How do I remove those radio buttons so that just the option text remains? ...

Android Spinner - How to make dropdown view transparent?

I have a custom spinner dropdown xml file in /res/layout/: spinner_view_dropdown.xml: <?xml version="1.0" encoding="UTF-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/spinner_item_dropdown" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:col...

Android Dropdown Effect - Spinner or not?

Achieving a true "dropdown" effect (as seen in Adobe's Photoshop Mobile app for Android, image below) has proven challenging using Androids built-in methods. As others on Stackoverflow have told me, editing the style of a dropdown list view of an Android spinner is limiting. How is this dropdown effect done? (I can't seem to get an ...

[Android] Launching activity from widget

Hi, I'm trying to do something which really ought to be quite easy, but it's driving me crazy. I'm trying to launch an activity when a home screen widget is pressed, such as a configuration activity for the widget. I think I've followed word for word the tutorial on the Android Developers website, and even a few unofficial tutorials as ...

Is it possible make new ADT Plug-in installer and include new our Android UI custom componet with ADT Plug-in ?

Is it possible make new ADT Plug-in installer and include new our Android UI custom componet with ADT Plug-in ? I found Eclipse source in Android Full source package. I'm thinking it is possible to making new ADT Plug-in installer. One more thing, I want to add new Our custom UI Android Componet in Android UI Layout screen. Is it pos...

Can I add a click event to a text span?

I have a large text view that I am styling with a SpannableStringBuilder. I want to be able to assign custom click event handlers to certain spans of text. For example, if I click a superscript character I want it to pop up a toast with some information about what the superscript references. So far I have found linkify which helps to mak...

How to insert rows/info into Android SQL DB with EditText and Buttons?

Hello, im working on a simple Android app, it is much like any other simple Database app. I have 4 EditText fields where the user inputs 4 different small pieces of text. I want this text to be inserted in to my Database table in the corrects rows for my columns. I am not really sure how to go about doing this. I know onClickListener nee...

custom Dialog by extends dialog or alertDialog

hello,I want to make a custom Dialog,because i donot like it"s style,i want get a rounded rectangle rather than rectangle . i know to implement it by theme in Manifest.xml . for example :the code at activity write: android:theme="@style/Theme.CustomDialog Theme.CustomDialog.xml @drawable/filled_box true filled_box.xm...

Changing a widget's icon from onUpdate

Hi, I have a widget that is meant to change its icon every time it receives the Update broadcast. However, the widget never manages to display its icon properly, displaying the text "Problem loading widget". The Logcat message is: WARN/AppWidgetHostView(612): updateAppWidget couldn't find any view, using error view WARN/AppWidgetHostVi...

is AppWidgetProvider informed if adding a widget fails due to not enough space on homescreen.

My app has a 1*4 icon size widget. When a user tries to add a widget I provide with a configuration screen. and some data is collected - it is verified by the server - it is added to the local DB with appWidgetID as the key - all is good. when user hits save, if there is not enough space, he is given a polite toast - "No more room on th...

android how to scroll to see all the widget of the view

Hello, In one of my androids activities, I have several widget in a vertical linearlayout. The length of this layout is bigger than the screen and thus I cannot see the widget at the bottom. In the Emulator, is there a special scroller to implement or a particular action to do to be able to scroll up and down ? Thanks a lot, Luc ...

Debugging Android Widget Code In Eclipse

I am starting with Android programming with the help of Unlocking Android / Manning which came from Santa and is a pretty good book. After running a few little tests and examples, I'm moving towards developing the concepts for my own application. I want my App to execute as a Home Widget and I'm using this example as my model to get sta...

How to change progress bar's progress color in Android

I'm using an horizontal progress bar in my Android application, and I want to change its progress color (which is Yellow by default). How can I do it using code (not XML)? ...

appWidget Orientation Code

I have code in an appwidget that I want to run when the phone's orientation changes on the home screen, ie like when the keyboard flips out. I have an image that I want to change in an imageview in my appwidget. I can't use different layouts linked to the orientation (ie "layout" and "layout-land") because I don't know the name of the im...

Put widget on desktop automatically after installation

Hi, I have developed some widget and what I want to attain is to put it on desktop automatically after installation without doing it manually. Thanks in advance, kogut ...

Change style of android MediaController

Hi, is there a way to customize the MediaController? I need to change the style of buttons, SeekBar etc. Thx for your answer i.a. ...

DateTime picker in android application

Hello, Is there any android widget that enable to pick the date and the time at the same time ? I already use the basic date picker and date picker: http://developer.android.com/guide/tutorials/views/hello-timepicker.html http://developer.android.com/guide/tutorials/views/hello-datepicker.html but they are not that sexy and user frien...

Creating Buttons Dynamically, Could I select one and deselect the other buttons?

I'm creating buttons dynamically ... for(int i=0; i<colSize;i++){ final Button btn = new Button(this); btn.setText(SectionName[i]); btn.setTextSize(10); btn.setPadding(8, 3,8, 3); btn.setTextColor(Color.WHITE); btn.setTypeface(Typeface.SERIF, Typeface.BOLD); btn.setOnClickListener(new OnClic...

logging to a database when user clicks on a widget

I have a widget that displays an analog clock. What I would like is for the the widget to write to a database the time when a user clicks on the widget. I've already got the databaseHelper class and have an Activity that displays a screen showing the current date and time and writes the time to a database. I followed the tutorial here: ...

android.database.sqlite.SQLiteCursor@435b9ba0

I am getting the text 'android.database.sqlite.SQLiteCursor@435b9ba0' returned from a spinner.getSelectedItem().toString() call. I'm not sure why. The spinner is tied to a SimpleCursorAdapter. Here is the code cCategories = (Cursor) myAdapter.getAllCategories(); this.startManagingCursor(cCategories); SimpleCursorAdapte...