|
Ok so unistalling my application, user can completly removed images downloaded.
I have another question about. Where is the folder that contains those files?
|
|
|
|
|
Andy_Bell wrote: Where is the folder that contains those files? All depends where you save them. There was an excellent article about storage handling here on CodeProject, but the author has removed it. I guess you will need to do some searching for yourself to find something similar.
|
|
|
|
|
I haven't save file, I use only code attached in previous post. What I've been doing is connecting with HttpURLConnection at url of the image, downloading file and reading input stream. I think, doing in this way, I have a temp copy of image file stored in Android folder, but I don't know what it is.Isn't it?
Thank you!
|
|
|
|
|
Doing it this way the file only exists in virtual storage. As soon as the Bitmap object goes out of scope (e.g the object is disposed) then the data is destroyed.
|
|
|
|
|
Wonderful.
Just another curiosity, if I can... If I start thread with Thread instance and Run method, how can I kill this and, if it's required, restarting when it's required. Can I use thread.destroy() ?
|
|
|
|
|
Sorry, not sure; I have not done much with Threads on Android.
|
|
|
|
|
No matter, I open another discussion. Thanks, you've been helpful!
|
|
|
|
|
I would be inclined to use AsyncTask instead. It's easily stoppable (without corrupting other areas).
"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
|
|
|
|
|
how to get or set a Multidimensional array variable value when using a global class. tried different ways no success.
public class Global extends Application {
private String [][][] myarray=new String[10][10][10];
public String[][][] getMyarray() {
return myarray;
}
public void setMyarray(String[][][] myarray) {
this.myarray = myarray;
}
}
my activity:
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new MyView(this));
}
class MyView extends View
{
public MyView(Context context) {
super(context);
final Global globalVariable = (Global) getApplicationContext();
(globalVariable).setMyarray[2][2][1]("me");
final String name = globalVariable.getMyarray[2][2][1];
}
}
}
|
|
|
|
|
It is not obvious why you need this array or exactly what you are trying to do with it. You also need to instantiate a Global object somewhere, rather than trying to call getApplicationContext and trying to cast it to a Global .
However your reference code needs to look like:
Global myGlobal = new Global();
string[][][] myArray = myGlobal.getMyarray();
myArray[2][2][1] = "me";
final String name = myArray[2][2][1];
Although the above code will (sort of) work it is still lacking context so you need to provide more information on what you are trying to do.
|
|
|
|
|
thanks Richard, your code work great.
|
|
|
|
|
I question what it is that you are doing that requires a three dimensional array. Chances are a much simpler (i.e., easier to maintain and understand) way exists.
"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
|
|
|
|
|
If you make it really complex then people think you must be an expert.
|
|
|
|
|
i need a source code on image processing which can recognize the digit and with that digit a value can be added... Plz help
|
|
|
|
|
|
|
What will be the result of MODE_PRIVATE|MODE_APPEND ?
|
|
|
|
|
The bit-wise combination of MODE_PRIVATE and MODE_APPEND.
"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
|
|
|
|
|
My phone is the Sharp Aquos[^]
I connect the USB cable to a charging adapter in the wall.
The little red light comes on, properly indicating the state of charging a non-full battery.
Some indeterminate amount of time passes.
The charging stops.
I thought it was a hardware problem with the physical plug itself. I took it to the Sprint store. The technician examined it and reported that the plug was okay, and suggested a faulty USB cable.
I purchased a USB charging kit (small AC Plug with adapter with USB cable which fits the phone).
I tried it, and it worked okay for a day or two.
A few days later the behavior returned.
I did the following experiment...
- Plugged the charger into the wall.
- This AC outlet is controlled by a switch on the other side of the room.
- After charging for awhile, the red light goes off
- Without touching the phone or cord, I turned the power (to that outlet) off
- The phone sensed the loss of power, and the android screen appeared
- I turned the power back on
- The charging light came back on
- A few minutes later, the charging LED goes off again
- A check with the system tells me that the battery is not charging
I am confused. Why does my phone hate me ?
I tried turning the entire phone off for ten seconds and then back on.
That fixes the problem for a few minutes, after which, it resumes.
However,,,,,,,,,,,,,,,
Sometimes the phone will properly charge all night long and the LED charging indicator will change from red to green.
Has anyone experienced this problem before, and fixed it ?
|
|
|
|
|
What coding skills one need to develop app like whatsapp for android ? on client side and server side?
|
|
|
|
|
You need the skills to develop an Android app, and a website, and a good knowledge of client server architecture. Google will lead you to many samples and tutorials.
|
|
|
|
|
What exactly is your Android mobile development question?
"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 was to build a simple e-retail android application for our shop. It should have basic features like add to cart, payment and search features. I am comfortable with the basics of android. However, i am still not aquatinted with back-end and server-side development. Please can anyone suggest suitable sites or links to guide me for this project?
(PS: I want to develop the app myself rather than taking help from any external app development company etc.)
|
|
|
|
|
|
I am confused which should I learn, Python/Django or Node.js/Express.
|
|
|
|