0

I am trying to make the notification Led blink in a certain way and when i run the app from Eclipse with my phone connected it works as expected, but when i run it directly from my phone it doesn't work as it should (showing the colors not respecting the order or the while loop). I also have a problem with the main page of the app, it is always black and doesn't show anything on it (like the button i just added) . Now after i added the button i get many markers at the "void onActionPerformed(ActionEvent e1 ){" line :"Action event cannot beresolved to a type", "syntax error on token "(" and ")" expected" and "void is an invalid type for the variable OnActionPerfermed"

How can i fix this errors ?

package com.example.led;


import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import android.view.Menu;
import java.awt.event.ActionEvent;



    public class MainActivity extends Activity {

    @Override

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);





boolean isClicked = false;
void actionPerformed (java.awt.event.ActionEvent e1){
    if(!isClicked){
         isClicked = true;


         int i=0;
         while (i==0){



          Notification notf = new NotificationCompat.Builder(this)

                 .setAutoCancel(false)
                 .setLights(0x0000FF, 5000, 100)
                 .build();

             NotificationManager mNotificationManager =  (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
             mNotificationManager.notify(2, notf);

             try {    Thread.sleep(3000); }
             catch (InterruptedException e) { e.printStackTrace();  }

            NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
            notificationManager.cancel(2);





         Notification notg = new NotificationCompat.Builder(this)
               .setAutoCancel(false)
               .setLights(0xffff00, 5000, 100)                  
               .build();

         NotificationManager nNotificationManager =  (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
         nNotificationManager.notify(3, notg);

          try      { Thread.sleep(3000); }
          catch (InterruptedException e) { e.printStackTrace();}

         NotificationManager notification1Manager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
         notification1Manager.cancel(3);





         Notification noth = new NotificationCompat.Builder(this)
            .setAutoCancel(false)          
            .setLights(0xff0000, 5000, 100)
            .build();

         NotificationManager hNotificationManager =  (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
         hNotificationManager.notify(4, noth);

         try {  Thread.sleep(3000);  } 
         catch (InterruptedException e) {  e.printStackTrace();   }

         NotificationManager notification2Manager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
         notification2Manager.cancel(4);
         }

    }
    else 
         {

         NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
         notificationManager.cancel(2);
         NotificationManager notification1Manager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
         notification1Manager.cancel(3);
         NotificationManager notification2Manager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
         notification2Manager.cancel(4);
         }








    }}

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {

        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

}

Edited by peter_budo: Moving to mobile development

2
Contributors
14
Replies
52
Views
4 Years
Discussion Span
Last Post by mercenar18
0

I just followed an online tutorial, I'm a beginner in android code. What should i change to make it work ?

0

I've managed to use something like onClickListener . When i use it now i have to press the Button, turn the screen off manualy and admire the notification but when i turn thescreen back on the app becomes unresponsive.
Why does the program crash ?

package com.example.led;


//import java.awt.Button;

import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
//import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import android.view.Menu;
import android.view.View;
//import android.view.View.OnClickListener;




    public class MainActivity extends Activity {

    @Override

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


        public void ButtonOnClick(View v) {
            switch (v.getId()) {
              case R.id.button1:
                  int i=0;
                  while (i==0){



                   Notification notf = new NotificationCompat.Builder(this)

                          .setAutoCancel(false)
                          .setLights(0x0000FF, 5000, 100)
                          .build();

                      NotificationManager mNotificationManager =  (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
                      mNotificationManager.notify(2, notf);

                      try {    Thread.sleep(3000); }
                      catch (InterruptedException e) { e.printStackTrace();  }

                     NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
                     notificationManager.cancel(2);





                  Notification notg = new NotificationCompat.Builder(this)
                        .setAutoCancel(false)
                        .setLights(0xffff00, 5000, 100)                  
                        .build();

                  NotificationManager nNotificationManager =  (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
                  nNotificationManager.notify(3, notg);

                   try      { Thread.sleep(3000); }
                   catch (InterruptedException e) { e.printStackTrace();}

                  NotificationManager notification1Manager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
                  notification1Manager.cancel(3);





                  Notification noth = new NotificationCompat.Builder(this)
                    .setAutoCancel(false)          
                    .setLights(0xff0000, 5000, 100)
                    .build();

                  NotificationManager hNotificationManager =  (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
                  hNotificationManager.notify(4, noth);

                  try {  Thread.sleep(3000);  } 
                  catch (InterruptedException e) {  e.printStackTrace();   }

                  NotificationManager notification2Manager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
                  notification2Manager.cancel(4);
                  }





                break;

              }
        }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {

        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

}

Edited by mercenar18

0

You need to replace void actionPerformed (java.awt.event.ActionEvent e1) with some other listener method like onClick where you trigger it by button and button has to be part of application

0

I replaced

void actionPerformed (java.awt.event.ActionEvent e1)

as you can see in the code posted above. Now i have a problem that the app crashes when i turn the screen back on using the above code. How can i fix that ?

Edited by mercenar18

0

[2014-02-16 15:48:54 - Led] R.java was modified manually! Reverting to generated version!

 <Button
        android:id="@+id/button1"
        android:onClick="ButtonOnClick"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/textView1"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="110dp"
        android:text="Button" />

I get a warning at the last line : [I18N] Hardcoded string "Button", should use @string resource

Where should I look for other errors in the program ?

I also noticed that if i remove the try/catch commands the lights turn on/off very very fast not respecting the .setLights(0xffff00,5000, 3000) times. It only uses the color but not the times (ms)

Edited by mercenar18

0

LOL have to laugh on first one. Obviously you are on Eclipse that does give this crap (wouldn't happen with IntelliJ or AndroidStudio). Nevertheless message is specific you have hardcoded text android:text="Button" so you should extract it to strings.xml

As for runtime error Eclipse must have logcat somewhere. Which is what you need to find.

And do not remove try/catch. You could always create run method where you place try/catch and call it each time you make change to Notifications

0

This is my logcat . Can you help me with the errors ?

Attachments
?:??: W/?(?): --------- beginning of /dev/log/system
03-07 15:55:06.470: I/Vold(176): Vold 2.1 (the revenge) firing up
02-16 16:51:12.170: I/SystemServer(780): Entered the Android system server!
02-16 16:51:12.459: I/SystemServer(780): Waiting for installd to be ready.
02-16 16:51:12.459: I/Installer(780): connecting...
02-16 16:51:12.459: I/SystemServer(780): Power Manager
02-16 16:51:12.459: I/SystemServer(780): Activity Manager
02-16 16:51:12.479: I/ActivityManager(780): Memory class: 192
02-16 16:51:12.689: I/IntentFirewall(780): Read new rules (A:0 B:0 S:0)
02-16 16:51:12.699: I/SystemServer(780): Display Manager
02-16 16:51:12.699: I/SystemServer(780): Telephony Registry
02-16 16:51:12.699: I/SystemServer(780): Scheduling Policy
02-16 16:51:12.699: I/DisplayManagerService(780): Display device added: DisplayDeviceInfo{"Built-in Screen": 1080 x 1920, 60.0 fps, density 480, 442.451 x 443.345 dpi, touch INTERNAL, rotation 0, type BUILT_IN, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
02-16 16:51:12.699: I/SystemServer(780): Package Manager
02-16 16:51:12.789: D/SELinuxMMAC(780): Couldn't find install policy /data/security/mac_permissions.xml
02-16 16:51:12.799: D/SELinuxMMAC(780): Using install policy file /system/etc/security/mac_permissions.xml
02-16 16:51:13.229: W/PackageParser(780): No actions in intent filter at /system/priv-app/Contacts.apk Binary XML file line #375
02-16 16:51:13.279: W/PackageParser(780): No actions in intent filter at /system/priv-app/GoogleDialer.apk Binary XML file line #183
02-16 16:51:13.559: W/PackageParser(780): No actions in intent filter at /system/priv-app/SetupWizard.apk Binary XML file line #117
02-16 16:51:13.749: W/PackageParser(780): No actions in intent filter at /system/app/Bluetooth.apk Binary XML file line #210
02-16 16:51:13.979: W/PackageParser(780): Unknown element under <application>: permission at /system/app/GalleryGoogle.apk Binary XML file line #255
02-16 16:51:13.979: W/PackageParser(780): Unknown element under <application>: permission at /system/app/GalleryGoogle.apk Binary XML file line #258
02-16 16:51:14.059: W/PackageParser(780): Unknown element under <manifest>: supports-gl-texture at /system/app/GoogleEarth.apk Binary XML file line #19
02-16 16:51:14.329: W/PackageParser(780): No actions in intent filter at /system/app/OmaDmclient.apk Binary XML file line #31
02-16 16:51:14.329: W/PackageParser(780): No actions in intent filter at /system/app/OmaDmclient.apk Binary XML file line #41
02-16 16:51:14.609: W/PackageParser(780): Unknown element under <application>: uses-permission at /system/app/shutdownlistener.apk Binary XML file line #11
02-16 16:51:14.639: W/PackageParser(780): Unknown element under <application>: enable-feature at /data/app/com.facebook.katana-2.apk Binary XML file line #142
02-16 16:51:16.159: W/PackageManager(780): Package com.shazam.android desires unavailable shared library com.lge.real3d; ignoring!
02-16 16:51:16.239: W/PackageManager(780): Package com.adobe.reader desires unavailable shared library com.sec.android.app.multiwindow; ignoring!
02-16 16:51:16.359: W/PackageManager(780): Package com.whatsapp desires unavailable shared library com.sec.android.app.multiwindow; ignoring!
02-16 16:51:16.679: W/PackageParser(780): No actions in intent filter at /data/app/com.yahoo.mobile.client.android.mail-2.apk Binary XML file line #233
02-16 16:51:16.679: W/PackageParser(780): No actions in intent filter at /data/app/com.yahoo.mobile.client.android.mail-2.apk Binary XML file line #244
02-16 16:51:16.679: W/PackageParser(780): No actions in intent filter at /data/app/com.yahoo.mobile.client.android.mail-2.apk Binary XML file line #255
02-16 16:51:16.679: W/PackageParser(780): No actions in intent filter at /data/app/com.yahoo.mobile.client.android.mail-2.apk Binary XML file line #266
02-16 16:51:16.679: W/PackageParser(780): No actions in intent filter at /data/app/com.yahoo.mobile.client.android.mail-2.apk Binary XML file line #277
02-16 16:51:16.679: W/PackageParser(780): No actions in intent filter at /data/app/com.yahoo.mobile.client.android.mail-2.apk Binary XML file line #288
02-16 16:51:16.679: W/PackageParser(780): No actions in intent filter at /data/app/com.yahoo.mobile.client.android.mail-2.apk Binary XML file line #299
02-16 16:51:16.679: W/PackageParser(780): No actions in intent filter at /data/app/com.yahoo.mobile.client.android.mail-2.apk Binary XML file line #310
02-16 16:51:17.789: W/PackageParser(780): No actions in intent filter at /data/app/com.fdgentertainment.bananakong-2.apk Binary XML file line #31
02-16 16:51:17.929: W/PackageParser(780): Unknown element under <manifest>: activity at /data/app/com.gameloft.android.ANMP.GloftA8HM-1.apk Binary XML file line #27
02-16 16:51:17.929: W/PackageParser(780): Unknown element under <manifest>: activity at /data/app/com.gameloft.android.ANMP.GloftA8HM-1.apk Binary XML file line #29
02-16 16:51:17.929: W/PackageParser(780): Unknown element under <manifest>: activity at /data/app/com.gameloft.android.ANMP.GloftA8HM-1.apk Binary XML file line #32
02-16 16:51:18.189: W/PackageManager(780): Permission glshare.permission.ACCESS_SHARED_DATA from package com.gameloft.android.ANMP.GloftA8HM ignored: original from com.gameloft.android.ANMP.GloftDMHM
02-16 16:51:18.199: W/PackageParser(780): Unknown element under <application>: enable-feature at /data/app/org.zwanoo.android.speedtest-2.apk Binary XML file line #53
02-16 16:51:19.029: W/PackageManager(780): Package com.mobisystems.office desires unavailable shared library com.hp.pps.print.sdk; ignoring!
02-16 16:51:19.029: W/PackageManager(780): Package com.mobisystems.office desires unavailable shared library com.amazon.device.print; ignoring!
02-16 16:51:20.239: I/PackageParser(780): net.dinglisch.android.ipack.crystalhd: compat added android.permission.WRITE_EXTERNAL_STORAGE android.permission.READ_PHONE_STATE
02-16 16:51:20.669: W/PackageManager(780): Package com.mxtech.videoplayer.ad desires unavailable shared library com.sec.android.app.multiwindow; ignoring!
02-16 16:51:20.819: W/PackageManager(780): Package com.google.android.apps.walletnfcrel desires unavailable shared library com.android.nfc_extras; ignoring!
02-16 16:51:20.819: W/PackageManager(780): Package com.adobe.reader desires unavailable shared library com.sec.android.app.multiwindow; ignoring!
02-16 16:51:20.819: W/PackageManager(780): Package com.mxtech.videoplayer.ad desires unavailable shared library com.sec.android.app.multiwindow; ignoring!
02-16 16:51:20.819: W/PackageManager(780): Package com.mobisystems.office desires unavailable shared library com.hp.pps.print.sdk; ignoring!
02-16 16:51:20.819: W/PackageManager(780): Package com.mobisystems.office desires unavailable shared library com.amazon.device.print; ignoring!
02-16 16:51:20.819: W/PackageManager(780): Package com.shazam.android desires unavailable shared library com.lge.real3d; ignoring!
02-16 16:51:20.819: W/PackageManager(780): Package com.whatsapp desires unavailable shared library com.sec.android.app.multiwindow; ignoring!
02-16 16:51:20.819: W/PackageManager(780): Package com.google.android.GoogleCamera desires unavailable shared library com.google.android.gestureservice; ignoring!
02-16 16:51:20.819: I/PackageManager(780): Time to scan packages: 7.735 seconds
02-16 16:51:20.829: W/PackageManager(780): Not granting permission android.permission.BIND_ACCESSIBILITY_SERVICE to package com.roymam.android.nilsplus (protectionLevel=2 flags=0x8be44)
02-16 16:51:20.829: W/PackageManager(780): Unknown permission com.android.smspush.WAPPUSH_MANAGER_BIND in package com.android.phone
02-16 16:51:20.829: W/PackageManager(780): Unknown permission com.android.nfc.permission.NFCEE_ADMIN in package com.google.android.apps.walletnfcrel
02-16 16:51:20.829: W/PackageManager(780): Unknown permission android.permission.ACCESS_SUPERUSER in package com.cellmapper.nexus5fieldtestmode
02-16 16:51:20.829: W/PackageManager(780): Unknown permission com.android.vending.billing.IBillingAccountService.BIND2 in package com.google.android.gsf.login
02-16 16:51:20.829: W/PackageManager(780): Unknown permission com.android.gallery3d.permission.GALLERY_PROVIDER in package com.android.bluetooth
02-16 16:51:20.829: W/PackageManager(780): Unknown permission android.permission.MMS_SEND_OUTBOX_MSG in package com.android.bluetooth
02-16 16:51:20.829: W/PackageManager(780): Not granting permission android.permission.MOUNT_UNMOUNT_FILESYSTEMS to package com.fdgentertainment.bananakong (protectionLevel=18 flags=0x83e44)
02-16 16:51:20.829: W/PackageManager(780): Not granting permission android.permission.SET_ORIENTATION to package com.lima.doodlejump (protectionLevel=2 flags=0x8be44)
02-16 16:51:20.829: W/PackageManager(780): Not granting permission android.permission.DEVICE_POWER to package com.google.android.deskclock (protectionLevel=2 flags=0x48be45)
02-16 16:51:20.829: W/PackageManager(780): Not granting permission android.permission.READ_FRAME_BUFFER to package com.google.android.gms (protectionLevel=18 flags=0x483ec5)
02-16 16:51:20.829: W/PackageManager(780): Unknown permission android.permission.READ_OWNER_DATA in package com.google.android.setupwizard
02-16 16:51:20.829: W/PackageManager(780): Unknown permission android.permission.WRITE_OWNER_DATA in package com.google.android.setupwizard
02-16 16:51:20.829: W/PackageManager(780): Not granting permission android.permission.READ_LOGS to package com.yahoo.mobile.client.android.mail (protectionLevel=50 flags=0x18be44)
02-16 16:51:20.829: W/PackageManager(780): Unknown permission com.android.launcher.permission.READ_SETTINGS in package com.android.settings
02-16 16:51:20.829: W/PackageManager(780): Unknown permission com.android.launcher.permission.WRITE_SETTINGS in package com.android.settings
02-16 16:51:20.829: W/PackageManager(780): Unknown permission com.sprint.internal.permission.SYSTEMPROPERTIES in package com.redbend.vdmc
02-16 16:51:20.829: W/PackageManager(780): Unknown permission com.sprint.internal.permission.SYSTEMPROPERTIES_WRITE in package com.redbend.vdmc
02-16 16:51:20.829:
0

Please delete logcat before or application start up and then make it it crash. Once that achieved post new logcat. (Sorry but I'm not willing to search your logs for error reports as it will include addition stuff like facebook putting stuff in error logs that is irrelevant)

0

This is the shortest log i could make including the error. Thanks again.

Attachments
02-16 19:33:04.934: E/NotificationService(765): Not posting notification with icon==0: Notification(pri=0 contentView=com.example.led/0x1090064 vibrate=null sound=null defaults=0x0 flags=0x11 kind=[null])
02-16 19:33:04.934: E/NotificationService(765): WARNING: In a future release this will crash the app: com.example.led
02-16 19:33:04.934: D/audio_hw_primary(182): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
02-16 19:33:04.954: D/audio_hw_primary(182): select_devices: out_snd_device(2: speaker) in_snd_device(0: )
02-16 19:33:06.264: I/PowerManagerService(765): Going to sleep by user request...
02-16 19:33:06.524: D/SurfaceFlinger(179): Screen released, type=0 flinger=0xb730f450
02-16 19:33:06.524: D/qdhwcomposer(179): hwc_blank: Blanking display: 0
02-16 19:33:06.544: V/KeyguardHostView(875): Initial transport state: 0, pbstate=0
02-16 19:33:06.604: V/KeyguardHostView(875): hide transport, gen:3
02-16 19:33:06.604: V/KeyguardHostView(875): music state changed: 0
02-16 19:33:06.814: D/qdhwcomposer(179): hwc_blank: Done blanking display: 0
02-16 19:33:06.814: D/SurfaceControl(765): Excessive delay in blankDisplay() while turning screen off: 287ms
02-16 19:33:06.844: D/PhoneStatusBar(875): disable: < expand icons alerts ticker system_info BACK* HOME* RECENT* clock search >
02-16 19:33:06.954: D/NiLS+(1107): TYPE_WINDOW_STATE_CHANGED com.android.keyguard
02-16 19:33:06.954: D/NiLS(1270): TYPE_WINDOW_STATE_CHANGED com.android.keyguard
02-16 19:33:06.954: D/NiLS(1107): NPViewManager.show();
02-16 19:33:06.964: D/NiLS(1270): onNotificationPosted
02-16 19:33:07.024: W/ActivityManager(765): Activity pause timeout for ActivityRecord{42d2d498 u0 com.example.led/.MainActivity t6}
02-16 19:33:07.074: D/dalvikvm(1270): GC_FOR_ALLOC freed 333K, 3% free 17274K/17792K, paused 13ms, total 13ms
02-16 19:33:07.934: E/NotificationService(765): Not posting notification with icon==0: Notification(pri=0 contentView=com.example.led/0x1090064 vibrate=null sound=null defaults=0x0 flags=0x11 kind=[null])
02-16 19:33:07.934: E/NotificationService(765): WARNING: In a future release this will crash the app: com.example.led
02-16 19:33:10.984: E/NotificationService(765): Not posting notification with icon==0: Notification(pri=0 contentView=com.example.led/0x1090064 vibrate=null sound=null defaults=0x0 flags=0x11 kind=[null])
02-16 19:33:10.984: E/NotificationService(765): WARNING: In a future release this will crash the app: com.example.led
02-16 19:33:11.534: W/ActivityManager(765): Sleep timeout!  Sleeping now.
02-16 19:33:14.024: E/NotificationService(765): Not posting notification with icon==0: Notification(pri=0 contentView=com.example.led/0x1090064 vibrate=null sound=null defaults=0x0 flags=0x11 kind=[null])
02-16 19:33:14.024: E/NotificationService(765): WARNING: In a future release this will crash the app: com.example.led
02-16 19:33:14.364: D/SurfaceFlinger(179): Screen acquired, type=0 flinger=0xb730f450
02-16 19:33:14.364: D/qdhwcomposer(179): hwc_blank: Unblanking display: 0
02-16 19:33:14.364: V/KeyguardServiceDelegate(765): onScreenTurnedOn(showListener = com.android.internal.policy.impl.PhoneWindowManager$17@42ff1210)
02-16 19:33:14.364: I/PowerManagerService(765): Waking up from sleep...
02-16 19:33:14.404: V/KeyguardServiceDelegate(765): **** SHOWN CALLED ****
02-16 19:33:14.404: I/WindowManager(765): Lock screen displayed!
02-16 19:33:14.604: D/qdhwcomposer(179): hwc_blank: Done unblanking display: 0
02-16 19:33:14.604: D/SurfaceControl(765): Excessive delay in unblankDisplay() while turning screen on: 237ms
02-16 19:33:14.644: D/NiLS(1107): Current app:com.example.led
02-16 19:33:14.644: D/NiLS(1107): NPViewManager.show();
02-16 19:33:14.654: D/NiLS(1270): onNotificationPosted
02-16 19:33:14.764: D/dalvikvm(1270): GC_FOR_ALLOC freed 318K, 3% free 17274K/17792K, paused 12ms, total 12ms
02-16 19:33:14.944: W/GlowPadView(875): The number of target drawables must be equal to the number of direction descriptions.
02-16 19:33:15.084: D/NiLS(1107): NPViewManager.hide();
02-16 19:33:15.114: D/PhoneStatusBar(875): disable: < expand icons alerts ticker system_info back* home* recent* clock search >
02-16 19:33:15.134: D/NiLS(1270): onNotificationRemoved
02-16 19:33:15.134: D/NiLS(1270): onNotificationRemoved: iteration started
02-16 19:33:15.134: D/NiLS(1270): onNotificationRemoved: iteration finished
02-16 19:33:16.114: D/dalvikvm(765): GC_FOR_ALLOC freed 1174K, 10% free 30607K/33876K, paused 55ms, total 55ms
02-16 19:33:16.124: I/dalvikvm-heap(765): Grow heap (frag case) to 30.742MB for 856096-byte allocation
02-16 19:33:16.184: D/dalvikvm(765): GC_FOR_ALLOC freed 32K, 10% free 31410K/34716K, paused 62ms, total 62ms
02-16 19:33:16.204: D/audio_hw_primary(182): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
02-16 19:33:16.214: D/audio_hw_primary(182): select_devices: out_snd_device(2: speaker) in_snd_device(0: )
02-16 19:33:16.254: D/dalvikvm(765): GC_FOR_ALLOC freed 903K, 13% free 30510K/34716K, paused 54ms, total 54ms
02-16 19:33:16.304: D/dalvikvm(765): GC_FOR_ALLOC freed 840K, 13% free 30508K/34716K, paused 48ms, total 48ms
02-16 19:33:16.304: I/ActivityManager(765): START u0 {act=com.android.systemui.recent.action.TOGGLE_RECENTS flg=0x10800000 cmp=com.android.systemui/.recent.RecentsActivity (has extras)} from pid 875
02-16 19:33:16.354: D/dalvikvm(765): GC_FOR_ALLOC freed 5K, 8% free 32182K/34716K, paused 47ms, total 47ms
02-16 19:33:16.384: D/dalvikvm(875): GC_FOR_ALLOC freed 12077K, 55% free 22945K/50820K, paused 23ms, total 23ms
02-16 19:33:16.864: W/ActivityManager(765): Activity pause timeout for ActivityRecord{42d2d498 u0 com.example.led/.MainActivity t6}
02-16 19:33:16.944: I/ActivityManager(765): Displayed com.android.systemui/.recent.RecentsActivity: +84ms
02-16 19:33:17.024: D/NiLS+(1107): TYPE_WINDOW_STATE_CHANGED com.android.systemui
02-16 19:33:17.024: D/NiLS(1270): TYPE_WINDOW_STATE_CHANGED com.android.systemui
02-16 19:33:17.024: D/NiLS(1107): NPViewManager.hide();
02-16 19:33:17.024: E/NotificationService(765): Not posting notification with icon==0: Notification(pri=0 contentView=com.example.led/0x1090064 vibrate=null sound=null defaults=0x0 flags=0x11 kind=[null])
02-16 19:33:17.024: E/NotificationService(765): WARNING: In a future release this will crash the app: com.example.led
02-16 19:33:17.024: W/ActivityManager(765): Activity stop timeout for ActivityRecord{42d2d498 u0 com.example.led/.MainActivity t6}
02-16 19:33:17.024: I/ActivityManager(765): Activity reported stop, but no longer stopping: ActivityRecord{42d2d498 u0 com.example.led/.MainActivity t6}
02-16 19:33:17.154: D/AlarmManagerService(765): Kernel timezone updated to -120 minutes west of GMT
02-16 19:33:17.007: W/(1020): Unable to set rtc to 1392571997: Invalid argument
02-16 19:33:17.154: D/(1020): Setting time of day to sec=1392571997
02-16 19:33:17.017: V/AlarmClock(2599): AlarmInitReceiver android.intent.action.TIME_SET
02-16 19:33:17.037: I/AlarmClock(2599): Displaying next alarm time: ''
02-16 19:33:17.037: V/QcrilMsgTunnelSocket(2064): After reading offset = 0 remaining = 4 countRead = 4
02-16 19:33:17.037: D/QcrilMsgTunnelSocket(2064): messageLength extracted from first 4 inputStream reads = 29
02-16 19:33:17.037: V/QcrilMsgTunnelSocket(2064): offset = 0 remaining = 29 countRead = 0
02-16 19:33:17.037: V/QcrilMsgTunnelSocket(2064): offset = 0 remaining = 29 countRead = 29
02-16 19:33:17.037: D/QcrilMsgTunnelSocket(2064): readRilMessage: Buffer = [B@4261c118 HexData = [0100000004040000110000005155414c434f4d4def0308000100000001]
02-16 19:33:17.037: V/QcrilMsgTunnelSocket(2064): Read packet: 29 bytes. Data Available = 32 Position = 0
02-16 19:33:17.037: D/QcrilMsgTunnelSocket(2064): processResponse. message type = 1. Data Available = 28
02-16 19:33:17.037: D/QcrilMsgTunnelSocket(2064): ByteArray from parcel = 5155414c434f4d4def0308000100000001
02-16 19:33:17.037: D/QcrilMsgTunnelSocket(2064): Received RIL_UNSOL_OEM_HOOK_RAW message
02-16 19:33:17.037: D/QcrilMsgTunnelSocket(2064): Oem ID in RIL_UNSOL_OEM_HOOK_RAW is QUALCOMM
02-16 19:33:17.037: D/QcrilMsgTunnelSocket(2064): OEM ID check Passed
02-16 19:33:17.037: D/QcrilMsgTunnelSocket(2064): Response ID in RIL_UNSOL_OEM_HOOK_RAW is 525295
02-16 19:33:17.037: D/QcrilMsgTunnelSocket(2064): Response ID 525295is not served in this process.
02-16 19:33:17.037: D/QcrilMsgTunnelSocket(2064): To broadcast an Intent via the notifier to external apps
02-16 19:33:17.037: V/QcrilMsgTunnelSocket(2064): Before reading offset = 0 remaining = 4 countRead = 0
02-16 19:33:17.037: D/AlarmManagerService(765): Kernel timezone updated to -120 minutes west of GMT
02-16 19:33:17.037: D/QcrilMsgTunnelIfaceManager(2064): handleMessage what=0
02-16 19:33:17.037: D/QcrilMsgTunnelIfaceManager(2064): Broadcasting intent ACTION_UNSOL_RESPONSE_OEM_HOOK_RAW
02-16 19:33:17.047: V/AlarmClock(2599): AlarmInitReceiver finished
02-16 19:33:17.007: W/(1020): Unable to set rtc to 1392571997: Invalid argument
02-16 19:33:17.047: D/(1020): Setting time of day to sec=1392571997
02-16 19:33:17.017: I/ActivityManager(765): Start proc com.qualcomm.timeservice for broadcast com.qualcomm.timeservice/.TimeServiceBroadcastReceiver: pid=5594 uid=10070 gids={50070}
02-16 19:33:17.027: D/MobileDataStateTracker(765): default: Broadcast received: android.intent.action.ANY_DATA_STATE apnType=default
02-16 19:33:17.027: D/MobileDataStateTracker(765): default: Received state=DISCONNECTED, old=DISCONNECTED, reason=(unspecified)
02-16 19:33:17.047: D/dalvikvm(5594): No JNI_OnLoad found in /vendor/lib/libTimeService.so 0x4261ab98, skipping init
02-16 19:33:17.047: D/TimeService(5594): Receivedandroid.intent.action.TIME_SET intent. Current Time is 1392571997057
02-16 19:33:17.047: D/(5594): TimeServiceNative: User Time to be set is 1392571997057
02-16 19:33:17.047: D/QC-time-services(5594): Lib:time_genoff_operation: pargs->base = 2
02-16 19:33:17.047: D/QC-time-services(5594): Lib:time_genoff_operation: pargs->operation = 0
02-16 19:33:17.047: D/QC-time-services(5594): Lib:time_genoff_operation: pargs->ts_val = 1392571997
0

I do not see any crash reports there. You sure you captured it?
If it is gone easier for you you can always share link to your github project if you using github or just upload zip of your project and I can have look that way.

0

Project RAR

It has 1.4 MB and i can't upload it here. If you have problems downloading tell me and i will find another site.

Edited by mercenar18

0

The strangest thing happened . I installed the sdk on another computer, i imported the old project and now when i plug in the phone, the app runs completly different. What could have happened ?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.