Posts

Horizontal FlatList inside sectionList

Image
Horizontal FlatList inside SectionList in ReactNative According to SectionList , one can create a SectionList with a section title and the items in the section in vertical fashion. Here I will show you what was the problem I faced while creating horizontal list items inside SectionList and the modifications I did to resolve it. My Output view should be like: Initially My data is in the format mentioned by SectionList . Where each of the data item is an object. sectionData = [    {title: 'abc', data:[{},{},{}]},    {title: 'abc', data:[{},{},{}]},    ..... ] And the render component will be like: <SectionList sections={sectionData} renderSectionHeader={({ section }) => ( <Text> {section.category}</Text> // layout changed in my screenshot )} renderItem={({ item, index, section }) => ( <FlatList data={item} horizontal={true} ...

Package Name vs Application Id (Android)

Package Name :                               Package Name groups the Classes that have similar functionalities. For example,You can place all the classes related to models in a separate package, all the classes related to network in separate one. It will be easier to look for the related classes if they are grouped by package name. Application Id :                                           Application Id is the unique id that differentiates your android app from other apps in the google play store. One can find "applicationId" under defaultConfig section of app module level build.gradle file. It may or may not be equals to package name. At least contains two words separated by dot(ex com.android).   You can change package name at any time. But Once published you should never  change a...

Monitor Android App's Alarm Functionality through Terminal

Image
Sometimes you may wonder why your alarm is not triggering and you may also had a doubt that whether your alarm is cancelled or not. Here is the way to check your alarm existence and how to check the timings. All you need to know about testing your alarm are package name of the application that you want to test and Terminal(in linux) or Terminal in Android Studio(any platform). Note: Your mobile should be connected to PC via USB and debug mode should be enabled. Open your Terminal or Android Studio's Terminal and type the below command: adb shell dumpsys alarm  This will list all the alarm's already triggered in your mobile. To see the alarm's set by particular app: adb shell dumpsys alarm | grep yourpackagename This will give you the alarm log for a particular app. Next we will see how to understand the components in the log and there by alarm existence. The typical log is showed below: RTC_WAKEUP:  Gives the type of alarm. #0: Represents number (...

Difference Between Blog And Website

Blog Vs Website Website is related collection of world wide web files. It contains the information about an individual or a company (like what they do etc). Blog is a regularly updated website generally maintained by an individual person or group of persons (we may call it as online personal journal). It mainly focuses on the ideas of the author on a particular topic.It contains articles with reverse chronological order. Blog's are more frequently crawled by search engines than websites.