android

Scala actors on android

I tried using actors in a small scala (2.8) app on android (2.1) today and I keep getting a really weird error referencing sun.misc.Unsafe.throwException. I'm thinking that maybe the dalvik VM doesn't include this so Actors basically can't be used on android but I hope I'm wrong. Did anyone manage to get actors working on android? ...

input data into android database

I am currently working on a java program that inserts excel data into android database(sqlite). when i place the TestDB(sqlilte db) into c:drive it works. Connection con = DriverManager.getConnection("jdbc:sqlite:C:\\TestDB"); But it won't work on android(emulator) database. The database have been created in android. Connection con ...

Main activity grayed-out/disabled on Back button

I have a problem on going back (clicking the Back button) from sub-activity to main activity: from my main activity I launch a new one (with passing some extras): Intent i = new Intent(getApplicationContext(), SearchResults.class); i.putExtra(SearchResults.RESULTS_EXTRA_KEY, searchResult); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); star...

Android xmpp ssl library problem

Hi, i am new to android. i connected my server to my application. I can connect to server. but i couldn't login into server. last week i can access my server in my application. host is 66.203.93.247 post is 5222 service is sayagle ConnectionConfiguration connConfig = new ConnectionConfiguration(host,Integer.parseInt(port), service); X...

Unexpected scrolling when typing in a textbox after anchor top (Android-friendly mobile webpage development)

[Note that I can only reproduce the issue on the Android mobile web browser (used via emulator).] Summary After clicking an anchor to go to the bottom of the page, and another anchor to get to the top of the page - and typing within a textbox at the top, you will be scrolled back down to the anchor at the bottom of the page. Initial I...

Issue in facebook.stream.addlike in fbConnect for Android?

I'm using fbConnect for Android for facebook functionality for my app. When I'm using facebook.stream.addlike I get error_code 100 and "Missing post identifier" as error detail. Find my code snippet below. Map params = new HashMap(); FBSession fbSession = FBSession.getSession(); params.put("post_id,", postId); String uid = f...

Problem with passing around Object references in Java...

hi there! i'm writing some stuff in java and i ran into some problems lately. cut short, i need to compare an object i created to another instance of this very class i instantiazed before with different data. looks like this: a newA = null; a oldA = null; while(someBreakCondition) { newA = new a(); newA.x = getSomeValue(); ...

Disable SMS in Android

Hey, I'd like to include a feature in my application that would include a running background service that would disable SMS, if certain conditions were met (location for instance). Is there a way I can intercept the user wanting to open any SMS app and block it? Would a Broadcast Receiver be able to do the trick? Maybe a different way ...

How to List out feeds from face book in timeline format..

Hi... I have to do a small android application. It should connect with facebook and have to post feeds into wall and retrieve feeds to display in timeline format. I am new to android and fb. Could any one help? ...

auto adjust the size and position of edittext and button

Hi, In emulator, size of edittext and button looks nice but in motorola milestones, both of them are so small. I think there are different types of screen layout. Is it possible to adjust the size automatically? My xml is below : <?xml version="1.0" encoding="utf-8"?><RelativeLayout android:layout_width="fill_parent" android:layout_hei...

Can I start a new activity that's not specified in the AndroidManifst.xml file

I'm trying to do some dynamic code and I load a new class that's supposed to be an Activity and I want to start it, but using the regular startActivity(Intent) wants the Activity to be "Declared" in the AndroidManifest.xml file. Any clue? ...

Android getting a Service to communicate with an Activity?

I currently have a Service and an Activity in my application. I currently bind the Service to the activity without using AIDL as the Service and the Activity are in the same application. This allows me to call the methods from the Service within my Activity when I require them, however it doesn't let me call the methods of the Activity...

Android: test suite

Hi all, I have realize different tests extending the "ActivityInstrumentationTestCase2". Now, I want to structure my tests: group them and be able to run a subset. How to do this? Can I use the TestSuite class? Any idea? Regards, Alban. ...

base64 decoder in android in API level 7

How to decode a base64 encoded string to byte array on Android API level 7? Can it be done using any standard packages of Java? Should i copy the source code from google search results? Should i re-implement encoder and decoder according to RFC? PS: API level 8 has util package android.util.Base64 that does this, but i have to...

can't open my application when i receive call on android

I can't open my application window on top when i rec call on android my code Intent intent = new Intent( Intent.ACTION_VIEW); intent.addCategory(Intent.CATEGORY_LAUNCHER); intent.setClassName(getPackageName(), getPackageName()+"."+getLocalClassName()...

Android supports-screen is it resizeable or any density?

I have taken note of some recent (and not so recent) blog posts on developer.android.com and have been adding in things like uses-feature and supports-screen elements to my manifest. The problem is I don't really under stand the resizeable and any density tags in supports-screen. I am supplying HDPI (drawable-hdpi) images for a few ite...

Delete an item from ListView on OnFling event

Hi I want to delete an item from a ListView, to which have attached a GestureListener. I have overridden the method onFling for that GestureListener to return true of false based on my criteria. But I don't know how to fetch the last selected item in the ListView. Fling does not select an item in ListItem. I am short on time, Could som...

Stopping an Android app from console

Is it possible to stop an Android app from the console? Something like: adb stop com.my.app.package It would speed up our testing process so much. Right now we uninstall/install the app each time to make sure the manual test cases start with a clean state. ...

"Some packages were found but are not compatible updates. " error on android

I get this error when trying to get new packages on the SDK manager: "Some packages were found but are not compatible updates." I've had a look around and the only thing I can find is to do with an older version of java, but I have the latest version, java 6 update 20. So, does anyone have any ideas of what I can do? I'm using Win ...

AlarmManager and BroadcastReceiver instead of Service - is that bad ? (Timeout problem)

Hi everyone, BACKGROUND INFO: I need to update some data from the web, about every hour or so, even when my app is closed. The update of the data itself takes about 40 seconds to 1 minute. It is then saved as a Serializable to a file. This file is read when my app starts. THIS IS THE APPROACH I TOOK FOR THE MOMENT (not using a Service...