|
I tried a few things which led to either crashing or app failures. This app runs as a client using socket so it depends on constant pinging from the server end. Stepping through on most changes would typically get stuck at creating a new socket. startActivity would open the MainActivity with no connection because it was trying to connect to the same port. Sooooooo I modified the server end (.net) and opened a second port which the new activity opens, sends the link, then finishes. Nothing happens on MainActivity which means the connection remains.
I have one last thing to iron out and I can call this one done. If the server isn't running, the app hangs on opening the socket as it waits for a connection. If the connection does drop after a connection, the UI appears to work but it doesn't update, unless I turn the phone to landscape. I'm hoping connecting in the background rather than the main thread fixes this.
Thanks again David.
|
|
|
|
|
hi,
I am developing android application where I need to transfer money to one particular account. How it is possible?
|
|
|
|
|
It is possible by writing code. But since you have given us no context, nor any idea where the money comes from, or where the receiving account is located, it is anyone's guess as to the details.
|
|
|
|
|
Tell me where the money is coming from and I'll provide the rest.
"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
|
|
|
|
|
The Adaptive Payments option gives you a lot more control over the payment and is the future direction of the Paypal APIs, so that's where i'd start if i were you. It supports SOAP, NVP, JSON and plain XML.
|
|
|
|
|
hi all:
I have a problem:
"adb shell uiautomator dump /sdcard/dump.xml" this commond can run on pc cmd,but can't use Runtime.getRuntime().exec() api to excute in app , i don't konw what's wrong, beacause of no execption i got.
why other shell commond can run ok like "logcat", "ls " , ect
i also research the android resource,
find it use "app_process /system/bin com.android.commands.uiautomator.Launcher dump /scard/dump.xml"
what can i do to run success of the commond "uiautomator dump /sdcard/dump.xml"
|
|
|
|
|
What is the exact string you use in your call to exec ?
|
|
|
|
|
thanks, i use like that:
Runtime.getRuntime().exec("uiautomator dump /sdcard/dump.xml")
|
|
|
|
|
You need to provide the full path of the executable. Remember you are not running in a shell environment.
|
|
|
|
|
I couldn't get this to work either... what do you mean by provide the full path of the executable?
|
|
|
|
|
I mean the complete path of the program, from the root directory. As a CTO you should understand this.
|
|
|
|
|
That's helpful...
I'm currently trying to run the uiautomator from within an app in android... and I'm not being able to...
It keeps returning an exit code of 9.
I have no idea where the uiautomator is located in the android os.
Do you have any idea?
|
|
|
|
|
|
|
Hi,
Were you able to run this?
I've tried various solutions but none worked.
Please share solution if you have got one.
It would be great help.
|
|
|
|
|
How to display student record on screen by click on single button in android eclipse
|
|
|
|
|
|
Ok, overlooking my naivety in things Android, I'm looking to get into Android development and am thinking it maybe a good idea to get a phone to test with. I don't otherwise have anything Android so would it be worth getting a physical device?
Is there a specific device anyone can recommend? There seem to be a lot of cheapie Walmart/Walgreen specials that seem like they might fit the bill.
Is there a minimum threshold to look for? Example nothing below Lollipop(5.0)?
Thanks, 
|
|
|
|
|
|
Thanks Richard, it's a good point, I probably should make a few apps first.
|
|
|
|
|
Thousands of apps are being released to major app stores every day. Yet, most of them wither before they even have a chance to bloom.
The effort, money, and time that is put into developing apps are enormous. Once you’ve got a lot of negative feedback from the users, there will be hardly any second chance given to prove the worth of your app. So ensuring security should be a major step taken by app development companies.
what are some of the most common security vulnerabilities of android app development
|
|
|
|
|
|
Hi All ;
I developed an Android application which is a custom keyboard with a custom font.
I developed the keyboard successfully but I'm stuck for changing the font. How can I install and setup a custom font in my Android device ? I need to setup the font with my keyboard in the same application.
I used the iFont application to install the font on the device without root access. I searched if I could find code do the same function than the iFont application. How can I install a font programmatically?
|
|
|
|
|
Put the font in your project's assets folder. Assign the font to a control like:
Typeface font = Typeface.createFromAsset(getActivity().getAssets(), "myfont.ttf");
m_control.setTypeface(font);
"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
|
|
|
|
|
Your homework is set to test what you know, not what a bunch of random people on the Internet know.
Go back to your course notes; this is almost certainly something you will have covered recently. If you can't find it, or don't understand it, then talk to your teacher.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|