Skip to content
Advertisement

Tag: android

Read data from SQLite where column name contains spaces

I am having a coulmn name called “condition name” (.sql file has been generated from server) But in android I am getting following exception while reading data from that table. 12-24 14:34:00.870: W/System.err(269): android.database.sqlite.SQLiteException: no such column: condition: , while compiling: SELECT condition, category, subcategory,condition name, local path, remote path, title, content_type FROM library WHERE category = ? Its not

Run multi-thread at a time and make thread to run fast

I am trying to run two different threads at a time, but unable to do that. Thread_1 & Thread_2 runs, but difference between them is around 500ms. I am not using wait() or sleep() anywhere in my code. Questions: How to make run thread simultaneously or in parallel? How to make thread run fast? For second question this I used

How to create Currency instance with non ISO 3166 country like en_UK?

In my app, I get the user’s default locale using Locale.getDefault() and then pass that to Currency.getInstance(Locale). It mostly works, but I have started getting reports from users which show the following IllegalArgumentException in the stack trace: Caused by: java.lang.IllegalArgumentException: Unsupported ISO 3166 country: en_UK at java.util.Currency.getInstance(Currency.java:81) at org. I expected Android to only return valid locales, but that is

Posting image to wcf rest service from Android

I’m having a problem to post a image to my wcf rest service. I’m posting some parameters of which one of them is a base64 utf-8 encoded string (the image). My problem is that every time I post I get “bad request”. Here is the code It is something with the encoded string, but what? Answer I don’t see why

Android currency symbol ordering

I’m getting on devices with not-english locale, the english currencies formated like this: 1 $ If I have english locale I get euro currency like: € 1 Using Found in the documentation: http://developer.android.com/reference/java/util/Currency.html#getSymbol() Returns the localized currency symbol for this currency in locale. That is, given “USD” and Locale.US, you’d get “$”, but given “USD” and a non-US locale, you’d

FTP connection java

I’m trying to upload the file to a server. What is the way for uploading a file to a server through FTP? i wrote this class: serverconnect.java: and this is the mainActivity ( only the relevant code): and when i install the app on my phone i get an error: “unfortanly your app must stopp…” the new code: the new

Where is jarsigner?

I have the Android SDK installed on both a Linux machine using open SuSE 12.1. I’ve used both machines to successfully build Android apps many times and sign them both with a debug key for testing and a release key from my own keystore, so it should be somewhere on each machine. Using the command Returns a command not found

How to deal with missing src/test/java source folder in Android/Maven project?

I’m not very experienced with Maven in combination with Android yet, so I followed these instructions to make a new Android project. When the project has been created, I get the following error message: Project ‘xxx-1.0-SNAPSHOT’ is missing required source folder: ‘src/test/java’ When I try to add a new source folder with New->Other->Java-Source Folder with src/test/java, I get another error

Advertisement