[Solved] Programming Android App Online [closed]

As you want to write an Android app, I guess you have a device running that operating system. There is an Android app that allows you to develop native apps directly on the device, in a surprisingly powerful IDE. The app is called AIDE and is available on Google Play: https://play.google.com/store/apps/details?id=com.aide.ui&hl=de 1 solved Programming Android … Read more

[Solved] How to pass data from activity to class in android? [closed]

Create a class for your requirement as CustomView and define public method to pass integer value and use it there. As I have created setIntValue(). public class CustomView extends View { private int mIntValue; public CustomView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public CustomView(Context context, AttributeSet attrs) { this(context, attrs, 0); … Read more

[Solved] Image dont appear

Try this public void onClick(View v) { // TODO Auto-generated method stub contatore++; display.setText(“Il totale รจ: “+ contatore); if (contatore > 10) { immagine.setVisibility(View.VISIBLE); } } solved Image dont appear

[Solved] Android Mobile Applications [closed]

In order to connect your android app to the server you would need to make an HTTP request that will run your server side script (php for example), query a database and return a response to android device as a JSON object. Check this detailed tutorial: http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/ It shows an example of how to use … Read more

[Solved] Developing android app with emulator [closed]

You can use the emulator for all practical purposes up until you are ready to test your app with an actual test group. Obviously, install it on your own device first and test yourself prior to distributing to the test group. 1 solved Developing android app with emulator [closed]

[Solved] how to parsing Json Array in android? [closed]

JSONArray json = jParser.getJSONFromUrl(URL); try { JSONObject c = json.getJSONObject(0); JSONArray json1 = c.getJSONArray(“products”); status = c.getString(“num_page”); for(int i=0;i<json1.length();i++){ JSONObject c1 = json1.getJSONObject(i); String des = c1.getString(“description”); String pid = c1.getString(“product_id”); String name = c1.getString(“name”); String pc = c1.getString(“product_code”); String images = c1.getString(“images”); String price = c1.getString(“price”); String weight = c1.getString(“weight”); // creating new HashMap … Read more

[Solved] String Image Url set in imageview Android

Since you are using Picasso then you should use it like: Picasso.with(getContext()).load(fb.getString(“ItemImage”)).into(foodresImage); You are using fb.getInt() in your setImageResource and you are getting a string from the Google API. You cannot convert the link to an int resource. solved String Image Url set in imageview Android

[Solved] Make a similar layout like the one below

Use below layout as item of your RecyclerView <?xml version=”1.0″ encoding=”utf-8″?> <androidx.cardview.widget.CardView xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:orientation=”vertical” android:layout_width=”match_parent” android:layout_height=”wrap_content” app:cardCornerRadius=”15dp” app:cardMaxElevation=”3dp” android:elevation=”3dp” app:cardUseCompatPadding=”true” app:cardBackgroundColor=”@android:color/white”> <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:orientation=”horizontal”> <LinearLayout android:layout_weight=”.95″ android:layout_width=”0dp” android:layout_height=”wrap_content” android:orientation=”vertical”> <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:padding=”15dp”> <TextView android:id=”@+id/tv_received_message_heading” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”Received Message:”/> <TextView android:id=”@+id/tv_received_message” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”First Received Message” android:layout_marginStart=”5dp”/> </LinearLayout> <View android:layout_width=”match_parent” android:layout_height=”1dp” android:background=”@color/colorPrimary” android:layout_marginStart=”10dp” … Read more