pancake leh

Greenhorn
+ Follow
since Dec 26, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pancake leh

I am currently working an android app that login users.Upon login, users are allowed name their own create a file. However, upon executing this function as shown below, the return json contain the JSON string of the login details instead.

I am using a xmapp server.

Does anyone have any idea of the correct way of obtaining the returned json string of the createNewFile details ?




This is my `JSONPARSER` class.





Php files:




index.php





Error faced:

Invalid RequestInvalid Requestn
Error parsing data org.json.JSONException: Value Invalid of type java.lang.String cannot be converted to JSONObject



10 years ago
I have a surfaceView which I use it to draw shapes on it. I would like to add in grid lines on my surfaceView before drawing the shapes on it. I have the onDraw method that draws a rectangle on the surfaceView shown below:


Also i have no clue about zooming in and out of the surfaceView so that the rectangle i have drawn is can be sized up or sized down and also shifting of the surface view after it is being zoomed in.

A button must be pressed down in order to perform the zoom in function i have wrote the following. Is it the correct way?



Please advice. Thank you.
10 years ago