I came with a weird question but sadly I don;'t have any code example to base me on.
I'm trying to create an android application that uses native messaging
to communicate with a google chrome extension. That application will be running as android application in the same chromebook as the chrome extension will be running.
Is that even possible? I questioniung because of native messaging uses standard input output to communicate and android also does it for logcat and I think is not actually the same I/O I need because of the VM of android..
So, does anyone know if is that possible? Do you have any other way to do it? I've tried with websockets and it worked but sadly, chrome complains about the ssl certificate because is self signed and the websocket is not running in localhost but in ARC chromebook IP.
Thanks
Related
I am looking into creating an Android app using ReactNative for a PHILIPS 10BDL3051T tablet running Android 4.4
To use the hardware LED strips on the tablet, you need to use the SCIP socket for communication.
I have found this repo in .NET C# where the connection is archived and the ability to set LED colors: https://github.com/aolde/philips-signage-display-sicp
Does anybody have experience with making such an app and is able to provide hints or links?
Or am I forced to create the app with XAMARIN in order to use the NuGet package, if that is even possible?
Thanks a lot in advance
I need to automate some actions (testing ajax login on demand) in a browser.
I manage to obtain the desired behavior using selenium and chromedriver on my pc, but I need to make it work either in a UWP app or in an Android app (*and must run without a pc once deployed)...
Notes:
UWP App
It's a web service that runs on Windows 10 IOT Core on a Raspberry 3b+ (ARM7)
Selenium seems to be incompatible to UWP apps... Maybe because of they are sandboxed and can't start new processes?
The app won't be published on windows store
I can add all needed capabilities
Android
It's an app that remotly commands the UWP app
Selenium integration compiled but execution blocks on "webDriver.get(url)"; I did'nt find a way to make it work yet.
I'm flexible concerning software/os/browser/libraries/etc to use.
The UWP & Android Apps are kinda complexe (they have many file...)
I don't know how to install a browser on the IOT Core (did'nt find an msix or appxbundle I could use)
Some ideas I had:
- Deploying the ARM7 chromedriver with a portable ARM7 chromium with the app
- Using dockers
- Using raspbian & mono
The ideal solution would be simple and working on android (if possible)...
Any of you have an idea of how I could do that?
I finally found a solution. I reproduced the desired behavior in Android using a WebView and javascript using the evaluateJavascript method.
It's a little tricky but perfect for my need.
Is it possible to get a MeteorJS app onto a watch OS?
I'm asking related to either Apples or the Android version. After googling around, I think the android version can support a browser, but the apple watch doesn't (at least not if you don't jailbreak it).
It seems meteor works with browser functionality inside a native app wrapper. Is such a thing available for these watch OS's?
There are some efforts to enable iOS/OSX applications to easily connect to and communicate with Meteor servers. WatchOS runs an environment that is relatively similar to iOS and so I expect that some if not all of the libraries/extensions will work in WatchOS projects. The most popular effort that I've seen is called ObjectiveDDP: https://github.com/boundsj/ObjectiveDDP
ObjectiveDDP allows you to do the following:
Connect to and authenticate with a Meteor server.
Listen for update events on collections.
Call Meteor Methods.
Send CRUD commands to Meteor for a collection/document.
As for android, the answer is no right now (https://developer.android.com/training/wearables/apps/index.html):
Wearable apps can access much of the standard Android APIs, but don't
support the following APIs:
android.webkit
...
Hence, you cannot have a webview on an adroid-wear watch, which is what phonegap/cordova use to run meteor apps on android. Until that changes, I don't think it will be possible to "just run" meteor apps on an android-wear watch without writing your own native android app. As Patrick said, such a native app could still communicate with the meteor server using DDP, but it's not as straightforward as writing a meteor app that runs on regular android.
I am working on webrtc project in my office.
And i need to test webrtc for to know the flow of the function calls.
i tried testing the webrtc using google apprtc from their website appspot in my android chrome browser and other browsers.
I also used skype, line, and other apps.
But i was unable to see the logs when i used the command "sudo adb logcat" in my pc.
I was testing in odroidx2 board.
Is it correct way to test the webrtc flow?
Or is there any other way to do that?
I tried this and i didnt find any answer to this
Chrome's Web-RTC internals has all the data flow(call initiation, SDP negotiation, ice gathering etc). You can get to it from any version of Chrome by going to chrome://webrtc-internals/
For Android you can debug pages themselves only throughRemote Debugging. There you can see where Apprtc makes javascript calls and what JS functions are called when.
Both of those tools should give you plenty of information.
I think you should try to set up remote chrome debugging
https://developer.chrome.com/devtools/docs/remote-debugging
I am developing Android Web App using JSP with xml parsing. I developed it in Java using Tomcat Server but I couldn't develop in Android. I am new to the web app development. So can anyone kindly suggest me how to proceed further...
waiting for a response guys...Thank you
It is likely that you don't need tomcat on android. After all tomcat is (apart from everything else) a web server. This means that the phone your app is run within should be serving requests from other clients. I doubt you can make sure your phone IP is fixed, and even if that's the case, phones are not meant to be servers.
What I suspect you have done is - you've implemented some functionality in the context of JSP and servlets, but this functionality can easily be run without jsp/servlets. Remove the servlet-api.jar from your classpath and make your functionality work without these. Then you can easily use it in an android app.
While it should be possible from just the hardware standpoint, it should be nearly impossible to get tomcat running in the dalvik pseudo-java envrionment that android provides. the dalvik vm that Android uses is not a Standard Java VM, hence tomcat can't run on it.
I would suggest to look into the Maemo world, specifically the n800 and n810, which are a bit more hackish but also a lot more closer to linux than android. I've successfully run OSGI based apps on those machines. And they are still mobile devices you can use.
Check this site for some examples: http://wiki.maemo.org/OpenJDK_6.0_0_%28Cambridge_Software_Labs%29_on_N900
Look at i-Jetty. It's a web server that runs on the Android platform.
Why crazy? It is possible to make an ip pseudo-staic and then use a phone or tablet as a server instead of running a big power consumpting desktop 24/7. Of course for very simple purpos3 and probably as an experimental stuff. But not bad idea. I have written few years ago a tool for intarnal lan communication in the company which comprises synced and asanced messaging sastem, files and folders exchange functions, firewall solved access and everything in one jar cca 390 kb without any dependencies...there is also built in a http servlet and it runs on dalvik without problems - I have tested it. So the way is there, Even if the intention is not 100% clear.
You want to run Tomcat inside Android using dalvik? That is crazy. If it is a Web App host it somewhere and use the browser.