Find Jobs
Hire Freelancers

Convert small java program to android

$30-60 USD

Đã hủy
Đã đăng vào hơn 11 năm trước

$30-60 USD

Thanh toán khi bàn giao
I'm trying to make the java SNTP client ( [login to view URL] ) work on Android 4.2. The SNTP client is less than 500 lines of code include brackets and the actual amount of code modified to work on Android is minimal. I've converted some of it, but I'm now lost why my code is crashing. If you have familiarity with sockets and datagramPackets, this should be easy for you. [login to view URL] is my workspace project that contains the JavaSntpClient Code, which was imported from the link above [login to view URL] is my Android code. My code crashes at line 48 of [login to view URL] at [login to view URL] Basically, your job is to either use my project "TEST" or write your own hello world code from scratch so that I can run an NTP-SNTP setup. Use the same outputs that appear in the print statements in the [login to view URL] for the [login to view URL] I'm okay printing the information Log, you don't have to make any views and can keep the hello-world view that is default. What I've done: Imported [login to view URL] and on line 421 added [login to view URL] Copied over code from [login to view URL] to [login to view URL], added try-catch statements and converted [login to view URL] to Log.v How to run an NTP server: If you run a linux or mac OS system, your computer should have an NTP server on it without needing to do anything. Just make your computer broadcast a wi-fi network and connect to this. The static IP address should be the server you connect to for the NTP server. I recommend running SntpClient first on another computer to make sure you are able to connect and get the NTP time, which looks like: NTP request sent, waiting for response... NTP server: [login to view URL] Leap indicator: 0 Version: 3 Mode: 4 Stratum: 3 Poll: 0 Precision: -20 (9.5E-7 seconds) Root delay: 35.61 ms Root dispersion: 346.27 ms Reference identifier: [login to view URL] Reference timestamp: 13-Dec-2012 21:34:24.186704 Originate timestamp: 13-Dec-2012 21:43:30.051000 Receive timestamp: 13-Dec-2012 21:43:21.949061 Transmit timestamp: 13-Dec-2012 21:43:21.949175 Dest. timestamp: 13-Dec-2012 21:43:30.054000 Round-trip delay: 2.89 ms Local clock offset: -8103.38 ms
Mã dự án: 4039839

Về dự án

1 đề xuất
Dự án từ xa
Hoạt động 11 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
1 freelancer chào giá trung bình $100 USD cho công việc này
Avatar người dùng
lets do it
$100 USD trong 1 ngày
5,0 (3 nhận xét)
3,8
3,8

Về khách hàng

Cờ của UNITED STATES
Houston, United States
5,0
1
Thành viên từ thg 5 24, 2010

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.