Porting my C# NET App to Java?

This is a discussion on Porting my C# NET App to Java? within the Droid Development forums, part of the Droid Hacking category; 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. ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Porting my C# NET App to Java?

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

    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.

    Code:
                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?
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     
  3. Droid
    Rayzor's Avatar
    Member #
    181166
    Join Date
    Mar 2011
    Location
    New York
    Posts
    81
    Phone
    Motorola Droid X
    #2
    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

Sponsors

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 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 Droid Themes
    Replies: 5
    Last Post: 07-06-2010, 08:20 AM

Search tags for this page

c# or java android
,
c# port to java for android
,
c# to java andriod
,

c# to java android

,

port .net to java

,
port android to c#
,

port c# to android

,

port c# to java

,
port java to android
,

porting .net to android

,
porting c# app to android
,
porting c# from windows to android
,

porting c# to android

,

porting from .net to android

,
porting+c%23+to android
Click on a term to search our site for related topics.