back soft

مطالب مرتبط با «android ruing» در back soft | نویسنده: استخدام کار

How to display records from a Firebase database using HashMap with Android?

Vote count:
 0I am developing an app in which the users can have multiple lists. My Firebase database looks like this:The model that i use is this:public class UserModel { private String userId; private String useame; private String userEmail; private HashMap lists;...

ادامه مطلب

[React Native][Android] Could not connect to development server

Vote count: 0 I have an issue while debug my app which is build by react native. Whenever i started to build, it gives me error that could not coect to development server. I have tried several advice from https://facebook.github.io/react-native/docs/ruing-on-device-android.html, React Native 'hello world' quick start: "could not coect to development server", why my device (mi4i lollipop 5.02) always gives me an error that 'could not coect to development server' ? any answer would be helpful and ...

ادامه مطلب

Sharing Asset Image from Android custom IME, working for everything except Gmail and MMS

Vote count: 0 Ok this might be long post as I have spent the last 3 days (18 hrs) on this. I created a custom keyboard ext for iOS and was tasked to do the same for Android. I have everything working like I want giving the user keyboards to use that are interchangeable between letters and numbers/symbols. As well as a recycler view for custom emoji categories across the top of the keyboard. On selection of one of the categories (according to which was selected) a horizontal recycler view of the ...

ادامه مطلب

android.net.wifi.STATE_CHANGE not broadcasting when wifi disabled and WifiManager.EXTRA_WIFI_STATE not available

Vote count: 0 Manifest : Permessions : the receiver is executed when wifi...

ادامه مطلب

Is there a way to find age of an Android device

Vote count: 0 I want to find out how long the device has been used. I dont want the uptime i want the actual time elapsed from the device first boot asked 31 secs agoSudhasri Let's block ads!...

ادامه مطلب

Custom ListView Bar Android

Vote count: 0 enter image description here Hi Guys,Actually I am developing an app In above picture there is Listview along with a bar but I am confused how to make this please help me regarding this thanxs in advance. asked 43 secs agouser3621756 Let's block ads!...

ادامه مطلب

Android Update PHP MySQL table

Vote count: 0 I am working on an Android App. I need to update a register, I dint have issues with entries. But when I try to update the table, Doesnt work this my PHP...

ادامه مطلب

Create native android activity via command line only (makefile)

Vote count: 0 Creating a native activity in android: via vim & Makefile only no use of gradle, ant, maven, android.mk and all that other stuff I already created a (java-native) android apk via makefile that works well on my Samsung S7. When I try to run the app, it crashes. My gut feeling says I haven't compiled/linked the android_native_app_glue.c --> libandroid_native_app_glue.a with main.cpp --> libnative-activity.so properly. It works fine with Google's pre-compiled armeabi-v7a libnative-act...

ادامه مطلب

How to access the holder element outside view Holder in adapter android?

Vote count: 0 I have a ViewHolder Class. class VHHeader extends RecyclerView.ViewHolder{ TextView txtTitle; RecyclerView recyclerView; public VHHeader(View itemView) { super(itemView); this.txtTitle = (TextView)itemView.findViewById(R.id.txtHeader); this.recyclerView =(RecyclerView)itemView.findViewById(R.id.recyclerView); } } Now I want to access this View Holders recycler view in some different method in same adapter class . Public void useRecyclerView(){ } How to use the element of View Holde...

ادامه مطلب

how to find samples for "Scan" buttons in android antiviruses

Vote count: 0 I'm looking for some samples of "scan" button like what you see below. I don't know what to search.Do they use Gifs?how can I find some examples?Some of them have really interesting animations both when you click on it and when you don't and they are fixed (they repeat an animation). here is some examples.They are some pictures that I found from google.They are just to give a tip about what I want. Thanks in advance. PIC 1 PIC 2 asked 9 secs agoMorteza Ariyan Let's block ads!...

ادامه مطلب

Android location detection WITHOUT bluetooth connection

Vote count: 0 My location detection works BUT it doesn't work when I discoect the smartphone from the watch. Is there a way to still be able to check location but without the smartphone. I used this tutorial for location detection: https://developer.android.com/training/articles/wear-location-detection.html this is the code now: mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(LocationServices.API) .addApi(Wearable.API) // used for data layer API .addCoectionCallbacks(this) .addOnCoe...

ادامه مطلب

Android MapView in ListView Headeris is not calling onTouchEvent

Vote count: 0 I have a ListView where I add a Google Map MapView into the header view, below is the code on how I do that: vListViewTrips.addHeaderView(vMapHeaderView, null, false); The map is shown and works but the map does not handle any gestures when its being touched even though all gestures are anebled by: googleMap.getUiSettings().setAllGesturesEnabled(true); Based on some searches that I did I tried to extend MapView and override the public boolean dispatchTouchEvent(final MotionEvent mo...

ادامه مطلب

Exception Decoding Bitmap Error in Android: Attempt to invoke virtual method 'android.os.ParcelFileDescriptor

Vote count: 0 I have an application that is having some buttons that implement some features. Two of them is: Share Image - The images provided by the app which users can share. "Set As" - Users cal also utilize "set as" features (Set As wallpaper, contact picture, etc.). The app is currently not live, so I tested it's apk on my mobile and 2-3 other Android mobiles. The app is ruing correctly only on my device, but here's what I found, "Share" and "Set As" isn't working on emulator - Log cat ERR...

ادامه مطلب

Android: Show a Canvas on a View

Vote count: 0 I am trying to create a Canvas, draw stuff on it, and then show it on a View. My code below runs with no errors, but the Canvas doesn't show. All I see is a blank, black screen. I know there are other ways to do this example, but what I am actually trying to do is draw a bunch of stuff on the Canvas, show it, draw more stuff on the Canvas, show it, etc.... I am very new to Android. I have tried to look, but haven't been able to find any simple solution [simple for me :)] MainActivi...

ادامه مطلب

How to check if there was conflict in SQLite db Android upon inserting?

Vote count: 0 How to check if there was conflict in SQLite Data Base in Android upon inserting? I am using unique keys on 3 rows (id, isbn, google_id) and I simply always add and ignore conflict. What are the ways to get conflicts upon inserting in entry already exists. Should I query before or I can get like "some kind of trace back" so that I will be able to notify user that entry already exists? SQLiteDatabase db = this.getWritableDatabase(); ContentValues values = new ContentValues(); values...

ادامه مطلب

Using ImageJ library with Android

Vote count: 0 I want to use ImagePlus and ImageProcessor in my Android application for some processing on captured images but ImageJ is dependent on Java AWT which is not supported by Android. Resources state that ImageJ2 has no dependency on AWT but is it complete and does it have the same functionalities (classes and methods) provided by ImageJ? (I need to use ByteProcessor, FloatProcessor methods like isBinary(), resetRoi() and many more). Or else is there any equivalent library in Android wh...

ادامه مطلب

Get a long array from an xml resource in Android program

Vote count: 0 In order to build vibrate patte, I tried to define the array of data, in XML. 0 100 100 Resources r = getResources(); long[]tab_vibrate = r.getIntArray(R.array.tab_bip_1); // Not correct... Vib.vibrate(tab_vibrate, 0); But to get array of values, it seems to be only possible to use getIntArray() which give an Int array, when vibrate needs a long array. Is there a kind of "getLongArray()" method? Or do I have to get data in string then loop to perform a long.parseLong() against each...

ادامه مطلب

Signature pad on Android from Fragment

Vote count: 0 First thanks to the great job!!! I tried to add a signature pad, on a android application using a custom view: public class Firma extends View{ // defines paint and canvas private Paint drawPaint; private Path path = new Path(); public Firma(Context context, AttributeSet attrs) { super(context); setFocusable(true); setFocusableInTouchMode(true); setupPaint(); } private void setupPaint() { // Setup paint with color and stroke styles drawPaint = new Paint(); int paintColor = Color.BL...

ادامه مطلب

How I can use my assets already exported from skech in my Android studio project

Vote count: 0 i've started developing my first android application, I've designed the UI elements in sketch and after i've exported the assets to my project in android studio, I don't know how to use it, like how am i goa use the png-assets in the layouts ? Thank you asked 1 min agoP.Kari Let's block ads!...

ادامه مطلب

Android - Running next if on second button click

Vote count: 0 as subject says I'm looking for a way to run first if on first click on the button and run next if on click on the button Here is what i tried final Button button = (Button) findViewById(R.id.welcomeButton); final TextView textView = (TextView) findViewById(R.id.welcomeText); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View p1) { int x = 1; if (x == 1) { textView.setText(R.string.step1); button.setText("Next"); // heres increment of the variable ...

ادامه مطلب