android

How to send HTTP POST request and recieve response?

I'm going to create mobile application that works with CommuniGate Pro server. For example, I need to make the following Android Client C - CGP Server S conversation and get XIMSS.nonce node value: C:GET /ximsslogin/ HTTP/1.1 Host: myserver.com Content-Type: text/xml Content-Length: 42 <XIMSS><listFeatures id="list" /><XIMSS> ...

Can a videoview play a video stored on internal storage?

I'm trying to provide my users with the ability to use either external or internal storage. I'm displaying both images and videos (of a scientific nature). When storing the media on the SD card, all is fine. But when I store the media internally, only the images will display. No matter what I try I get various errors when trying to load ...

Android how to display and image from URL

Hi all! I'm having trouble displaying SOME images on my android app. Just normal display image from certain URL. Some images works, some just doesn't work. For instance try displaying this image from URL: http://img191.imageshack.us/img191/7379/tronlegacys7i7wsjf.jpg It doesn't work. Doesn't even work in emulator. Could it be the EXI...

Testing an application for Android.

Hey Everyone, I was wondering if any one had compiled a list of the most commonly used Android devices so I can get an idea of what I should test for. Even better would be suggested configurations for emulating each device. Thanks, Rob ...

OBDKey Bluetooth

Hello, Can you help me I want to connect my Motorola droid to OBDKey by bluetooth. I use Bluetooth Chat as for example to bluetooth connect, KWP as protocol Then I write byte[] command command[0]=rawToByte(0x02); command[1]=rawToByte(0x85); command[2]=rawToByte(0x05); command[3]=rawToByte(0xc7); command[4]=rawToByte(0x33); c...

Android - Persist file when app closes.

I am creating a file in my Android application as follows: HEADINGSTRING = new String("Android Debugging " + "\n" "XML test Debugging"); } public void setUpLogging(Context context){ Log.d("LOGGING", "Setting up logging....."); try { // catches IOException below FileOutputStream fOut = context.o...

Android: Sax: IO exception on device but in emulator running fine

Hi i run the following program in my emulator and got my desired output. MyHandler handler=new MyHandler(); XMLReader xr = parser.getXMLReader(); xr.setContentHandler(handler); xr.parse(new InputSource(XML_FILE_URL)); tv.setText(handler.getParsedData()); But when i run it on my device (HTC my touch s...

Getting WAP embedded video in android AND iphone?

Recently a client asked me to make their site "work on smart phones", which normally wouldn't be too much of an issue... However it's a video site, and I have absolutely no idea where to even begin. Right off the bat I'm not even going to consider allowing the site to even function in anything other than Android (Maybe even 2.0+) and iPh...

Android - Passing Value from ListView to a new Activity?

I have a ListView that shows a list of names. When you select a name, I want to pass the selected person' ID to the next view (Profile) and retreieve their data based on their ID. I am able to load the Profile View, but do not know how to pass the ID from the ListView to the Profile. Here is how I am loading the Profile: lv.setOnIt...

Launch app with URL

Hello everyone! I've read about intents in android but here goes my question. I'd like to launch an app on my android phone with the click of a link in the web browser. Example: If the link is "mycam://http://camcorder.com", "mycam://" acts as some kind of "tag" to launch my app but I'd like to pass "http://camcorder.com" as a string to...

Is it possible to write apps for Android in C# ?

We all know that Android runs Dalvik VM programs. Normally developers write programs in Java and they compile it to Dalvik bytecode. I wonder if it would be possible to create a compiler that can take C# code and compile it into Dalvik bytecode. ...

Android. Playing multiple sounds using SoundManager

Shown are a few lines of code. If I play a single sound, it runs fine. Adding a second sound causes it to crash. Any advice is appreciated. private SoundManager mSoundManager; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceStat...

Maintain cookie session in Android

Okay, I have an android application that has a form in it, two EditText, a spinner, and a login button. The user selects the service from the spinner, types in their user name and password, and clicks login. The data is sent via POST, a response is returned, it's handled, a new webview is launched, the html string generated from the resp...

Followed the official android documentations but still could not use SQLite in app

My DBHelper class public class DBHelper extends SQLiteOpenHelper { public DBHelper(Context context) { super(context,"SIMPLE_DB",null,1); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE SIMPLE_TABLE ( " + "ID INTEGER PRIMARY KEY " + "DESC TEXT);"); } @Override public void onUpgrade(SQL...

Android Analog Clock - How to add more clocks in one widget

Hello, I successfully compiled an android analog clock, but now i want to include more clocks in the same application so a user can install one app but see 2-3 different clock widgets on their phone. I have searched the internet but the tutorials do not include any examples. Thanks. ...

How much is too much memory allocation in NDK?

The NDK download page notes that, "Typical good candidates for the NDK are self-contained, CPU-intensive operations that don't allocate much memory, such as signal processing, physics simulation, and so on." I came from a C background and was excited to try to use the NDK to operate most of my OpenGL ES functions and any native function...

Emulate disk IO speeds in Android SDK

I don't have a physical Android device to work with, so all I can use is the emulator. I'm wondering if there's something I could use to make the IO speeds more realistic - How do I slow down disk access to the speed it would be on a physical device? Also, this may be unrelated, but when I change the speed and latency options in Eclipse...

Android Icon Duplicates in Application Dock

For some odd reason, my project is generating two icons, same name, launches the same project, in the app drawer. I can't figure out what is causing this. Does anyone have any suggestions? Link to screenshot The M in the white circle is my default icon. If you view the screenshot, you'll see it appears twice. I've checked the applicati...

Android -- Object Creation/Memory Allocation vs. Performance

Hello all, This is probably an easy one. I have about 20 TextViews/ImageViews in my current project that I access like this: ((TextView)multiLayout.findViewById(R.id.GameBoard_Multi_Answer1_Text)).setText(""); //or ((ImageView)multiLayout.findViewById(R.id.GameBoard_Multi_Answer1_Right)).setVisibility(View.INVISIBLE); My question i...

Android Webview Anchor Link (Jump link) not working

Hi, I have a WebView in my Android App that is loading an HTML string using the loadDataWithBaseURL() method. The problem is that local anchor links (<a href="#link">...) are not working correctly. When the link is clicked, it becomes highlighted, but does not scroll to the corresponding anchor. This also does not work if I use the W...