Click here to Skip to main content
11,804,574 members (90,996 online)
Rate this: bad
Please Sign up or sign in to vote.
Before i ask this question i have been working to find the conversions from swing and AWT in java to android
I made an application about remote access that works fine on the computer and while rewriting it on the ADT i figured out some problems in my code that uses the java GUI like swing and AWT for example :

ImageIcon imageIcon = (ImageIcon) cObjectInputStream.readObject();
and another like :
ImageIcon imageIcon = (ImageIcon) cObjectInputStream.readObject();
				System.out.println("New image recieved");
				Image image = imageIcon.getImage();
				image = image.getScaledInstance(cPanel.getWidth(),cPanel.getHeight()
				Graphics graphics = cPanel.getGraphics();
				graphics.drawImage(image, 0, 0, cPanel.getWidth(),cPanel.getHeight(),cPanel);

I didn't find any where how to convert the in to my android code

So my question here is ..
where to find the these conversions ? OR , How to convert them?
Posted 13-Apr-13 7:33am
Sudhakar Shinde at 15-Apr-13 3:06am
Line by line conversion is not possible in this case. You need to understand the alternative in android to handle existing code and recode it. I do not think someone has readymade tool to convert Swing/AWT to android.
Khaled Mohamed El Sawy at 17-Apr-13 11:48am
I am not asking for a tool , I am asking for a conversion list.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 3,205
1 Maciej Los 1,950
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web03 | 2.8.151002.1 | Last Updated 13 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100