How to make a server on my android phone

thanks for reporting @Lichtsignaal, you saved me some time and probably some neurons :slight_smile:

any recommendations for obtaining an ultralight ultra portable blynk server
ā€¦and preferably as cheap as possible?

Raspberry pi zero should do the trick :wink:

yes, but it has wifi? or how it is supposed to connect with phone and wemos?

Found some guy mentioning this

ā€œJust create a Android project in IntellJ, NetBeans or Eclipse, add your jar to the libs directory and write your little Android GUI for it.ā€

So could work that way perhaps? If anyone is up for trying

Just use USB nano stick for WiFi :slight_smile:
This should do the trick + micro usb to USB adapter
http://www.ebay.com/itm/332139740772

You could pry open the dongle and Desolder the USB and replace it with this type
http://www.ebay.com/itm/391333526724

1 Like

thanks :wink:

at the moment it seems that i will get some semi-broken windows phone, in weekend. i will try with that first. theoretically it should workā€¦
that is zero money spent and is super compact with battery included, no case needed. if it will not work, the next step will be the rpi + wifi dongle.

as for the [quote=ā€œFettkeewl, post:16, topic:1540ā€]
Just create a Android project in IntellJ
[/quote]

i had never wrote any code for android, nor have any experience with java. so, definitely i will not begin right now. i have to resolve this issue with mobile server asap and as simple as possible.

1 Like

Just an FYI, there is apparently a new pi member

Raspberry Pi Zero W
With WiFi and and Bluetooth at $10

wow, this indeed looks very nice!

I was going to remind everyone that the >C.H.I.P.< is $9 , has WiFi, BT and runs Blynk Server (and even Client, but I havenā€™t yet been able to figure out the GPIO with Blynk).

But that New RPi Zero W looks real niceā€¦ and even a bit smaller than C.H.I.P. I think, especially without the soldered on header :+1:

And, yes, there is ā€œcurrentlyā€ :wink: no resistor on the LEDā€¦ but it is underdriven, just flashes as part of a battery monitor scriptā€¦ and has been doing so for a few weeks without issue (not on battery the whole time :stuck_out_tongue: just running in general).

OrangePi Zero is below 10$ ($7 costs 256MB version) and has WiFi. Personally using OPI One with ethernet, though so not tested by me but 99% or more it works. And try with Oracle Java where possible. OpenJDK is somehow worse - less responsive web interface, some errors or warningsā€¦ but works too.

thank you guys for all the useful info!

as i said, first i will try the windows phone, maybe i can use that as a serverā€¦ that would be the most convenient from all pov.

you mean it is possible to run client + server on the same time on the same machine? i could be interested in that.

iā€™ve looked into these chip boards. indeed the 9 usd price is ok, however currently they are out of stock and as i see they anyway do not ship to romania. (this is where i live now, and i canā€™t find a dealer here). also, i wonder how much is the shippingā€¦

Could this work?

@hutje, if you read my older posts, you can see that @Lichtsignaal and i already tried those approaches and they are not ok.

so finally is it possible(run local server on android platform or windows phone 10) or not?

I think this is possible. However we never tried that.

As long as it runs java and has a command line to start Blynk. I think Windows phone is your best bet. It seems impossible to run java on Android ā€¦

on android it is not possible, thatā€™s 100%.
on windoze phone (i tried win 8), it was not possible at all.
maybe on win 10 phone it is possible (but i do not really think).

for me, all these experiments were a waste of time.
after all, i would recommend a pi zero w, or something similar.

It is possible. However Android has a bit different JVM (Dalvik). So it may require some tuning of server. But in general this should be possible.

1 Like

ok, @Dmitriy, i will not argue with you, because iā€™m sure you have much more knowledge on this topic than me.

but for me, as a simple ā€œend userā€, it seemed impossible (at least on android 4.3). probably if someone has enough knowledge to hack the hell out of the server files, it is possible :slight_smile: