919 Topics

Member Avatar for
Member Avatar for dimitrilc

## Animation Strategy ## Welcome to part three of the tutorial; part two can be found [here](https://www.daniweb.com/programming/mobile-development/tutorials/538947/android-native-animate-alternating-yin-yang-symbol-part-2). For this animation, I have chosen to redraw the YinYang Drawable at each frame. This means recreating the YinYang object with different constructor parameters on every frame (the current YinYang implementation has a …

1
65
Member Avatar for dimitrilc

## Introduction ## Welcome to part two of the tutorial. Let us continue to learn how to animate views along a Path. Part one can be found [here](https://www.daniweb.com/programming/mobile-development/tutorials/538944/android-native-animate-view-along-path-part-1). ## Important Coordinates ## Both the sun and the moon in our app can occupy any one of the three important coordinates …

1
41
Member Avatar for dimitrilc

## Introduction ## In the last tutorial, we learned [how to draw complex shapes](https://www.daniweb.com/programming/mobile-development/tutorials/538943/android-native-draw-complex-shapes-using-the-path-class#post2288657) using a Path object. Using the concepts from the previous tutorial, we will now attempt to animate Views to move along a custom Path. ## Goals ## At the end of the tutorial, you would have …

1
74
Member Avatar for dimitrilc

## Introduction ## In the last tutorial, we learned [how to draw basic shapes](https://www.daniweb.com/programming/mobile-development/tutorials/538942/android-native-draw-basic-shapes-on-canvas) on Android using premade methods from the graphics library. In this tutorial, we step up the difficulty a notch by learning how to draw using the Path class. The Path class allows for drawing of technically …

1
298
Member Avatar for dimitrilc

## Introduction ## Even though the built-in vector library included in Android Studio contains many icons readily for use, you might eventually run into a situation where a custom icon is needed. In this tutorial, we will learn how to create our own icons from basic shapes drawn on a …

1
214
Member Avatar for dimitrilc

## Introduction ## Android includes many options to add animations to your app. In this tutorial, we will learn how to add a type of animation called frame-by-frame animation into our Android app. ## Goals ## At the end of the tutorial, you would have learned: 1. How to add …

1
201
Member Avatar for dimitrilc

## Introduction ## Every Android View has a `layoutParams` property. This property tells the parent ViewGroup how a View wants to be laid out; it is also often used to change the size of a View. In this tutorial, we will learn how to animate Views while modifying their `layoutParams`. …

2
170
Member Avatar for dimitrilc

## Introduction ## Cards are a common widget for Material 3-themed applications. Expanding a card after the user performs a click action is a very common behavior. While Android can automatically render the new expanded card automatically, we will have to implement our own animation if we want a smooth, …

2
365
Member Avatar for dimitrilc

## Introduction ## When working on Espresso tests, you might have run into a situation where you need to verify what your app does when an activity is in a specific [**Lifecycle**](https://developer.android.com/reference/androidx/lifecycle/Lifecycle) state. In this tutorial, we will learn how to achieve this by using the **ActivityScenario** class. ## Goals …

2
40
Member Avatar for Pekja

Hi! I'm here to ask for an opinion as someone who want to develop an Android app for the first time. Can someone suggest to me whether I should use Java or Kotlin to write my code? My app will constantly need to fetch and submit data to phpmyadmin which …

Member Avatar for logandavid
0
104
Member Avatar for رسمة فنا
Member Avatar for logandavid
0
63
Member Avatar for Pekja

Can someone enlighten me is there any difference if we use framework or not using framework to build REST API?

Member Avatar for Dani
0
37
Member Avatar for Pekja

Hi! Can anyone tell me will it be different if I install android studio first then only I install JDK

Member Avatar for rproffitt
0
42
Member Avatar for Pekja

Can anyone help me on how can I fetch data of only current login user using Retrofit? For web development I do it like this "SELECT * FROM job_register WHERE job_assign ='{$_SESSION['username']}' AND job_status = '' " How can I implement this using Retrofit in Android?

Member Avatar for rproffitt
0
36
Member Avatar for Mr.M

Hi DW. Anyone who knows how can I achieve this? `List<String> dynamic[i];` The reason why I need this is that I'm creating a dynamic list with nested lists so there's no fixed number of data the list can be, this is inside the `for` statement which receive the json data …

Member Avatar for Mr.M
0
169
Member Avatar for dimitrilc

## Introduction ## In Android projects, **DataSource** classes act as entry points to interacting with local or remote data sources. Their dependencies tend to be HTTP clients, the database, or DAOs, and their dependents are usually **Repository** classes. In this tutorial, we will learn how to provide a fake **DataSource** …

3
630
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we will learn how to create an instrumented test for Navigation Components. ## Goals ## At the end of the tutorial, you would have learned: 1. How to test Navigation Components. ## Tools Required ## 1. Android Studio. The version used in this tutorial …

1
816
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we will learn how to load data asynchronously into a **ListAdapter** (*a subclass of **RecyclerView.Adapter***). ## Goals ## At the end of the tutorial, you would have learned: 1. How to serve asynchronous data to a **ListAdapter**. ## Tools Required ## 1. Android Studio. …

1
293
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we will learn how to filter and validate Intents fired from the application under test. ## Goals ## At the end of the tutorial, you would have learned: 1. How to filter and validate Intents in Espresso tests. ## Tools Required ## 1. Android …

1
67
Member Avatar for dimitrilc

## Introduction ## When working with Espresso tests, you might have found it hard to make Espresso wait for background tasks to complete before performing other actions or assertions. Fortunately, the classes in the Espresso **idling** package exist to cover this use case. In this tutorial, we will learn how …

1
453
Member Avatar for Brucename1

Proficient with Flutter Experience with Flutter/Native hybrid development Experience in the development of multiple Flutter projects, including the launch of Flutter projects Email: tianxzhang@163.coma

0
9
Member Avatar for TimTheCoder

Hey guys is there a way to intercept shut down to make the user enter password if the state is in the locked state? Its just that I am engineering an anti-theft app and would to disable shut down from lock screen while the device is in the locked state. …

Member Avatar for TimTheCoder
0
76
Member Avatar for dimitrilc

## Introduction ## Starting from Android 10 (*API 29*), Android places many restrictions on how apps can launch activities from the background. There are a couple of exemptions, which can be found on this [list](https://developer.android.com/guide/components/activities/background-starts#exceptions). At the end of the list is the usage of the *dangerous* permission `SYSTEM_ALERT_WINDOW`. I …

1
145
Member Avatar for dimitrilc

## Introduction ## When working with Room, you might have run into a situation where you only want to update specific fields of an entity instead of replacing the entire row. In this tutorial, we will learn how to do this in two different ways. ## Goals ## At the …

2
2K
Member Avatar for dimitrilc

## Introduction ## On the android platform, widgets provide a quick way to interact with your Apps. They are extremely useful at providing quick information without the user launching the app Activities themselves. Common use cases for homescreen widgets are weather, email, or banking information. In this tutorial, we will …

2
204
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we will learn how to use **ConcatAdapter**. It is a great choice for displaying header or footer at the beginning or at the end of a **RecyclerView**. ## Goals ## At the end of the tutorial, you would have learned: 1. How to use …

2
329
Member Avatar for dimitrilc

## Introduction ## Rather than modifying the button widget’s appearance in code, it is possible to do this in an XML resource instead. In this tutorial, we will learn how to create two different types of specialized XML resource files for changing the **Drawable** and the color. ## Goals ## …

2
91
Member Avatar for vivan_1

Is there a limitation on how many schemas and security objects you can have in one Snowflake database and will there be performance degradation with thousands of these objects? Will splitting the data into multiple snowflake databases help performance?

Member Avatar for rproffitt
0
66
Member Avatar for dimitrilc

## Introduction ## The Android platform provides many different types of menus to be added to an Android app. In this tutorial, we will learn how to add the most common type of menu, an **Options Menu**. An **Options Menu** is one that appears at the right corner of the …

1
119
Member Avatar for dimitrilc

## Introduction ## The Android platform provides many different types of menus to be added to an Android app. In this tutorial, we will learn how to add **Contextual Menu**s to our app. ## Goals ## At the end of the tutorial, you would have learned: 1. How to add …

1
216

The End.