DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 2 of 2

Thread: Porting my C# NET App to Java?

  1. Droid Newbie
    CrimsonGT's Avatar
    Member #
    Join Date
    Feb 2011
    Enter Current Phone Model Here

    Porting my C# NET App to Java?

    I have a fairly basic application that I wrote in C# NET some time ago and would like to rewrite it for the Android platform. It just uses an API exposed by some web software, and I can access it with just a WebClient in .NET.

                WebClient myClient = new WebClient();
                //Prepare a Name/Value Collection to hold the post values
                NameValueCollection form = new NameValueCollection();
                form.Add("username", "bob");
                form.Add("password", GetMD5Hash("mypass"));
                form.Add("action", "getusers");
                // POST data and read response
                Byte[] responseData = myClient.UploadValues("https://mysite.com/api.php", form);
                string strResponse = Encoding.ASCII.GetString(responseData);
    I found the WebKit (android.webkit | Android Developers) but just from looking that doesn't seem appropriate.

    Does anyone have any sample code of how to port this over?
  3. Droid
    Rayzor's Avatar
    Member #
    Join Date
    Mar 2011
    New York
    Motorola Droid X
    I know there are websites that take the code and will just take the code you copy into the C# text box and then it goes through a couple phases and gives you the code in Java. Obviously, you'd want to test the code first before releasing the application, but otherwise, I'm sure someone here should be able to just translate that for you.
    Xbox GT - Mattchew
    Steam ID - Throwdowns
    Phone - Droid X > LGB v0.9


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. porting from sprint...
    By Unbreakable1 in forum HTC Droid Incredible 2
    Replies: 9
    Last Post: 06-20-2011, 09:30 AM
  2. Porting
    By elitecmdr666 in forum Samsung Galaxy Tab
    Replies: 0
    Last Post: 05-03-2011, 11:18 AM
  3. Android 3.0 Porting to x86?
    By Twitch043 in forum Android Forum
    Replies: 3
    Last Post: 03-15-2011, 11:55 PM
  4. Porting Themes..
    By corman324 in forum UltimateDroid
    Replies: 0
    Last Post: 02-27-2011, 06:42 AM
  5. Porting a theme
    By xxlostsurferx16 in forum Android Themes
    Replies: 5
    Last Post: 07-06-2010, 08:20 AM

Search tags for this page

c# to java android


port .net to java


port c# to android


port c# to java


porting .net to android


porting .net to java


porting c# to android


porting from .net to android

porting+c%23+to android

powered by vbulletin my java application

Click on a term to search our site for related topics.
Find us on Google+