Vote count: 0 I would need to code an application that allows two Android devices to communicate using a microUSB/microUSB OTG cable. Is this possible? How? I couldn't find any practical example of this, and I'm not even sure it's possible: by default, when two devices are coected, the host one can see files on the guest one, so I guess communication is handled by the operating system, not an user app. Does it need root? Any help is appreciated! Thanks asked 50 secs agoFrCr This entry passed thr...
ادامه مطلبVote count: 0 I Want delete last outgoing call from callog when call has end. Cursor c=context.getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,null,null,null,CallLog.Calls.DATE + " DESC"); hear i got the last callog but how to delete it?? My sample code in mycallreceiver: if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(TelephonyManager.EXTRA_STATE_IDLE)) { Cursor c=context.getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,null,null,null,Ca...
ادامه مطلبVote count: 0 I tried implementing choiceMode in RecyclerView. What I want is whenever any grid item is clicked,its background color changes & looks like it is selected. I have used a library: https://github.com/bignerdranch/recyclerview-multiselect but when I implemented it more than one items are getting selected. I wanted to change background color of only items which are selected recently & leaving the other items with default background. GitHub Repo: https://github.com/abhinituk/PopularMovi...
ادامه مطلبVote count: 0 I wrote Javadoc style comments like this in my project /**Description.. * @param ... * @retu ..... How do I generate Javadoc HTML from Android Studio? asked 28 secs agoCenxui 1 Answer Vote count: 0 In Eclipse you can "Project -> Generate JavaDoc In Android Studio you can "Tools -> Generate JavaDoc" answered 28 secs agoCenxui Let's block ads!...
ادامه مطلبVote count: 0 I need access to Radio Button outside onCreateView() public void loadArray(String arrayName, Context mContext) { SharedPreferences prefs = mContext.getSharedPreferences("preferencename", 0); int size = prefs.getInt(arrayName + "_size", 0); int array[] = new int[size]; for(int i=0;i...
ادامه مطلبVote count: 0 The problem is that my GCM message arrives at my app but is not (automatically) displayed on screen. 07-06 21:33:11.525 11269-11269/com.example.myapp D/ActivityThread: BDC-Calling onReceive: intent=Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10000010 pkg=com.example.myapp cmp=com.example.myapp/com.google.android.gms.gcm.GcmReceiver (has extras) }, receiver=com.google.android.gms.gcm.GcmReceiver@3a59595e 07-06 21:33:11.534 11269-11269/com.example.myapp D/ActivityThread...
ادامه مطلبVote count: 0 I've been looking for a way to create a Stacked Area chart with MPAndroidChart such as the one available with NVD3 I successfully managed to create a Line chart and tried to add several lines and filled the area, but the values can't be stacked. I don't want to use the Stacked Bar chart because the value progression is not visually explicit enough. Is there any easy possibilities to do that with MPAndroidChart? asked 1 min agoSparteam Let's block ads!...
ادامه مطلبVote count: 0 I have shared lib named libModuleA.so, it has few exported header files . Let file A.hpp is one of them. Now 'module B' which is dependent on 'module A' includes it in LOCAL_SHARED_LIBRARIES := libModuleA and it also exports few header files using LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) line. Let file B.hpp is one of the exported files from 'module B'. I am able to build both of these modules successfully. There is an another 'module C' which uses 'module B'. Android.mk file o...
ادامه مطلبVote count: 0 I have two app one app is named as "A" and another app named as "B" ,scenario is something like that app B is integrated in app A and App B has a class called "CLoginSessionManagement" which contain code for user data stored in that class.What I want in App "A" to access user data from "CLoginSessionManagement" and make condition if user is login or not .how can I do that code for CLoginSessionManagement:- public class CLoginSessionManagement { // User name (make variable public to...
ادامه مطلبVote count: 0 I am trying to display some formatted html text in a fragment. I have seen the other similar resolved issues but they mostly involve getting the html and css into the project local assets. For what I am trying to do, the html and css are in exteal locations and can't be downloaded/copied locally (see below). However, when the app runs, the css formatting wasn't applied to the text. Can anyone help me please ..? @Override public View onCreateView(LayoutInflater inflater, ViewGroup c...
ادامه مطلبVote count: 0 Good day.I want to create an share field like facebook.In the facebook if you insert an link it will automatically get the lets say 'short preview' of your link with an title and image.I dont think that facebook got in touch with whole wordls website databses so it gather them from databse but rather parsing the url somehow.Anyway lets imagine i have an edittext with user letting input some ulr.How can i achieve this kind of technique?By googling i did not find anything closer to w...
ادامه مطلبVote count: -1 I'm relatively new to app development. I want to build a back-end for my application where I can upload files (images/mp3's etc.) then display it in my app once uploaded. Can someone please tell me where to start, what should I know, just general knowledge will be appreciated. Noob question, but we all started out asking noob questions ;) asked 42 secs agoB.Roux Let's block ads!...
ادامه مطلبVote count: -1 infos / I am working with fragments I made a public void method (InitList) which contains an Array (list's data will be stored in a listview) list = new String[] {"txt1", "txt2", .... }; when I call this method in the onCreateView() I get a NullPointerEception asked 1 min agoAnis Vikees Let's block ads!...
ادامه مطلبVote count: 0 I got problems when I try to get info from XML to a string array. Is works fine if I only have one if statment withinf the: if (eventType == XmlPullParser.START_TAG) {...} The thing is tho, I want to diffrent things to my array, both "Allergen" and "Artikelbenamning". Not sure if the problem is in the doInBackground or in the onPostExecute. Any suggestions on what i've done wrong? The app dosen't crash it just never present the data. Code: protected ArrayList doInBackground(String[...
ادامه مطلبVote count: 0 I want to scroll listview horizontally in my android application. I found many solutions on inteet but that doesn't work for me. Anywhere i found a solution to use gallery instead of listview. But now problem is that, the distance between two consecutive textviews is very much, as shown in image. So i want to reduce it. So that i can scroll and view text effectively. Screen shot of current view MainActivity import android.os.Bundle; import android.support.design.widget.FloatingActi...
ادامه مطلبVote count: 0 I want to write an Android Bluetooth Low Energy app that involves multiple GATT characteristic read and write (e.g., firmware over-the-air update). The timing and sequence of the operations is crucial, meaning that the next read/write should be initiated after the previous read/write is acknowledged in the GATT callback. Something similar to the "async" module in Node.js will do. However, in Android, all GATT callbacks are defined in a single "BluetoothGattCallback" class. My under...
ادامه مطلبVote count: 0 We have javascript widget which dynamically loads an iFrame to display exteal content. When iframe have loaded or it's content have resized it send message via postMessage. Widget get a message and resize iframe: iframe.style.height = msg.value + 'px'; It works correctly on most browsers except chrome 50 on Android 5.0. Besides this code don't work on Windows Mobile Emulator on browserstack. I tried to change property and attribute: iframe.setAttribute("height", msg.value + 'px'); ...
ادامه مطلبVote count: 0 I am completely new to wordpress development. I have a website in WordPress. I want to send the data from my database table to an android app. I am confused about how to make the api from wordpress so that I can call the api link from my android app to get the data in json format. I need someone's help badly! asked 25 secs agosa'ad bashar Let's block ads!...
ادامه مطلبVote count: 0 I have an application that uses analytics and Theme.AppCompat.Dialog, so, I need Xamarin.Android.Support.v7.AppCompat The app is works. Now, I want to add google ads. The "package nuget : Xamarin.GooglePlayServices.Ads" includes Xamarin.Android.Support.v4 I did another test project and it works. But, when I add this to my real project, I can not build the app. I have this error: "java.exe" exited with code 1. In the output: 1>C:Program Files (x86)MSBuildXamarinAndroidXamarin.Androi...
ادامه مطلبVote count: 0 I have file libFFmpeg.so. but it is into "srcmainjniLibsarmeabi" When run device with cpu x86. it is crash app. i have to copy libFFmpeg.so to x86,but it is still crash. Can you help me? I can build to x86, min, armeabi... asked 1 min agoNhu Van Let's block ads!...
ادامه مطلب