Click here to Skip to main content
11,702,467 members (73,501 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Java AWT Swing Android
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 Maciej Los 455
1 Sergey Alexandrovich Kryukov 310
2 OriginalGriff 265
3 CHill60 145
4 Andy Lanng 99
0 OriginalGriff 8,369
1 Sergey Alexandrovich Kryukov 7,547
2 CPallini 4,922
3 Maciej Los 4,411
4 Mika Wendelius 3,556

Advertise | Privacy | Mobile
Web04 | 2.8.150819.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