Click here to Skip to main content
13,050,617 members (83,254 online)
Rate this:
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 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 13 Apr 2013
Copyright © CodeProject, 1999-2017
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