how to bundle array of File objects or array of Json objects or array of user-defined objects in one activity and send it to another and how to access them correctly. ?
Primitive types like string is quite easy with
Intent in = new Intent();
Bundle bundle = new Bundle();
bundle.putString("name", "test");
in.putExtras(bundle);
star...
I use the following code to listen for the key presses of 0 - 9 from the soft input keyboard on Android:
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if(keyCode == KeyEvent.KEYCODE_0)
{
return super.onKeyDown(keyCode, event);
}
if(keyCode =...
Hi,
I want get data or character stream from Audio jack 3.5 mm.
pleas anybody tell me.
thanks in advanced!
Raj R
...
We have to port our software to android. One of the main feature of our software should be that the software can download a new version of itself from the net (our own server) and install it's new version too. All this thing should be done programmatically.
I'm new to android, so haven't got any clue how should it be done.
How to crea...
Hello.
I'm trying to enable foreign keys on a sqlite3 database doing this:
sqlite> PRAGMA foreign_keys=ON;
But it doen't work.
How can I do it?
Note: the database is on an Android device.
Thanks.
...
I've just spent a lot of time looking into the best ways to create iphone and android apps for an existing rails app that I've built and I feel that I haven't actually gotten any closer to knowing how to best achieve this.
What I want:
I would like to have the rails app and the mobile code cleanly separated. I'm not looking to just re...
Hi..
I'm new to android,I'm using tabHost adding some tabs to it,its working quite fine but when i rotate my device in landscape mode it also work there fine but i don't need tab bar there because it covers much space and i also have google ads so both of them cover half of the screen and leave a little space for user to interact.All i n...
Hi,
I am having problem, where i am not able to keep both disabled and enabled items in a list view with multiple choice mode set to it. I am using simple_list_item_multiple_choice.xml for listitem.
From what i could find on the Internet, i guess i have to override areAllItemsEnabled and isEnabled methods of ListAdapter.
However, afte...
Hi all,
I want to know the total length in kb of mp3 file .how to do this in android
Thanks in advance...
...
public class FtpDownloadDemo {
public static void Connection(String filename) {
FTPClient client = new FTPClient();
FileOutputStream fos = null;
try {
client.connect("ftp.domain.com");
client.login("admin", "secret");
//
// The remote filename to be downloaded.
//
ftpClient.set...
I have a public transport app for one country and I want to create a separate app for another country. Most of the code will be shared, but I need some classes to have different implementations for example TransitProvider.
Is it possible to share code using Android Library Project? Can I do the following?
Have TransitProvider (that ex...
hi i have two classes in android and in one class i have write an array and i want to access it in the main class but the error is give me that "force closed" here is my code
package com.semanticnotion.DAO;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.w...
Hi,
I have four tabs each with a listview, I have set backgrounds for each of the four list views but when you scroll the list view goes black, I have followed advice from googling and have added android:cacheColorHint="#00000000" to the main layout file and added android:theme="@android:style/Theme.Dialog" to the main activity in the m...
Hi,
I want the android source to check at boot time if sdcard is inserted and if yes
then override the default crypto package in the android source code with the one
in sd card, else it does nothing.
Now I have 2 questions:
1. How can i override a default package?
2. How to check the status of sdcard at boot time?
I know how to check ...
for example ,when user enter there name,it must cache that name, and use that as a future loginbox auto complete text
...
Hi,
I am developed application with google map in android 2.2 version using eclipse and ubuntu.in that case I can get the google map as well as the location perfectly.
but now i have to run that same apps in Xp machine with android 2.1 version It run properly but the google map not displayed ,only white screen with boxes displayed.
R...
Since working with Android I'm curious about how I can let Android do everything in respect to orientation change (layout vs. layout-land).
Currently I have to feed the correct number of db columns and views to the cursor adapter. Is this the correct way or do I miss something? How do you guys do that?
Please have a look at the two Sim...
Hi,
I'm trying to convince an EditText-view to only use the SoftKeyboard that I wrote. It's bugging me for a few days already and I can't believe that this isn't possible to do. I might not see the obvious...
So far I managed to write my own SoftKeyboard based on the sample that comes with the Android SDK. I'm able to manually select i...
Hi,
I used org.apache.http.auth and develop demo code samples like this:
DefaultHttpClient httpclient = new DefaultHttpClient();
httpclient.getCredentialsProvider().setCredentials(
new AuthScope("www.yemeksepeti.com", 80),
new UsernamePasswordCredentials("*******", "*******"));
BasicHttpContex...
I use
SimpleExpandableListAdapter
in my
ExpandableListActivity
When user click the group row, the children list is expanded and show, when user click each child item in the expanded list, user will be navigated to the next second_Activity. Currently, when user click the back button to go back from second_Activity to the Exp...