[android-developers] Re: Access to files on CIFS partition from my application

2014-02-27 Thread mastermind
When I open mounted directory (using opendir() function), I see only two 
files: . and ... Looks like itsn't mounted but other proccesses see 
files! How this could be???

вторник, 25 февраля 2014 г., 19:21:05 UTC+4 пользователь mastermind написал:

 I've just mounted samba share to my Nexus 7 (CM 11) under root using 
 kernel module.

 Everything seems ok for applications (ES File Manager, Total Commander 
 etc), I see files and can read them, even cat command from shell works. 
 But I'm unable to read them from my app! Neither with native calls (open 
 sets errno to ENOENT) nor FileInputStream.

 I tried many names:

 /storage/emulated/0/mounted_folder/file.txt/storage/emulated/legacy/mounted_folder/file.txt/sdcard/mounted_folder/file.txt/mnt/shell/emulated/0/mounted_folder/file.txt

 with root privelegies, with read-write permissions and many other 
 variations, still no luck :(

 What am I missing?


-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: Access to files on CIFS partition from my application

2014-02-27 Thread Nikolay Elenkov
On Thu, Feb 27, 2014 at 5:11 PM, mastermind denis.bar...@gmail.com wrote:
 When I open mounted directory (using opendir() function), I see only two
 files: . and ... Looks like itsn't mounted but other proccesses see
 files! How this could be???


Linux (and Android) supports per-process namespaces. Execute

cat /proc/PID/mounts

where PID is your app's PID to check what is sees.

Also do not use /storage/emaulted as mount point, it has a rather
weird behaviour in recent Android versions in order to support
isolated shared storage for multiple users, emulation and what not.
If you have root access, create a mount point under /data and use that.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Access to files on CIFS partition from my application

2014-02-27 Thread mastermind
The cause of the problem was in multi-user storage implementation. By the 
way not only storage isolated but the whole root filesystem. You can read 
discussion here: http://forum.xda-developers.com/showthread.php?t=2106480

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] vertical check box

2014-02-27 Thread Rahul Kaushik
i have a tablelayout which is created dynamically i added a table row in it
dynamically,now i added 5 check box in table row,all the checkbox are
showing up but they are coming horizontally in table row but i want to show
them vertically.

please suggest

Thanks
 RK

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] lockscreen

2014-02-27 Thread dashman
I'm writing an app that enables and disables the lockscreen.

Sometimes the lockscreen is on the screen - my app running
in the background disables it (actually sets the password length to zero).

Now the user enters their full password and it's no longer the valid - it's 
blank.

Any way t o avoid this.

What's the preferred way to disable lockscreen - w/o setting the pin length 
to 0

Any way to detect wx the lockscreen is currently up and visible.




-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] viewgroup in FrameLayout

2014-02-27 Thread Rahul Kaushik
Hi

How can i remove the viewgroup from framelayout(Code)

Thanks
Rk

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] moving file in tb

2014-02-27 Thread TreKing
On Thu, Feb 27, 2014 at 12:32 AM, Rahul Kaushik rahulkaushi...@gmail.comwrote:

 I have created my own directory and i want cope the file from sd card to
 my dir
 please suggest


I would suggest you read the docs that refer to accessing external storage
and general file I/O.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.