|
That's the one - it can be an incredibly powerful tool, particularly when given superuser privileges. When creating an action, take a look at the "Code" option, and you will see "Shell Command". I also have a plugin for it (RM Plugin - designed primarily to control the RM series of IR blasters) that has a built-in mini server that will execute tasks when it receives a URL. That means I can utilise IFTTT to control just about anything.
But it does not solve my problem - the IR remotes for the TV and the Home Theatre is just a power toggle, not separate On and Off. So I need to know if the device is already on or not so that when I say "Turn on the TV", it doesn't just send the signal and actually turn it off. Detecting its existence (or not) on the network will answer that question, so Tasker can decide whether or not to send the IR signal.
Cheers,
Mick
------------------------------------------------
A programmer is a person who always checks both ways when crossing a one-way street.
|
|
|
|
|
Midi_Mick wrote: That's the one... Have you considered asking here on how to capture the output of a shell command?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I can already do that - what I need is the command that will get the info for me.
Cheers,
Mick
------------------------------------------------
A programmer is a person who always checks both ways when crossing a one-way street.
|
|
|
|
|
As you previously indicated PING would not work, how about TRACERT?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
That was a good suggestion. TRACERT is Windows, but a bit of research gave me traceroute, which is the Linux equivalent. I needed BusyBox on the android device to get that command, and it works fine for the TV. However, for the Home Theatre, it finds it whether it is turned on or not. Very close, but note quite time for the cigar yet.
I have a support request in with Fing - that seems to be the only program that is giving me the right answers - to see if there is any way of capturing its output. They do have an API available, and its not expensive - but I am concerned I no longer have the skills to use it to write the utility.
Cheers,
Mick
------------------------------------------------
A programmer is a person who always checks both ways when crossing a one-way street.
|
|
|
|
|
Previously, the moment I connected my Android to my PC with a USB cable, Windows Explorer recognized him and gave me access to just about any folder in the phone.
That has stopped happening now.
I connect via USB cable, Windows Explorer does see the Android phone, but I cannot access any of the folders on the Android.
Suggestions are welcome, thank you
Windows 7
I think I bought this in 2012
This Android was acquired this year
|
|
|
|
|
|
Perfect.
Genius.
Thank you.
Exactly what I needed to know
(And voted +1)
|
|
|
|
|
Which Android Emulator can run on Windows 7? Do you have a link to download?
I need Emulator for smartphone, not for tablet.
Thank You!!!
|
|
|
|
|
I use both Eclipse and Visual Studio for Android development on Win7. They both come with an emulator. What IDE are you using?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Android Studio includes all the tools you need, including the emulator.
|
|
|
|
|
Hello everybody! I have a problem and I couldn't find a good answer anywhere.
Let's say we have a WPF application written in C# running on a PC coupled to an Android phone via USB cable. The application must instruct some app on the phone to start and take a picture with the camera, process the picture in some way and send some text data back to the PC application (or maybe even the whole picture) How do you do this?
One more thing: it must be done via USB so I'm not interested in answers related to WiFi or Web services or stuff like that.
Thank you!
|
|
|
|
|
MadDoc79 wrote: How do you do this? Most likely by writing quite a lot of code. For a start you need an app on the mobile that listens for messages from the PC. It must then use the camera to take whatever pictures you require, and send them back to the PC. Google will find you resources on USB communication between Android and PC, and the Android app itself. See also Android articles[^].
|
|
|
|
|
I do not think this message was meant for me.
|
|
|
|
|
Sorry Richard, no you're right! Intended for the original questioner - my mistake.
|
|
|
|
|
There are one or two options for the basic communication mechanism between PC and target Android device, for example adb commands (via USB) would allow you to send Intents (android constructs, which if you don't know what they are you need to start with basic Android training before trying to proceed). However, Intents - when used in this way - provide no mechanism to return data BACK to the PC, so your captured images could not be returned.
The most viable solution that I can envisage would use a socket interface, also running over USB. This would give you a fully bi-direction transport mechanism. I have implemented such a system and therefore know with certainty that it works. As the previous poster said it's quite a big task, but I'd say not huge providing you know what you're doing.
Good luck!
|
|
|
|
|
For creating pdf using iText with 30 pages it takes nearly 1 min for creating PDF.
How to reduce time for creating PDF?
Otherwise is there any best libraries for creating pdf?
|
|
|
|
|
Have you thought about contacting sales.isa@itextpdf.com? There's also this.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I am using web to pdf apk on my android. try it.
Romesh, manipur
|
|
|
|
|
Hi Expert,
I have developed android program that save data on SQLite Database, I need to know where is the location of created database, furthermore, I need to save database file on the root of android device or on custom path, I don't need to save created file on hidden file.
Regards,
Ahmad
|
|
|
|
|
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...
A very quick search using your subject as the search term gave over half a million hits: Where is the location of sqlite db on android device - Google Search[^] - all of the hits on the first page tell you where it is.
In future, please try to do at least basic research yourself, and not waste your time or ours.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I did my best, and coming here was my last choice.
|
|
|
|
|
Ahmed, an Android application has an "Internal" data area - that is, an area within the Android file system where data used by that application alone resides. An app's sqlite DB lives in this area.
You say that you want the DB to exist in the "root" area. In that case you're talking about "External" storage. It's called external because it is outside the app's assigned part of the file system. Most applications, that aren't part of the system, do NOT access External storage, and to do so an app requires special permissions that are not granted by default.
Can you explain more about what problem you're trying to solve by wanting to put your DB in External storage? There may be a more conventional and easier way to achieve your aims.
|
|
|
|
|
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"
="" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical">
<radiogroup
android:layout_width="wrap_content"
="" android:layout_height="76dp" android:checkedbutton="@+id/linear_layout_rb" android:gravity="center_horizontal" android:orientation="horizontal">
<radiobutton
android:id="@+id/grid_layout_rb"
="" android:layout_width="wrap_content" android:layout_height="75dp" android:layout_alignparentright="false" android:layout_alignparenttop="true" android:layout_torightof="@+id/linear_layout_rb" android:text="@string/grid_layout_manager">
<radiobutton
android:id="@+id/linear_layout_rb"
="" android:layout_width="wrap_content" android:layout_height="75dp" android:layout_alignparentleft="true" android:layout_alignparentstart="true" android:layout_alignparenttop="true" android:text="@string/linear_layout_manager" tools:layout_marginleft="0dp" tools:layout_margintop="0dp">
<radiobutton
android:id="@+id/linear_layout_rb1"
="" android:layout_width="wrap_content" android:layout_height="75dp" android:layout_alignparentright="false" android:layout_alignparenttop="true" android:layout_torightof="@+id/grid_layout_rb" android:text="@string/linear_layout_manager1">
<radiobutton
android:id="@+id/linear_layout_rb2"
="" android:layout_width="wrap_content" android:layout_height="75dp" android:layout_alignparentright="false" android:layout_alignparenttop="true" android:layout_torightof="@+id/grid_layout_rb" android:text="@string/linear_layout_manager2">
<android.support.v7.widget.recyclerview
android:id="@+id/recyclerView"
="" android:layout_width="66dp" android:layout_height="wrap_content">
<textview
android:id="@+id/title"
="" android:layout_width="175dp" android:layout_height="75dp" android:layout_alignparentright="true" android:layout_alignparenttop="@+id/grid_layout_rb" android:layout_torightof="@+id/thumbImage" android:gravity="center" android:text="SANJANA">
<textview
android:id="@+id/thumbImage"
="" android:layout_width="100dp" android:layout_height="75dp" android:layout_alignparentright="true" android:layout_gravity="center" android:layout_torightof="@+id/recyclerView" android:text="MITHRA">
third and fouth radio button not viewing..
|
|
|
|
|
linear_layout_rb1 and linear_layout_rb2 appear to be sitting on top of each other. You need to go through each control individually and inspect the alignment-related elements (e.g., layout_toRightOf , layout_alignParentRight , layout_alignParentTop ).
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|