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?
...
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 ...
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...
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...
[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...
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...
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();
...
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 ...
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?
...
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...
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?
...
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...
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.
...
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...
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()...
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...
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...
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.
...
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 ...
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...