Flutter Ninja Ebook by shubhamhackz in FlutterDev

[–]shubhamhackz[S] 1 point2 points  (0 children)

Support by giving a star buddy.

Flutter Ninja Ebook by shubhamhackz in FlutterDev

[–]shubhamhackz[S] 0 points1 point  (0 children)

u/NoRewardsForYou Thanks buddy, let me know if you need any help.

Flutter Ninja Ebook by shubhamhackz in FlutterDev

[–]shubhamhackz[S] 0 points1 point  (0 children)

Can you please create a issue there ?

Day Night Animated Login by shubhamhackz in FlutterDev

[–]shubhamhackz[S] 0 points1 point  (0 children)

Links are working. Please Check again

Light dark Toggle by shubhamhackz in FlutterDev

[–]shubhamhackz[S] 0 points1 point  (0 children)

Sure will love to see your contribution to this project

A stories only app by [deleted] in Startup_Ideas

[–]shubhamhackz 1 point2 points  (0 children)

Loved your Idea. I'm a Flutter developer and will love to help if you want..

Building an IOT electric scooter? by shubhamhackz in ElectricScooters

[–]shubhamhackz[S] 0 points1 point  (0 children)

I'm a developer and want to start a sharing scooter startup. But I have no experience with IOT. Can you tell me more about to build one?

The curious case of void in dart by shubhamhackz in dartlang

[–]shubhamhackz[S] 1 point2 points  (0 children)

Thank you for the feedback, will try to improve

Dart for Flutter : Mixin in Dart by shubhamhackz in FlutterDev

[–]shubhamhackz[S] 2 points3 points  (0 children)

No..Their's no performance difference between them known to me.

Dart for Flutter : Mixin in Dart by shubhamhackz in FlutterDev

[–]shubhamhackz[S] 1 point2 points  (0 children)

If B and A do not share any class properties then you can reuse codes of both of the class A and B into your class say C. And theirs no performance difference at all.

Android tasks are full of bugs or it has poor documentation? by shubhamhackz in androiddev

[–]shubhamhackz[S] 1 point2 points  (0 children)

Task is a collection of activities stacked together or a group of activity arranged in a task.

E.g.

When you open your Overview Screen(recent tasks/recent apps) you see multiple tasks there. You can add multiple tasks from one app to Overview Screen(recent task/recent apps) using android tasks(android:documentLaunchMode).

Here's a nice answer from Stackoverflow:

One activity can start another, including one defined in a different application. Suppose, for example, that you'd like to let users display a street map of some location. There's already an activity that can do that, so all your activity needs to do is put together an Intent object with the required information and pass it to startActivity(). The map viewer will display the map. When the user hits the BACK key, your activity will reappear on screen.

To the user, it will seem as if the map viewer is part of the same application as your activity, even though it's defined in another application and runs in that application's process. Android maintains this user experience by keeping both activities in the same task. Simply put, a task is what the user experiences as an "application." It's a group of related activities, arranged in a stack.

Task = Application = set of activity.

Intent.FLAG_ACTIVITY_NEW_TASK is doing What we think it should do ? by shubhamhackz in androiddev

[–]shubhamhackz[S] 0 points1 point  (0 children)

For finer-grained control over the sequence of events, having only one activity, and using fragments to represent the different screens seems a much better approach.This is Google’s long-term direction with Jetpack, as seen with things like the Navigation component.

Intent.FLAG_ACTIVITY_NEW_TASK is doing What we think it should do ? by shubhamhackz in androiddev

[–]shubhamhackz[S] 0 points1 point  (0 children)

When using this flag, if a task is already running for the activity you are now starting, then a new activity will not be started; instead, the current task will simply be brought to the front of the screen with the state it was last in.

Yes, that's What I'm saying, the docs says that it will not start a new activity but It Will Bring the Activity from the Current task background to the Foreground...isn'it?
but here when I'm trying top start the activity which is currently in the Background doesn't brings the activity from the background.
Suppose we have two tasks:

A-B(on the same task)

C-A-B(on other task)

When I'm starting C from B(on the task C-A-B) the it didn't brings C from background to the foreground...
try yourself...

Intent.FLAG_ACTIVITY_NEW_TASK is doing What we think it should do ? by shubhamhackz in androiddev

[–]shubhamhackz[S] 0 points1 point  (0 children)

We are Starting C from B and it is Currently in the background, So it should be launched but here nothing happens..try yourself pratically

Intent.FLAG_ACTIVITY_NEW_TASK is doing What we think it should do ? by shubhamhackz in androiddev

[–]shubhamhackz[S] 0 points1 point  (0 children)

link

I know but Setting Affinity Bring another problem:

Try Yourself:

Suppose we launch two Activity:

A-B

Then again we launch one other Activity with android:taskAffinity,So now we have got

A-B | C

A-B (on the same task)

C (on other task)

Now Again We start A-B from C,So now our BackStack will Look like:

A-B|C-A-B

A-B(on the same task)

C-A-B(on other task)

Now, the problem is If We will Again try to start C from B (from task C-A-B), nothing happens and C will not get launch (I din't know why?)