Recent mobile phones have a clipboard where text can be copied from one application to another (E.g. from address book to file manager). Is there an API for placing things on this clipboard?
I am targeting Sony Ericsson phones (including G705), so a Sony specific API would be acceptable if no portable API exists.
JSR 75 API gives access to the file system and the PIM access. However am not sure if it is possible to access the clipboard
The user might be able to manually copy/paste text between applications if you display a javax.microedition.lcdui.Textbox or a javax.microedition.lcdui.Textfield and you can obviously access the text in the objects in your own MIDlet but there is no proper clipboard API accessible from Java code in any of the current Sony-Ericsson JP8.x platforms, not even a proprietary one.
Related
I decided to use the Housez theme as it advertises as super easy and flexible to use. I am not a web designer but have managed to get my site up and running. www.islandestates.net The problem I have is that there is no search option for the properties on a mobile device? The desktop version works well but how do I get a search box onto the mobile version?
The support from Housez is non existent, I have submitted a request to favetheme but they never reply.
Any help would be aprreciated.
Malcolm
I've written a non-published (personal) Chrome extension that performs page checking and then performs actions such as opening new tabs if certain conditions are met. I would like to be able to "remote control" it from my phone though, e.g. turn on or off or adjust settings when I'm away from my desk.
I considered if the extension can read/write to a file in Dropbox, which I could then edit from my phone too, or any other device. But I'm not sure if extensions are allowed to arbitrarily read/write in the filesystem, or only "apps". Any other suggestions?
Assuming you can't directly connect to your computer (otherwise wOxxOm's answer is valid)..
You could make a companion phone app and use GCM push messages; your phone would message your server via it (which can be hosted on a free App Engine tier easily if it's just for your private use) and the server will push out the message.
Though it'll probably be much easier to just have said App Engine server up and providing a WebSocket endpoint that your extension can connect to to receive commands in real-time, and some sort of API / control panel on the web (authenticated, of course).
Any free webserver-based solution would lag, as bad as 500ms, I think.
Try making a complementary native PC program: mobile apps for remote control usually have their PC part running as a background service or an application with just a shelltray icon. Such program opens a TCP/UDP port on PC and listens for commands from the mobile app, and can communicate with your extension via Chrome's native messaging API.
I have downloaded a Window Gadget and found this function from the javascript.
What this function does? Is it malicious?
Before I run the Widget, I commented out first the function call and it seems this function is not necessary to run the widget.
function LaunchPowerApplet()
{
System.Shell.execute(System.Environment.getEnvironmentVariable("SystemRoot") + "\\system32\\mblctr.exe");
}
System.Shell.execute is a method from the Windows Sidebar API that is used to launch an application.
%WINDIR%\system32\mblctr.exe is the executable for the Windows Mobility Center, a tool that «puts commonly used laptop settings in one spot so you can access them easily on the go».
Whether it's necessary or not is hard to say without knowing what the gadget needs to accomplish. The function is called LaunchPowerApplet and Windows Mobility Center allows to configure the battery usage settings. It makes sense if the gadget is a battery level meter, it doesn't if it's a solitaire.
BTW, a gadget is «a collection of XML, HTML, Microsoft JScript, and Cascading Style Sheets (CSS) files» so it's technically not JavaScript but JScript (Microsoft's ECMAScript implementation)
Thia is just a windows mobility center exe it will help your gadget to run correctly. it will not harm your computer.
I wouldn't say it was malicious since the application it is trying to launch is a standard windows component.
Why it wants to launch the Mobility Center is a bit of a mystery, but without further context about what this widget is supposed to be able to do we can't comment.
I just can't figure out where Spotify stores the apps on linux. There is nothing (as far as I can see) in ~/.spotify or ~/spotify.
The docs only seems to care about Macos and windows.
Any ideas?
Spotify stores apps from the App Finder in its own encrypted internal cache.
If you want to develop your own apps, once you're flagged as a developer you should be able to create ~/Spotify and put your own apps in it. They won't appear in the sidebar - you need to manually access them by typing spotify:app:<appname> into the search field.
I'm trying to find an API in the Blackberry JDK that will allow me to change the device's current profile. For example, I'd like to call an API to change it from "Loud" to "Vibrate" or "Quiet" mode; these options are accessible via the Speaker icon on the main blackberry screen.
Is there any way to do this programmatically?
Thanks,
Yes, we can do that by launching the phones profile application from within your app with the following. From there you can edit a profile and set the volume.
ApplicationManager.getApplicationManager().launch("net_rim_bb_profiles_app");