[Android-development] Management of JAVA Files Among Qt-Versions and Across Kits

Robert Iakobashvili coroberti at gmail.com
Fri Sep 27 12:13:22 CEST 2013


On Fri, Sep 27, 2013 at 12:55 PM, Eskil Abrahamsen Blomfeldt
<eskil.abrahamsen-blomfeldt at digia.com> wrote:
> On 09/27/2013 11:53 AM, Robert Iakobashvili wrote:
>>
>> What about adding onStartCustomAction(), onCreateCustomAction(),
>> onResumeCustomAction(), etc. matching the major Activity life-cycle calls as
>> in the diagram below?
>> http://developer.android.com/reference/android/app/Activity.html Thanks.
>
>
> Maybe I'm missing something obvious, but can't you just override onStart(),
> onCreate(), etc. directly?
>
> package my.package;
>
> public class MyActivity extends
> org.qtproject.qt5.android.bindings.QtActivity
> {
>
> @Override
> public void onCreate(Bundle savedInstanceState)
> {
>     super.onCreate(savedInstanceState);
>
>     /* Do your thing */
> }
>
> }
>
> And then you set my.package.MyActivity as the the main activity in your
> AndroidManifest.xml.
>
>
> -- Eskil
>

Sure, it works.
I'd make it a default.



More information about the Android-development mailing list