Android

5K

Solutions

4K

Contributors

Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and tablets. Android's user interface is based on direct manipulation, using touch gestures that loosely correspond to real-world actions, such as swiping, tapping and pinching, to manipulate on-screen objects, along with a virtual keyboard for text input. In addition to touchscreen devices, variants of Android are also used on notebooks, game consoles, digital cameras, televisions, automobiles and other electronics. Applications are usually developed in Java programming language using the Android software development kit (SDK), but other development environments are also available, including Delphi, Ruby and Visual Studio (using C++).

Share tech news, updates, or what's on your mind.

Sign up to Post

In the organization there is an internal ADFS and an external ADFS Proxy.
Being connected through the Wi-Fi in the internal network, from the mobile devices using an office365 account and the Outlook application can not send the mails.
If I use a notebook or PC if I can do it but from mobile devices, no.
If I connect from the mobile via 4G or from an external network if it works.
The difference is that when I'm on the internal network the requests go to the internal ADFS and when I'm out of the network the requests go to the external ADFS Proxy.
Can there be any restrictions in the internal ADFS that blocks active sync communication from cell phones?
We validate the permissions in the network, routing and only see traffic to port 443 to different external IP addresses of lync, office and outlook.
0
Hello,
My problem is that the "JsonUtility.FromJson" is not working on Android, only works on the Unity Editor.
This is my code:
IEnumerator LoadStreamingAsset(string fileName)
    {
        string result;
        string filePath = System.IO.Path.Combine(Application.streamingAssetsPath, fileName);

        if (filePath.Contains("://") || filePath.Contains(":///"))
        {
            WWW www = new WWW(filePath);
            yield return www;
            result = www.text;
        }
        else
        {
            result = File.ReadAllText(filePath);
        }
        GameData loadedData = JsonUtility.FromJson<GameData >(result);
        Questions = loadedData.Questions ;
        Debug.Log("Loaded file: " + result);
    }

Open in new window


Any help?
0
Hello. Im begginer in android studio. When im trying to click the findtask its should intent the activity to the finding task activity, when im click it, it keep on crash on my emulator on android studio. please help me.


here is my manifest


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="my.wedee.com.fireappstesting">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />


    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name="my.wedee.com.fireappstesting.MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="my.wedee.com.fireappstesting.RegisterActivity" />
        <activity android:name="my.wedee.com.fireappstesting.LoginActivity" />
        <activity android:name="my.wedee.com.fireappstesting.SetupActivity" />
        <activity
            

Open in new window

0
Say, Whatsapp Broadcast Msg Info displays READ and Delivered. I want some way to get a list of the Delivered (but not read) in order to be able to resend.
Please suggest a software of method. Does Whatsapp Business make this easier to manage than Whatsapp? I've tried Whatsapp web but this doesn't allow me to export a list and difficult to use in a web interface.
Tx Shaun
0
I have a android application apk file which is build with REACT framework.
I want to exteact the code from the apk(Reverse Engineering).
I used the dex2jar but did't find the core files of tha application (user classes).

Can anyone suggest me away to extact the code from the apk file
0
i have created android xamarin application
min SDK Version = 15
Target version is android 6.0
and compile using android 6.0

Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.NoActionBar'.      SocrateMobile.Droid      C:\devuser\SocrateMobile\Droid\Resources\values\Style.xml
0
I'm using Android Studio and I would like to be able to pickup am image from the gallery, resize it and make it fit inside a rounded square (of about 300x300px) by maintening the correct aspect ratio. At the moment, I'm able to resize it and display it as a circle with this code:

FixBitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), uri);
                bitmap_to_save = scaleBitmapAndKeepRation(FixBitmap, 320, 320);

                RoundedBitmapDrawable roundDrawable = RoundedBitmapDrawableFactory.create(getResources(), bitmap_to_save);
                roundDrawable.setCircular(true);
                p_avatar.setImageDrawable(roundDrawable);

Open in new window


However, I would like to know if it is possible to make the bitmap look like my attached image. Moreover, it would be important for me to resize the image without losing the original aspect ratio.

avatar-circle.png
It is not exactly a well square rounded figure, so I'm not sure that it is possible to do it in Android.

I hope you can help me, thanks!

EDIT: I'm using Picasso library for the moment, and it seems to work. Anyway, I would like to keep always the same picture size (300x300 px) and the aspect ratio. How can I do it?
0
I used following code for phone call.But the call is not working .can anyone help me? I also given manfest Call Phone permission.

 call = (TextView) findViewById(R.id.GuestPhoneNo1);
        call.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                String no = call.getText().toString();
            //    Toast.makeText(Accepted_Details.this, no, Toast.LENGTH_SHORT).show();
                Intent callIntent = new Intent(Intent.ACTION_CALL);
                callIntent.setData(Uri.parse("tel:" + no));


                /*if (ActivityCompat.checkSelfPermission(Accepted_Details.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
                    // TODO: Consider calling
                    //    ActivityCompat#requestPermissions
                    // here to request the missing permissions, and then overriding
                    //   public void onRequestPermissionsResult(int requestCode, String[] permissions,
                    //                                          int[] grantResults)
                    // to handle the case where the user grants the permission. See the documentation
                    // for ActivityCompat#requestPermissions for more details.
                    return;
                }*/
                startActivity(callIntent);
            }
        });
0
"Connection error 4 please try again later"

 While trying to play the game Dr. Dominoes ....l have been playing this game for months without any problems and , l can play game on my tablet not on my cell anymore. I have uninstalled/reinstalled, forced stop,  cleared caches, used a repair APP and nothing is working.
0
Firebase Notification with application server in java Not Showing on Android Device

my problem is Firebase Notification Not Showing on Android Device i can send a notification from my own Application Server in java and Not Showing on Android Device but,i can send a notification from the Firebase Console an show it in android device My problem is that when a notification is sent, I don't receive with my own Application Server in java

AUTH_KEY_FCM the key server in firebase console DeviceIdKey sender id in firebase console API_URL_FCM = "https://fcm.googleapis.com/fcm/send"; the code is below

help me please

my app in java to send notification with netbean 8.2

package pushnotificationsend;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import org.json.simple.JSONObject;

/**
*
* @author Adel
*/
public class PUSHNOTIFICATIONSEND {

/**
 * @param args the command line arguments
 */
public static void main(String[] args) throws MalformedURLException, IOException {

String AUTH_KEY_FCM = "AAAAA6xSQ6U:APA91bGpckWmUGFW31q4c9HdOG2h3ubcGSJRh9eaxNVNTLBt4i4K39nMC7puvU1q8MFpCCLce8HGluTb-            xIJrwf9j8m2gaxAyVYwXkgm4WGLFcCaM1oV5PRF_IcobkY9DLb2B4C1YjHD";
String API_URL_FCM = "https://fcm.googleapis.com/fcm/send";
String  DeviceIdKey = "15775974309";

String authKey = …
0
I have linearlayout with lot of Textviews, I need to enable select/copy to clipboard.

I don't want to copy only one textview, instead i need to select more than one textview in the same time to copy.
0
Hi Experts,

Can you help me to find the best way to store the  already logged multiple username and password  in an android app and is there any limit to store the values?
0
Dear Sir

I am a General Manager in Habib Bank Ltd, Pakistan. We received a task to send our
clients bank statements on Whatsapp on client's request. It is too hard to know our
how many clients mobile numbers are on whatsapp. We have to find out we have our many
clients data which we have to refine.

Its not possible on android that's why we are working in Excel Sheet as sample excel
file attached with our bank clients name and numbers. This is a sample file and we have
a 50 to 60 thousand numbers in each excel file which we have to refine which numbers on
whatsapp.

I am not a developer or not know about languages even beginner in excel but i want to
solve this issue can you please help me out.

I also attached Wa_contacts file in xlsx format which i extracted from WA.DB
In Wa_contacts xlsx file our contact mobile numbers are showing in Column F
and is_whatsapp_user values are showing in Column C
WA_contacts.xlsx file just for idea that how whatsapp refine data in database

Is there any solution to make a macro or VBA or any command to verify which
numbers are registered on whatsapp.

Hope you understand
0
I am working on creating an android app that scans the deleted data which is not overwritten by android device and recovers it, just like data recovery tool. How to create a recovery tool inside an android app is there a tutorial or any thing?
0
Hello Experts,

We have a file (demo.html) on Linux (Centos 6.8 64bit) system, we need to send this file using internet connection to my client as a text or WhatsApp message on his mobile. Currently i am sending this file using (sendmail) email.

Please suggest
0
Why my Kindle Fire device is unable not connect to a Wi-Fi network?
0
Hello experts I'm just new here. I  need a help about a scoreboard i am making here's the scoreboard i want to achieve .



I actually have 4 tables and each tables has it's own scoreboard but for this question only for table 1 is i need so here's how I am creating this kind of scoreboard

Now what i have done so far is this

     
if (gametable_no == 1)
            {
                for (int i = 0; i < tzPlayInfo.Instance.bc_gametable_history_list.Count; i++)
                {
                    newString[0] += tzPlayInfo.Instance.bc_gametable_history_list[i].r;
                    newString[0] += ",";
                }
                string[] groupedString = newString[0].Split(',');
    
                foreach (string allchars in groupedString)
                {
                    int x = 0;
                    int y = 0;
    
                    GameObject o = Instantiate(prefab_big_road[0]) as GameObject;
                    o.transform.SetParent(pos_big_road[0]);
                    o.transform.localScale = Vector3.one;
                    o.transform.localPosition = new Vector3(2.0f, -5.0f, 0f);
                    o.transform.localPosition = new Vector3(o.transform.localPosition.x + x, 
                        o.transform.localPosition.y + y, o.transform.localPosition.z);
    
    
                    if (allchars.Contains(playerwinnopairboth))
                    {
                        o.GetComponent<UISprite>().spriteName = 

Open in new window

0
We want to offer our customers the possibility to download their APN settings trough a browser.
Apple has a Configuration Utility, that works fine.

It seems to be an XML like binary, that includes the details of the APN settings.
When accessing this file in the default (Safari) browser, it asks if you wish to load the config. If so, it loads the APN settings into the phone.

Does Android offer the same option?
0
Hi,

My team has been developing various native mobile apps for the last number of years. I always perceived React Native (RN) in a negative manner, over the last number of years, as i felt the output wasn't native. However RN seems to have come a long way in the last 12 months.

I was speaking to someone recently who said that RN is fully native as it "spits out native code for both iOS and Android" once you write the Javascript code in RN... however most of the reading that I have read up on compares the performance for RN apps VS Native apps... if RN is native, then how and why would you compare?

Can anyone confirm the following please:

01 - does RN just output / execute Native iOS and Native Android, once you have completed your project in JS, in RN?

02 - does RN provide all of the same functions as Native iOS and Native Android?

03 - obviously RN will enable you to deliver an iOS and Android app in half the time as you only have one code base... but does writing the one code base actually take longer than writing one native app?

Thanks in advance for your help.
0
Getting following error message while emulate android through cordova
Tried all command cordova run --emulator, cordova emulate android, cordova build android ...
---------------------------------------

CordovaProjects$ cordova run --emulator
Android Studio project detected
ANDROID_HOME=/home/gurpinder/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
studio

FAILURE: Could not determine which tasks to execute.

* What went wrong:
Task 'wrapper' not found in root project 'android'.

* Try:
Run gradle tasks to get a list of available tasks.

BUILD FAILED
0
Looking for an application that works as a template allow input on an android table that can be imported into an access database?

May or may not have internet connection at the time data is taken in the field
0
CODE:
package me.DevGamer08.g24l;


import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by Gamer08 on 31.03.2018.
 */

public class Mysql {
    //Local Server
    public static String host= "127.0.0.1";
    //public static String host = "localhost";
    public static String port = "3306";
    public static String database = "app";
    public static String username = "root";
    public static String password = "";

    public static String getID(String Name){
        try{
            PreparedStatement ps = Mysql.getStatement("SELECT * FROM user WHERE username= ?");
            //ps.setString(1, Name);
            ps.setString(0, "Gamer08");
            ResultSet rs = ps.executeQuery();
            rs.next();
            String coins = rs.getString("passwort");
            rs.close();
            ps.close();
            con.createStatement();
            return coins;
        }catch(Exception ex){
            ex.printStackTrace();
        }
    return null;
    }

    public static Connection con;

    public static boolean isConnected(){
        return con != null;
    }

    public static void connect(){
        if(!isConnected()) try {
            Class.forName("net.sourceforge.jtds.jdbc.Driver");
            Class.forName("com.mysql.jdbc.Driver");
            con = DriverManager.getConnection("jdbc:mysql://" +…
0
Am sorry for asking this question it's because am still trying to figure out how to crack it
for example in case of multiple website url i can parse it from activity to webview like below

Activity A

switch (menuItem.getItemId()) {
                    //Replacing the main content with ContentFragment Which is our Inbox View;
                    case R.id.navigation_item_news:
                        Intent i = new Intent(InternalMedicine2016.this, WACPNews.class);
                        i.putExtra("wacscoac.org/index.php", "http://www.wac-physicians.org/");
                        startActivity(i);
                        return true;
                    case R.id.navigation_item_courses:
                        Intent i1 = new Intent(InternalMedicine2016.this, WACPNews.class);
                        i1.putExtra("courses", "http://www.wac-physicians.org/content/examination");
                        startActivity(i1);
                        return true;
                    case R.id.navigation_item_forms:
                        Intent i2 = new Intent(InternalMedicine2016.this, WACPNews.class);
                        i2.putExtra("forms", "http://www.wac-physicians.org/content/membership");
                        startActivity(i2);
                        return true;
                    default:
                        Toast.makeText(getApplicationContext(), "Somethings Wrong", Toast.LENGTH_SHORT).show();
                        return true;
                }

Open in new window


Webview Activity

Bundle extras = getIntent().getExtras();
        if (extras !=null)
        {
            String wacscoacUrl = extras.getString("wacscoac.org/index.php");
            String coursesUrl = extras.getString("courses");
            String formsUrl = extras.getString("forms");
            



            if (wacscoacUrl != null)
                view.loadUrl(wacscoacUrl);
            else if (coursesUrl != null)
                view.loadUrl(coursesUrl);
            else if (formsUrl != null)
                view.loadUrl(formsUrl);

        }

Open in new window


What if am passing multiple youtube video url via intent and clicklistener how will i recieve and play each video in youtubeview activity
when user clicks any listed url

Activity A


Open in new window

0
Hi, i am looking to play some videos, docs, on an Kindle - i want to lock it down and just play this for a demo, how can i accomplish that?
0
I had this question after viewing Phone Can't Connect to Exchange Server.

Hi,

I used to receive my office Microsoft exchange e-mails on my phone but since 1st of April E-mails stopped coming through.

This happens to every user on the server, so nobody is receiving the emails on their regardless of whether its IOS or Android.  

Not sure the cause of it, does anyone faces problems like this and how to resolve this?

Few more details below :-

It's SBS2011 and Microsfot Exchange 2010.
0

Android

5K

Solutions

4K

Contributors

Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and tablets. Android's user interface is based on direct manipulation, using touch gestures that loosely correspond to real-world actions, such as swiping, tapping and pinching, to manipulate on-screen objects, along with a virtual keyboard for text input. In addition to touchscreen devices, variants of Android are also used on notebooks, game consoles, digital cameras, televisions, automobiles and other electronics. Applications are usually developed in Java programming language using the Android software development kit (SDK), but other development environments are also available, including Delphi, Ruby and Visual Studio (using C++).