android-context
Retrieve context in an abstract, non activity class
I\'m trying to build my abstract implementation of AsyncTask and I would like to insert a custom ProgressDialog. How can I get the context outside of an Activity Class?[详细]
2023-02-07 16:56 分类:问答How to track down memory leak - Find living references
I have a fairly complex app - The UI Activity launches a Service and sets up 2 way AIDL callbacks so the two can communicate.[详细]
2023-02-07 08:20 分类:问答Making save to SD card and Context Menu functions dynamic, or relative to button pressed
Relative to the below code, how do I make if (savering(R.raw.sound1)){ and String filename=”sound1″+”.ogg”;[详细]
2023-02-06 16:11 分类:问答What is 'Context' on Android?
In Android programming, what exactly is a Context class and what is it used for? I read about it on the developer site, but I am un开发者_StackOverflowable to understand it clearly.Putting it simply:[详细]
2023-02-06 13:49 分类:问答Android, keeping view
My application contains 2 parts: a network part and GUI. It works kinda like a browser - user requests some information from server, server sends back some data representing some view, then GUI displa[详细]
2023-02-05 14:44 分类:问答Android Get Application's 'Home' Data Directory
A simple question, relating to the default \'home\' directory when an app writes to the internal memory. By default, any files created are placed by the OS (2.2) in:[详细]
2023-02-05 07:52 分类:问答How do you specify a CONTEXT
I made a class to handle a simple message popup so I can reuse the code throughout the app.I can\'t seem to be able to get the context right.This is called from all over the place and often from class[详细]
2023-02-05 05:36 分类:问答checked context menu items don't stay checked
I\'m new to this forum and to android development itself so my question will probably be a very stupid one and i apologize for this .[详细]
2023-02-05 03:40 分类:问答IsolatedContext vs. AndroidTestCase.getContext()
I\'m writing some tests to test my sqllite database code. Can someone here explain if there would be a difference writing those tests using the context I get from AndroidTestCase.getContext() or using[详细]
2023-02-03 04:29 分类:问答How I read another Android application's file?
I have two applications.They have to communicate through a file. I know I can write a file on Android using Context.openFileOutput and pass it MODE_WORLD_READABLE|MODE_WORLD_WRITEABLE. But how can I f[详细]
2023-02-01 22:45 分类:问答