AndroidSmash Application: ChangeEncoding

Android Market

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.

Posted in Our Apps and Games, none | Leave a comment

Calling a Java Method of a instance from Handwritten JavaScript – non static [work around, hack]

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.

Posted in Dev | Tagged , , , | 3 Comments

Android Marker on the Web


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

Posted in News | Leave a comment

App Inventor for Android available to everyone

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

Posted in none | Leave a comment

Android 2.3 Official

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

Posted in News | Leave a comment

Angry Birds full is out and it’s free for Android!!!!

This will be a short article, because I’ll be playing the Game:

  • This is the popular iPhone game Angry Birds by Rovio
  • The game is out for Android (the best game for android so far)
  • For Android only, the full version is free (it has an ad in it)
  • Rovio’s site and GetJar.com (where they released it, first) are were down :D
  • I downloaded it for a torrent
  • PS:It’s available in the Android Market – link
Posted in Games | Leave a comment

Skype For Android!!

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.

Posted in Apps, News | Leave a comment

More Countries Can Buy Apps from the Android Market,Now

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.

Posted in News | Leave a comment

Send files to your Android phone quick and easy – Awesome Drop

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.

Awesome Drop IconAwesome drop

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:

  • No account required
  • Works over WiFi and 3G
  • Transfer files from any computer with a compatible browser*
  • Works with music, photos, documents, any type of file you want on your phone
  • Send and receive files with friends

And Here’s how it works:

  1. Install Awesome drop from the Android Market or from here
  2. On the computer navigate to this site: http://labs.dashwire.com/drop and get your pin
  3. Input the pin in the app
  4. Drag your files in the browser where you opened the site
  5. That’s all there is!!!

awesome drop on market

Please, tell me in the comments section below:
How do You transfer files to your phone?

Posted in Apps, How tos | 1 Comment

Update Desire to Froyo OTA (Over The Air) Manualy

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

The Tutorial:

  1. Download the update archive  from here
  2. Copy the file to your SD card
  3. Rename it to Update.zip
  4. Turn off your phone
  5. Hold the Volume down button and click the power button to turn it back on in the bootloader menu
  6. There select “Recovery” (Volume down then Power button)
  7. When you see an triangular icon with a exclamation point, hold Volume up then click power
  8. A menu will appear, select “Apply sdcard:update.zip”
http://liveimage.htc.com/OTA_Bravo_Froyo_HTC_WWE_2.09.405.8-1.21.405.2_release4dua3bcrut4wrv30.zip
Posted in How tos | Leave a comment