FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
¿Cómo guardar el estado de un Tswitch del modo más simple?
Pues eso quiero guardar el estado ischecked de un Tswitch, para que se guarde si quiero sonido en la aplicación o no.
No se si me he liado mucho pero esto es lo que intento y no me lo guarda. Lo que hago es crear un fichero sonido.ini, y luego comprobar si existe ese fichero, y si existe el fichero que no suene. Pero no me funciona. En lo de permisos tengo marcado "write in external extorage", no se si necesito algo más. O si hay algún modo mejor de hacerlo¿? Por defecto el TSwitch está checked. Esto pongo en el onshow del form
y esto en el switch
Última edición por cocute fecha: 22-08-2015 a las 10:15:55. |
#2
|
|||
|
|||
nada que no hay manera de que me guarde y recupere configuraciones, ni usando ficheros ini tampoco
Que es lo que hago mal? en este caso intento guardar en un ini el valor de un trackbar "tr1", pero no hay manera tampoco.
|
#3
|
||||
|
||||
Hola,
¿Estás seguro de que "GetDocumentsPath" es la ruta adecuada para usar en aplicaciones Android? Primero el archivo debe existir, después has de tener permisos de lectura y escritura sobre el mismo. Yo creo que por ahí van los tiros, puesto que el código que muestras no contiene nada raro y debería funcionar si lo anterior se cumpliese. Infórmate sobre qué rutas has de usar para guardar archivos de configuración para tu aplicación. Y si ya estás usando la correcta... entonces me temo que no se me ocurre otra cosa sino tratar de depurar lo mejor posible lo que haces ahora. |
#4
|
|||
|
|||
pues no se no hay manera,
igual si meto en el deployment el fichero ini me funcione? pero que carpeta le pongo en el valor Remote Path que me deje modificar el archivo? |
#5
|
|||
|
|||
Al final creo que lo he solucionado, si usar inis, guardando datos en un memo invisible
he guardado el valor del volumen del sonido de un trackbar y si quieres sonido o no de un switch
|
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Como Invertir Una Lista Enlazada Simple | sant0s | OOP | 10 | 14-12-2011 20:55:24 |
Hola, ¿como han estado? | D-MO | La Taberna | 9 | 12-09-2011 11:26:26 |
como insertar comilla simple en mysql server | granodetoro | MySQL | 1 | 03-05-2011 03:12:41 |
Modo diseño y modo ejecución | buildero_d | OOP | 3 | 11-09-2005 06:45:00 |
Como crear un navegador web simple | CeNtInElA | Internet | 4 | 25-02-2005 14:31:06 |
|