Click here to Skip to main content
Rate this: bad
good
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()
						,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 13-Apr-13 8:33am
Comments
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 Sergey Alexandrovich Kryukov 555
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,466
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,897


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