|
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
|
|
|
|
|
i am used layout_toRightOf but i am unable to click fourth radio button that is not able to see and scroll the view.
modified 4-Jan-18 0:56am.
|
|
|
|
|
Try putting your LinearLayout , or all individual controls, inside a ScrollView .
|
|
|
|
|
Hello there. I have written a code for 10" tablet with resolution of 2560 x 1600 and hardcoded values for it. The functionality is simple. I simply check whether current point on picture, in OnTouch event, lies in particular polygon or not. It works fine.
But the problem is, I have hardcoded values and now I am given a 7" tablet with resolution of 1200 x 1920 . And my code does not work for it because of changed resolution. How do I handle this? I don't want to hardcode another set of values for 7" tablet. Thanks
NOTE: Picture resolution remains same 1500 x 1501 pixels.
|
|
|
|
|
Django_Untaken wrote: and hardcoded values for it You should never do that. You should always get the screen dimensions from the underlying operating system, and adjust your code based on those values. android get screen size - Google Search[^]
|
|
|
|
|
is there any free tool exist which can generate apk file for my jquery mobile project. please suggest some tool name.
|
|
|
|
|
No.
But you can do one thing: Create an Android app with a WebView control, and then load your jQuery mobile project as a website in it. Make sure you are having all the HTML, and other files that you would be loading in the mobile project.
That is exactly what most cross-platform HTML frameworks support during mobile development, to run a website in a WebView .
WebView | Android Developers
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Please let me know about this question.
Hemendra Singh
theninehertz
|
|
|
|
|
|
|
widget to calculate year, month and days from birthdate android source code.... show only age?
is there anyone who can do this for me..?
|
|
|
|