I succesed. Thank you. Here is my code;
private MediaScannerConnection mediaconnect;
private MediaScannerConnectionClient _mediaScanConnectionClient =
new MediaScannerConnectionClient() {
public void onMediaScannerConnected() {
mediaconnect.scanFile(filename2,
On Sat, Apr 9, 2011 at 7:47 PM, cervello wrote:
> But in onScanCompleted one of the parameter is the uri..Shouldn't I
> use this function?
If you use the other flavor of scanFile, one that takes a
MediaScannerConnection.OnScanCompletedListener object, you will need
to implement onScanCompleted()
But in onScanCompleted one of the parameter is the uri..Shouldn't I
use this function?
Can you write an example code? I couldn't find how it should be.. I'm
confused..
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group,
There is no Uri. The parameters to scanFile() are a path and a MIME type.
On Sat, Apr 9, 2011 at 5:28 PM, cervello wrote:
> I still try but first off all can you tell me what the uri means here??
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commons
I still try but first off all can you tell me what the uri means here??
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
a
You use the MediaScannerConnection when you add a new file to external
storage that the MediaStore needs. Your code below seems to have
nothing to do with adding new files to external storage.
On Sat, Apr 9, 2011 at 12:34 PM, cervello wrote:
> Should I do something like this? but it's not correct
Should I do something like this? but it's not correct..
public void onCreate( Bundle savedInstanceState ) {
super.onCreate( savedInstanceState );
setContentView( R.layout.main );
ListView videoListView = (ListView)findViewById(R.id.List);
videoListView.setAdapter(
7 matches
Mail list logo