Hi,
I have made a layout with RelativeLayout.
The layout includes quite a number of other elements, from a couple of TableLayouts to several ImageButtons...
The RelativeLayout itself has the following parameters :
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layou...
Is it possible to open an external file in Android? (As XmlPullParser)
...
I want to make an application that compare pizza prices. To do that I have to go to the actual site and enter and search. How can I display the prices WITHOUT the user seeing the actions of going to the website and entering a search. Would I use a WebView and a WebViewClient?
...
How do I get the current compass reading in android 2.1? I know that I can initiate a listener and receive updates but I do not need constant updates I only need it to get the compass orientation when the user clicks a button.
Also what is the most accurate way to get the compass orientation?
Lastly, how do I send fake data to the an...
Below logs gives any clue ? The app just opens up (we could just see the tite of the app as YouTube and it goes back to launcher tray immd.)
cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.youtube/.HomeActivity }
05-31 14:06:41.655: INFO/ActivityManager(1102): Start proc com.google.android.youtube for activi...
Hi, I am quite new about android platform. I want to export my service to be public used.
I find something on developer doc
android:exported
Whether or not components of other applications can invoke the service or interact with it — "true" if they can, and "false" if not. When the value is "false", only components of the same applica...
I am looking into providing an Android SDK add-on but can't seem to find a simple "how to". Is this limited to "device manufactures"? Are the details embedded in the actual SDK? Any guidance will be greatly appreciated.
...
I've written an app with 3 tabs. Each tab has the same list view with different data sources. I have setup SharedPreferences in the tabhost activity, but I put my onSharedPreferenceChangeListener method in my listactivity. When I change a preference, my listener gets called and it updates my database. This is all working. However, i...
I have just started my career as an android programmer, and am currently relying heavily on the sample code and api examples. I have been working with this api example, to produce an expandable list of items (note this example does not use the ExpadableListView).
In playing with the example, I tried to add another widget that would beco...
I have a TabActivity and am going to have 3 or 4 tabs.
In TabA, I would like to have an ExpandableListView, which will list products. I would like TabC to act as a sort of "shopping cart", probably with a ListView of itself. So, my question is: is there a way to interact with the TabHost from the Activity? I would like to be able to cl...
Hi folks,
I would like to know if is there a way to call android:layout_gravity property from a java method. I didn't found any method in Android documentation to do it. This is the picture of the layout I want to implement:
I know to do it through xml, as following:
<FrameLayout
xlmns:android="http://schemas.android.com/apk/res...
myInput.setText(myInput.getText().replace(myInput.getSelectionStart(), myInput.getSelectionEnd(), myText));
myInput.setSelection(myInput.getSelectionStart() + myText.length(), myInput.getSelectionEnd() + myText.length())
I ask because I think this code is much longer than it needs to be - Is there something shorter like myInput.insertT...
Just tried to get OpenGL going to do some more varied stuff, but for some reason, I can't get anything rendered. I've tried passing round a TextView object in each class and having every method add a line to it when it runs so I know what's been done and what hasn't, but for some reason only the Constructor for the Renderer gets run, onD...
I am attempting to get the string representation of an Android device's current WiFi state. I am using the getWifiState() method of the WiFiManager and am getting an integer returned depending on the current state. This makes total sense as getWifiState() is supposed to return an integer. The method's documentation indicates that the pos...
I am looking for an example of using a WebViewClient with shouldOverrideUrlLoading and using HttpPost.
I need to display a web page, keep it within my layout boundaries so it can not launch a new browser and also use HttpPost to send data to the host.
...
I am using layout xml documents for my ui controls.
I need to create and remove these controls (input fields) on the fly, based on how many results I get back from my database.
For each group, there can be 0..* fields and these are prepopulated from the database.
Also, it would be good if I can invoke a method to create an additional ...
I'm having trouble trying to find a way to guide a user from one point on a map to another. I can add the locations I want to the overlay.
I want the user to be able to pick a location and be guided through the streets to that location.
Does anyone know how to do this, or is it even available in the api?
...
I have a list where i basically need a hierarchy of items. Any children of an item would be padded slightly, as to easily distinguish their parent item. How could this be achieved?
Note that i could, if needed, make each parent show no children, and then when the parent is clicked, a new list containing all of it's children is loaded. T...
I am having weird scrolling issues in my pretty simple GridView. Each item in the Grid is simply an ImageView and a TextView. The activity itself is simply an application selector. It looks like a rough version of the basic App Tray in Android.
The issue is that after spending some times scrolling through my view, it will inevitably all...
Hi everyone I've been meaning to learn Java for a while now (I usually keep myself in languages like C and Lua) but buying an android phone seems like an excellent time to start.
now after going through the lovely set of tutorials and a while spent buried in source code I'm beginning to get the feel for it so what's my next step? well t...