• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Search results

  1. joschi70

    Post [APP] WearShell

    That won't work with the current version of WearShell, because the WRITE_SECURE_SETTINGS permission is not present inside the app manifest. I'm currently working on a new version of WearShell anyway and I'll add this to the manifest. If this is working I'll see if I can implement switching phone...
  2. joschi70

    Post [APP] WearShell

    So that this does not get lost, here is the reply I sent to Asiier via mail: This seems to work.
  3. joschi70

    Post [APP] WearShell

    With the current setup this is not possible. WearShell is quite phone centric and uses request codes for communication which are phone generated. This might be possible to solve but currently the show stopper is that BeanShell cannot instantiate a BroadcastReceiver on the watch.
  4. joschi70

    Post [APP] WearShell

    I get the same error, when pasting the sample from the pdf. This seems to be a copy/paste problem. When typing the commands manually it ist working for me. What are the asterisk (*) in the code, they should not be there. Otherwise this is looking good.
  5. joschi70

    Post [APP] WearShell

    Only have an old G Watch, maybe pablo71 can help.
  6. joschi70

    Post [APP] WearShell

    Do you get an error message? What Android Wear version are you using?
  7. joschi70

    Post [APP] WearShell

    I don't have a rooted watch, but on a rooted device this might work: exec("su -c reboot now");
  8. joschi70

    Post [APP] WearShell

    Thanks for the post ... glad that the app is working well for you.
  9. joschi70

    Post [APP] WearShell

    Oops ... thanks for the info! Has been corrected.
  10. joschi70

    Post [APP] WearShell

    Currently that is not possible. I'll put that on my list of suggestions.
  11. joschi70

    Post [APP] WearShell

    Seems like the internal command resultIntent() cannot be found. This is a new command in WearShell 0.6.0. Can you please check if you are running the latest WearShell version on your watch: print(context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName);
  12. joschi70

    Post [APP] WearShell

    WearShell 0.6.0 has just been released. It includes support for Result Intents, sensors support and bug fixes. Along with the new release comes the Command Collection 3, which includes the following commands: alarm charging freestorage heartrate* light* stepcount stt timer wifioff* wifion*...
  13. joschi70

    Post [APP] WearShell

    You could try the following script: import android.content.Context; import android.os.PowerManager; STORAGE_KEY = "_wakelock"; keepScreenOn(state) { gs = globalStorage(); wakeLock = gs.get(STORAGE_KEY); if(wakeLock == null) { powerManager =...
  14. joschi70

    Post [APP] WearShell

    Did some debugging, seems like this is an Android N Preview issue: https://code.google.com/p/android/issues/detail?id=209557 Hope this will get fixed in the next preview.
  15. joschi70

    Post [APP] WearShell

    I don't own a Huawei watch, so this is hard to tell. Is there an error message in the logcat?
  16. joschi70

    Post [APP] WearShell

    Here is an example that is reading the system load of the watch using the sysload() command. Changing this to read battery status using the battery() command will work the same way. Here is a link to the Tasker profile import files and a short description: https://goo.gl/fgI1x3
  17. joschi70

    Post [APP] WearShell

    If you have a different TTS engine installed you can use it instead of the Google TTS. Just change the following line inside the tts.bsh command script: TTS_PACKAGE = "com.google.android.tts"; The TTS_PACKAGE specifies the package name of the TTS engine to use. Replace com.google.android.tts...
  18. joschi70

    Post [APP] WearShell

    WearShell Command Collection 2 is available. It contains the following commands: battery md5 notify record showimage startapp sysload toast uptime zip Hope it's useful ....
  19. joschi70

    Post [APP] WearShell

    You could strip down your BeanShell code like this: exec("ls /sdcard/"); That should give the same result. As far as I read from the Tasker docs, you can create a new profile with an Event -> System -> Intent Received with the following settings: Action...
  20. joschi70

    Post [APP] WearShell

    Try so surround it with a print() statement: print(brightness());
  21. joschi70

    Post [APP] WearShell

    You can check the WearShell version on the watch with the following command: print(context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName);
  22. joschi70

    Post [APP] WearShell

    Haven't tested, but I think that should work. What you also can do is to leave the script on the Wear device. You can load it with the source command: source("/sdcard/bsh/tts.bsh"); tts("test", Locale.ENGLISH);
  23. joschi70

    Post [APP] WearShell

    No idea if this will work, give it a try: https://goo.gl/VtfPgh
  24. joschi70

    Post [APP] WearShell

    Inside tts.bsh you can change the package name of the TTS engine. For Loquendo TTS that should look like this (not tested): TTS_PACKAGE = "appinventor.ai_raul_kpr.loquendo1"; Hope this is the correct TTS engine.
  25. joschi70

    Post [APP] WearShell

    Here is a sample extra: bsh: tts("TTS test from Tasker", Locale.ENGLISH);
  26. joschi70

    Post [APP] WearShell

    Uups ... sorry! File has been re-uploaded.
  27. joschi70

    Post [APP] WearShell

    Sorry, if this is a stupid question... Is the bsh directory located on your phone or your watch?
  28. joschi70

    Post [APP] WearShell

    Maybe your external storage device is not /sdcard. You can execute the following script inside the shell to find the location of the external storage: import android.os.Environment; print(Environment.getExternalStorageDirectory().getAbsolutePath()); Try to place the bsh folder there.
  29. joschi70

    Post [APP] WearShell

    WearShell version 0.5.0 has just been released. I also put together some BeanShell commands for download: https://goo.gl/2mA1uU These commands are included: brightness filepull filepush killws mediaplayer openuri tts unzip vibrate volume A short documentation of each command is available at...
  30. joschi70

    Post [APP] WearShell

    Actually the server is only needed if you use the web API or the web interface itself. If you use broadcasts to send commands it should work without having to start the WearShell server on the phone.
  31. joschi70

    Post [APP] WearShell

    TTS is possible, but I would suggest to wait for the next WearShell release. The new release should make it simpler. The new WearShell version will be out quite soon (one or two weeks). I can then post a TTS script.
  32. joschi70

    Post [APP] WearShell

    Intents do work. It is a also possible to use the MediaPlayer API for playback. Sent from my LG-H815 using XDA-Developers mobile app
  33. joschi70

    Post [APP] WearShell

    The BeanShell code for opening an URL should look like this: import android.content.Intent; import android.net.Uri; uri = "http://xda-developers.com"; intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent);
  34. joschi70

    Thread [APP] WSMirror - Web Screen Mirror

    WSMirror is a small app that mirrors the device screen and displays it within a web browser. This can be handy for presentations or talks to present the device screen to a larger audience. The app uses the MediaProjection API available since Android Lollipop (5.x). So the app will only work on...
  35. joschi70

    Post [APP] WearShell

    The new version supports broadcasts, so the phone does not need to be unlocked. The below info is also available inside the web interface. Sending a Broadcast Request Action: de.fun2code.android.wear.shell.EXEC Request String Extra: bsh RequestCode Integer Extra: requestCode (optional)...
  36. joschi70

    Post [APP] WearShell

    WearShell 0.4 is available for download.
  37. joschi70

    Post [APP] WearShell

    The Result Intent requires the phone to be unlocked. I'm currently working on a new version that supports Broadcasts which should hopefully solve this issue. The new version will support background service, an option to start the service on boot and an enhanced web interface. Hope I can finish...
  38. joschi70

    Post [APP] WearShell

    Androd Wear supports almost the complete Android API. Here are the exceptions: android.webkit android.print android.app.backup android.appwidget android.hardware.usb The Wear app does not include any support library, so android.support.v4 classes are not available. Nevertheless you should...
  39. joschi70

    Thread [APP] WearShell

    Having a LG G Watch for a while I thought that it would be interesting to run code directly on the watch without having to create an APK. Sometimes I just wanted to run some code snippets on the watch and view the result instantly. Creating a complete project, compiling and deploying the APK on...
  40. joschi70

    Post PirateBox Mobile | PAW Intergrated

    Are you using PAW or the PirateBox from Google Play? In any case, have a look at the logcat output. The error might be reported there.
  41. joschi70

    Post PirateBox Mobile | PAW Intergrated

    PirateBox for Android is now available at Google Play. Here is the blog post: PirateBox at Google Play
  42. joschi70

    Post PirateBox Mobile | PAW Intergrated

    New version 0.4.1 of the app is available with support for Android 4.x devices. Here is the blog post: PirateBox Reloaded - Episode II Hope it's working...
  43. joschi70

    Post PirateBox Mobile | PAW Intergrated

    New PirateBox App Meanwhile I have developed a stand alone app based on CyanogenMod 7. The app is in a very early state, so there might be bugs. A download link is available inside the blog post. Here is the blog post: http://fun2code-blog.blogspot.de/2013/10/piratebox-reloaded.html
  44. joschi70

    Post [APP] X-Link - Zero Setup File Transfer

    Hm ... that's strange. The address is directly retrieved from the datagram package. IMHO that should be ok.
  45. joschi70

    Post [APP] X-Link - Zero Setup File Transfer

    I'm quite busy at the moment, so I can't tell when I will find time for enhancements.
  46. joschi70

    Post PirateBox Mobile | PAW Intergrated

    Maybe this helps: Changing the PirateBox Location
  47. joschi70

    Post PirateBox Mobile | PAW Intergrated

    The maximum file size is an integer value (32bit), so it's limited to 2GB. This is also the limit for most web browsers.
  48. joschi70

    Post [APP] X-Link - Zero Setup File Transfer

    To copy a single file, use the share functionality of a file manager. The "Copy folder" menu entry is there because file managers do not seem to support the sharing of directories.
  49. joschi70

    Post [APP] X-Link - Zero Setup File Transfer

    It seems that some routers have problems when WiFi and cable connections are mixed. If it's possible for you, you can try to replace your phone with a normal PC or laptop and connect it via WiFi. Run the client on both PCs and check if this is working. I this isn't working, please try the...
  50. joschi70

    Post [APP] X-Link - Zero Setup File Transfer

    Thanks for letting me know about the filesize problem. This was a stupid bug from my side. As mentioned by kenkiller there is a 4gb limit. I've uploaded a new version. Please update app and client.