Pages

Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Friday, May 6, 2016

DeepFreeze Various Version for Windows XP Download

DeepFreeze Various Version Free Download For Windows XP



Amankan komputer anda dari tangan-tangan jahil dan perusak dengan DeepFreeze!











Read More..

Thursday, April 21, 2016

Preview Andromax U Android Murah Dengan Kamera Menggoda

Read More..

Friday, April 8, 2016

FREE MSDN Magazine Windows 10 Special Issue


MSDN Magazine Windows 10 Special Issue, can be READ ONLINE or Download PDF.


Read More..

Saturday, March 12, 2016

Minecraft 1 7 4 Pre release Full Free Download for Windows PC

Minecraft 1.7.4




Update: We’ve release a new pre-release, 1.7.4, to fix some crashes that some people had encountered. We’ll be making this live Tuesday if nothing goes wrong.
It’s here! The pre-release is finally here! We’ll be expecting to push this live next week if we encounter no major issues. The most notable changes in 1.7.4 compared to 1.7.2 are as follows:
  • Added integrated Twitch broadcasting! See below for details.
Read More..

Monday, February 29, 2016

Menambahkan Pengukur Kecepatan Internet KBps MBps Distatus Bar Ponsel Android

Read More..

Thursday, February 25, 2016

Download and run Android Studio 2 0 Preview on Windows 10


This video show how to download and run Android Studio 2.0 Preview from Canary Channel?, in parallel with existing installed Android Studio 1.5.
(The Emulator is seem still the old version, not the New Android Emulator)

reference: Android Developers Blog announcement


Related: Install Android Studio 2.0 Preview on Ubuntu Linux, parallel with existing installed Android Studio


Read More..

Friday, February 19, 2016

socket getInetAddress return null on Android 5

Refer to last example of "Simple HTTP server running on Android", it work on Xiaomi Redmi 2 running Android 4.4.4. But somebody report program stopped on Android 5 devices. So I re-test on Nexus 7 running Android 5.1.1. Yes, the app crash! caused by NullPointerException, because socket.getInetAddress() return null.


Modify MainActivity.java to capture socket.getInetAddress() before and after close():
package com.blogspot.android_er.androidhttpserver;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.EditText;
import android.widget.TextView;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import java.util.Enumeration;

public class MainActivity extends AppCompatActivity {

EditText welcomeMsg;
TextView infoIp;
TextView infoMsg;
String msgLog = "";

ServerSocket httpServerSocket;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

welcomeMsg = (EditText) findViewById(R.id.welcomemsg);
infoIp = (TextView) findViewById(R.id.infoip);
infoMsg = (TextView) findViewById(R.id.msg);

infoIp.setText(getIpAddress() + ":"
+ HttpServerThread.HttpServerPORT + " ");

HttpServerThread httpServerThread = new HttpServerThread();
httpServerThread.start();
}

@Override
protected void onDestroy() {
super.onDestroy();

if (httpServerSocket != null) {
try {
httpServerSocket.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}

private String getIpAddress() {
String ip = "";
try {
Enumeration<NetworkInterface> enumNetworkInterfaces = NetworkInterface
.getNetworkInterfaces();
while (enumNetworkInterfaces.hasMoreElements()) {
NetworkInterface networkInterface = enumNetworkInterfaces
.nextElement();
Enumeration<InetAddress> enumInetAddress = networkInterface
.getInetAddresses();
while (enumInetAddress.hasMoreElements()) {
InetAddress inetAddress = enumInetAddress.nextElement();

if (inetAddress.isSiteLocalAddress()) {
ip += "SiteLocalAddress: "
+ inetAddress.getHostAddress() + " ";
}

}

}

} catch (SocketException e) {
// TODO Auto-generated catch block
e.printStackTrace();
ip += "Something Wrong! " + e.toString() + " ";
}

return ip;
}

private class HttpServerThread extends Thread {

static final int HttpServerPORT = 8888;

@Override
public void run() {
Socket socket = null;

try {
httpServerSocket = new ServerSocket(HttpServerPORT);

while(true){
socket = httpServerSocket.accept();

HttpResponseThread httpResponseThread =
new HttpResponseThread(
socket,
welcomeMsg.getText().toString());
httpResponseThread.start();
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

}

private class HttpResponseThread extends Thread {

Socket socket;
String h1;

HttpResponseThread(Socket socket, String msg){
this.socket = socket;
h1 = msg;
}

@Override
public void run() {
BufferedReader is;
PrintWriter os;
String request;

try {
is = new BufferedReader(new InputStreamReader(socket.getInputStream()));
request = is.readLine();

os = new PrintWriter(socket.getOutputStream(), true);

String response =
"<html><head></head>" +
"<body>" +
"<h1>" + h1 + "</h1>" +
"</body></html>";

os.print("HTTP/1.0 200" + " ");
os.print("Content type: text/html" + " ");
os.print("Content length: " + response.length() + " ");
os.print(" ");
os.print(response + " ");
os.flush();
InetAddress clientInetAddressBeforeClose = socket.getInetAddress();
socket.close();
InetAddress clientInetAddressAfterClose = socket.getInetAddress();

msgLog += "Request: " + request + " ";

if(clientInetAddressBeforeClose == null){
msgLog += "clientInetAddressBeforeClose == null ";
}else{
msgLog += "clientInetAddressBeforeClose = " + clientInetAddressBeforeClose.toString() + " ";
}

if(clientInetAddressAfterClose == null){
msgLog += "clientInetAddressAfterClose == null ";
}else{
msgLog += "clientInetAddressAfterClose = " + clientInetAddressAfterClose.toString() + " ";
}


MainActivity.this.runOnUiThread(new Runnable() {

@Override
public void run() {

infoMsg.setText(msgLog);
}
});

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

return;
}
}
}


Its found that on Xiaomi Redmi 2 running Android 4.4.4, socket.getInetAddress() keep no change before and after close().


But on Nexus 7 running Android 5.1.1, change to null after close().


So, we have to read socket.getInetAddress() before close().

Read More..

Wednesday, March 12, 2014

Disney’s Where’s My Water 2 debuts on Windows Phone 8

Disney has been on a roll lately, releasing great Windows Phone-versions of titles like Wreck-It Ralph and Monsters University. Now here comes Where’s My Water 2, the fourth installment in their hit Where’s My physics-based puzzle series. 

Where’s My Water 2 brings back all your favorite Where’s My Water pals and adds three fun new locations for gators Swampy, Allie, and Cranky to play in. From the Sewer to the Soap Factory to the Beach you’ll cut through dirt and sand, then guide fresh water, purple water and steam to help their efforts in more than 100 levels. Also new this time around: Challenge Modes, which let you replay each level in explosive ways. The game is free and runs only on Windows Phone 8. Download it now
1 of 43 of 42 of 4

See this post on the original site.
Read More..

Thursday, March 6, 2014

Next Galaxy Note tablet might feature Android Windows RT dual boot function

photo credits -AndroidCentral
Last week, we heard a rumor that HTC might be looking into dual-boot devices that run both Android and Windows Phone. The surprising part of the rumor was that it seemed Microsoft may have suggested the idea to HTC as a way to boost Windows Phone visibility. Today, a new rumor has emerged that says Microsoft may not be targeting HTC for this effort, but that the company from Redmond may have also asked Samsung and Huawei to do the same.

The report claims that just as with HTC, Microsoft has offered to waive licensing fees when asking Samsung and Huawei to build dual-boot devices; but, unlike with HTC, Microsoft may have asked the companies to not only build Android/Windows Phone handsets, but tablets as well. Unfortunately, the rumor doesnt say that Microsoft has been asking to get Samsung and Huawei tablets that are dual-boot Android and Windows 8, which consumers might actually want. Instead, the rumor has it that Microsoft is pushing for Android and Windows RT dual-boot tablets. Were not too sure how many users would want that, but maybe the idea is to get Windows RT into more hands and maybe give developers more incentive to support Microsofts middle-child platform.

The rumor goes on to assert that Microsoft hasnt just asked, but Samsung has answered. Supposedly, Samsung has agreed to make its upcoming Galaxy Note 12.2-inch tablet a dual-boot system running both Android and Windows RT. Of course, if you remember, one of the big annoyances with Windows RT was that the system could take up somewhere around 16GB of space on a device. Combine that with Samsungs TouchWiz heavy Android (which has been measured at around 10GB), and a 32GB tablet would be left with about 6GB of usable space. PhoneArena
Read More..