Autore Topic: Non so se non crea l'oggetto oppure non carica dalle edittext  (Letto 1010 volte)

Offline Jason88

  • Utente junior
  • **
  • Post: 73
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy S
Non so se non crea l'oggetto oppure non carica dalle edittext
« il: 14 Gennaio 2012, 10:57:28 CET »
0
Salve ho un problema o con la creazione di un oggetto o con il prelievo di una stringa  non so dov'è l'errore!


Codice (Java): [Seleziona]
import java.util.Vector;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.MultiAutoCompleteTextView;
import android.widget.TextView;
import android.widget.Toast;


public class POI extends Activity {
        private static final int POSITION_CAPTURE = 0;
        private String nomePOI;
        private String Descrizione;
        private Punto punto;
        private Vector<Foto> foto;
       
       
        public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        final POI a= new POI();
        setContentView(R.layout.creazione_poi);
        autoCompletamento();
        MultiAutoCompleteTextView recuperoNome = (MultiAutoCompleteTextView)findViewById(R.id.nomepoi_pag2);
        a.setNomePOI(recuperoNome.getText().toString());
        EditText recuperoDescrizione=(EditText)findViewById(R.id.descrizione_pag2);
        a.setDescrizione(recuperoDescrizione.getText().toString());
       
       
        Button bottonecamera = (Button) findViewById(R.id.camera_pag2);
        bottonecamera.setOnClickListener(new OnClickListener()
                        {
                                                int i=1;//imposta un valore per far capire all'activity foto che si fa scatta nuova foto e non sfoglia
                            @Override
                           
                                                        public void onClick(View v) {
                                                        startSubActivity(i) ;

                        }

                        });
       
        Button bottonesfoglia = (Button) findViewById(R.id.sfoglia_pag2);
        bottonesfoglia.setOnClickListener(new OnClickListener()
                        {
                                                int i=2;//imposta un valore per far capire all'activity foto che si fa  sfoglia
                            @Override
                                                        public void onClick(View v) {
                                                        startSubActivity(i) ;

                        }

                        });

        Button bottoneavanti = (Button) findViewById(R.id.avanti);
        bottoneavanti.setOnClickListener(new OnClickListener()
                        {
                                               
                            @Override
                                                        public void onClick(View v) {
                                //Intent intent = new Intent(POI.this, Punto.class);
                                //startActivityForResult(intent, POSITION_CAPTURE);
                               
                                setContentView(R.layout.riepilogo_poi);
                                TextView nome=(TextView)findViewById(R.id.nomepoi_pag3);
                                nome.setText(a.getNomePOI());
                               
                               
                                TextView descrizione=(TextView)findViewById(R.id.descrizione_pag3);
                                descrizione.setText(a.getDescrizione());
                               
                               
                               
                               
                               
                               
                                   Button bottoneindietro2 = (Button) findViewById(R.id.indietro2);
                                   bottoneindietro2.setOnClickListener(new OnClickListener()
                                                   {
                                                       @Override
                                                                                public void onClick(View v) {
                                                       setContentView(R.layout.creazione_poi);
                                                   }

                                                   });
                               
                               
                               
                               

                        }

                                               

                        });
       
     
       
       
        Button bottoneindietro = (Button) findViewById(R.id.indietro);
        bottoneindietro.setOnClickListener(new OnClickListener()
                        {
                            @Override
                                                        public void onClick(View v) {
                                                        finish();

                        }

                        });
        }
       
       
       
        protected void startSubActivity(int i) {
                Intent intent = new Intent(POI.this, Foto.class);
                String pkg=getPackageName();
                intent.putExtra(pkg+".myInt", i);
            startActivity(intent);
               
        }

         public void onActivityResult( int requestCode, int resultCode, Intent data ) {

         if (  requestCode == POSITION_CAPTURE ) {

             
                 
                 Punto rilevato = ( Punto) data.getExtras().get( "data" );
               
         }
               
                 
               

         }

        public POI(){}
       
       
        public Punto getPunto() {
                return punto;
        }
        public void setPunto(Punto punto) {
                this.punto = punto;
        }
       
        public String getDescrizione() {
                return Descrizione;
        }
        public void setDescrizione(String descrizione) {
                Descrizione = descrizione;
        }
        public String getNomePOI() {
                return nomePOI;
        }
        public void setNomePOI(String nomePOI) {
                this.nomePOI = nomePOI;
        }
       
        public void autoCompletamento(){
                MultiAutoCompleteTextView mactv= (MultiAutoCompleteTextView)this.findViewById(R.id.nomepoi_pag2);
                ArrayAdapter<String> parola = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, new String[]{"Ristorante","Casa","Scuola","Università","Mare","Colosseo","Supermercato","negozio","Ospedale","Campo","Sportivo","sport","Villa","Villa Borghese"});         
                mactv.setAdapter(parola);
                mactv.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
        }



        public Vector<Foto> getFoto() {
                return foto;
        }



        public void setFoto(Vector<Foto> foto) {
                this.foto = foto;
        }
}
       

Offline Jason88

  • Utente junior
  • **
  • Post: 73
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy S
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #1 il: 14 Gennaio 2012, 11:02:10 CET »
0
dimenticavo il log
Codice: [Seleziona]
01-14 09:35:10.379: I/DEBUG(32): debuggerd: Oct 12 2011 12:38:31
01-14 09:35:10.411: I/qemu-props(30): received: dalvik.vm.heapsize=24m
01-14 09:35:10.469: I/qemu-props(30): receiving..
01-14 09:35:10.469: I/qemu-props(30): received: qemu.sf.lcd_density=240
01-14 09:35:10.469: I/qemu-props(30): receiving..
01-14 09:35:10.469: I/qemu-props(30): received: qemu.hw.mainkeys=1
01-14 09:35:10.479: I/qemu-props(30): receiving..
01-14 09:35:10.479: I/qemu-props(30): received: qemu.sf.fake_camera=back
01-14 09:35:10.479: I/qemu-props(30): receiving..
01-14 09:35:10.479: I/qemu-props(30): exiting (4 properties set).
01-14 09:35:10.619: I/Netd(31): Netd 1.0 starting
01-14 09:35:10.671: E/Netd(31): Unable to bind netlink socket: No such file or directory
01-14 09:35:10.671: E/Netd(31): Unable to open quota2 logging socket
01-14 09:35:10.829: I/Vold(29): Vold 2.1 (the revenge) firing up
01-14 09:35:10.829: D/Vold(29): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
01-14 09:35:11.358: D/Vold(29): Volume sdcard state changing 0 (No-Media) -> 1 (Idle-Unmounted)
01-14 09:35:12.608: I/SurfaceFlinger(34): SurfaceFlinger is starting
01-14 09:35:12.618: I/SurfaceFlinger(34): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
01-14 09:35:12.638: D/gralloc_goldfish(34): Emulator without GPU emulation detected.
01-14 09:35:12.648: I/gralloc(34): using (fd=11)
01-14 09:35:12.648: I/gralloc(34): id           =
01-14 09:35:12.648: I/gralloc(34): xres         = 480 px
01-14 09:35:12.648: I/gralloc(34): yres         = 800 px
01-14 09:35:12.648: I/gralloc(34): xres_virtual = 480 px
01-14 09:35:12.648: I/gralloc(34): yres_virtual = 1600 px
01-14 09:35:12.648: I/gralloc(34): bpp          = 16
01-14 09:35:12.648: I/gralloc(34): r            = 11:5
01-14 09:35:12.648: I/gralloc(34): g            =  5:6
01-14 09:35:12.648: I/gralloc(34): b            =  0:5
01-14 09:35:12.648: I/gralloc(34): width        = 74 mm (164.756760 dpi)
01-14 09:35:12.648: I/gralloc(34): height       = 123 mm (165.203247 dpi)
01-14 09:35:12.648: I/gralloc(34): refresh rate = 260.42 Hz
01-14 09:35:12.678: D/libEGL(34): Emulator without GPU support detected. Fallback to software renderer.
01-14 09:35:12.678: D/libEGL(34): loaded /system/lib/egl/libGLES_android.so
01-14 09:35:12.709: D/AndroidRuntime(35): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
01-14 09:35:12.709: D/AndroidRuntime(35): CheckJNI is ON
01-14 09:35:12.718: I/SurfaceFlinger(34): EGL informations:
01-14 09:35:12.728: I/SurfaceFlinger(34): # of configs : 8
01-14 09:35:12.728: I/SurfaceFlinger(34): vendor    : Android
01-14 09:35:12.728: I/SurfaceFlinger(34): version   : 1.4 Android META-EGL
01-14 09:35:12.728: I/SurfaceFlinger(34): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle EGL_NV_system_time
01-14 09:35:12.728: I/SurfaceFlinger(34): Client API: OpenGL ES
01-14 09:35:12.728: I/SurfaceFlinger(34): EGLSurface: 5-6-5-0, config=0x0
01-14 09:35:12.728: I/SurfaceFlinger(34): OpenGL informations:
01-14 09:35:12.728: I/SurfaceFlinger(34): vendor    : Android
01-14 09:35:12.728: I/SurfaceFlinger(34): renderer  : Android PixelFlinger 1.4
01-14 09:35:12.728: I/SurfaceFlinger(34): version   : OpenGL ES-CM 1.0
01-14 09:35:12.728: I/SurfaceFlinger(34): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
01-14 09:35:12.728: I/SurfaceFlinger(34): GL_MAX_TEXTURE_SIZE = 4096
01-14 09:35:12.728: I/SurfaceFlinger(34): GL_MAX_VIEWPORT_DIMS = 4096 x 4096
01-14 09:35:12.728: I/SurfaceFlinger(34): flags = 000c0000
01-14 09:35:12.748: W/SurfaceFlinger(34): hwcomposer module not found
01-14 09:35:13.388: D/libEGL(64): Emulator without GPU support detected. Fallback to software renderer.
01-14 09:35:13.388: D/libEGL(64): loaded /system/lib/egl/libGLES_android.so
01-14 09:35:13.478: D/gralloc_goldfish(64): Emulator without GPU emulation detected.
01-14 09:35:13.959: I/ARMAssembler(64): generated scanline__00000077:03010102_00000A01_00000000 [  9 ipp] (30 ins) at [0x40a9e1e8:0x40a9e260] in 8174053 ns
01-14 09:35:13.978: I/ARMAssembler(64): generated scanline__00000077:03545402_00000A01_00000000 [ 31 ipp] (52 ins) at [0x40a9e268:0x40a9e338] in 3059928 ns
01-14 09:35:13.998: I/(36): ServiceManager: 0xf958
01-14 09:35:13.998: I/AudioFlinger(36): Loaded primary audio interface from LEGACY Audio HW HAL (audio)
01-14 09:35:14.168: I/AudioFlinger(36): Using 'LEGACY Audio HW HAL' (audio.primary) as the primary audio interface
01-14 09:35:14.168: D/AudioHardwareInterface(36): setMode(NORMAL)
01-14 09:35:14.188: I/CameraService(36): CameraService started (pid=36)
01-14 09:35:14.248: D/EmulatedCamera_QemuClient(36): Emulated camera list: name=AndroidEmulatorVC0 channel=0 pix=877807426 dir=front framedims=640x480
01-14 09:35:14.248: V/EmulatedCamera_QemuCamera(36): Initialize:
01-14 09:35:14.248: V/EmulatedCamera_QemuCamera(36):    Name=AndroidEmulatorVC0
01-14 09:35:14.248: V/EmulatedCamera_QemuCamera(36):    Facing 'front'
01-14 09:35:14.248: V/EmulatedCamera_QemuCamera(36):    Dimensions=640x480
01-14 09:35:14.248: V/EmulatedCamera_QemuDevice(36): Initialize: Connected to the emulated camera service 'AndroidEmulatorVC0'
01-14 09:35:14.258: V/EmulatedCamera_QemuCamera(36): Initialize: Qemu camera AndroidEmulatorVC0 is initialized. Current frame is 640x480
01-14 09:35:14.258: D/EmulatedCamera_FakeCamera(36): Initialize: Fake camera is facing back
01-14 09:35:14.258: V/EmulatedCamera_Factory(36): 2 cameras are being emulated. Fake camera ID is 1
01-14 09:35:14.318: I/AudioFlinger(36): AudioFlinger's thread 0x11b78 ready to run
01-14 09:35:14.350: W/AudioFlinger(36): Thread AudioOut_1 cannot connect to the power manager service
01-14 09:35:14.369: I/AudioPolicyService(36): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
01-14 09:35:16.518: I/SamplingProfilerIntegration(35): Profiling disabled.
01-14 09:35:16.659: I/Zygote(35): Preloading classes...
01-14 09:35:16.688: D/dalvikvm(35): GC_EXPLICIT freed 36K, 81% free 406K/2048K, paused 2ms+2ms
01-14 09:35:16.928: D/dalvikvm(35): GC_EXPLICIT freed 4K, 77% free 471K/2048K, paused 1ms+4ms
01-14 09:35:17.168: D/dalvikvm(35): GC_EXPLICIT freed 18K, 76% free 505K/2048K, paused 1ms+5ms
01-14 09:35:17.340: D/dalvikvm(35): GC_EXPLICIT freed 28K, 75% free 532K/2048K, paused 1ms+1ms
01-14 09:35:17.669: D/dalvikvm(35): GC_EXPLICIT freed 15K, 72% free 573K/2048K, paused 14ms+6ms
01-14 09:35:18.789: D/dalvikvm(35): GC_EXPLICIT freed 28K, 71% free 600K/2048K, paused 55ms+12ms
01-14 09:35:19.868: D/TextLayoutCache(35): Using debug level: 0 - Debug Enabled: 0
01-14 09:35:19.968: D/dalvikvm(35): GC_EXPLICIT freed 25K, 70% free 631K/2048K, paused 1ms+2ms
01-14 09:35:19.988: W/Zygote(35): Class not found for preloading: android.media.AudioManager$2
01-14 09:35:20.458: I/dalvikvm(35): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
01-14 09:35:20.458: D/MtpDeviceJNI(35): register_android_mtp_MtpDevice
01-14 09:35:20.458: I/dalvikvm(35): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
01-14 09:35:20.468: I/dalvikvm(35): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
01-14 09:35:20.468: W/MediaProfiles(35): could not find media config xml file
01-14 09:35:20.479: W/Zygote(35): Class not found for preloading: android.media.IRemoteControlClientDispatcher
01-14 09:35:20.479: W/Zygote(35): Class not found for preloading: android.media.IRemoteControlClientDispatcher$Stub
01-14 09:35:20.558: D/dalvikvm(35): GC_EXPLICIT freed 20K, 68% free 667K/2048K, paused 1ms+2ms
01-14 09:35:21.588: D/dalvikvm(35): GC_FOR_ALLOC freed 216K, 53% free 962K/2048K, paused 80ms
01-14 09:35:21.849: D/dalvikvm(35): GC_EXPLICIT freed 42K, 51% free 1017K/2048K, paused 2ms+2ms
01-14 09:35:22.559: D/dalvikvm(35): GC_EXPLICIT freed 27K, 49% free 1046K/2048K, paused 3ms+37ms
01-14 09:35:23.089: D/dalvikvm(35): GC_EXPLICIT freed 8K, 47% free 1094K/2048K, paused 2ms+18ms
01-14 09:35:23.289: D/dalvikvm(35): GC_EXPLICIT freed 23K, 44% free 1160K/2048K, paused 2ms+3ms
01-14 09:35:23.769: D/dalvikvm(35): GC_EXPLICIT freed 48K, 30% free 1439K/2048K, paused 4ms+6ms
01-14 09:35:23.789: W/Zygote(35): Class not found for preloading: android.text.TextDirectionHeuristics$CharCount
01-14 09:35:23.919: W/Zygote(35): Class not found for preloading: android.text.method.WordIterator$1
01-14 09:35:24.239: D/dalvikvm(35): GC_EXPLICIT freed 34K, 29% free 1472K/2048K, paused 3ms+6ms
01-14 09:35:24.530: D/dalvikvm(35): GC_EXPLICIT freed 32K, 27% free 1495K/2048K, paused 5ms+3ms
01-14 09:35:25.139: I/dalvikvm(35): threadid=1: recursive native library load attempt (/system/lib/libwebcore.so)
01-14 09:35:25.139: D/dalvikvm(35): No JNI_OnLoad found in /system/lib/libchromium_net.so 0x0, skipping init
01-14 09:35:25.429: D/dalvikvm(35): GC_EXPLICIT freed 25K, 25% free 1543K/2048K, paused 3ms+27ms
01-14 09:35:25.639: W/Zygote(35): Class not found for preloading: android.widget.EdgeGlow
01-14 09:35:25.969: D/dalvikvm(35): GC_EXPLICIT freed 24K, 24% free 1572K/2048K, paused 4ms+7ms
01-14 09:35:26.679: D/dalvikvm(35): GC_EXPLICIT freed 65K, 22% free 1613K/2048K, paused 4ms+30ms
01-14 09:35:26.749: E/PhonePolicy(35): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
01-14 09:35:26.959: D/dalvikvm(35): GC_EXPLICIT freed 32K, 21% free 1634K/2048K, paused 4ms+4ms
01-14 09:35:27.209: D/dalvikvm(35): GC_EXPLICIT freed 28K, 19% free 1663K/2048K, paused 6ms+4ms
01-14 09:35:27.379: D/dalvikvm(35): GC_EXPLICIT freed 25K, 18% free 1693K/2048K, paused 5ms+4ms
01-14 09:35:27.559: D/dalvikvm(35): GC_EXPLICIT freed 32K, 17% free 1719K/2048K, paused 4ms+5ms
01-14 09:35:27.779: D/dalvikvm(35): GC_EXPLICIT freed 32K, 15% free 1747K/2048K, paused 17ms+7ms
01-14 09:35:28.039: D/dalvikvm(35): GC_EXPLICIT freed 71K, 12% free 1802K/2048K, paused 8ms+17ms
01-14 09:35:28.349: D/dalvikvm(35): GC_EXPLICIT freed 39K, 12% free 1818K/2048K, paused 68ms+4ms
01-14 09:35:35.129: I/System(35): Loaded time zone names for  in 6513ms (6376ms in ICU)
01-14 09:35:40.458: I/System(35): Loaded time zone names for en_US in 5321ms (5296ms in ICU)
01-14 09:35:40.608: D/dalvikvm(35): GC_EXPLICIT freed 324K, 17% free 1935K/2307K, paused 9ms+4ms
01-14 09:35:40.848: D/dalvikvm(35): GC_EXPLICIT freed 15K, 14% free 1995K/2307K, paused 9ms+4ms
01-14 09:35:41.248: D/dalvikvm(35): GC_EXPLICIT freed 51K, 13% free 2027K/2307K, paused 5ms+7ms
01-14 09:35:41.468: D/dalvikvm(35): GC_EXPLICIT freed 28K, 11% free 2057K/2307K, paused 4ms+8ms
01-14 09:35:41.730: D/dalvikvm(35): GC_EXPLICIT freed 38K, 11% free 2074K/2307K, paused 6ms+7ms
01-14 09:35:42.028: D/dalvikvm(35): GC_EXPLICIT freed 32K, 10% free 2096K/2307K, paused 28ms+17ms
01-14 09:35:42.068: I/Zygote(35): ...preloaded 2252 classes in 25406ms.
01-14 09:35:42.228: D/dalvikvm(35): GC_EXPLICIT freed 23K, 10% free 2100K/2307K, paused 42ms+5ms
01-14 09:35:42.228: I/Zygote(35): Preloading resources...
01-14 09:35:42.319: W/Zygote(35): Preloaded drawable resource #0x10804d5 (res/drawable-hdpi/spinner_black_16.png) that varies with configuration!!
01-14 09:35:42.391: W/Zygote(35): Preloaded drawable resource #0x10804d6 (res/drawable-hdpi/spinner_black_20.png) that varies with configuration!!
01-14 09:35:42.429: W/Zygote(35): Preloaded drawable resource #0x10804d7 (res/drawable-hdpi/spinner_black_48.png) that varies with configuration!!
01-14 09:35:42.449: W/Zygote(35): Preloaded drawable resource #0x10804d8 (res/drawable-hdpi/spinner_black_76.png) that varies with configuration!!
01-14 09:35:42.638: D/dalvikvm(35): GC_EXPLICIT freed 4K, 8% free 2184K/2371K, paused 5ms+5ms
01-14 09:35:42.648: W/Zygote(35): Preloaded drawable resource #0x10804e6 (res/drawable-hdpi/spinner_white_16.png) that varies with configuration!!
01-14 09:35:42.701: W/Zygote(35): Preloaded drawable resource #0x10804e7 (res/drawable-hdpi/spinner_white_48.png) that varies with configuration!!
01-14 09:35:42.728: W/Zygote(35): Preloaded drawable resource #0x10804e8 (res/drawable-hdpi/spinner_white_76.png) that varies with configuration!!
01-14 09:35:42.958: D/dalvikvm(35): GC_EXPLICIT freed 4K, 8% free 2253K/2435K, paused 13ms+30ms
01-14 09:35:42.979: W/Zygote(35): Preloaded drawable resource #0x1080096 (res/drawable-hdpi/toast_frame.9.png) that varies with configuration!!
01-14 09:35:42.998: W/Zygote(35): Preloaded drawable resource #0x10805cb (res/drawable-hdpi/toast_frame_holo.9.png) that varies with configuration!!
01-14 09:35:43.163: D/dalvikvm(35): GC_EXPLICIT freed 2K, 8% free 2321K/2499K, paused 49ms+11ms
01-14 09:35:43.202: W/Zygote(35): Preloaded drawable resource #0x1080106 (res/drawable-hdpi/btn_check_on_selected.png) that varies with configuration!!
01-14 09:35:43.228: W/Zygote(35): Preloaded drawable resource #0x1080105 (res/drawable-hdpi/btn_check_on_pressed_holo_light.png) that varies with configuration!!
01-14 09:35:43.248: W/Zygote(35): Preloaded drawable resource #0x1080104 (res/drawable-hdpi/btn_check_on_pressed_holo_dark.png) that varies with configuration!!
01-14 09:35:43.258: W/Zygote(35): Preloaded drawable resource #0x1080103 (res/drawable-hdpi/btn_check_on_pressed.png) that varies with configuration!!
01-14 09:35:43.408: D/dalvikvm(35): GC_EXPLICIT freed 5K, 8% free 2373K/2563K, paused 37ms+10ms
01-14 09:35:43.428: W/Zygote(35): Preloaded drawable resource #0x1080102 (res/drawable-hdpi/btn_check_on_holo_light.png) that varies with configuration!!
01-14 09:35:43.468: W/Zygote(35): Preloaded drawable resource #0x1080101 (res/drawable-hdpi/btn_check_on_holo_dark.png) that varies with configuration!!
01-14 09:35:43.488: W/Zygote(35): Preloaded drawable resource #0x10800ff (res/drawable-hdpi/btn_check_on_focused_holo_light.png) that varies with configuration!!
01-14 09:35:43.508: W/Zygote(35): Preloaded drawable resource #0x10800fe (res/drawable-hdpi/btn_check_on_focused_holo_dark.png) that varies with configuration!!
01-14 09:35:43.508: W/Zygote(35): Preloaded drawable resource #0x10800fd (res/drawable-hdpi/btn_check_on_disabled_holo_light.png) that varies with configuration!!
01-14 09:35:43.668: D/dalvikvm(35): GC_EXPLICIT freed 6K, 8% free 2420K/2627K, paused 44ms+4ms
01-14 09:35:43.679: W/Zygote(35): Preloaded drawable resource #0x10800fc (res/drawable-hdpi/btn_check_on_disabled_holo_dark.png) that varies with configuration!!
01-14 09:35:43.718: W/Zygote(35): Preloaded drawable resource #0x10800fb (res/drawable-hdpi/btn_check_on_disabled_focused_holo_light.png) that varies with configuration!!
01-14 09:35:43.739: W/Zygote(35): Preloaded drawable resource #0x10800fa (res/drawable-hdpi/btn_check_on_disabled_focused_holo_dark.png) that varies with configuration!!
01-14 09:35:43.748: W/Zygote(35): Preloaded drawable resource #0x10800f6 (res/drawable-hdpi/btn_check_on_disable_focused.png) that varies with configuration!!
01-14 09:35:43.898: D/dalvikvm(35): GC_EXPLICIT freed 5K, 7% free 2465K/2627K, paused 5ms+8ms
01-14 09:35:43.909: W/Zygote(35): Preloaded drawable resource #0x10800f5 (res/drawable-hdpi/btn_check_on_disable.png) that varies with configuration!!
01-14 09:35:43.928: W/Zygote(35): Preloaded drawable resource #0x10800f4 (res/drawable-hdpi/btn_check_on.png) that varies with configuration!!
01-14 09:35:43.981: W/Zygote(35): Preloaded drawable resource #0x10800f3 (res/drawable-hdpi/btn_check_off_selected.png) that varies with configuration!!
01-14 09:35:44.098: D/dalvikvm(35): GC_EXPLICIT freed 4K, 7% free 2514K/2691K, paused 5ms+5ms
01-14 09:35:44.138: W/Zygote(35): Preloaded drawable resource #0x10800f2 (res/drawable-hdpi/btn_check_off_pressed_holo_light.png) that varies with configuration!!
01-14 09:35:44.158: W/Zygote(35): Preloaded drawable resource #0x10800f1 (res/drawable-hdpi/btn_check_off_pressed_holo_dark.png) that varies with configuration!!
01-14 09:35:44.179: W/Zygote(35): Preloaded drawable resource #0x10800f0 (res/drawable-hdpi/btn_check_off_pressed.png) that varies with configuration!!
01-14 09:35:44.179: W/Zygote(35): Preloaded drawable resource #0x10800ed (res/drawable-hdpi/btn_check_off_holo_light.png) that varies with configuration!!
01-14 09:35:44.328: D/dalvikvm(35): GC_EXPLICIT freed 5K, 8% free 2559K/2755K, paused 12ms+5ms
01-14 09:35:44.339: W/Zygote(35): Preloaded drawable resource #0x10800ec (res/drawable-hdpi/btn_check_off_holo_dark.png) that varies with configuration!!
01-14 09:35:44.348: W/Zygote(35): Preloaded drawable resource #0x10800ea (res/drawable-hdpi/btn_check_off_focused_holo_light.png) that varies with configuration!!
01-14 09:35:44.358: W/Zygote(35): Preloaded drawable resource #0x10800e9 (res/drawable-hdpi/btn_check_off_focused_holo_dark.png) that varies with configuration!!
01-14 09:35:44.358: W/Zygote(35): Preloaded drawable resource #0x10800e8 (res/drawable-hdpi/btn_check_off_disabled_holo_light.png) that varies with configuration!!
01-14 09:35:44.429: W/Zygote(35): Preloaded drawable resource #0x10800e7 (res/drawable-hdpi/btn_check_off_disabled_holo_dark.png) that varies with configuration!!
01-14 09:35:44.651: D/dalvikvm(35): GC_EXPLICIT freed 7K, 6% free 2606K/2755K, paused 70ms+11ms
01-14 09:35:44.688: W/Zygote(35): Preloaded drawable resource #0x10800e6 (res/drawable-hdpi/btn_check_off_disabled_focused_holo_light.png) that varies with configuration!!
01-14 09:35:44.688: W/Zygote(35): Preloaded drawable resource #0x10800e5 (res/drawable-hdpi/btn_check_off_disabled_focused_holo_dark.png) that varies with configuration!!
01-14 09:35:44.718: W/Zygote(35): Preloaded drawable resource #0x10800e0 (res/drawable-hdpi/btn_check_off_disable_focused.png) that varies with configuration!!
01-14 09:35:44.728: W/Zygote(35): Preloaded drawable resource #0x10800df (res/drawable-hdpi/btn_check_off_disable.png) that varies with configuration!!
01-14 09:35:44.989: D/dalvikvm(35): GC_EXPLICIT freed 5K, 6% free 2658K/2819K, paused 5ms+5ms
01-14 09:35:44.998: W/Zygote(35): Preloaded drawable resource #0x10800dd (res/drawable-hdpi/btn_check_label_background.9.png) that varies with configuration!!
01-14 09:35:45.058: W/Zygote(35): Preloaded drawable resource #0x10800dc (res/drawable/btn_check_holo_light.xml) that varies with configuration!!
01-14 09:35:45.079: W/Zygote(35): Preloaded drawable resource #0x10800db (res/drawable/btn_check_holo_dark.xml) that varies with configuration!!
01-14 09:35:45.172: W/Zygote(35): Preloaded drawable resource #0x10800d8 (res/drawable/btn_check.xml) that varies with configuration!!
01-14 09:35:45.190: W/Zygote(35): Preloaded drawable resource #0x1080196 (res/drawable-hdpi/btn_radio_on_selected.png) that varies with configuration!!
01-14 09:35:45.348: D/dalvikvm(35): GC_EXPLICIT freed 7K, 6% free 2714K/2883K, paused 5ms+5ms
01-14 09:35:45.368: W/Zygote(35): Preloaded drawable resource #0x1080195 (res/drawable-hdpi/btn_radio_on_pressed_holo_light.png) that varies with configuration!!
01-14 09:35:45.379: W/Zygote(35): Preloaded drawable resource #0x1080194 (res/drawable-hdpi/btn_radio_on_pressed_holo_dark.png) that varies with configuration!!
01-14 09:35:45.428: W/Zygote(35): Preloaded drawable resource #0x1080193 (res/drawable-hdpi/btn_radio_on_pressed.png) that varies with configuration!!
01-14 09:35:45.439: W/Zygote(35): Preloaded drawable resource #0x1080192 (res/drawable-hdpi/btn_radio_on_holo_light.png) that varies with configuration!!
01-14 09:35:45.551: D/dalvikvm(35): GC_EXPLICIT freed 5K, 5% free 2759K/2883K, paused 5ms+7ms
01-14 09:35:45.588: W/Zygote(35): Preloaded drawable resource #0x1080191 (res/drawable-hdpi/btn_radio_on_holo_dark.png) that varies with configuration!!
01-14 09:35:45.608: W/Zygote(35): Preloaded drawable resource #0x108018f (res/drawable-hdpi/btn_radio_on_focused_holo_light.png) that varies with configuration!!
01-14 09:35:45.628: W/Zygote(35): Preloaded drawable resource #0x108018e (res/drawable-hdpi/btn_radio_on_focused_holo_dark.png) that varies with configuration!!
01-14 09:35:45.628: W/Zygote(35): Preloaded drawable resource #0x108018d (res/drawable-hdpi/btn_radio_on_disabled_holo_light.png) that varies with configuration!!
01-14 09:35:45.639: W/Zygote(35): Preloaded drawable resource #0x108018c (res/drawable-hdpi/btn_radio_on_disabled_holo_dark.png) that varies with configuration!!
01-14 09:35:45.788: D/dalvikvm(35): GC_EXPLICIT freed 6K, 5% free 2806K/2947K, paused 6ms+5ms
01-14 09:35:45.799: W/Zygote(35): Preloaded drawable resource #0x108018b (res/drawable-hdpi/btn_radio_on_disabled_focused_holo_light.png) that varies with configuration!!
01-14 09:35:45.838: W/Zygote(35): Preloaded drawable resource #0x108018a (res/drawable-hdpi/btn_radio_on_disabled_focused_holo_dark.png) that varies with configuration!!
01-14 09:35:45.858: W/Zygote(35): Preloaded drawable resource #0x1080189 (res/drawable-hdpi/btn_radio_on.png) that varies with configuration!!
01-14 09:35:45.879: W/Zygote(35): Preloaded drawable resource #0x1080188 (res/drawable-hdpi/btn_radio_off_selected.png) that varies with configuration!!
01-14 09:35:46.039: D/dalvikvm(35): GC_EXPLICIT freed 5K, 6% free 2857K/3011K, paused 8ms+18ms
01-14 09:35:46.048: W/Zygote(35): Preloaded drawable resource #0x1080187 (res/drawable-hdpi/btn_radio_off_pressed_holo_light.png) that varies with configuration!!
01-14 09:35:46.058: W/Zygote(35): Preloaded drawable resource #0x1080186 (res/drawable-hdpi/btn_radio_off_pressed_holo_dark.png) that varies with configuration!!
01-14 09:35:46.109: W/Zygote(35): Preloaded drawable resource #0x1080185 (res/drawable-hdpi/btn_radio_off_pressed.png) that varies with configuration!!
01-14 09:35:46.119: W/Zygote(35): Preloaded drawable resource #0x1080184 (res/drawable-hdpi/btn_radio_off_holo_light.png) that varies with configuration!!
01-14 09:35:46.229: D/dalvikvm(35): GC_EXPLICIT freed 5K, 6% free 2902K/3075K, paused 5ms+4ms
01-14 09:35:46.269: W/Zygote(35): Preloaded drawable resource #0x1080183 (res/drawable-hdpi/btn_radio_off_holo_dark.png) that varies with configuration!!
01-14 09:35:46.289: W/Zygote(35): Preloaded drawable resource #0x1080181 (res/drawable-hdpi/btn_radio_off_focused_holo_light.png) that varies with configuration!!
01-14 09:35:46.301: W/Zygote(35): Preloaded drawable resource #0x1080180 (res/drawable-hdpi/btn_radio_off_focused_holo_dark.png) that varies with configuration!!
01-14 09:35:46.309: W/Zygote(35): Preloaded drawable resource #0x108017f (res/drawable-hdpi/btn_radio_off_disabled_holo_light.png) that varies with configuration!!
01-14 09:35:46.363: W/Zygote(35): Preloaded drawable resource #0x108017e (res/drawable-hdpi/btn_radio_off_disabled_holo_dark.png) that varies with configuration!!
01-14 09:35:46.605: D/dalvikvm(35): GC_EXPLICIT freed 7K, 5% free 2950K/3075K, paused 5ms+79ms
01-14 09:35:46.609: W/Zygote(35): Preloaded drawable resource #0x108017d (res/drawable-hdpi/btn_radio_off_disabled_focused_holo_light.png) that varies with configuration!!
01-14 09:35:46.619: W/Zygote(35): Preloaded drawable resource #0x108017c (res/drawable-hdpi/btn_radio_off_disabled_focused_holo_dark.png) that varies with configuration!!
01-14 09:35:46.629: W/Zygote(35): Preloaded drawable resource #0x108017a (res/drawable-hdpi/btn_radio_label_background.9.png) that varies with configuration!!
01-14 09:35:46.699: W/Zygote(35): Preloaded drawable resource #0x1080009 (res/drawable/btn_radio.xml) that varies with configuration!!
01-14 09:35:46.849: D/dalvikvm(35): GC_EXPLICIT freed 5K, 5% free 3000K/3139K, paused 8ms+8ms
01-14 09:35:46.870: W/Zygote(35): Preloaded drawable resource #0x1080130 (res/drawable-hdpi/btn_default_transparent_normal.9.png) that varies with configuration!!
01-14 09:35:46.880: W/Zygote(35): Preloaded drawable resource #0x108012e (res/drawable-hdpi/btn_default_small_selected.9.png) that varies with configuration!!
01-14 09:35:46.889: W/Zygote(35): Preloaded drawable resource #0x108012d (res/drawable-hdpi/btn_default_small_pressed.9.png) that varies with configuration!!
01-14 09:35:46.899: W/Zygote(35): Preloaded drawable resource #0x108012c (res/drawable-hdpi/btn_default_small_normal_disable_focused.9.png) that varies with configuration!!
01-14 09:35:46.949: W/Zygote(35): Preloaded drawable resource #0x108012b (res/drawable-hdpi/btn_default_small_normal_disable.9.png) that varies with configuration!!
01-14 09:35:46.959: W/Zygote(35): Preloaded drawable resource #0x108012a (res/drawable-hdpi/btn_default_small_normal.9.png) that varies with configuration!!
01-14 09:35:47.069: D/dalvikvm(35): GC_EXPLICIT freed 7K, 5% free 3045K/3203K, paused 5ms+5ms
01-14 09:35:47.131: W/Zygote(35): Preloaded drawable resource #0x1080129 (res/drawable-hdpi/btn_default_selected.9.png) that varies with configuration!!
01-14 09:35:47.150: W/Zygote(35): Preloaded drawable resource #0x1080128 (res/drawable-hdpi/btn_default_pressed_holo_light.9.png) that varies with configuration!!
01-14 09:35:47.150: W/Zygote(35): Preloaded drawable resource #0x1080127 (res/drawable-hdpi/btn_default_pressed_holo_dark.9.png) that varies with configuration!!
01-14 09:35:47.189: W/Zygote(35): Preloaded drawable resource #0x1080125 (res/drawable-hdpi/btn_default_pressed.9.png) that varies with configuration!!
01-14 09:35:47.214: W/Zygote(35): Preloaded drawable resource #0x1080124 (res/drawable-hdpi/btn_default_normal_holo_light.9.png) that varies with configuration!!
01-14 09:35:47.329: D/dalvikvm(35): GC_EXPLICIT freed 6K, 4% free 3090K/3203K, paused 8ms+4ms
01-14 09:35:47.358: W/Zygote(35): Preloaded drawable resource #0x1080123 (res/drawable-hdpi/btn_default_normal_holo_dark.9.png) that varies with configuration!!
01-14 09:35:47.379: W/Zygote(35): Preloaded drawable resource #0x1080121 (res/drawable-hdpi/btn_default_normal_disable_focused.9.png) that varies with configuration!!
01-14 09:35:47.399: W/Zygote(35): Preloaded drawable resource #0x1080120 (res/drawable-hdpi/btn_default_normal_disable.9.png) that varies with configuration!!
01-14 09:35:47.409: W/Zygote(35): Preloaded drawable resource #0x108011f (res/drawable-hdpi/btn_default_normal.9.png) that varies with configuration!!
01-14 09:35:47.449: W/Zygote(35): Preloaded drawable resource #0x108011c (res/drawable-hdpi/btn_default_focused_holo_light.9.png) that varies with configuration!!
01-14 09:35:47.660: D/dalvikvm(35): GC_EXPLICIT freed 6K, 4% free 3137K/3267K, paused 7ms+7ms
01-14 09:35:47.719: W/Zygote(35): Preloaded drawable resource #0x108011b (res/drawable-hdpi/btn_default_focused_holo_dark.9.png) that varies with configuration!!
01-14 09:35:47.739: W/Zygote(35): Preloaded drawable resource #0x1080119 (res/drawable-hdpi/btn_default_disabled_holo_light.9.png) that varies with configuration!!
01-14 09:35:47.739: W/Zygote(35): Preloaded drawable resource #0x1080118 (res/drawable-hdpi/btn_default_disabled_holo_dark.9.png) that varies with configuration!!
01-14 09:35:47.779: W/Zygote(35): Preloaded drawable resource #0x1080116 (res/drawable-hdpi/btn_default_disabled_focused_holo_light.9.png) that varies with configuration!!
01-14 09:35:47.859: W/Zygote(35): Preloaded drawable resource #0x1080115 (res/drawable-hdpi/btn_default_disabled_focused_holo_dark.9.png) that varies with configuration!!
01-14 09:35:47.899: W/Zygote(35): Preloaded drawable resource #0x108011d (res/drawable/btn_default_holo_dark.xml) that varies with configuration!!
01-14 09:35:47.932: W/Zygote(35): Preloaded drawable resource #0x108011e (res/drawable/btn_default_holo_light.xml) that varies with configuration!!
01-14 09:35:48.099: D/dalvikvm(35): GC_EXPLICIT freed 9K, 5% free 3179K/3331K, paused 8ms+5ms
01-14 09:35:48.109: W/Zygote(35): Preloaded drawable resource #0x1080004 (res/drawable/btn_default.xml) that varies with configuration!!
01-14 09:35:48.129: W/Zygote(35): Preloaded drawable resource #0x1080005 (res/drawable/btn_default_small.xml) that varies with configuration!!




cmq ho provato a prendere direttamente la stringa dalla edittext che riempivo e non la prende proprio forse è proprio quello il problema

Offline Jason88

  • Utente junior
  • **
  • Post: 73
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy S
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #2 il: 14 Gennaio 2012, 17:49:41 CET »
0
nessuno mi può aiutare?

Offline blackgin

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 1387
  • Respect: +164
    • Google+
    • blackgins
    • blackginsoft
    • Mostra profilo
  • Dispositivo Android:
    Galaxy Nexus
  • Sistema operativo:
    Mac OSX 10.8
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #3 il: 14 Gennaio 2012, 18:38:13 CET »
0
Ma c'è un crash? Dal log che hai postato non sembra
Postate il LogCat LogCat LogCat LogCat LogCat

Offline Jason88

  • Utente junior
  • **
  • Post: 73
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy S
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #4 il: 14 Gennaio 2012, 18:57:23 CET »
0
no semplicemente non visualizza quello che prendo!

Offline blackgin

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 1387
  • Respect: +164
    • Google+
    • blackgins
    • blackginsoft
    • Mostra profilo
  • Dispositivo Android:
    Galaxy Nexus
  • Sistema operativo:
    Mac OSX 10.8
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #5 il: 14 Gennaio 2012, 20:39:22 CET »
0
Allora il logcat non serve e devi spiegare meglio il problema. Dove non funziona?
Postate il LogCat LogCat LogCat LogCat LogCat

Offline Jason88

  • Utente junior
  • **
  • Post: 73
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy S
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #6 il: 15 Gennaio 2012, 09:32:05 CET »
0
secondo me non funzionano
Codice (Java): [Seleziona]
 MultiAutoCompleteTextView recuperoNome = (MultiAutoCompleteTextView)findViewById(R.id.nomepoi_pag2);
        a.setNomePOI(recuperoNome.getText().toString());
        EditText recuperoDescrizione=(EditText)findViewById(R.id.descrizione_pag2);
        a.setDescrizione(recuperoDescrizione.getText().toString());

cioè non carica in  a  perchè poi sotto quando faccio


Codice (Java): [Seleziona]
 setContentView(R.layout.riepilogo_poi);
                                TextView nome=(TextView)findViewById(R.id.nomepoi_pag3);
                                nome.setText(a.getNomePOI());
                               
                               
                                TextView descrizione=(TextView)findViewById(R.id.descrizione_pag3);
                                descrizione.setText(a.getDescrizione());
                               


nelle textview non ci va niente!

Offline dr4gone

  • Utente junior
  • **
  • Post: 66
  • Respect: +1
    • Mostra profilo
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #7 il: 15 Gennaio 2012, 09:50:48 CET »
0
la butto li... Prova a definire "a"  fuori dall'oncreate ...

Oppure come è stato suggerito a me tante volte, popola il codice di log e vedi dov'è che non ti passa il risultato. ;)

Offline Jason88

  • Utente junior
  • **
  • Post: 73
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy S
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #8 il: 15 Gennaio 2012, 09:59:56 CET »
0
in che senso fuori dall'oncreate???

Offline dr4gone

  • Utente junior
  • **
  • Post: 66
  • Respect: +1
    • Mostra profilo
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #9 il: 15 Gennaio 2012, 10:05:23 CET »
0
.
« Ultima modifica: 15 Gennaio 2012, 10:59:25 CET da dr4gone »

Offline Jason88

  • Utente junior
  • **
  • Post: 73
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy S
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #10 il: 15 Gennaio 2012, 10:11:54 CET »
0
cosi crasha, ma non credo sia esatto nel senso si può mettere fra gli attributi l'oggetto della classe che lo istanzia???

Offline dr4gone

  • Utente junior
  • **
  • Post: 66
  • Respect: +1
    • Mostra profilo
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #11 il: 15 Gennaio 2012, 10:30:48 CET »
+1
Guarda non ho molto chiaro il tuo codice, e sicuramente quello che ti ho suggerito sarà una fesseria, prova a popolare il tutto di log e vedi dove non ti passa il dato... :)
Altro non so.. :)

Offline Jason88

  • Utente junior
  • **
  • Post: 73
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy S
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #12 il: 15 Gennaio 2012, 10:47:37 CET »
0
scusami non sono molto pratico ma cosa vuol dire popolare il log?

Offline Jason88

  • Utente junior
  • **
  • Post: 73
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy S
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #13 il: 15 Gennaio 2012, 10:53:44 CET »
0
grazie mille ho risolto, praticamente avevo messo il comando del prelievo del testo nel layout stesso solo che quando funzionava era ancora vuoto e non prendeva niente l'ho spostato nell'onclick del pulsante per andare avanti ed l'ha preso, ora tutto ok per questo problema! :D

Offline dr4gone

  • Utente junior
  • **
  • Post: 66
  • Respect: +1
    • Mostra profilo
Re:Non so se non crea l'oggetto oppure non carica dalle edittext
« Risposta #14 il: 15 Gennaio 2012, 10:55:37 CET »
0
Io sono moooolto meno pratico di te... :D :D
Ho iniziato da un mesetto a interessarmi al java e ad android.

Questa cosa me l'avevano suggerita un po di tempo fa...

Puoi usare il  Log.w per definire un Warning o un  Log.i per stamparti un informazione nel log che puoi controllare dal DDMS in eclipse.

Praticamente lo scopo è quello di mettere un Log.i sotto ogni riga di codice importante e controllare il funzionamento passo per passo del codice e quello che ti ritorna..

Nel punto dove non ti ritorna quello che vuoi ci sta il problema.. e ti concentri li per risolverlo :D

Log | Android Developers

Spero di essere stato chiaro...

P.s.
Bene ho visto che hai risolto!
Meglio cosi :D
Metti topic risolto :)