|
i want to know sms appapplicaton source code
|
|
|
|
|
Then ask the person who wrote it to show it to you.
Or were you expecting someone here to write a complete application for you to present as your own work?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I want source code for audio data fetch using JSON URL from live website in android, can anyone have ?
|
|
|
|
|
This site does not provide code to order. You can search Google for sample code.
|
|
|
|
|
I wan't to add channels into my android app using a webview . But i wan't to listen if a user did susbsribed to a certain channel or not.
|
|
|
|
|
hello,
how i can change IP address on my android device?
thank you.
|
|
|
|
|
Use the settings menu, and check network and wifi settings.
|
|
|
|
|
Is your device connecting statically or dynamically?
"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
|
|
|
|
|
There are many VPN applications in the store that allow you to change the IP on your device.
|
|
|
|
|
Is it possible to respond to the volume and power buttons while the app is not in the foreground? Much like the screen capture capability when holding volume down and the power button. What api calls are necessary to do that? How do I get my app to listen to hardware key events of the entire system regardless of the current app in the foreground?
|
|
|
|
|
onKeyDown() may solve part of your problem, but I'm not sure about the "while the app is not in the foreground" part.
Maybe try here or here.
"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
|
|
|
|
|
David Crow wrote: onKeyDown() may solve part of your problem
It wont.
David Crow wrote: but I'm not sure about the "while the app is not in the foreground" part.
This is the part where I need surety.
|
|
|
|
|
|
Richard MacCutchan wrote: See KeyEvent | Android Developers[^]
I would never ask a question so doltish to get this answer.
The app needs to be a background service.
|
|
|
|
|
Have you actually looked at that page to see how you can capture these keystrokes? I can only assume not.
|
|
|
|
|
Richard MacCutchan wrote: Have you actually looked at that page to see how you can capture these keystrokes?
I have and it's not correct. You can't get key events as a service.
This is the correct answer. BroadcastReceiver[^]
|
|
|
|
|
droiddev wrote: You can't get key events as a service. What service? You said you were trying to capture key events in an Android app.
|
|
|
|
|
Hello all. How can I disable "Clear Cache/Data" feature for my android app? Is that even possible? Thanks for any pointer.
|
|
|
|
|
You can't remove that option from the system settings interface.
However, if you don't want cached data (files) to be deleted, don't store them in the cache. I'm assuming that you're working on an app of your own so that you have control over where your app data is being stored. Use of the cache doesn't happen arbitrarily... it's something that the app developer must implement.
When all else fails reading the docs is worth a try. It's no harder than reading anything somebody may post on this forum!
|
|
|
|
|
I have an rotated textview and I want to drag and drop this view.
The problem is that the drag shadow has no rotation.
I found a solution for android in java but this does not work for me.
Maybe I translate the code wrong
<a href="https://stackoverflow.com/questions/17049938/how-to-drag-a-rotated-dragshadow"></a>[<a href="https://stackoverflow.com/questions/17049938/how-to-drag-a-rotated-dragshadow" target="_blank" title="New Window">^</a>]
class CustomDragShdowBuilder : View.DragShadowBuilder
{
private View _view;
public CustomDragShdowBuilder(View view)
{
_view = view;
}
public override void OnDrawShadow(Canvas canvas)
{
double rotationRad = Math.ToRadians(_view.Rotation);
int w = (int)(_view.Width * _view.ScaleX);
int h = (int)(_view.Height * _view.ScaleY);
double s = Math.Abs(Math.Sin(rotationRad));
double c = Math.Abs(Math.Cos(rotationRad));
int width = (int)(w * c + h * s);
int height = (int)(w * s + h * c);
canvas.Scale(_view.ScaleX, _view.ScaleY, width / 2, height / 2);
canvas.Rotate(_view.Rotation, width / 2, height / 2);
canvas.Translate((width - _view.Width) / 2, (height - _view.Height) / 2);
base.OnDrawShadow(canvas);
}
public override void OnProvideShadowMetrics(Point shadowSize, Point shadowTouchPoint)
{
shadowTouchPoint.Set(shadowSize.X / 2, shadowSize.Y / 2);
base.OnProvideShadowMetrics(shadowSize, shadowTouchPoint);
}
|
|
|
|
|
can someone help me about when i take a picture of a money specifically paper bill, it will recognize what is the value of that money using opencv in android?
|
|
|
|
|
This is a common question; google for "image recognition and OCR".
|
|
|
|
|
I once read an article on how to extract the letters and numbers from a picture of a license plate. It was a fun read but was completely beyond me. I suppose the same would be true in this case. Image processing is a huge and complicated field. I did stumble across this as maybe a starting point.
"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 heard that android can connect a remote computer by using IP address of the PC. How is it done? thanks
|
|
|
|
|
Just the same as any remote connection (e.g by the web browser), it is done by using network sockets. See java.net | Android Developers[^] for details.
|
|
|
|