Facebook error SDK win32 cmd with unit

i tried to implement facebook SDK 7.9.4 so i can use it for leaderboards, ect... but i have some issues with it. After the asset installed in my project and i go to facebook settings, i had got this error: Win32Exception: ApplicationName='cmd', Comma

Exception Attempt to invoke the virtual method

I am trying to setup FileProvider and i'm encountering a lot of problems. The latest is the following exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.l

how to make an oval button in Android?

i have this button i saw on a website and I want to recreate it in xml. But, i cannot get the dimensions right to match it exactly. Below is the code i have so far, but it's not matching the shape exactly. hope someone can help! <shape xmlns:android=

RecyclerView with number of fixed lines

I want to have a recyclerView with fixed row count not scrollable and every row has a fixed height as well to fill all screen. For example, I had 4 rows so row height should be recyclerView height /4. Row layout .xml <android.support.v7.widget.CardVi

Can not Select TextView in DesignTab or XML File

I'm pretty new at this. The problem accurs right after I've created a project with a blank activity. On the screen appears a "Hello World!" TextView but this TextView isn't displayed in the XML File and I can't select it in the Designtab but in

Android json processing

I'm reading json and it works fine. But it's failed to add resulting String into the ArrayList. Any ideas why ? Here is the code. StuffPics class (updated): public class StuffPics { private String imageUrl; public StuffPics() { } public String getIma

How to make the user sign in from one device at a time

I have a RestAPI which when hit authenticate the user. This api is exposed to android and ios developers they hit this api to allow user to login to our app My requirement is this.1) If user has cell phone say abc phone with IMEI "abc1234". He l

How to test apk on previous versions

We developped an app for Android system with Intel xdk. Recently a customer tell us that it doesn't work on android 2.3 version. We would like to know how can we run the file apk on a 2.3 device for testing. If someone has some idea to help us we wou

Android Data Backup: dynamic file list with BackupAgentHelper

I want to backup my internal files. These are created by My App: random number of files and random names. Like data1.xml, data7,xml, data13.xml, .... So I do not have any fixed file list. When MyBackupAgentHelper::onCreate is running before the onBac

Access a class from another class in android

If we need to access a class from another class, we make an object of that class - but why do we use this keyword in parentheses while this isn't required in java? Can someone please help? public class SQLView extends Activity { @Override protected v

Remove the button from inside the fragment

I have a Fragment that contains some Widget(Button, TextView and something else) all declared inside it's xml layout file. Now if a condition is verified, I would remove one of that widget from Fragment layout (not just hide, but remove). It's possib

How can I use onItemSelected in Android?

package org.example.mbtiapplication; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.w

Android preview of several cameras

Is it possible to broadcast the android camera preview into 2 different SurfaceView controls at the same time? I have seen some apps that show effects into different previews in real-time, how do they achieve that? I read about the TextureView, is th

Start a new activity using the button

I have a problem about starting a new activity via using button. I already checked the previous questions related to mine problem, one of them is almost same but solutions didn't work out for me. So here is my problem. I have 2 activity, one called A

Android 2.3 + Phonegap fixed positioning does not work

On my Phonegap app i'm trying to make out a fixed footer and header, that actually in Android 4.0 works great. But on Android 2.3 even if it looks okay, when I start to scroll the header and footer doesen't stay fixed at all, going along with the scr

How to generate a report in Calabash-android

How do we generate reports in calabash android ? I looked in to "The cucumber recipe" book on how to generate report. But that didn't help me completely. I want to generate report on why login failed : For eg : 1) User enter valid credential and

Unfortunately, Messenger stopped. FATAL Exception: main

Possible Duplicate: android.os.NetworkOnMainThreadException When I try to run my 2nd Activity from a Listener on the 1st Activity, main.xml has a fatal exception. When I take out the runTcpClient(); on the TcpClient Thread() it loads up fine. I came

How to change the style of a Picture button programmatically

In this specific Activity, the user should select the destructor chosen of player 1 and player 2 in a rock paper scissors game. I tried several approaches: the first one was to simply let the selected ImageButton clicked, but I do not found any solut

Android share images of the assets folder

I'm trying to share an image from my assets folder. My code is: Intent share = new Intent(Intent.ACTION_SEND); share.setType("image/jpg"); share.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///assets/myImage.jpg")); startActivity(Inte

write to / system / framework in the emulator

I'm in the process of extending monkey for software testing purposes, so I would like to replace the current monkey.jar which my own compiled monkey.jar in the emulator. The current monkey.jar is located at /system/framework/monkey.jar. When I try to