| Author |
Message |
Katharnavas Senior Developer

Joined: 04 Dec 2007 Posts: 100 Location: India
|
Posted: Fri Feb 22, 2008 7:33 am Post subject: |
|
|
| plusminus wrote: | Hello Katharnavas,
just tried it myself. It seems this error happens because of the change to focusing.
If I remember right, in m3 when we clicked to a listItem, the Selection was placed before one could retrieve the sleectedItemIndex() (<-- functionname in m3).
Now I'm just using the "position"-parameter of onListItemClick(...) to make it work.
Regards,
plusminus
PS: I'll port to m5 now. |
Thanks for the update and now its working like a charm actually i went on replacing that line with some other function. Is there any way to change the highlighted overview color height. Its broad and annoying? |
|
| Back to top |
|
 |
plusminus Site Admin


Joined: 14 Nov 2007 Posts: 2439 Location: College Park, MD
|
Posted: Fri Feb 22, 2008 12:41 pm Post subject: |
|
|
Hello Katharnavas,
in my opinion it is a bug.
Regards,
plusminus _________________
Please remember, that this board is give & take 
| Android Development Community / Tutorials |
|
| Back to top |
|
 |
cabernet1976 Senior Developer

Joined: 16 Nov 2007 Posts: 147 Location: China
|
Posted: Tue Mar 04, 2008 5:20 pm Post subject: |
|
|
Hi plusminus,
Have you found File.listFiles cannot list the files/directorys under directory /data
My SDK is M5.
Thanks. _________________ EveryAlbum - http://www.anddev.org/viewtopic.php?p=7117#7117 |
|
| Back to top |
|
 |
plusminus Site Admin


Joined: 14 Nov 2007 Posts: 2439 Location: College Park, MD
|
Posted: Tue Mar 04, 2008 7:01 pm Post subject: |
|
|
Hello cabernet1976,
the reason you cannot browse to that folder is because you need Administrator-Privileges, which you do not have with your app.
I've heard, that if you install the apk into /system/app then it will run at a higher level.
Regards,
plusminus _________________
Please remember, that this board is give & take 
| Android Development Community / Tutorials
Last edited by plusminus on Wed Mar 05, 2008 1:50 pm; edited 1 time in total |
|
| Back to top |
|
 |
cabernet1976 Senior Developer

Joined: 16 Nov 2007 Posts: 147 Location: China
|
|
| Back to top |
|
 |
cabernet1976 Senior Developer

Joined: 16 Nov 2007 Posts: 147 Location: China
|
|
| Back to top |
|
 |
smalltalk Junior Developer

Joined: 12 Feb 2008 Posts: 19
|
Posted: Fri Mar 07, 2008 10:23 am Post subject: |
|
|
Hello you? (miss nick)
I want to ask you how to change apk file into system/...
I can't do it.
Ps: I want to ask +- why I can't use function delete() in class File to delete a file I choose. I did but it(function) return false. Please reply me fast |
|
| Back to top |
|
 |
plusminus Site Admin


Joined: 14 Nov 2007 Posts: 2439 Location: College Park, MD
|
|
| Back to top |
|
 |
smalltalk Junior Developer

Joined: 12 Feb 2008 Posts: 19
|
Posted: Fri Mar 07, 2008 5:48 pm Post subject: |
|
|
Hello +-(plusminus)
Do you miss .this.deleteFile(String) is an abstract method. I used but android state error. I'm going to 'raise level' your version. I want to make it(Browser of you) be able to copy,paste,move,delete...I think this is rather "difficult" because class File don't support much, but I 'll try. Thanks for tutorial, you're great . If you know much about File class in android. Please reply me fast  |
|
| Back to top |
|
 |
smalltalk Junior Developer

Joined: 12 Feb 2008 Posts: 19
|
Posted: Sat Mar 08, 2008 3:57 pm Post subject: |
|
|
Hello +-.
I'm waiting for you about class File. I posted this above (deleteFile is an abstract method, can't use). Please reply me fast  |
|
| Back to top |
|
 |
plusminus Site Admin


Joined: 14 Nov 2007 Posts: 2439 Location: College Park, MD
|
|
| Back to top |
|
 |
smalltalk Junior Developer

Joined: 12 Feb 2008 Posts: 19
|
Posted: Sun Mar 09, 2008 2:21 pm Post subject: File |
|
|
Hello +-
I'm really confused (very confused). I read File Topic very very carefully, but I can't find solution.
My problem is:
I pushed a file named Views.apk in /system/app (system path)
I want to delete this file with 2 way.
First way I use deleteFile(String) but I don't know fill what in String argument.
Second way I generate a new File(absolute path) and use delete() method.
Both of ways have no error but they return false (can't delete).
I simply want ask you [b]how to delete a file in system file[/b]
Please reply me fast (I'm really hurry)
Ps:
I read File topic carefully but not finding solution. I'm really confused  |
|
| Back to top |
|
 |
plusminus Site Admin


Joined: 14 Nov 2007 Posts: 2439 Location: College Park, MD
|
Posted: Mon Mar 10, 2008 12:23 am Post subject: |
|
|
Hello smalltalk,
I haven't tried that up to now!
But one is not supposed to use the common File-Object when working on the emulator (sd-card is another topic).
deleteFile(String) of ApplicationContext is very probably supposed to delete files in its "application-folder" (/data/data/your_package_structure/files). So it is the Counter-part of openFileOutput.
I don't know how to delete a file in /system/.
But I'm pretty sure you won''t be able to do with the normal application-privileges!
Regards,
plusminus _________________
Please remember, that this board is give & take 
| Android Development Community / Tutorials |
|
| Back to top |
|
 |
ankur.kulkarni Freshman

Joined: 06 May 2008 Posts: 2
|
Posted: Mon May 26, 2008 11:26 am Post subject: Path of the Images by default |
|
|
[font=Arial] [/font][size=12] [/size][color=blue] [/color]
I want to display images at the image default folder in the Android Phone.
Can anybody help me what is the path for the same? How will I get its access? |
|
| Back to top |
|
 |
ankur.kulkarni Freshman

Joined: 06 May 2008 Posts: 2
|
Posted: Thu Jul 03, 2008 5:20 pm Post subject: |
|
|
I am new to android..
want to change properties of images (like name ) loaded on SD card thru application..
so please any 1 can help me? |
|
| Back to top |
|
 |
|