Android App mit Tabs und selbst erstellten Klassen

  • 6 Antworten
  • Letztes Antwortdatum
S

stephan0610

Neues Mitglied
0
Hallo,
Ich bin noch relativ neu in der Java-Programmierung und habe folgendes Problem:

Ich habe eine App programmiert, welche die aktuellen GPS-Koordinaten in eine .txt-Datei speichert. Diese App funktioniert auch wunderbar. Nun sollen aber noch weitere Funktionen hinzukommen, sodass ich die App in verschiedene Tabs unterteilen will.
Den Code für die Tabs habe ich aus einem Beispiel im Internet, welchen ich leicht verändert habe. Soweil läuft auch alles gut (man kann zwischen den Tabs wechseln und die Buttons drücken).

Nun habe ich die Klasse: "GPSlocation" erstellt, welche die Aufgaben der ursprünglichen App Übernehmen soll (also das auslesen der GPS-Koordinaten). Nur sobald im Konstruktor dieser Klasse:
"locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);"
aufgerufen wird, stürzt die App ab.
Ein Objekt der GPSlocation-Klasse wird erzeugt, wenn man im Tab1 auf den Button klickt. Das schreiben in die txt-Datei habe ich erstmal weggelassen.
Kann mir jemand den Grund und einen Lösungsansatz geben, warum die App abstürzt?

MeineApp.java:
Code:
package at.theengine.android.samples.swipetabs;

import java.util.List;
import java.util.Vector;        

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;

import android.view.View;
import android.widget.Button;
import android.widget.TabHost;
import android.widget.TabHost.TabContentFactory;

public class MeineApp extends FragmentActivity  implements TabHost.OnTabChangeListener, ViewPager.OnPageChangeListener {
        
    private TabHost mTabHost;
    private ViewPager mViewPager;
    private PagerAdapter mPagerAdapter;
    protected Button startbutton;
    
    class TabFactory implements TabContentFactory {
        
        private final Context mContext;

        public TabFactory(Context context) {
            mContext = context;
        }

        public View createTabContent(String tag) {
            View v = new View(mContext);
            v.setMinimumWidth(0);
            v.setMinimumHeight(0);
            return v;
        }
    }

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);    
    
        setContentView(R.layout.main);
        
        //restore selected tabpage from state
            
        if (savedInstanceState != null) {
            if(savedInstanceState.getString("tab") != null){
                mTabHost.setCurrentTabByTag(savedInstanceState.getString("tab")); //set the tab as per the saved state
            }
        }
        
        // Intialize viewpager
        setContentView (R.layout.main);
        this.initializeTabHost();
        this.initalizeViewPager();        

        //GPS-Tab configuration    
    }
    //Ende onCreate
    
    /*
     * Saves the currently selected TabPage to state
     */
    protected void onSaveInstanceState(Bundle state) {
        state.putString("tab", mTabHost.getCurrentTabTag());
    }
    /*
     * Initialzes the viewpager
     */
    private void initalizeViewPager() {
        List<Fragment> fragments = new Vector<Fragment>();
        fragments.add(Fragment.instantiate(this, Tab1.class.getName()));
        fragments.add(Fragment.instantiate(this, Tab2.class.getName()));
        fragments.add(Fragment.instantiate(this, Tab3.class.getName()));
        this.mPagerAdapter  = new PagerAdapter(super.getSupportFragmentManager(), fragments);


        this.mViewPager = (ViewPager)super.findViewById(R.id.viewpager);
        this.mViewPager.setAdapter(this.mPagerAdapter);
        this.mViewPager.setOnPageChangeListener(this);
    }
    /*
     * Initializes the tabpages
     */
    private void initializeTabHost() {
        mTabHost = (TabHost)findViewById(android.R.id.tabhost);
        mTabHost.setup();
        MeineApp.AddTab(this, this.mTabHost, this.mTabHost.newTabSpec("Tab1").setIndicator("GPS"));
        MeineApp.AddTab(this, this.mTabHost, this.mTabHost.newTabSpec("Tab2").setIndicator("Akku"));
        MeineApp.AddTab(this, this.mTabHost, this.mTabHost.newTabSpec("Tab3").setIndicator("Einstellungen"));
        mTabHost.setOnTabChangedListener(this);
    }

    /*
     * Adds a tab to the tabhost
     */
    private static void AddTab(MeineApp activity, TabHost tabHost, TabHost.TabSpec tabSpec) {
        tabSpec.setContent(activity.new TabFactory(activity));
        tabHost.addTab(tabSpec);  
    }
    
    /*
     * sets the viewpagers current item to the item of the current tab page
     */
    public void onTabChanged(String tag) {
        int pos = this.mTabHost.getCurrentTab();
        this.mViewPager.setCurrentItem(pos);
    }

    public void onPageScrolled(int position, float positionOffset,
            int positionOffsetPixels) {
        //nothing todo here
    }

    /*
     * Sets current TabPage
     */
    public void onPageSelected(int position) {
        this.mTabHost.setCurrentTab(position);
    }

    public void onPageScrollStateChanged(int state) {
        //nothing to do here
    }
    
    //Ende der Tab-Methoden
}
Tab1.java
Code:
package at.theengine.android.samples.swipetabs;

import android.os.Bundle;

import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;



public class Tab1 extends Fragment{
    boolean dateiaufzeichnunglaeuft = false;
    String filename="";
    
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
                
        final View view = (LinearLayout)inflater.inflate(R.layout.fragment1, container, false); //Erstellen des Fragments für Tab1
        final Button startbutton = (Button) view.findViewById(R.id.GPSstartbutton); //Button in Tab1
        final CheckBox checkboxGPSKoordinaten =(CheckBox) view.findViewById(R.id.checkBox1);
        final CheckBox checkboxZeit =(CheckBox) view.findViewById(R.id.checkBox2);
        final CheckBox checkboxCellId =(CheckBox) view.findViewById(R.id.checkBox3);
        final CheckBox checkboxVerbindungsart =(CheckBox) view.findViewById(R.id.checkBox4);     
        
        startbutton.setOnClickListener(new View.OnClickListener() {                    //OnClickListener für Button in Tab1
                public void onClick(View v) {
                                        
                    TextView textView1 =(TextView) view.findViewById(R.id.textView1); //textView1 in Tab1
                    if(textView1.getText() == ""){
                        
                        [COLOR=Orange]GPSlocation gpslocation = new GPSlocation();[/COLOR]                    
                        textView1.setText(gpslocation.getfilename());
                        
                        startbutton.setText("Deaktivieren");
                        checkboxGPSKoordinaten.setEnabled(false);
                        checkboxZeit.setEnabled(false);
                        checkboxCellId.setEnabled(false);
                        checkboxVerbindungsart.setEnabled(false);                        
                    }else
                    {              
                        textView1.setText("");
                        startbutton.setText("Aktivieren");
                        checkboxGPSKoordinaten.setEnabled(true);
                        checkboxZeit.setEnabled(true);
                        checkboxCellId.setEnabled(true);
                        checkboxVerbindungsart.setEnabled(true);
                    }               
                }
        });
        return view;

    }    
             
}
GPSlocation.java:
Code:
package at.theengine.android.samples.swipetabs;

import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.telephony.gsm.GsmCellLocation;
import android.widget.TextView;
import android.widget.Toast;

public class GPSlocation extends Activity  {
    
    private static final long MINIMUM_DISTANCE_CHANGE_FOR_UPDATES = 1; // in Meters
    private static final long MINIMUM_TIME_BETWEEN_UPDATES = 1000; // in Milliseconds   
    public LocationManager locationManager;
    public TelephonyManager tm;
    public GsmCellLocation GSMlocation;
    public int cid;
    
    boolean dateiaufzeichnunglaeuft = false;
    String filename="filename GPSclass nicht geändert";
    
    
    protected GPSlocation (){  
        Savefile savefile = new Savefile();    
        filename=savefile.filename;    
        [COLOR=Red]locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
        locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,MINIMUM_TIME_BETWEEN_UPDATES,MINIMUM_DISTANCE_CHANGE_FOR_UPDATES,new MyLocationListener());  
         tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);[/COLOR]
    }
    
    
    protected String getfilename()
    {        
        return filename;
    }
    
    protected void onCreate(Bundle savedInstanceState){
      //  Toast.makeText(GPSlocation.this,"onCreate lief durch...", Toast.LENGTH_LONG).show();
    }
    
    protected String getlatitude(Location location){
        return String.valueOf(location.getLatitude());
    }
    
    public class MyLocationListener implements LocationListener {
         
        public void onLocationChanged(Location location) {    
            GSMlocation = (GsmCellLocation) tm.getCellLocation();
            cid = GSMlocation.getCid();
            TextView text = (TextView) findViewById(R.id.textView2);
            text.setText("Latitude: "+ String.valueOf(location.getLatitude()) + ",\nLongitude: " + String.valueOf(location.getLongitude())+"\nCell Id: "+String.valueOf(cid));        
            if(dateiaufzeichnunglaeuft==true)
            {
                Savefile file= new Savefile();
                text.setText("Latitude: "+ String.valueOf(location.getLatitude()) + ",\nLongitude: " + String.valueOf(location.getLongitude())+"\n"+ "Datei: " +filename+"\nNetworktype:"+String.valueOf(tm.getNetworkType()) +"\nCell Id:"+String.valueOf(cid));
                file.SaveGPSfile(String.valueOf(location.getTime()) + ":" + String.valueOf(location.getLatitude()) + "," + String.valueOf(location.getLongitude())+":" +String.valueOf(tm.getNetworkType()) +":" + String.valueOf(cid)+"\n");
            }
        }
        
        public void onStatusChanged(String s, int i, Bundle b) {
                Toast.makeText(GPSlocation.this, "Provider status changed",Toast.LENGTH_LONG).show();
       }
 
        public void onProviderDisabled(String s) {
                Toast.makeText(GPSlocation.this,"Provider disabled by the user. GPS turned off", Toast.LENGTH_LONG).show();
            }
 
            public void onProviderEnabled(String s) {
                Toast.makeText(GPSlocation.this,"Provider enabled by the user. GPS turned on",Toast.LENGTH_LONG).show();
        }
 
    }

}
PagerAdapter.java:
Code:
package at.theengine.android.samples.swipetabs;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class PagerAdapter extends FragmentPagerAdapter {

    private List<Fragment> fragments;

    public PagerAdapter(FragmentManager fm, List<Fragment> fragments) {
        super(fm);
        this.fragments = fragments;
    }

    @Override
    public Fragment getItem(int position) {
        return this.fragments.get(position);
    }
    
    @Override
    public int getCount() {
        return this.fragments.size();
    }
}
Android Manifest:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="at.theengine.android.samples.swipetabs"
    android:versionCode="1"
    android:versionName="1.0" >
    
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permisssion.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permissoin.PHONE_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>

    <uses-sdk android:minSdkVersion="8" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".MeineApp"
            android:label="@string/app_name" >            
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
Vielen Dank für die Hilfe.
 
bitte zeig uns doch mal was dein logcat sagt :)achja und was du unbedingt machen musst, du musst die Klasse GPSlocation in dein Manifest eintragen als Activity.
ungefähr so:
< ' activity android:name=".ACTIVITYNAME" ' >lass aber bitte die ' weg ... anders kann ich den codeschnipsel nicht hier posten sorry das code tag geht irgendwie nicht
 
Hallo,
so ich habe die Klasse GPSlocation nun ins Manifest eingetragen. Aber lieder stürzt die App immer noch ab.
Hier mal das logcat:

Code:
10-01 08:50:51.435: D/AndroidRuntime(4221): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
10-01 08:50:51.435: D/AndroidRuntime(4221): CheckJNI is OFF
10-01 08:50:51.435: D/AndroidRuntime(4221): setted country_code = Germany
10-01 08:50:51.435: D/AndroidRuntime(4221): setted sales_code = DBT
10-01 08:50:51.435: D/AndroidRuntime(4221): found sales_code tag = <DBT>, </DBT> 
10-01 08:50:51.435: D/dalvikvm(4221): creating instr width table
10-01 08:50:51.535: D/LibQmg_native(4221): register_android_app_LibQmg
10-01 08:50:51.535: D/DeviceEncryption(4221): JNI: register_android_deviceencryption_DeviceEncryptionManager
10-01 08:50:51.560: D/AndroidRuntime(4221): Calling main entry com.android.commands.pm.Pm
10-01 08:50:51.595: D/dalvikvm(3804): GC_EXPLICIT freed 12K, 54% free 2520K/5379K, external 0K/0K, paused 16ms
10-01 08:50:51.595: D/VoldCmdListener(2565): volume aseced /mnt/sdcard/external_sd
10-01 08:50:51.600: I/DmAppInfo(2690): getApplicationsList found row counts : 0 For Pkg : at.theengine.android.samples.swipetabs
10-01 08:50:51.600: D/MountService(2690): getAsecVolumeState :: result = unmounted
10-01 08:50:51.625: D/dalvikvm(3804): GC_EXPLICIT freed 3K, 54% free 2518K/5379K, external 0K/0K, paused 19ms
10-01 08:50:51.625: D/VoldCmdListener(2565): volume aseced /mnt/sdcard/external_sd
10-01 08:50:51.625: D/MountService(2690): getAsecVolumeState :: result = unmounted
10-01 08:50:51.625: W/ActivityManager(2690): No content provider found for: 
10-01 08:50:51.630: W/ActivityManager(2690): No content provider found for: 
10-01 08:50:51.635: D/PackageParser(2690): Scanning package: /data/app/vmdl782464571.tmp
10-01 08:50:51.690: I/PackageManager(2690): Removing non-system package:at.theengine.android.samples.swipetabs
10-01 08:50:51.690: I/ActivityManager(2690): Force stopping package at.theengine.android.samples.swipetabs uid=10115
10-01 08:50:51.775: D/dalvikvm(2690): GC_CONCURRENT freed 1146K, 39% free 7075K/11591K, external 4812K/5922K, paused 2ms+4ms
10-01 08:50:51.795: D/PackageManager(2690): Scanning package at.theengine.android.samples.swipetabs
10-01 08:50:51.795: D/installd(2576): DexInv: --- BEGIN '/data/app/at.theengine.android.samples.swipetabs-2.apk' ---
10-01 08:50:51.795: I/PackageManager(2690): Package at.theengine.android.samples.swipetabs codePath changed from /data/app/at.theengine.android.samples.swipetabs-1.apk to /data/app/at.theengine.android.samples.swipetabs-2.apk; Retaining data and using new
10-01 08:50:51.795: I/PackageManager(2690): Unpacking native libraries for /data/app/at.theengine.android.samples.swipetabs-2.apk
10-01 08:50:51.820: D/dalvikvm(4248): creating instr width table
10-01 08:50:51.940: D/dalvikvm(4248): DexOpt: load 15ms, verify+opt 84ms
10-01 08:50:52.045: D/installd(2576): DexInv: --- END '/data/app/at.theengine.android.samples.swipetabs-2.apk' (success) ---
10-01 08:50:52.045: D/PackageManager(2690):   Activities: at.theengine.android.samples.swipetabs.SFB876 at.theengine.android.samples.swipetabs.GPSlocation
10-01 08:50:52.045: I/ActivityManager(2690): Force stopping package at.theengine.android.samples.swipetabs uid=10115
10-01 08:50:52.045: W/PackageManager(2690): Code path for pkg : at.theengine.android.samples.swipetabs changing from /data/app/at.theengine.android.samples.swipetabs-1.apk to /data/app/at.theengine.android.samples.swipetabs-2.apk
10-01 08:50:52.045: W/PackageManager(2690): Resource path for pkg : at.theengine.android.samples.swipetabs changing from /data/app/at.theengine.android.samples.swipetabs-1.apk to /data/app/at.theengine.android.samples.swipetabs-2.apk
10-01 08:50:52.145: I/installd(2576): move /data/dalvik-cache/data@app@at.theengine.android.samples.swipetabs-2.apk@classes.dex -> /data/dalvik-cache/data@app@at.theengine.android.samples.swipetabs-2.apk@classes.dex
10-01 08:50:52.145: D/PackageManager(2690): New package installed in /data/app/at.theengine.android.samples.swipetabs-2.apk
10-01 08:50:52.145: W/PackageManager(2690): Unknown permission android.permisssion.WRITE_EXTERNAL_STORAGE in package at.theengine.android.samples.swipetabs
10-01 08:50:52.145: W/PackageManager(2690): Unknown permission android.permissoin.PHONE_STATE in package at.theengine.android.samples.swipetabs
10-01 08:50:52.380: I/ActivityManager(2690): Force stopping package at.theengine.android.samples.swipetabs uid=10115
10-01 08:50:52.455: W/PackageManager(2690): Unable to load service info ResolveInfo{40997470 com.smlds.smlStartService p=0 o=0 m=0x108000}
10-01 08:50:52.455: W/PackageManager(2690): org.xmlpull.v1.XmlPullParserException: No android.accounts.AccountAuthenticator meta-data
10-01 08:50:52.455: W/PackageManager(2690):     at android.content.pm.RegisteredServicesCache.parseServiceInfo(RegisteredServicesCache.java:391)
10-01 08:50:52.455: W/PackageManager(2690):     at android.content.pm.RegisteredServicesCache.generateServicesMap(RegisteredServicesCache.java:260)
10-01 08:50:52.455: W/PackageManager(2690):     at android.content.pm.RegisteredServicesCache$1.onReceive(RegisteredServicesCache.java:110)
10-01 08:50:52.455: W/PackageManager(2690):     at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
10-01 08:50:52.455: W/PackageManager(2690):     at android.os.Handler.handleCallback(Handler.java:587)
10-01 08:50:52.455: W/PackageManager(2690):     at android.os.Handler.dispatchMessage(Handler.java:92)
10-01 08:50:52.455: W/PackageManager(2690):     at android.os.Looper.loop(Looper.java:123)
10-01 08:50:52.455: W/PackageManager(2690):     at com.android.server.ServerThread.run(SystemServer.java:724)
10-01 08:50:52.470: D/dalvikvm(2871): GC_EXPLICIT freed 203K, 46% free 3808K/6983K, external 11937K/12813K, paused 76ms
10-01 08:50:52.495: E/SocialHub(3843): [UinboxReceiver] onReceive() >> Context is android.app.ReceiverRestrictedContext@4053dab8
10-01 08:50:52.495: D/SocialHub(3843): [UinboxReceiver]  On Receive  >>  ContentUri is NULL >>
10-01 08:50:52.495: I/SocialHub(3843): [UinboxReceiver] onReceive() >> ==============================================
10-01 08:50:52.495: I/SocialHub(3843): [UinboxReceiver] onReceive() >>     UinboxBroadCastReceiver() 
10-01 08:50:52.495: I/SocialHub(3843): [UinboxReceiver] onReceive() >>     intent.getAction() :  android.intent.action.PACKAGE_REMOVED
10-01 08:50:52.495: I/SocialHub(3843): [UinboxReceiver] onReceive() >>   intent.getData() : at.theengine.android.samples.swipetabs
10-01 08:50:52.495: I/SocialHub(3843): [UinboxReceiver] onReceive() >> ==============================================
10-01 08:50:52.510: D/UNA(3720): The Package is not preload
10-01 08:50:52.525: D/dalvikvm(2971): GC_EXPLICIT freed 258K, 52% free 2782K/5703K, external 0K/0K, paused 107ms
10-01 08:50:52.595: D/dalvikvm(2690): GC_EXPLICIT freed 735K, 40% free 6960K/11591K, external 4742K/5922K, paused 73ms
10-01 08:50:52.595: I/SevenBroadCastReceiver(3458): ==============================================
10-01 08:50:52.595: I/SevenBroadCastReceiver(3458):     SevenBroadCastReceiver.onReceive() 
10-01 08:50:52.595: I/SevenBroadCastReceiver(3458):     intent.getAction() :  android.intent.action.PACKAGE_REMOVED
10-01 08:50:52.595: I/SevenBroadCastReceiver(3458): ==============================================
10-01 08:50:52.595: D/SevenBroadCastReceiver(3458): getBooleanExtra = false
10-01 08:50:52.600: I/installd(2576): unlink /data/dalvik-cache/data@app@at.theengine.android.samples.swipetabs-1.apk@classes.dex
10-01 08:50:52.600: D/AndroidRuntime(4221): Shutting down VM
10-01 08:50:52.605: D/dalvikvm(4221): GC_CONCURRENT freed 105K, 70% free 315K/1024K, external 0K/0K, paused 0ms+0ms
10-01 08:50:52.610: D/jdwp(4221): Got wake-up signal, bailing out of select
10-01 08:50:52.610: D/dalvikvm(4221): Debugger has detached; object registry had 1 entries
10-01 08:50:52.610: I/AndroidRuntime(4221): NOTE: attach of thread 'Binder Thread #3' failed
10-01 08:50:52.615: W/PackageManager(2690): Unable to load service info ResolveInfo{40a520d8 com.smlds.smlStartService p=0 o=0 m=0x108000}
10-01 08:50:52.615: W/PackageManager(2690): org.xmlpull.v1.XmlPullParserException: No android.accounts.AccountAuthenticator meta-data
10-01 08:50:52.615: W/PackageManager(2690):     at android.content.pm.RegisteredServicesCache.parseServiceInfo(RegisteredServicesCache.java:391)
10-01 08:50:52.615: W/PackageManager(2690):     at android.content.pm.RegisteredServicesCache.generateServicesMap(RegisteredServicesCache.java:260)
10-01 08:50:52.615: W/PackageManager(2690):     at android.content.pm.RegisteredServicesCache$1.onReceive(RegisteredServicesCache.java:110)
10-01 08:50:52.615: W/PackageManager(2690):     at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
10-01 08:50:52.615: W/PackageManager(2690):     at android.os.Handler.handleCallback(Handler.java:587)
10-01 08:50:52.615: W/PackageManager(2690):     at android.os.Handler.dispatchMessage(Handler.java:92)
10-01 08:50:52.615: W/PackageManager(2690):     at android.os.Looper.loop(Looper.java:123)
10-01 08:50:52.615: W/PackageManager(2690):     at com.android.server.ServerThread.run(SystemServer.java:724)
10-01 08:50:52.635: D/InstallReceiver(3833): at.theengine.android.samples.swipetabs
10-01 08:50:52.655: D/szipinf(2690): Initializing inflate state
10-01 08:50:52.665: I/DebugFolder(2871): Syncing with com.sec.android.app.twlauncher.ApplicationsAdapter@40570ba0
10-01 08:50:52.715: D/UNA(3720): The Package is not preload
10-01 08:50:52.745: W/ResourceType(2690): Failure getting entry for 0x7f02000f (t=1 e=15) in package 0 (error -75)
10-01 08:50:52.745: I/DebugDb(2871): UpdateDBTask Begin Saving to DB
10-01 08:50:52.745: I/DebugFolder(2871): saveToDBwithInfos: Save Folder Data To DB 2
10-01 08:50:52.745: I/DebugDb(2871): Update app info -1 com.sec.android.app.twlauncher.ApplicationInfo SFB 876 -1 3 10 72|-1|-1|-1|-1|0
10-01 08:50:52.760: I/DebugDb(2871): UpdateDBTask End Saving to DB true
10-01 08:50:52.760: I/DebugDb(2871): UpdateDBTask Close DB
10-01 08:50:52.830: D/AndroidRuntime(4254): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
10-01 08:50:52.830: D/AndroidRuntime(4254): CheckJNI is OFF
10-01 08:50:52.830: D/AndroidRuntime(4254): setted country_code = Germany
10-01 08:50:52.830: D/AndroidRuntime(4254): setted sales_code = DBT
10-01 08:50:52.830: D/AndroidRuntime(4254): found sales_code tag = <DBT>, </DBT> 
10-01 08:50:52.830: D/dalvikvm(4254): creating instr width table
10-01 08:50:52.905: D/LibQmg_native(4254): register_android_app_LibQmg
10-01 08:50:52.905: D/DeviceEncryption(4254): JNI: register_android_deviceencryption_DeviceEncryptionManager
10-01 08:50:52.930: D/AndroidRuntime(4254): Calling main entry com.android.commands.am.Am
10-01 08:50:52.930: I/ActivityManager(2690): Force stopping package at.theengine.android.samples.swipetabs uid=10115
10-01 08:50:52.930: I/ActivityManager(2690): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=at.theengine.android.samples.swipetabs/.SFB876 } from pid 4254
10-01 08:50:52.940: D/AndroidRuntime(4254): Shutting down VM
10-01 08:50:52.945: D/dalvikvm(4254): GC_CONCURRENT freed 106K, 67% free 345K/1024K, external 0K/0K, paused 0ms+2ms
10-01 08:50:52.945: D/dalvikvm(4254): Debugger has detached; object registry had 1 entries
10-01 08:50:52.955: E/com.samsung.app(3556): [MSC]>>> WeatherWidgetProvider.java:303 [0:0] onReceive()@@@ sec.android.intent.action.HOME_PAUSE
10-01 08:50:52.955: E/com.samsung.app(3556): [MSC]>>> WidgetIdManager.java:39 [0:0] AccuWeatherClockWidgetID_Length
10-01 08:50:52.955: E/com.samsung.app(3556): [MSC]>>> WidgetIdManager.java:40 [0:0] getPrefIDs() : length = 1
10-01 08:50:52.955: E/com.samsung.app(3556): [MSC]>>> WidgetIdManager.java:46 [0:0] getPrefIDs() : Ids1 = 1
10-01 08:50:52.955: E/com.samsung.app(3556): [MSC]>>> WeatherWidgetProvider.java:1511 [0:0] disable handler
10-01 08:50:52.955: E/com.samsung.app(3556): [MSC]>>> WeatherWidgetProvider.java:1513 [0:0] handler not null
10-01 08:50:52.965: I/ActivityManager(2690): Start proc at.theengine.android.samples.swipetabs for activity at.theengine.android.samples.swipetabs/.SFB876: pid=4263 uid=10115 gids={}
10-01 08:50:52.975: D/PhotoAppWidgetProvider(3562): OnReceive Start
10-01 08:50:52.975: D/PhotoAppWidgetProvider(3562): PauseSlideShow Start
10-01 08:50:52.980: D/CalendarAppWidgetProviderAgenda(3129): ACTION_HOME_PAUSE: false
10-01 08:50:53.010: D/SecretWallpaper(2824): Engine pause
10-01 08:50:53.010: W/ActivityThread(4263): Application at.theengine.android.samples.swipetabs is waiting for the debugger on port 8100...
10-01 08:50:53.015: I/System.out(4263): Sending WAIT chunk
10-01 08:50:53.030: I/dalvikvm(4263): Debugger is active
10-01 08:50:53.065: I/DEBUG(2568): tid 4262 does not exist in pid 4254. ignoring debug request
10-01 08:50:53.215: I/System.out(4263): Debugger has connected
10-01 08:50:53.215: I/System.out(4263): waiting for debugger to settle...
10-01 08:50:53.414: I/System.out(4263): waiting for debugger to settle...
10-01 08:50:53.615: I/System.out(4263): waiting for debugger to settle...
10-01 08:50:53.815: I/System.out(4263): waiting for debugger to settle...
10-01 08:50:53.970: I/InputReader(2690): dispatchTouch::touch event's action is 0
10-01 08:50:53.985: I/InputDispatcher(2690): Delivering touch to current input target: action: 0, channel '40889f08 Keyguard (server)'
10-01 08:50:53.985: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:53.985: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:53.985: E/lights(2690): write_int: path /sys/devices/virtual/misc/melfas_touchkey/brightness, value 1
10-01 08:50:53.985: I/PowerManagerService(2690): Ulight 3->7|0
10-01 08:50:53.985: D/PowerManagerService(2690): setLightBrightness : mButtonLight : 69
10-01 08:50:53.990: D/GlassLockScreenMusicWidget(2690): setControllerVisibility() : bIsVisible=false, mVisibleLayout=false
10-01 08:50:53.990: D/GlassLockScreenMusicWidget(2690): removeMinTimer()
10-01 08:50:54.015: I/System.out(4263): waiting for debugger to settle...
10-01 08:50:54.090: W/GlassLockScreen(2690): mStartLockAnimation()
10-01 08:50:54.170: D/dalvikvm(2690): GC_EXTERNAL_ALLOC freed 500K, 40% free 7013K/11591K, external 5136K/5922K, paused 72ms
10-01 08:50:54.215: I/System.out(4263): waiting for debugger to settle...
10-01 08:50:54.260: D/dalvikvm(2690): GC_EXTERNAL_ALLOC freed 83K, 41% free 6930K/11591K, external 7608K/7716K, paused 46ms
10-01 08:50:54.325: I/InputReader(2690): dispatchTouch::touch event's action is 1
10-01 08:50:54.325: I/InputDispatcher(2690): Delivering touch to current input target: action: 1, channel '40889f08 Keyguard (server)'
10-01 08:50:54.350: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:54.350: D/GlassLockScreenMusicWidget(2690): setControllerVisibility() : bIsVisible=true, mVisibleLayout=false
10-01 08:50:54.405: I/InputReader(2690): dispatchTouch::touch event's action is 0
10-01 08:50:54.405: I/InputDispatcher(2690): Delivering touch to current input target: action: 0, channel '40889f08 Keyguard (server)'
10-01 08:50:54.420: I/System.out(4263): waiting for debugger to settle...
10-01 08:50:54.425: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:54.425: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:54.425: D/GlassLockScreenMusicWidget(2690): setControllerVisibility() : bIsVisible=false, mVisibleLayout=false
10-01 08:50:54.425: D/GlassLockScreenMusicWidget(2690): removeMinTimer()
10-01 08:50:54.450: I/InputReader(2690): dispatchTouch::touch event's action is 1
10-01 08:50:54.450: I/InputDispatcher(2690): Delivering touch to current input target: action: 1, channel '40889f08 Keyguard (server)'
10-01 08:50:54.450: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:54.450: D/GlassLockScreenMusicWidget(2690): setControllerVisibility() : bIsVisible=true, mVisibleLayout=false
10-01 08:50:54.620: I/System.out(4263): waiting for debugger to settle...
10-01 08:50:54.724: E/lights(2690): write_int: path /sys/class/leds/keyboard-backlight/brightness, value 0
10-01 08:50:54.724: D/PowerManagerService(2690): onSensorChanged: light value: 100
10-01 08:50:54.724: D/PowerManagerService(2690): lightSensorChangedLocked 100
10-01 08:50:54.724: D/PowerManagerService(2690): lcdValue 69
10-01 08:50:54.724: D/PowerManagerService(2690): buttonValue 0
10-01 08:50:54.724: D/PowerManagerService(2690): keyboardValue 0
10-01 08:50:54.819: I/System.out(4263): waiting for debugger to settle...
10-01 08:50:55.020: I/System.out(4263): debugger has settled (1302)
10-01 08:50:55.140: D/dalvikvm(4263): GC_EXTERNAL_ALLOC freed 53K, 53% free 2532K/5379K, external 0K/0K, paused 21ms
10-01 08:50:55.230: I/InputReader(2690): dispatchTouch::touch event's action is 0
10-01 08:50:55.230: I/InputDispatcher(2690): Delivering touch to current input target: action: 0, channel '40889f08 Keyguard (server)'
10-01 08:50:55.245: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.245: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.245: D/GlassLockScreenMusicWidget(2690): setControllerVisibility() : bIsVisible=false, mVisibleLayout=false
10-01 08:50:55.245: D/GlassLockScreenMusicWidget(2690): removeMinTimer()
10-01 08:50:55.280: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.280: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.280: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=18.027756377319946, alpha=
10-01 08:50:55.330: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.330: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.330: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=55.44366510251645, alpha=
10-01 08:50:55.380: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.380: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.385: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=92.07062506576133, alpha=
10-01 08:50:55.430: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.430: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.430: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=132.67252918370102, alpha=
10-01 08:50:55.480: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.480: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.480: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=180.24982662959764, alpha=
10-01 08:50:55.510: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.510: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.510: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=205.5723716845238, alpha=
10-01 08:50:55.555: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.555: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.555: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=241.8098426450007, alpha=
10-01 08:50:55.575: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.575: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.575: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=276.68212808202844, alpha=
10-01 08:50:55.590: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.590: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.590: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=292.15406894308353, alpha=
10-01 08:50:55.605: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.605: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.605: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=305.45212390815027, alpha=
10-01 08:50:55.620: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.620: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.620: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=322.0636583037583, alpha=
10-01 08:50:55.620: E/GlassLockScreen(2690): Threshold is reached. goToUnlockScreen !!
10-01 08:50:55.620: D/KeyguardViewMediator(2690): keyguardDone(true)
10-01 08:50:55.635: D/KeyguardViewMediator(2690): handleKeyguardDone
10-01 08:50:55.635: D/KeyguardViewMediator(2690): handleHide
10-01 08:50:55.635: D/KeyguardViewMediator(2690): adjustUserActivityLocked mShowing: false mHidden: false
10-01 08:50:55.635: E/lights(2690): write_int: path /sys/devices/virtual/misc/melfas_touchkey/brightness, value 2
10-01 08:50:55.635: D/PowerManagerService(2690): enableUserActivity true
10-01 08:50:55.635: D/StatusBarManagerService(2690): manageDisableList what=0x0 pkg=android
10-01 08:50:55.635: I/PowerManagerService(2690): Ulight 7->3|0
10-01 08:50:55.635: D/PowerManagerService(2690): setLightBrightness : mButtonLight : 0
10-01 08:50:55.640: E/KeyguardViewMediator(2690): Phone is boot completed. so can broadcast
10-01 08:50:55.650: E/MTPRx(3585): In MtpReceiverandroid.intent.action.USER_PRESENT
10-01 08:50:55.655: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.655: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.655: E/lights(2690): write_int: path /sys/devices/virtual/misc/melfas_touchkey/brightness, value 1
10-01 08:50:55.655: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=334.7177915797127, alpha=
10-01 08:50:55.655: I/PowerManagerService(2690): Ulight 3->7|0
10-01 08:50:55.655: D/PowerManagerService(2690): setLightBrightness : mButtonLight : 69
10-01 08:50:55.660: I/OrientationDebug(2690): [pwm] in updateOrientationListenerLp()
10-01 08:50:55.660: I/OrientationDebug(2690): [pwm] needSensorRunningLp(), return true #4
10-01 08:50:55.690: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.690: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.695: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=346.56024007378574, alpha=
10-01 08:50:55.695: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.695: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.695: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=373.5264381539813, alpha=
10-01 08:50:55.710: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.710: D/KeyguardViewMediator(2690): pokeWakelock(5000)
10-01 08:50:55.710: E/GlassLockScreen(2690): onTouchEvent() : threshold=320.0, distance=377.47715162642623, alpha=
10-01 08:50:55.750: W/MTPRx(3585): Result for phone lock status in ACTION USER PRESENTtrue
10-01 08:50:55.750: I/InputReader(2690): dispatchTouch::touch event's action is 1
10-01 08:50:55.750: I/InputDispatcher(2690): Delivering touch to current input target: action: 1, channel '40889f08 Keyguard (server)'
10-01 08:50:55.750: D/GlassLockScreen(2690): onTouchEvent()
10-01 08:50:55.750: D/PowerManagerService(2690): setScreenOffTimeoutsLocked() : userActivity()
10-01 08:50:55.750: D/PowerManagerService(2690): setScreenOffTimeouts mKeylightDelay=6000 mDimDelay=587000 mScreenOffDelay=7000 mDimScreen=true
10-01 08:50:55.755: E/MTPRX(3585): Internal SDcard is available
10-01 08:50:55.755: E/MTPRx(3585): file kieswifi.dat is not found
10-01 08:50:55.755: E/MTPRX(3585): Battery charging. plugType = 2
10-01 08:50:55.755: E/MTPRx(3585): USB charging
10-01 08:50:55.755: E/MTPRx(3585): usb is connected, set value in Settings.System, result = true
10-01 08:50:55.755: E/MTPRx(3585): usb mode = 0
10-01 08:50:55.755: E/MTPRx(3585): usb debugging is enabled
10-01 08:50:55.825: D/CLIPBOARD(2690): Hide Clipboard dialog inside windowGainedFocus() !
10-01 08:50:55.825: W/InputManagerService(2690): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@40649600 (uid=10012 pid=2871)
10-01 08:50:55.885: I/ActivityManager(2690): Displayed at.theengine.android.samples.swipetabs/.SFB876: +2s928ms
10-01 08:50:55.890: D/CLIPBOARD(4263): Hide Clipboard dialog at Starting input: finished by someone else... !
10-01 08:50:56.120: D/PowerManagerService(2690): onSensorChanged: light value: 100
10-01 08:50:56.135: D/GlassLockScreenMusicWidget(2690): onPause()
10-01 08:50:56.135: D/GlassLockScreenMusicWidget(2690): stopMarguee()
10-01 08:50:56.135: D/GlassLockScreenMissedEventWidget(2690): onPause()
10-01 08:50:56.135: D/GlassLockScreenMusicWidget(2690): cleanUp()
10-01 08:50:56.135: D/GlassLockScreenMusicWidget(2690): stopMarguee()
10-01 08:50:56.135: D/GlassLockScreenMissedEventWidget(2690): cleanUp()
10-01 08:50:56.135: D/LockscreenWallpaperUpdater(2690): cleanUp()
10-01 08:50:56.140: D/LockscreenWallpaperUpdater(2690): cleanUp()
10-01 08:50:56.700: I/InputReader(2690): dispatchTouch::touch event's action is 0
10-01 08:50:56.700: I/InputDispatcher(2690): Delivering touch to current input target: action: 0, channel '408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 (server)'
10-01 08:50:56.810: I/InputReader(2690): dispatchTouch::touch event's action is 1
10-01 08:50:56.810: I/InputDispatcher(2690): Delivering touch to current input target: action: 1, channel '408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 (server)'
10-01 08:50:57.140: D/GlassLockScreenMusicWidget(2690): handleStopMarquee()
10-01 08:50:57.890: I/InputReader(2690): dispatchTouch::touch event's action is 0
10-01 08:50:57.890: I/InputDispatcher(2690): Delivering touch to current input target: action: 0, channel '408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 (server)'
10-01 08:50:58.015: I/InputReader(2690): dispatchTouch::touch event's action is 1
10-01 08:50:58.015: I/InputDispatcher(2690): Delivering touch to current input target: action: 1, channel '408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 (server)'
10-01 08:50:58.794: I/InputReader(2690): dispatchTouch::touch event's action is 0
10-01 08:50:58.794: I/InputDispatcher(2690): Delivering touch to current input target: action: 0, channel '408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 (server)'
10-01 08:50:58.920: I/InputReader(2690): dispatchTouch::touch event's action is 1
10-01 08:50:58.920: I/InputDispatcher(2690): Delivering touch to current input target: action: 1, channel '408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 (server)'
10-01 08:50:58.925: D/PowerManagerService(2690): onSensorChanged: light value: 100
10-01 08:50:59.615: I/InputReader(2690): dispatchTouch::touch event's action is 0
10-01 08:50:59.619: I/InputDispatcher(2690): Delivering touch to current input target: action: 0, channel '408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 (server)'
10-01 08:50:59.710: I/InputReader(2690): dispatchTouch::touch event's action is 1
10-01 08:50:59.710: I/InputDispatcher(2690): Delivering touch to current input target: action: 1, channel '408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 (server)'
10-01 08:50:59.720: D/PowerManagerService(2690): onSensorChanged: light value: 100
10-01 08:51:00.015: D/SecretWallpaper(2824): mfInterval: 30 fTimeDiff: 5 bLastUpdatedResult: true mnLastUpdateFailureCount: 0
10-01 08:51:00.020: D/SecretWallpaper(2824): No need to update weather info.  (Cur weather: D1_CLEAR / Time to update: 25 mins)
10-01 08:51:00.710: D/KeyguardViewMediator(2690): handleTimeout
10-01 08:51:04.150: W/jdwp(4263): Debugger is telling the VM to exit with code=1
10-01 08:51:04.150: I/dalvikvm(4263): GC lifetime allocation: 2 bytes
10-01 08:51:04.200: I/ActivityManager(2690): Process at.theengine.android.samples.swipetabs (pid 4263) has died.
10-01 08:51:04.210: E/InputDispatcher(2690): channel '408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 (server)' ~ Consumer closed input channel or an error occurred.  events=0x8
10-01 08:51:04.210: E/InputDispatcher(2690): channel '408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 (server)' ~ Channel is unrecoverably broken and will be disposed!
10-01 08:51:04.210: D/Zygote(2572): Process 4263 exited cleanly (1)
10-01 08:51:04.225: I/WindowManager(2690): WIN DEATH: Window{408ad208 at.theengine.android.samples.swipetabs/at.theengine.android.samples.swipetabs.SFB876 paused=false}
10-01 08:51:04.260: I/OrientationDebug(2690): [pwm] in updateOrientationListenerLp()
10-01 08:51:04.260: I/OrientationDebug(2690): [pwm] needSensorRunningLp(), return true #4
10-01 08:51:04.265: I/Launcher(2871): onResume(). mIsNewIntent : false screenOff: false
10-01 08:51:04.295: E/WallpaperService(2690): setDimensionHints ! w=960
10-01 08:51:04.305: E/com.samsung.app(3556): [MSC]>>> WeatherWidgetProvider.java:303 [0:0] onReceive()@@@ sec.android.intent.action.HOME_RESUME
10-01 08:51:04.305: E/com.samsung.app(3556): [MSC]>>> WidgetIdManager.java:39 [0:0] AccuWeatherClockWidgetID_Length
10-01 08:51:04.305: E/com.samsung.app(3556): [MSC]>>> WidgetIdManager.java:40 [0:0] getPrefIDs() : length = 1
10-01 08:51:04.305: E/com.samsung.app(3556): [MSC]>>> WidgetIdManager.java:46 [0:0] getPrefIDs() : Ids1 = 1
10-01 08:51:04.320: D/PhotoAppWidgetProvider(3562): OnReceive Start
10-01 08:51:04.320: D/PhotoAppWidgetProvider(3562): RestartSlideShow Start
10-01 08:51:04.355: D/Buddies--------------------------->(3619): Service:OnReceive ACTION_HOME_RESUME called
10-01 08:51:04.425: I/Launcher(2871): onWindowFocusChanged(true)
10-01 08:51:04.430: D/CLIPBOARD(2690): Hide Clipboard dialog inside windowGainedFocus() !
10-01 08:51:04.430: W/InputManagerService(2690): Got RemoteException sending setActive(false) notification to pid 4263 uid 10115
10-01 08:51:04.455: D/SecretWallpaper(2824): onResume: LIVE !!!
10-01 08:51:04.510: D/SecretWallpaper(2824): prev: 0 cur: 0
10-01 08:51:04.510: D/SecretWallpaper(2824): CREATED (30)
10-01 08:51:04.510: D/SecretWallpaper(2824): DIFF: 5 Interval: 30
10-01 08:51:04.510: D/SecretWallpaper(2824): No need to update: Diff is 5
10-01 08:51:04.510: E/SecretWallpaper(2824): CHANGED mbSurfaceCreated: true 
10-01 08:51:04.510: E/SecretWallpaper(2824): Orientation:  interval: 30
10-01 08:51:04.510: D/SecretWallpaper(2824): onDrawFrame: LIVE !!
10-01 08:51:04.510: D/SecretWallpaper(2824): Loaded imageset: 1 / Cur weather: 1
10-01 08:51:04.510: D/SecretWallpaper(2824): loading: D1_CLEAR
10-01 08:51:04.675: D/dalvikvm(2824): GC_EXTERNAL_ALLOC freed 24K, 52% free 2707K/5639K, external 7K/519K, paused 22ms
10-01 08:51:04.710: D/SecretWallpaper(2824): loading time: 199
10-01 08:51:04.710: D/SecretWallpaper(2824): Total: 5775328 Java: 2773232
10-01 08:51:04.710: D/SecretWallpaper(2824): CUR: D1_CLEAR   LOAD: D1_CLEAR
10-01 08:51:05.045: D/dalvikvm(3106): GC_CONCURRENT freed 438K, 54% free 2743K/5895K, external 20K/532K, paused 1ms+2ms
10-01 08:51:05.110: D/dalvikvm(3106): GC_CONCURRENT freed 426K, 54% free 2752K/5895K, external 20K/532K, paused 2ms+2ms
10-01 08:51:05.175: D/dalvikvm(3106): GC_CONCURRENT freed 426K, 54% free 2735K/5895K, external 20K/532K, paused 1ms+1ms
: E/(): Device disconnected
Manifest:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="at.theengine.android.samples.swipetabs"
    android:versionCode="1"
    android:versionName="1.0" >
    
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permisssion.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permissoin.PHONE_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>

    <uses-sdk android:minSdkVersion="8" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".SFB876"
            android:label="@string/app_name" >            
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            
        </activity>
        
    <activity android:name=".GPSlocation"></activity>
        
    </application>

</manifest>
 
Also auf den ersten Blick finde ich das:

org.xmlpull.v1.XmlPullParserException: No android.accounts.AccountAuthenticator meta-data
 
Danke für die Antwort.
Ich habe die App nun auf einem anderen Handy installiert. Auf dem alten Gerät gab es zwei Google-Accounts, von denen einer kein Passwort mehr hatte. (oder verstehe ich die Fehlermeldung komplett falsch??)

Auf dem neuen Handy sieht das Logcat so aus:

Code:
10-01 10:08:39.391: W/ActivityThread(1238): Application at.theengine.android.samples.swipetabs is waiting for the debugger on port 8100...
10-01 10:08:39.391: I/System.out(1238): Sending WAIT chunk
10-01 10:08:39.401: I/dalvikvm(1238): Debugger is active
10-01 10:08:39.601: I/System.out(1238): Debugger has connected
10-01 10:08:39.601: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:39.802: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:40.002: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:40.202: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:40.402: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:40.622: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:40.823: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:41.023: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:41.223: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:41.423: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:41.623: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:41.834: I/System.out(1238): waiting for debugger to settle...
10-01 10:08:58.059: D/ATRecorder(1329): com.htc.autotest.dlib.RecordEngine in loader dalvik.system.DexClassLoader@4053d900
10-01 10:09:02.814: D/AndroidRuntime(1329): Shutting down VM
10-01 10:09:02.824: W/dalvikvm(1329): threadid=1: thread exiting with uncaught exception (group=0x400205a0)
10-01 10:09:03.485: E/AndroidRuntime(1329): FATAL EXCEPTION: main
10-01 10:09:03.485: E/AndroidRuntime(1329): java.lang.IllegalStateException: System services not available to Activities before onCreate()
10-01 10:09:03.485: E/AndroidRuntime(1329):     at android.app.Activity.getSystemService(Activity.java:3642)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at at.theengine.android.samples.swipetabs.GPSlocation.<init>(GPSlocation.java:30)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at at.theengine.android.samples.swipetabs.Tab1$1.onClick(Tab1.java:36)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at android.view.View.performClick(View.java:2532)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at android.view.View$PerformClick.run(View.java:9293)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at android.os.Handler.handleCallback(Handler.java:587)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at android.os.Handler.dispatchMessage(Handler.java:92)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at android.os.Looper.loop(Looper.java:150)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at android.app.ActivityThread.main(ActivityThread.java:4277)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at java.lang.reflect.Method.invokeNative(Native Method)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at java.lang.reflect.Method.invoke(Method.java:507)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
10-01 10:09:03.485: E/AndroidRuntime(1329):     at dalvik.system.NativeStart.main(Native Method)
10-01 10:09:25.826: I/Process(1329): Sending signal. PID: 1329 SIG: 9
Vielen Danke für die Hilfe!!
 
java.lang.IllegalStateException: System services not available to Activities before onCreate()

sagt im wesentlichen das du alles in "protected GPSlocation ()" im onCreate() machen solltest bzw. nach onCreate()
 
...oder danach :)
 

Ähnliche Themen

K
Antworten
3
Aufrufe
978
mezzothunder
mezzothunder
M
Antworten
21
Aufrufe
1.399
swa00
swa00
Mr-Fisch
Antworten
5
Aufrufe
997
migi01
migi01
Mr-Fisch
Antworten
8
Aufrufe
1.026
Mr-Fisch
Mr-Fisch
M
Antworten
9
Aufrufe
805
mkuz24
M
Zurück
Oben Unten