Click here to Skip to main content
15,885,213 members
Please Sign up or sign in to vote.
4.00/5 (1 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 :
Java
ImageIcon imageIcon = (ImageIcon) cObjectInputStream.readObject();
				System.out.println("New image recieved");
				Image image = imageIcon.getImage();
				image = image.getScaledInstance(cPanel.getWidth(),cPanel.getHeight()
						,Image.SCALE_FAST);
				
				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
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900