[Solved] Update unsigned android apk in play store

It is not possible to publish unsigned APK on Google Play. Ask from your developer for 1) source code, 2) KeyStor file[.jks file] 3) Keystore password, 4) keyAliase password 5) Generate new signed APK using keyStore file provided by your developer 6) after generating new signed APK, you can update your existing google play application … Read more

[Solved] Android App Crushing Unexpectedly [closed]

Since you are using Arrays.asList to create your list, this list is unmodifiable, you cannot add or delete any element. Arrays.asList: Returns a fixed-size list backed by the specified array. So when you get to the line facts.remove(randomNumber); you get an Exception like the following (just guessing because you have not shared any stacktrace or … Read more

[Solved] Receive json in android

JSONArray json = new JSONArray(result); First calculate the length of the array! int len=json.length(); String[] str=new String[len]; for(int i=0;i<len;i++) { str[i]=json.get(i).toString(); } First add a spinner to your activity Spinner s=(Spinner)findViewById(R.id.Spinner); ArrayAdapter adapter=new ArrayAdapter(this,android.R.layout.simple_spinner_item,str); s.setAdapter(adapter); solved Receive json in android

[Solved] Receive json in android

Introduction Android is a powerful platform for developing mobile applications. It provides a wide range of features and capabilities that can be used to create powerful and engaging applications. One of the most important features of Android is its ability to receive and parse JSON data. JSON (JavaScript Object Notation) is a lightweight data-interchange format … Read more

[Solved] webview load url from input text in another class [duplicate]

send data from inputAddrss, Intent intent = new Intent(getBaseContext(), SignoutActivity.class); intent.putExtra(“url”, YOUR_EDIT_TEXT.getText().toString()); startActivity(intent); receive data in MainActivity, String s = getIntent().getStringExtra(“url”); then load into webview view.loadUrl(s); solved webview load url from input text in another class [duplicate]

[Solved] A value of type ‘Null’ can’t be assigned to a parameter of type ‘Key’ in a const constructor. Try using a subtype, or removing the keyword ‘const’

A value of type ‘Null’ can’t be assigned to a parameter of type ‘Key’ in a const constructor. Try using a subtype, or removing the keyword ‘const’ solved A value of type ‘Null’ can’t be assigned to a parameter of type ‘Key’ in a const constructor. Try using a subtype, or removing the keyword ‘const’

[Solved] Problems with Android Studio

It is because, in appcompat-v7 project, the AndroidManifest.xml declare uses-sdk minSdkVersion to 19 while your project set to 15 which is inappropriate. You can try set your project value greater-or-equals than value declared in appcompat-v7. For example, 19 in both projects. 3 solved Problems with Android Studio

[Solved] How to start a service when another app gets active?

If You are specifically looking for starting your service when music player starts, take a look at AndroidManager API. You can register for callbacks using registerAudioPlaybackCallback Also there is method from same AudioManager which tells you if Music isActive isActive – Stackoverflow isMusicActive solved How to start a service when another app gets active?

[Solved] How can i play a video in full screen in another activity on clicking a card view [closed]

The question you have asked involves a larger implementation with code. Use ExoPlayer to play videos in android. You can learn it from this CodeLab and also check this for more information. From your question i understand there is a cardView and when you press it, a video show play in another activity. So for … Read more

[Solved] How to make floating action bar center bottom [closed]

Use a linear layout with horizontal orientation inside a constraint layout. Constraint the linear layout to the bottom, the end, and the start of the constraint layout. Here’s a simple example. <android.support.constraint.ConstraintLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” tools:context=”.MainActivity”> <LinearLayout android:id=”@+id/floating_action_bar” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_marginStart=”8dp” android:layout_marginLeft=”8dp” android:layout_marginEnd=”8dp” android:layout_marginRight=”8dp” android:layout_marginBottom=”8dp” app:layout_constraintBottom_toBottomOf=”parent” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintStart_toStartOf=”parent” android:orientation=”horizontal”> <android.support.design.widget.FloatingActionButton android:id=”@+id/a” android:layout_width=”wrap_content” android:layout_height=”wrap_content” … Read more

[Solved] Boundry around a view

Try this: Border Line inside cardview: <android.support.v7.widget.CardView android:id=”@+id/cardview0″ android:layout_width=”match_parent” android:layout_height=”50dp” android:layout_alignParentTop=”true”> <RelativeLayout android:layout_width=”match_parent” android:layout_height=”match_parent” android:layout_marginLeft=”10dp” android:background=”#000000″> <RelativeLayout android:layout_width=”match_parent” android:layout_height=”match_parent” android:layout_marginBottom=”0.5dp” android:layout_marginLeft=”0.5dp” android:layout_marginTop=”0.5dp” android:background=”#ffffff”> <TextView android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_centerVertical=”true” android:layout_gravity=”center_vertical” android:layout_marginLeft=”30dp” android:text=”Circle” android:textColor=”#3B64AE” /> <Spinner android:layout_width=”150dp” android:layout_height=”match_parent” android:layout_alignParentRight=”true”> </Spinner> </RelativeLayout> </RelativeLayout> </android.support.v7.widget.CardView> Border line outside cardview: <RelativeLayout android:layout_width=”match_parent” android:layout_height=”50dp” android:layout_marginLeft=”5dp” android:background=”@drawable/border_line”> <android.support.v7.widget.CardView android:id=”@+id/cardview0″ android:layout_width=”match_parent” android:layout_height=”50dp” android:layout_margin=”1dp” android:layout_alignParentTop=”true”> … Read more

[Solved] Extra from Activity B to Activity A

Write Activity A like this public class MainActivity extends Activity { TextView textView1; Button button1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView1=(TextView)findViewById(R.id.textView1); button1=(Button)findViewById(R.id.button1); button1.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { Intent intent=new Intent(MainActivity.this,SecondActivity.class); startActivityForResult(intent, 2);// Activity is started with requestCode 2 } }); } // Call Back method to get the … Read more