With ChangeEncoding you can change the encoding of any file you want. Useful for fixing problems with subtitles for ex.
You’ll be asked to install AndExplorer. This application uses AndExplorer to select files.
With ChangeEncoding you can change the encoding of any file you want. Useful for fixing problems with subtitles for ex.
You’ll be asked to install AndExplorer. This application uses AndExplorer to select files.
I needed to call a Java method(GWT) from JavaScript (the GWT JSNI ). Here, it’s described, how it should be done. But this way you can’t call a method of a instance, you can invoke static members,only.
I found some solutions on the internet, like this:
$wnd.callback_gwt= $entry(this.@mypackage.MyUtilityClass::computeLoanInterest(IFI));
and some other variations. This way you are calling the callback successfully, as it seems, but when the call back tries to access the instance – this, it gets null. (the call back is not static)
So here is my solution. It’s something like a singleton.
This works on GWT 2.2, i guess it should work in older or newer versions too (in case Google don’t provide any normal access to the instance).
/////JAVA
public class ContactsEditPresenter implements Presenter {
public static ContactsEditPresenter megathis;
///constructor:
public ContactsEditPresenter( HandlerManager eventBus, Display view) {
this.eventBus = eventBus;
this.display = view;
//store this
ContactsEditPresenter.megathis=this;
//prepare to call and then call some JS
initJS();
}
public native void initJS(String msg) /*-{
//provide call back
$wnd.callback_gwt = $entry(@com.androidsmash.contacts.client.presenter.ContactsEditPresenter::updateSomething(F));
//start some JS code
$wnd.doSomethingJS();
}-*/;
public static final void updateSomething(float val ){
String t=new Float(val).toString();
ContactsEditPresenter.megathis.display.getTextBoxVal().setText(t);
}
....
/////JAVA SCRIPT
function doSomethingJS(){
window.callback_gwt(5.33);
}
PS: I needed this in Android project. I noticed that it have nothing to do with Android, right after I finished the article. ![]()
I hope it’s helpful to at least someone.
Comments are welcome, I’ll be happy If there is a better way to do it.

Check out the new site of the Android Market:
https://market.android.com/
It’s great for browsing the applications. Each application is presented with awesome huge banners and icons.
Installing or purchasing an app is very simple – just click install in the browser and the application starts installing on your device.
This Update was announced on the Android event yesterday:
http://www.youtube.com/watch?v=RfJuigJebRg&feature=feedu

Google’s App Inventor is now available to every one with Google account.
App Inventor is a tool that lets everyone, not only programers, to create applications for android. It’s as easy as fitting together puzzle pieces.
You can read the announcement, here, or get your hands right on it, here
I hope they prepare it for the present devices quicker, this time. I have HTC Desire and i hope they will support it even when Android 3.0 comes out.
But for this version, I predict a lot of new games to be developed in the near future. Hope that I’m right.
more info here
This will be a short article, because I’ll be playing the Game:
Great new! Skype released official Skype version for Android. The application works great, support almost all the features of the desktop Skype. Most importantly, you can make Skype Calls.
Try it your self, to see how awesome it is. I found some little bugs, but I guess that they ware in a hurry to release it and I bet they will update those. Also it can’t send files, but who cares if everything else works.
PS: I plan to be Online 24/7 from now on.
As of yesterday people from Argentina, Australia, Belgium, Brazil, Canada, Denmark, Finland, Hong Kong, Ireland, Israel, Mexico, New Zealand, Norway, Portugal, Russia, Singapore, South Korea, Sweden, Switzerland and Taiwan can sale Applications on the Android Market. According to the official post this makes 29 counties in total.
And people from Argentina, Belgium, Brazil, Czech Republic, Denmark, Finland, Hong Kong, India, Ireland, Israel, Mexico, Norway, Poland, Portugal, Russia, Singapore, Sweden, and Taiwan can buy them, too. 39 in total.
Hopefully, this will lead to increase in the activity on the Market and We’ll see more quality apps coming out, soon.
Imagine the following situation(if you don’t won’t to you can skip to “Here’s how it works”
): You are at a friends house and want to transfer some files from his computer to your phone.
I guess one solution is to use GMail to email the files to your self and then download the attachment to your phone, but this is a work around and it have it’s limitations.
The best solution in this scenario is to use Awesome drop. With this application you don’t even have to be on the same network, all you need is to have internet on both devices. The creators haven’t noted any limit on the file size, so I guess there isn’t any. I tried It with a 350MB file and It transferred without any problems. (Mind your traffic if you are on a data plan )
This is the features list from the site of the app:
And Here’s how it works:
Please, tell me in the comments section below:
How do You transfer files to your phone?
I was very frustrated about not getting the update to Android 2.2. It’s a not branded, not rooted or modded by any way phone, but after I click check for update ( “Check Now” ) it was not getting any response at all, just a spinning circle and “Checking”. So I after a hard day of searching I finally found out how to update it manually - Source