Android app - Raspberry Pi Q&A, Help & Troubleshooting

hey guys,
can you help me build a android app with SSH access.
My requirements are if i click on a button certain command must be executed on the client.
i have made a small apk with buttons and as dont have android programming knowledge i am not able so build ssh server
actually i want to control my raspberry pi with that app!
an simple example
RaspberryPi Controller- in playstore
i would like a custom app like that with my own commands.
can any one provide me the source code like in the app above ?

I would use a web Server with PHP scripts instead of SSH, that makes it a lot more flexible and easier. I use the same way to control my front door and a few light switches using my rpi. It also works great using the cell network with only minimal delay.
Gesendet von meinem Nexus 4 mit Tapatalk 4 Beta

Related

Is there a native SIP client for Nexus 7 Tablet?

Hi Everyone,
I understand SIP has been natively supported on Android for a while now. Is there a Google native application that I can download on my Nexus 7 tablet?
Thanks
GrooveIP
Sent from my Nexus 7 using xda premium
The native SIP client is in the Phone app, but I'm assuming that the Nexus 7 doesn't come with the Phone app?
AZImmortal said:
The native SIP client is in the Phone app, but I'm assuming that the Nexus 7 doesn't come with the Phone app?
Click to expand...
Click to collapse
Thanks for the feedback AZImmortal. You are right it doesn't come with Nexus 7. But isn't the phone app open-source? Can I not somehow get it on the nexus 7? copy and paste style But in all seriousness, I always wondered if the native dialer was customizable?
Thanks
I don't know what kind of customization you're looking for, but if you want a SIP client, you can use SIPDroid.
Groove_IP works great. All ya need is your google voice number and set it up to "chat only" and enter this info into Groove_IP. Very easy setup.
Sipdroid (with pbxes account) is a lot of work to setup but has lots more power. I have not tested Sipdroid/Pbxes on this tablet yet. :good:
If you use Google Voice, GrooveIP works incredibly well.
But you really need headphones or a bluetooth headset other wise it's a speakerphone.
Headphones?
BamAlmighty said:
If you use Google Voice, GrooveIP works incredibly well.
But you really need headphones or a bluetooth headset other wise it's a speakerphone.
Click to expand...
Click to collapse
Will an old iphone earbud set with the built in mic be functional in the N7 headphone jack?
AndroidMilos - Please don't spam for Groove IP. I don't intend to use Google Voice and your answer is not relevant.
Reason why I am after native SIP is because it's native - no bloat-ware...
Maybe this will help me:
Ref: http://forum.xda-developers.com/archive/index.php/t-1109962.html
You might want to see if any of the custom roms already have the Phone app included. If not, maybe you can ask the dev to include it and explain that it's for SIP calls. I believe that the link you referred to is for enabling SIP when the Phone app has it disabled, but since the Nexus 7 doesn't have the Phone app in the first place, I'm guessing you can't follow the thread. You should probably be able to extract it from another JB ROM and insert it, but I'm not sure how to go about doing that. You should give one of the non-native SIP clients a try before you go through too much trouble to see if it will do what you need.
SIPDroid
SIPDroid seems to work.
You can enable the phone app and the built in sip by editing the framework-res.apk file and changing "voice capable" from false to true.
This will enable the phone app however it will only allow you to add a SIP account at a density of 320.
So change the density to 320, reboot, add you SIP account, change the density again to whatever it was before and you got native sip working.
It works well on speakerphone but a little jerky with a BT headset.
If you don't know how to edit the framework-res.apk file let me know the ROM you are on and I will upload it for you.
Sent from my Galaxy Nexus using xda premium
I use sipdroid.
http://www.youtube.com/watch?v=N24HCaxoqYU
I use the Bria Softphone (by Counterpath). I actually work for a VoIP company, and we use the g729 codec, and that was the best client I could find for android that supported it. Granted it's somewhat costly. But it works very well for me.
clubtech said:
You can enable the phone app and the built in sip by editing the framework-res.apk file and changing "voice capable" from false to true.
This will enable the phone app however it will only allow you to add a SIP account at a density of 320.
So change the density to 320, reboot, add you SIP account, change the density again to whatever it was before and you got native sip working.
It works well on speakerphone but a little jerky with a BT headset.
If you don't know how to edit the framework-res.apk file let me know the ROM you are on and I will upload it for you.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
How do I edit the framework apk? Any advice would be appreciated
Sent from my Nexus 7 using Tapatalk 2
Yes, I use Bria, excellent, alos, 'VOIP by antisip' works, also has video facility, Sipbdroid works too, I have tried them all, but Bria is superior by far ..... my opinion of course!
clubtech said:
You can enable the phone app and the built in sip by editing the framework-res.apk file and changing "voice capable" from false to true.
This will enable the phone app however it will only allow you to add a SIP account at a density of 320.
So change the density to 320, reboot, add you SIP account, change the density again to whatever it was before and you got native sip working.
It works well on speakerphone but a little jerky with a BT headset.
If you don't know how to edit the framework-res.apk file let me know the ROM you are on and I will upload it for you.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Hi there,
I'm on last Paranoid Rom, could you tell me how do i edit the framework-res.apk?
I love the native SIP of android, it's the best i've tried on my Nexus S.
Thks
pmauzao said:
Hi there,
I'm on last Paranoid Rom, could you tell me how do i edit the framework-res.apk?
I love the native SIP of android, it's the best i've tried on my Nexus S.
Thks
Click to expand...
Click to collapse
I realize you are looking for native, but I have to recommend CSIPsimple if you don't have any luck with native. Very good, open source and hardly even has an interface - it is very well integrated with the OS.
barryflanagan said:
I realize you are looking for native, but I have to recommend CSIPsimple if you don't have any luck with native. Very good, open source and hardly even has an interface - it is very well integrated with the OS.
Click to expand...
Click to collapse
I've tried both native and CSIPsimple im my Nexus S and the native is way much better, CSIPsimple has lot of echos and noises...
Do you know the best config for CSIPsimple?
I've been using Bria (a third party app by CounterPath) for years.
Yeah, it has some cons and costs money, but it has always worked well for me. It also supports g729 and video.
One thing to keep in mind for VoIP and phones/tablets is if you want to stay connected all the time, versus only occasionally when making calls, you need to use SIP over TCP vs UDP. Most clients/providers default to UDP since it has less overhead works fine on computers/servers/etc. Assuming you are running a VoIP server or client on a computer or phone, especially if it's on the local network, UDP would be the preferred option. The problem on battery powered devices is that it will drain them very quickly. In my testing, leaving the client connected constantly will shorten your overall battery life by about half.
However TCP is much more robust and capable of keeping sessions open through NAT (which your device will pretty much always be behind), and requires less client level activity to keep the session open (hence more deep sleep). As a result, since enabling SIP TCP on my server, I can leave the client running all the time with almost no battery impact. It's like night and day.
Many people complain about VoIP apps and battery drain, and this is a simple fix to eliminate it.

Android printing

One lacking thing for me in android has been lack of printing...so I have been doing some research and testing of apps to see what works for me. PrinterShare seems to be the only printer app that natively (no cloud required) supports my Kodak Esp-9200. But then I found that not all email clients support printing and the few that did were text only until I found [email protected] email. It supports HTML printing. Unfortunately large emails won't print, and the developer said its a limitation of the android share/print interface so will need custom interface for large emails. Anyone else have success with printing in android. I am not really interested in cloud printing since requires a PC as an intermediary.
Sent from my Xoom using Tapatalk 2
tselling said:
Anyone else have success with printing in android. I am not really interested in cloud printing since requires a PC as an intermediary.
Click to expand...
Click to collapse
I've been using printing only with dedicated apps. But never found something "perfect". Canon App is to simple. Moto Prnt utility doesn't ork with some printers... well, for now, PC is the key.

Printer setup

Not sure if this was the right place. But here's what I want to do.
I have many android devices which I would like to use Google Cloud Print on.
Here are the details of my printer: It's a WiFi printer (So it connects to my wireless router).
My raspberry pi's usb ports are used up. Instead of connecting my printer via USB. I want to connect to it over the local network and then install my pi as a Google cloud print server.
My questions are:
1. What software would I need to Install to install the printer driver over local network rather than traditional USB?
2. My printer isn't going to be on 24/7. If I send a print job and the printer is off. Can I come home and switch the printer on to be greeted with my queued prints from earlier?
Thanks.
Sent from my HTC One X using xda app-developers app
jamjame said:
Not sure if this was the right place. But here's what I want to do.
I have many android devices which I would like to use Google Cloud Print on.
Here are the details of my printer: It's a WiFi printer (So it connects to my wireless router).
My raspberry pi's usb ports are used up. Instead of connecting my printer via USB. I want to connect to it over the local network and then install my pi as a Google cloud print server.
My questions are:
1. What software would I need to Install to install the printer driver over local network rather than traditional USB?
2. My printer isn't going to be on 24/7. If I send a print job and the printer is off. Can I come home and switch the printer on to be greeted with my queued prints from earlier?
Thanks.
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Why do you need to set up a server? You print to the google cloud print with the info you set up there for your printer. Data never even has to touch the pi
Sent from my SCH-I535 using xda app-developers app
The printer itself does not support Google Cloud Print.
It does not support any services like it either. The purpose of the printers WiFi is to make a connection with local computers. An alternative to USB only.
What I want to do is to use my pi to "add" these internet features to my printer.
Sent from my HTC One X using xda app-developers app
I did something similar...
I've used cups on the Pi to add the printer to the Pi. The Pi runs chrome in headless mode - I've found some instructions how to set it up like an cloud print server.
I'd have to look it up how I set it up again - if I find enough free time this week I'll look for it
Gesendet von meinem Nexus 7 mit Tapatalk
jamjame said:
The printer itself does not support Google Cloud Print.
It does not support any services like it either. The purpose of the printers WiFi is to make a connection with local computers. An alternative to USB only.
What I want to do is to use my pi to "add" these internet features to my printer.
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Ah. Understood
Sent from my SCH-I535 using xda app-developers app

Auto Voice Room ID chain (kodi, tasker)

Hi
Im a fairly new Tasker User. I have done quite a lot of things with tasker but I definitely need a lot more practice.
Im trying to figure out how to specify a room ID inside of a voice command and have tasker execute an action based on what say.
EXAMPLE-- I want to be able to control a specific KODI host (android box in my bedroom) like this:
1. Say "Play %movie "
2. Have tasker ask me "in what room?"
3. I say "bedroom"
4. then have tasker play the specifed movie in the specified room
or
1. say "Play %movie" in the bedroom
2 have tasker know which device i am talking about and what room its in
my questions are
-- How do you set a room ID so that tasker knows when i say "bedroom" it knows whats in the room to play?
-- how do i link devices (ie my kodi android box) to specific rooms
--- finally how do i set a profile that allows me to specify the room inside of an active profile and have tasker act upon it inside that profile
How exactly are you controlling Kodi?
svampsson said:
How exactly are you controlling Kodi?
Click to expand...
Click to collapse
Sorry didn't know you replied
I am currently using yatse but I'm open to using any method at this point. My hopes are to use multiple android boxes with kodi installed thoughout my house and play movies on my NAS drive in what ever room I specify via tasker/autovoice
Sent from my SM-N930T using Tapatalk
homelogicatl said:
Sorry didn't know you replied
I am currently using yatse but I'm open to using any method at this point. My hopes are to use multiple android boxes with kodi installed thoughout my house and play movies on my NAS drive in what ever room I specify via tasker/autovoice
Sent from my SM-N930T using Tapatalk
Click to expand...
Click to collapse
Do you have a working way of playing the movie of your choice through Yatse? In that case it's possible to do the rest.
Otherwise there are some options, the
AutoWeb (Beta Link, Community Link, Play Store link) Kodi API for example. But I don't know if that can be setup to work on several machines.
svampsson said:
Do you have a working way of playing the movie of your choice through Yatse? In that case it's possible to do the rest.
Otherwise there are some options, the
AutoWeb (Beta Link, Community Link, Play Store link) Kodi API for example. But I don't know if that can be setup to work on several machines.
Click to expand...
Click to collapse
Yes. Yaste has a way to use autovoice to say any movie scanned into your library using a phone to control a kodi host. I have already accomplished this part using YouTube videos and forums
I know it's possible to do what I want to do. I just lack the knowledge to do it myself
I'm guessing I would need to use the yatse host manager plugin to select which host(room) I would like to control using a shell script that triggers when I use a room name then somehow use autoremote to sent the voice command. AFTER the host (room)has been selected.
If you're using AutoRemote you can rename your devices. If you use sender: By Name with a variable for Recipient Name you can control anything by calling the device's name.
Hope it helps.
FourQ said:
If you're using AutoRemote you can rename your devices. If you use sender: By Name with a variable for Recipient Name you can control anything by calling the device's name.
Hope it helps.
Click to expand...
Click to collapse
If I use autoinput. How do I make the profile so it selects the host BEFORE. It sends the movie query?

Any way to avoid rooting but still having these benefits?

I love the pixel 5, but I need a root, is there a way to enable the following on an unrooted pixel?
Call recording
JamesDSP
System wide ad blocking.
If I can get them three things to work on P5 without rooting, that would be the dream scenario.. many thanks in advance ?
I'm not really that into the rooting scene, I literally only use them three things
I don't know about the first two, but you can achieve System wide ad blocking the following way.
You go to nextdns.io and create a configuration as you like (plenty of blocking options to choose from). You will get a DNS-over-TLS endpoint (something that looks like f41029.dns.nextdns.io). You open Network settings and look for the private dns option. You paste the code there and voila: system wide add blocking.
There is also the option to use a VPN like app, like blokada, but they are usualy less power efficient.
nextdns.io looks not to shabby, any experience with it? i don't like to rely on 3rd party services on this level..
Run your own network wide ad blocker at home using pi-hole.
When you are not at home run a VPN to your home network and use pi-hole as your dns server.
I won't trust any 3rd party DNS provider like the ones mentioned here
Gesendet von meinem CMR-AL09 mit Tapatalk
Nightwish1976 said:
I don't know about the first two, but you can achieve System wide ad blocking the following way.
You go to nextdns.io and create a configuration as you like (plenty of blocking options to choose from). You will get a DNS-over-TLS endpoint (something that looks like f41029.dns.nextdns.io). You open Network settings and look for the private dns option. You paste the code there and voila: system wide add blocking.
There is also the option to use a VPN like app, like blokada, but they are usualy less power efficient.
Click to expand...
Click to collapse
Thanks for the explanation on system wide adblock. I just did this and it's working great!
Signor Rossi said:
Run your own network wide ad blocker at home using pi-hole.
When you are not at home run a VPN to your home network and use pi-hole as your dns server.
I won't trust any 3rd party DNS provider like the ones mentioned here
Gesendet von meinem CMR-AL09 mit Tapatalk
Click to expand...
Click to collapse
I agree that's the best solution, but it's too much hustle, I can't be bothered...
drmason said:
nextdns.io looks not to shabby, any experience with it? i don't like to rely on 3rd party services on this level..
Click to expand...
Click to collapse
I've been using them since 2019 (don't remember exactly the month). They were in some kind of beta.Never had a problem with them.
Now they are out of beta and begun selling subscriptions. If you have under 300.000 DNS queries it's free, for unlimited queries its about 20$/year or something like that. Never have gone above the limit, so I'm not sure what happens, I suppose I will get an email when that happens .
It's right there in the FAQs ... After 300.000 queries it switches to a "normal" DNS resolver without filtering and logging.
https://help.nextdns.io/en/articles/3962038-what-happens-after-300k-queries

Categories

Resources