priyanshi bhardwaj

Ranch Hand
+ Follow
since Mar 29, 2017
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
7
Received in last 30 days
0
Total given
24
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by priyanshi bhardwaj

Tim Moores wrote:Why do you want to move to a hybrid architecture?



having two apps ios and android and now it's getting difficult to manage both. so that's why planning to shit to hybrid for both the apps ios is already a hybrid app. so I wanted to know that playstore will treat the hybrid app as an update of the old app or will treat it as a fresh app? and what effect will I have on playstore reviews and downloads.
1 year ago
Hi,

I have an native android app which I am planning to move to hybrid. I want to know what all our the limitations of doing so?

Will I loose the playstore downloads and playstore ratings? If yes how can I avoid it
1 year ago
Hello,

I am trying to add badges in bottom navigation but the problem but getOrCreateBadge is not getting referenced. I am unable to access this method.

My xml file :


I am adding menu item during run time.



Above is the theme

Things which I have already tried :
1. Adding menu items from xml itself : still no effect
2. Changing theme to material theme : still same issue
3. Created a separate project with bottom navigation activity : No issue in that project if I add badges. I have changed it's theme too to my app theme i.e. App compat still badges are working fine in that project.
4. Initially dependency was not added of android material and I was able to use bottom navigation bar. But as I faced problem while adding badges so I have added dependency externally and made sure to put latest version also but still at the end facing the same issue. Unable to add badges in bottom navigation.

I know it's something very basic but if somebody could point it out that it would be a great help already stuck with this issue from past two days. Thank in advance.
2 years ago

Campbell Ritchie wrote:priyanshi bhardwaj,
I have merged your topic into this topic. I hope that helps.


I am sorry but which topic to which topic ? I am unable to understand
3 years ago

Tim Moores wrote:Whether (and how) you use bottom navigation is a design detail that has little impact on the architecture. I doubt there is much information about how specific apps are architected. For general advice on that, start reading at https://developer.android.com/jetpack/guide. Also note that with just about any architecture it's still possible to write sluggish apps - a good architecture just makes it easier to avoid that



Hi I have implemented bottom navigation in my app. But actually I am facing few ANR's. Let me tell you what I have used I have used navigation component with bottom navigation. As per my current debugging Anr reasons is multiple switches in bottom navigation. As I am using Navigation component so on every switch my fragment is getting recreated  which is causing ANR in my app. And I am unable to figure out how do we load a fragment from it's backstack with navigation component. Need help on this.
3 years ago
Hello ,

Received this ANR on my prod app. Can someone help me with how can I debug it ? I am playing youtube video in my android app. Actually what could be done to fix it?

#00  pc 00000000021ed9cc  /data/app/com.google.android.trichromelibrary_438910534-roqsdIo74J6Yr1Wj9MZmtA==/base.apk!libmonochrome_64.so (???)
 at J.N.MAqmDh4t (N.java)
 at org.chromium.content.browser.framehost.NavigationControllerImpl.j (NavigationControllerImpl.java:15)
 at org.chromium.android_webview.AwContents.w (AwContents.java:35)
 at org.chromium.android_webview.AwContents.v (AwContents.java:19)
 at com.android.webview.chromium.WebViewChromium.loadDataWithBaseURL (WebViewChromium.java:6)
 at android.webkit.WebView.loadDataWithBaseURL (WebView.java:866)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.a.a (a.java)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.a.a (a.java)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.a.a (a.java)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.a.a (a.java)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.a.a (a.java)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.a.a (a.java)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.YouTubePlayerView$1.call (YouTubePlayerView.java)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.YouTubePlayerView.initialize (YouTubePlayerView.java)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.YouTubePlayerView.initialize (YouTubePlayerView.java)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.YouTubePlayerView.initialize (YouTubePlayerView.java)
 at com.pierfrancescosoffritti.androidyoutubeplayer.player.YouTubePlayerView.initialize (YouTubePlayerView.java)
3 years ago
Hello everyone,
I wanted to know what's an ideal structure of an app if I am using a bottom navigation in my base activity with three items in the menu Home screen, chat with customer service and profile. How should I design teh app so that app runs fast just like youtube/instagram. I wanted to know How does youtube app runs so fast after multiple videos etc.... Actually I wanted to know what is youtube's/instagram app architecture on android side ? Any reference link is also appreciated. It could be great if any senior android developer can guide me little so that I know the best practices available in the market Thanks in advance
3 years ago
Hello,
facing a weird issue I am using data binding in view model. Now the issue which I am facing that while setting value of the field it get's set correctly but after updating the value it doesn't get's updated. so simply property is not getting updated.
average value is not getting updated .


3 years ago

Tim Moores wrote:
A quick search fro "jackson android proguards" finds pages such as https://proguard-rules.blogspot.com/2017/05/jackson-proguard-rules.html, https://stackoverflow.com/questions/27687128/how-to-setup-proguard-for-jackson-json-processor and especially https://github.com/krschultz/android-proguard-snippets/pull/132, all of which have different ProGuard settings than the one you're using.



I have tried above proguard guard settings too but still getting a npe
3 years ago

Tim Moores wrote:I assume that it works correctly if you don't use obfuscation - is that correct?



Yes. I have tried multiple proguard rules for jackson but none of them is working. I am constantly getting a NPE. There is no details also so I can't figure out exactly where Npe is coming. how can I debug it to get detailed logs of the respective issue.
3 years ago
Hello,
I am using jackson library in my project

gradle.java


proguard.rules.pro


-keepattributes *Annotation*,EnclosingMethod,Signature
-keepnames class com.fasterxml.jackson.** { *; }
-dontwarn com.fasterxml.jackson.databind.**


# General
-keepattributes SourceFile,LineNumberTable,*Annotation*,EnclosingMethod,Signature,Exceptions,InnerClasses




It is storing the data in realm in abc.java


after fetching from realm xyz.java


I am getting a NPE while creating release build:
Cause: java.lang.NullPointerException


Unable to debug this issue further. Any help is appreciated. Thanks in advance
3 years ago

Randy Tong wrote:Any stacktrace?



No stacktrace. I am guessing issue with the xml. onBindViewHolder and onCreateViewHolder are not getting called when I scroll down
3 years ago
Hello,
I am using nested recyclerView. facing an issue with the same. Parent and child recylerview renders properly until parent recycler view get's scrolled. After scrolling parent recyclerView, child recyclerview elements doesn't get's loaded. Sharing the code below:





layout_child_recyclerView.xml


layout of item_row.xml




Any suggestions for the same

3 years ago