I've implemented the android licensing in my application following the example code using the ServerManagedPolicy.
The licence checker works fine, however when a device or emulator has no data connection then the licensing code will always return dontAllow(), while I want it to allow. I cannot seem to find anything on the page above tha...
In a previous question I asked how I could display two different layouts for portrait and landscape orientations:
Problem switching to landscape orientation
Now I would like to know how I can save the state of my application before it goes into another orientation? I seem to lose this data any time orientation changes.
...
I have a FrameView that's created in my XML layout, and in my code, I'm trying to create a series of new ImageViews and add them as children of this FrameView. The ImageViews are small, only about 15 pixels square, and I want them to show up in various positions around the FrameView (I'm trying to implement what looks like a radar scree...
I have one EditText, and I want to get the current column position.
I am using SDK 1.5
Thanks,
Alex
...
HashMap myMap = (HashMap) getLastNonConfigurationInstance();
myMap is always null. getLastNonConfigurationInstance() returns an object. My map has two keys "symbol" and "name".
public Object onRetainNonConfigurationInstance()
{
HashMap myMap = new HashMap();
myMap.put("symbol", this.symbol);
final Object da...
I have an app that i am working on. but when i run it through the eclipse avd... It shows two icons in the app screen. any ideas what is going on?
Also I used the apk to install on my phone and i also saw two installation of the same app on my phone.
...
Hi folks,
i want to develop apps based on speech to text conversion.can you please share your suggestions and how to develop this app
...
HashMap myMap = (HashMap) getLastNonConfigurationInstance();
myMap is always null. getLastNonConfigurationInstance() should return an object.
public Object onRetainNonConfigurationInstance()
{
HashMap myMap = new HashMap();
myMap.put("symbol", this.symbol);
final Object data = myMap;
return data;
...
Is this possible to do? Landscape mode distorts the background image, and therefore I would like to lock orientation to vertical on phones with accelerometers.
Thanks.
...
Hey, im writing an app that stores different pieces of text information. I am also writing a pc based program using the qt framework that will do the same thing. What would be the best way to sync the pc and android programs? Would going through usb work or bluetooth or network? Also how would i get the pc to recognize the internal data ...
Hi ,
I need to write a background service to get latitude and longitude values. I have an android application in which it has to find where the user is currently.So i seemed of getting the values of latitude and longitude values. Is there any way programatically to get the values from the system services or even program giving the valu...
i am trying out this code for scanning wifi networks but getting null pointer exception not sure what problem i registered all permission in manifest.
IntentFilter i = new IntentFilter();
i.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
registerReceiver(new BroadcastReceiver(){
@Override
public ...
Hi everyone here.
We can use the XPathEvaluator object(in javascript) to do xpath evaluation on Safari,Google Chrome and Safari on Iphone. But on android the browser said that the XPathEvaluator object is undefined.
So how can I get a instance of XPathEvaluator object, or is there any other solution to perform xpath evaluation on andro...
Hello All,
I have a linear layout with few child components in it. I have onTouchListener on the linearlayout. I want onTouch event to trigger when I touch child components of the linear layout too.
...
First off, sorry about the large screen. I am trying to get the text to wrap but am currently unable to do so. I have tried android:layout_width="fill_parent", android:scrollHorizontal="false", android:width="0dip" all of which suggested in another question. Does anyone have any idea how I can achieve text wrapping? Here's a sample of ...
Hello
In my android application i want to append body to the url.
I want to append a string to this url.
Could anyone let me know how i can append it.
URL url=new URL("http://220.226.22.57:8780/WEB-3/client/requests/sgduTimeStampRequest.action")
//URLConnection conn=url.openConnection();
HttpURLConnection conn = (H...
When I use CreateProcess to create process adb.exe, It will Block in ReadFile.
void KillAdbProcess()
{
DWORD aProcesses[1024], cbNeeded, cProcesses;
unsigned int i;
if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) )
return;
cProcesses = cbNeeded / sizeof(DWORD);
for ( i = 0; i < cProcesses;...
I would like to add radio buttons to my context menu, but I'm not sure how. This is how it is created:
@Override
public void onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
menu.setHeaderTitle("Selection Options");
menu.add(0, v.g...
On the iPhone a user is able to re-arrange the actual rows in a list. Is this possible on Android? If so, any examples would be great.
...
I have 1 activity, but would like to have multiple context menu's for different UI components.
For example, I have a ListView which will react to:
@Override
public void onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
menu.setHeaderTitle("...