//this is constructor of my code constructor(props) { super(props); this.state = { textValue:this.getFavoritesLength(), }; } //this sqlite code db.transaction execute prefect but it not changing the value of var len it always returns 0 while i changing the value of len as table length. getFavoritesLength() { var len = 0; db.transaction(tx => { tx.executeSql( ‘SELECT ..

Read more

This is prayer time Local notification. We will get a notification when it will match prayer time. The problem is, It always come some minutes late. So to overcome wanted to make notification some minute early. StartNotificationreciever.class for (int i=0; i<prayerNames.size(); i++){ String prayerName = prayerNames.get(i); if (prayerName.equals("Fajr")) { String time = prayerTimes.get(0); String[] array ..

Read more

I am currently trying to get my app to open a fragment (with transitions) when a floating action button is clicked. However, while print statements in my function are running, the fragment that my app is displayed never changes. Does anyone know what might be causing this? This is my code: fun replaceFragment(fragment: Fragment, istransition:Boolean) ..

Read more

I have an issue that OutlinedBox of my TextInputLayout not showing. Here is my xml lines : <com.google.android.material.textfield.TextInputLayout android:id="@+id/formnomor" style="@style/TextInputLayoutStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:textColorHint="@color/white" android:theme="@style/appz"> <com.google.android.material.textfield.TextInputEditText android:id="@+id/no" android:layout_width="match_parent" android:layout_height="wrap_content" android:fontFamily="@font/nr" android:hint="Number" android:imeOptions="actionDone" android:maxLength="16" android:padding="15dp" android:inputType="number" android:textColor="@color/white" android:textSize="18sp" /> </com.google.android.material.textfield.TextInputLayout> And for the style and theme : <style name="TextInputLayoutStyle" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox"> <item name="boxStrokeColor">#fff</item> <item name="boxStrokeWidth">1dp</item> </style> <style name="appz" ..

Read more

I’ve a progressBar which should show on button click in constraintLayout which is not working, I have newslist activity which extends baseActivity which extends appCompatActivity //////NewsListActivity public class NewsListActivity extends BaseActivity { Button buttonTesting; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_news_list); buttonTesting = (Button) findViewById(R.id.button_test); buttonTesting.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ..

Read more