{"action":"created","issue":{"url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/908","repository_url":"https://api.github.com/repos/Raizlabs/DBFlow","labels_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/908/labels{/name}","comments_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/908/comments","events_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/908/events","html_url":"https://github.com/Raizlabs/DBFlow/issues/908","id":165070157,"number":908,"title":"First launch of application","user":{"login":"alexbeville","id":1587217,"avatar_url":"https://avatars.githubusercontent.com/u/1587217?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbeville","html_url":"https://github.com/alexbeville","followers_url":"https://api.github.com/users/alexbeville/followers","following_url":"https://api.github.com/users/alexbeville/following{/other_user}","gists_url":"https://api.github.com/users/alexbeville/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbeville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbeville/subscriptions","organizations_url":"https://api.github.com/users/alexbeville/orgs","repos_url":"https://api.github.com/users/alexbeville/repos","events_url":"https://api.github.com/users/alexbeville/events{/privacy}","received_events_url":"https://api.github.com/users/alexbeville/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-12T12:40:20Z","updated_at":"2016-07-12T13:59:46Z","closed_at":"2016-07-12T13:56:28Z","body":"DBFlow Version: 3.1.1\r\nIssue Kind (Bug, Question, Feature): Question / Bug (?)\r\n\r\nDescription: \r\nBefore all, thank you for this amazing ORM. I'm currently facing an issue that I can't understand. After some Google search, it seems that I'm the only one. So I guess, it's an implementation problem (or a PEBKAC).\r\n\r\nThe first time the application is launched, I have a white screen (so my setContentView isn't called) but I can see this in my logcat (see the 9 seconds between logs) :\r\n\r\n`07-12 14:28:06.189 19540-19540/my.package.debug W/System: ClassLoader referenced unknown path: /data/app/my.package.debug-1/lib/arm64`\r\n`07-12 14:28:15.708 19540-19540/my.package.debug W/System: ClassLoader referenced unknown path: /data/app/com.mana.igloo.debug-1/lib/arm64`\r\n\r\nHere is my initiatlisation : \r\n\r\nAndroid Manifest : \r\n```xml\r\n<application\r\n        android:name=\".MyApplication\"\r\n        android:allowBackup=\"true\"\r\n        android:icon=\"@mipmap/ic_launcher\"\r\n        android:label=\"@string/app_name\"\r\n        android:supportsRtl=\"true\"\r\n        android:theme=\"@style/AppTheme\">\r\n        <activity\r\n            android:screenOrientation=\"portrait\"\r\n            android:name=\".activities.SplashcreenActivity\"\r\n            android:theme=\"@style/AppTheme.NoActionBar\" >\r\n            <intent-filter>\r\n                <action android:name=\"android.intent.action.MAIN\" />\r\n                <category android:name=\"android.intent.category.LAUNCHER\" />\r\n            </intent-filter>\r\n        </activity>\r\n...\r\n</application>\r\n````\r\n\r\nSplashcreenActivity\r\n```Java\r\n@Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_splashscreen);\r\n        progressBar = findViewById(R.id.progressBar);\r\n        progressBar.setVisibility(View.VISIBLE);\r\n        new AsyncTask<Void, Void, Void>() {\r\n            @Override\r\n            protected Void doInBackground(Void... params) {\r\n                MyApplication.getInstance().initApplication();\r\n                return null;\r\n            }\r\n\r\n            @Override\r\n            protected void onPostExecute(Void aVoid) {\r\n                goToNextScreen();\r\n                super.onPostExecute(aVoid);\r\n            }\r\n        }.execute();\r\n    }\r\n```\r\n\r\nMyApplication \r\n```Java\r\n@Override\r\n    public void onCreate() {\r\n        super.onCreate();\r\n        instance = this ;\r\n    }\r\n\r\n    public void initApplication(){\r\n        FlowManager.init(new FlowConfig.Builder(this).build());\r\n        if(BuildConfig.DEBUG)\r\n            FlowLog.setMinimumLoggingLevel(FlowLog.Level.V);\r\n    }\r\n\r\n    public static MyApplication getInstance(){\r\n        return instance ;\r\n    }\r\n```\r\n\r\nWhat am I doing wrong ?"},"comment":{"url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/comments/232055980","html_url":"https://github.com/Raizlabs/DBFlow/issues/908#issuecomment-232055980","issue_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/908","id":232055980,"user":{"login":"alexbeville","id":1587217,"avatar_url":"https://avatars.githubusercontent.com/u/1587217?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbeville","html_url":"https://github.com/alexbeville","followers_url":"https://api.github.com/users/alexbeville/followers","following_url":"https://api.github.com/users/alexbeville/following{/other_user}","gists_url":"https://api.github.com/users/alexbeville/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbeville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbeville/subscriptions","organizations_url":"https://api.github.com/users/alexbeville/orgs","repos_url":"https://api.github.com/users/alexbeville/repos","events_url":"https://api.github.com/users/alexbeville/events{/privacy}","received_events_url":"https://api.github.com/users/alexbeville/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T13:59:45Z","updated_at":"2016-07-12T13:59:45Z","body":"I'm sorry, you close it too quickly.\r\n\r\nOriginally, I was doing it in MyApplication.OnCreate but it was the same result. As I must do some synchronize tasks with server, I have to create a SplashScreen that is juste a view with my logo app and a loader. \r\n\r\nMy SplashscreenActivity isn't showed, so the setContentView isn't called until 9 seconds."}}
{"actor":{"display_login":"alexbeville"}}