The problem is: I have problem with refreshing listView. I set ListView adapter (BaseAdapter) after changing data object I call notifyDataSetChanged but it make no effect to my list - its stay empty. None of Adapter function is called!
What i did wrong?
...
I have...
PNG file for Background
PNG file for Icon (drawableTop)
Text I want to put underneath this Button
It's similar to a Menu Icon. How to do that? I only found following ways. Both of them arent very nice:
Make two Buttons, one for Text one for the Picture
The Background PNG File needs a transparent area at the bottom in the ...
I have a ScrollView (and a LinearLayout within it) set as main content. When the user scrolls the view further down, and then if I replace it's child (LinearLayout) with another LinearLayout, the view remains in the scrolled positioned.
How do I reset the ScrollView back to coordinate 0?
...
hi as i run my app my services r running but after some time a msg comes
ignoring second debugger- accepting and dropping continuously and my service got hanged.
plz help. my file is following
D/PackageManager( 58): Receivers: com.company.cellSafetyZone.controller.IncomingCallReceiver com.company.cellSafetyZone.controller.LocationR...
I have a annoying problem with @Override annotations in Eclipse. Often when i import working projects on a new PC, Eclipse marks some of the @Override annotations as wrong. If i remove the annotations everything is fine and Eclipse also indicates that the methods are overriding the parents methods but adding the Override annotation cause...
I know that after downloading an mp3 from your app you need to add it to the ContentResolver to see it on the music player. I am doing it with the following code:
private void addFileToContentProvider() {
ContentValues values = new ContentValues(7);
values.put(Media.DISPLAY_NAME, "display_name");
values.put(...
Hello, i have a spinner with 5 entries which i managed to save to an sqliteDatabase using the getSelectedItem().toString() method. is it possible to display back the saved selected item from the database back to the spinner. I am using an intent to go back to the class where the spinner widget was created. I used a toast message to make ...
Hi,
I am trying to display some ImageView and TextView in a TableLayout.
However, for the TextView (in the second column), it is partially hidden and does not go to the next line.
A screen capture is attached here.
<TableLayout android:id="@+id/RestTable"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
an...
I create Android applications for my job. Eclipse is open all day and I am frequently editing XML files for layouts, etc.
I find that creating/editing these XML files pushes up the memory use of Eclipse. Eclipse never seems to release any of the memory and eventually Eclipse tells me that there has been some sort of workbench out of me...
For now I've used the classic export command to set an environment variable and tried to read this variable from my test with System.getenv() function, but it doesn't seem to work.
Can someone give an example how to set and read a system variable in an Android application?
...
It's probably something I did wrong. My first installation of eclipse with the android SDK got FUBAR'ed, so I installed a second, in a seperate location. Here's my new problem; When I open the manifest.xml and try to add permissions (i.e From the permission tab, click add, click "uses") there is no list (like there used to be) of a sel...
Hi all. I am doing some android development, and now I need to send some android application
generated data onto a remote server (a database)?
How can I do that? can I use direct JDBC connection and sql?
Thanks in advance!
...
I have an application that uses predefined word lists but I want to extend it to give the option of using their own custom lists.
Unfortunately lists like SOWPODS (the official Scrabble word list) are quite comprehensive and contain words I wouldn't want popping up on the screen.
I can easily get hold of a banned word list and build i...
Hi all. I am doing some android development, and now I need to send some android application
generated data onto a remote server (a database)?
How can I do that? can I use direct JDBC connection and sql?
Thanks in advance!
...
Hello,
I want to build an app that will get a data table from a database
e.g.: "SELECT fName,lName, age FROM myTable".
and put it in an editable grid that will save changes back to the DB.
fName lName age
----- ----- ---
Elton John 20
Bob Marley 25
Is it possible to create such grid that can be editable an...
The Activity class has a setContentView() method. The PopupWindow Class has a getContentView() method but nothing else does. Is there another way to get the main content view for an activity?
...
I have a singleton which stores some prudent information about the user of my application. At the moment, it stores the user's login and the user's location.
1)
The location is found via a Service. At the moment, the Service references my singleton directly to stuff the longitude and latitude into it. I would like to use a BroadcastR...
I have a problem that's only affecting Droid phones. I end up not being able to access global variables after an onActivityResult event.
While looking into this I came across:
http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables
I follow those directions, but still the value is NULL.
On my HTC Hero everyt...
I see examples of selectors using android states like 'selected' to define style. Here a simplified example:
<selector>
<item android:state_selected="true" android:drawable="@color/transparent" />
<item android:drawable="@drawable/listitem_normal" />
</selector>
So, my question is: Can I define and use my own state instead of...
Hi Friends,
i am using two intent for various action in my activity and i also used onActivityResult for get result,i want to answer for how to get tow intent result in onActivityResult?anybody knows please give sample code for me..
Thanks all
...