cant make REST on Android device - Android Q&A, Help & Troubleshooting

hi im developing an app with eclipse and ADT, my app woks fine in the emulator, just connect via REST (post) to a localserver and execute some service.
the problem apears when I want to execute my app in my cellphone, basically it can't connect to the server, when I put the server IP etc etc...a timeout error is all I get...
android has any problem with the dns or something like that? I can't find the problem

Related

wifi tether on tattoo working

1) download pre8 version here:
http://code.google.com/p/android-wifi-tether/downloads/list
2) start the app the first time to create config files
3) than run:
/data/data/android.tether/bin/tether start 1
4) now open wifi tether app and check logs
Thanks! I will try it and then add it to my rom!
grande suoko !
thanks suoko
sorry, i'm newb..
what do you mean by
"run: /data/data/android.tether/bin/tether start 1" ?
kongkows said:
sorry, i'm newb..
what do you mean by
"run: /data/data/android.tether/bin/tether start 1" ?
Click to expand...
Click to collapse
there's a bug in the gui as always
you must run that command from terminal with root user
i use "better terminal emulator"
I cannot stop it and turn on wifi!!!
???
try "run: /data/data/android.tether/bin/tether stop 1"
Thank you for the method !
Tether Wifi works fine.
But I'm obliged to return the code ("/data/data/android.tether/bin/start tether 1) every time I restart my Tattoo.
It's normal?
Thank you for your help.
Sorry for my bad English, I'm french =p .
Sorry for noob question.
What is wifi tether?
Google is your friend ! =P
Wifi Tether allows use your phone as a router (modem).
Wifi Tether uses the 3G connection, and translates into wifi signal.
I don't know if it's clear, but I'm not very good in English and some words escaped me.
it's clear... i dont need this for now, but is very usable. thx.
I followed the steps but still cannot use tethering
My PC can connect to the Tattoo and get the IP from it, and that app alerted to be connected by a client, but the PC still cannot browse webpage
ww_boy6 said:
I followed the steps but still cannot use tethering
My PC can connect to the Tattoo and get the IP from it, and that app alerted to be connected by a client, but the PC still cannot browse webpage
Click to expand...
Click to collapse
Same here, I tried connecting through a netbook and a iPod Touch, both of them see and connect to the phone, but are unable to use internet.
Same problem
I am using Modaco R2. for HTC tattoo.
I installed wireless_tether_2_0-pre10.apk.
My laptop able to connect to Tattoo & give Ip address.
I tried to browse webpage... but it unable to go into internet.
BUT both, Tattoo & laptop showed that they are connected together!!!
Tattoo's access control even show my laptop's name correctly!
Using laptop command prompt, I tried to ping Default Gateway (192.169.2.100)
It showed 100% data LOST!!!.
What happen???
Download the latest apk (2.0.1), it works.
Hi Guys,
I have an HTC Tattoo and want to do wifi Tethering. My phone is not rooted yet and i cannot find instructions to do this (most of the instructions are for adding new roms). I do not want to add a new rom, i just want to tether my 3G connection by turning my phone into a wifi hub.
phiber123 said:
My phone is not rooted yet and i cannot find instructions to do this
Click to expand...
Click to collapse
Please search this forum before posting.
awesome, it's working.
Wifi Tethering start successfully, but when i try to connect to the network, Tattoo don't assign the ip to the PC and the connection failed.
Wich ip i've to use for gateway and dns? Wich subnet mask?
Thank you
I try to run without root access but not work.
Later on I root my Tatto and app start working with 1.6
Now not have WiFi card to try but when i get one i infform you about res.

How to remotely tunnel into an android phone

It's there a way to access my phones files without it being connected to my WiFi network? Maybe an app that can run as a service?
Sent from my overclocked LG G2x
Currently NO, there isn't any Service or App yet that can do such thing !
yes it IS POSSIBLE - since the beginning of android
try Termux with sshd ( openssh ) - free on the PlayStore
if you don't want to, just root it, setup buisybox and make a reverse Tunnel over SSH
you can read everything about that when you search on google for "autossh linux setup"
you do the same, but without AutoSSH
if you dont want to do this, you can make yourself an openVPN server and connect your phone to it - thats pretty easy . then just use SSHDroid or Termux to set up an SSH server - After you have done this, connect your PC to the VPN network and ssh into the phone - if you dont want to connect your pc to the server , shh throuch ssh to the phone from the server
you don't need to rent a server yourself - if you run linux just install opennssh and run sshd and forward your ports. If you are on Windows, idk just google
I use this technique since 2011 to remotly controll my phone with an internal meterpreter session - so i can wipe everything or spy the guy who stole my phone when its lost
GL
hope it helped - if you aren't too techy its maybe a little hard

[Q] Error Connecting Tab(Open Kang 31 ROM) to PC(Ubuntu)

Hi,
i tried to connect the Tab(Open Kang 31 Rom) to a pc with Ubuntu 12.04 and i had a strange issue( i read all the posts so i selected in Setting/Storage MTP ). The pc is not able to open the Tablet Storage and this is the error msg:
"Sorry, could not display all the contents of "GT-P7510": DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
I tried to connect the tablet to a Windows plattaform and everything works fine.
Any ideas?
Thank you
Two issue :
the first which can be hard
1) look here : h**t://kobablog.wordpress.com/2011/05/25/connecting-samsung-galaxy-tab-10-1-via-adb-on-ubuntu/
the second which is easy :
You can simply acces to your tab wireless with app like WIFI File Transfer
Just like Brahim93 suggested, you can use adb, it will give you more than access to the internal storage, it will be helpful for debugging, testing and other related things.
But if you only want to access the files like in Windows, mount your tab with something like mtpfs.
Other option (if you have the proper network configuration) is using a FTP server in your tablet, like SwiFTP FTP Server.
Thank you both of you...i will try what you suggested.
Sent from my GT-P7510 using xda premium

SSHFS for Android Help setting up

Hi,
So I am trying to setup the below SSHFS app for Android on my phone:
https://play.google.com/store/apps/details?id=com.chaos9k.sshfsandroid
The dev has not responded to my emails and provides next to no instructions...
Here is what I have done on my own:
On my Pc:
1. Setup Cygwin SSH modules
2. Am able to connect via putty to my home PC through both my internal and external IPs (basically yes SSH server is working as a service on my PC and I can connect from my own network and off of it on another windows PC)
3. Port 22 is forwarded in my router
So prereq one to one this app of needing SSH server setup on home computer is met
Next up on my phone:
1. I am rooted on a Samsung Galaxy S4
2. Have Busy Box
3. Phone is 4.2 which the app experimentally supports
4. I have FUSE module support on my phone
So I believe from the above my phone meets the prereqs to mount SSHFS shares.
On to the app itself:
To setup a share I have specified the following:
1.Name : has no bearing just for user ease
2.Host: using my external IP
3.Remote Path: Have tried all sorts of paths to files on my PC (including just basic /\ and blanks)
4.Mount Point:\mnt\SSH (have confirmed this works as previously it would not accept my mount point. This folder is mounted and the app can see it)
5. Automount (checked)
7. User name and Passwords...used the same ones I used in putty to connect to my server
So with all of the above I keep getting the below error:
/SH:<stdin>[1]:readlink:not found:No such file or directory.
I believe the above error is because I am not properly inputting my remote path I would like to mount....I ideally would like to mount my entire D drive....but for the sake of getting this started I would like to be able to mount anything just to prove it works.
Like I mentioned I can use a laptop on a different WIFI network to connect to my SSH server and browse files...so in theory this should work...If anyone can help me sort out the proper remote path syntax I would really appreciate the help.

How to connect from Windows 7 Network to android shared folders?

I have been searching for a while to find a way to connect from Windows 7 Network to android shared folders. I had no success. Can anyone help?
[I tried sambadroid, but when I type the IP of the android device in Windows "Run" and hit enter it responds that "Windows cannot access \\192.168...."]
ROOT NEEDED
INSTALL THIS APP AND THEN START A SERVER
https://play.google.com/store/apps/details?id=com.funkyfresh.samba
AFTER DOING THIS YOU HAVE TO TYPE "FTP:// 'IP SHOWN ON YOUR PHONE' " in chrome on your pc
DROP A LIKE TO SUPPORT ME!!
x.ak**** said:
ROOT NEEDED
INSTALL THIS APP AND THEN START A SERVER
https://play.google.com/store/apps/details?id=com.funkyfresh.samba
AFTER DOING THIS YOU HAVE TO TYPE "FTP:// 'IP SHOWN ON YOUR PHONE' " in chrome on your pc
DROP A LIKE TO SUPPORT ME!!
Click to expand...
Click to collapse
Thank you for your reply. But, as I said, what I want is that android shared folders be accessible in Windows Network.
x.ak**** said:
ROOT NEEDED
INSTALL THIS APP AND THEN START A SERVER
https://play.google.com/store/apps/details?id=com.funkyfresh.samba
AFTER DOING THIS YOU HAVE TO TYPE "FTP:// 'IP SHOWN ON YOUR PHONE' " in chrome on your pc
DROP A LIKE TO SUPPORT ME!!
Click to expand...
Click to collapse
This app does not need Chrome or any other browser indeed. It works with Network (in Windows Explorer window).
But a problem still remains which I am going to ask you. The problem is that when I click on the device name (ANDROID) in Network, a message pops up and says that "...cannot access \\ANDROID". I am forced to open Run in Windows and type the IP of the device and hit enter. This way the IP appears in Network and I can access the device shared folder. Why clicking on ANDROID does not work?

Categories

Resources