I have a string defined in my strings.xml file which I want to be displayed in a view. Thing is, I want this text to become justified, but I want to pass this information directly from the strings.xml file, not from my layout file or from Java code. I tried something like
<string name="testString"><p align='justify'>My justified test st...
Hi All,
I am trying to create an Android application that would use a configuration file (plain text) when loading.
When testing locally (with an emulator), I place my config file in the src/ folder (ecplise) and I see it is copied and used from the bin/ folder upon project build.
My questions are:
1) Where do I need to place this fi...
Has anyone used the Android NDK to port a Linux app? We have an SSL VPN solution at work which Openconnect (http://www.infradead.org/openconnect.html) works with, but there is currently no client (from Cisco or otherwise) on Android. Is using the Android NDK a feasible approach to get this to work?
Thank you in advance
...
When I use a ImageButton in the ListView row, the ros is no selectable. When I change it to a ImageView it is selectable.
I have this simple row layout, and below is my list , am I missing something simple?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_widt...
I'm trying to set up a cross-compile toolchain so that I can compile C code and run it on my device. I am trying to do this without having to download the entire Android source tree and wait hours for it to compile. (However, in the time I have spent trying to solve this problem it would probably have finished downloading and building th...
I want to create keyboard shortcuts in my Android app such that, say, alt-t runs a certain command. I can't seem to figure out how to detect the presence of the alt modifier in the emulator, though.
I've overridden onKeyDown() in my app to look like the following (Scala):
override def onKeyDown(keycode:Int, event:KeyEvent) = keycode...
hello, is there something similar to the NotImplementedException on the android platform?
thanks!
...
Something is wrong whit my code. in application when I "add item", it doesnt show anything, and if aim clicking somewhere around the android application, then "item" sometimes comes.
Can somebody help me?
package com.example.proov;
import java.util.ArrayList;
import com.example.proov.R;
import android.app.Activity;
import android.os....
I am programming an app that eventually will have several Activities. Right now, however, I got stuck trying to start the second activity from the first one. For some odd reason I am always only getting an ActivityNotFoundException.
The code that tries to start the second activity reads:
...
Intent intent = new Intent(Intent.AC...
ok i am having real troubles with screen orientation. My application has a countdown timer in it along with other variables.
And everytime the screen goes from landscape to portrait mode all my variables get reset to their default value, and the countdown timer gets canceld and reset !!!
Is the onCreate method called everytime the screen...
I'm beginner of Android. I want to run my first application on emulator. I use eclipse.
I don't know what's happen. I installed my apk. I "register" my acitivity in manifest file, but I can't see it in list of application. When I open manage application setting it's written that my apk is installed. I searched about it everywhere.
Eve...
Hi there,
in my application I am using the GridView as a video gallery (videos are shown as thumbs). Now I would like to add a button to the options menu, with which you can switch to a ListView. In the ListView you should be able to see (smaller) thumbs as well as the video name.
But I am a little stuck and don't really know how I can...
It am sub-dividing an app I have into "platform" and "app" layers so that I can distribute the platform as a jar for use by partners - while protecting my IP.
I now have two Eclipse projects. Building has no ability to compile any resources into a jar, so I moved all resource references into the app project (the platform project gen/ ...
I have an application which has 11 different activities. One of these activities is an extension of MapActivity (it is a map for data visualization). To get to this activity the user must first travel through the launch activity, then 3 other activities. The code to launch the MapActivity is:
Intent i = new Intent(getBaseContext(), M...
can someone helpme out with how to save state of the app when the screen orientation is changed i read the development guide at
http://developer.android.com/guide/topics/resources/runtime-changes.html#HandlingTheChange
but i dont know how to define the method collectMyLoadedData();
can someone help me with an example or something ?
...
I am trying to get one line with three buttons on it. One far left one in the center and one far right. Ideally I would like the center button to take up all the space between the two side ones. Right now the center(menu) button just overlaps the left side(prev) button. Here is what I have now:
<RelativeLayout android:layout_marginT...
hey Guys, well, the title says it all:
I have need to make a sort of "Pie Chart"-style circular display. the wedges of the chart have to be touchable, and the whole circle has to be able to spin 360deg..
I'm still an android noob, but I'm guessing that I can't do this with a Layout.. right?
preferably, the wedges would be image ...
Is there a way that when I start my app, it can figure out if any Bluetooth devices are actively connected to the phone? I want my app to be able to report on an active BT connection by supplying the BT device name.
I cannot find anything in the BT API that seems to be able to handle checking sockets for activity and reporting on act...
Hi,
I came across an interesting issue when testing android 2.2.
My testing was to use webview api,
webview.loadUrl(url);
if url is from any public domain, ex, www.google.com, the web content is rendered very well.
(url="http://www.google.com")
if url is from local host, ex, tomcat with port 8080, the web content is rendered as well....
For some reason when I deserialize my quotes ArrayList, I don't get the right object back. I want to make sure that whenever I read/write my object, it will always be the same object.
Serialization code:
private void serializeQuotes(){
FileOutputStream fos;
try {
fos = openFileOutput(Constants.FILENAME, Cont...