• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Nickname Wi-Fi Connections

Without resorting to an app is there a way to change a wi-fi name on my cell phone. I know how to change my own SSID but I am talking about the numerous wi-fi names on my cell. Most of time when I am at a friends or a business I trust it automatically connects if I have entered the password before. I would like to nickname them to something I can easily identify as one I trust.

MainActivity setup creates different code on startup

Hi just setting out need a little pointer please...

One I go though all the setup in android studio 3.1.2 I get:

package com.example.simplelogin

...
class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
}



Where as all the tutorials I open start something like below:

is this the equivalent? why is it different? Thanks -Hagen



package com.example.sairamkrishna.myapplication;

...


public class MainActivity extends Activity {


@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}

}

[GAME] Crypto Treasures

CRYPTO TREAURES
What if all the cryptocurrency in the world was locked in a Treasure Chest with one single key?​


Be a part of Crypto Treasures with challenging quests that leave you on your toes. Unlock Treasure Chests with Daily and Weekly Quests, all while earning and learning about crypto and blockchain. Perfect for beginners too.

Challenge and entertain yourself with Treasure Chests on the go! Watch Crypto evolve into relevancy while playing fun, interactive, and challenging games. We provide a platform for other apps to tie into our blockchain, thus increasing our ecosystem.

Ready for Adventure?

The Treasure Chests randomly give a collectible Patch Badge, claim all ten to see what’s in store!
Enter the Cave to see your Patch Badge collection & Cryptocurrencies you have earned.

A few features:

Minigames and Quests embedded in Crypto Treasures as stand-alone games
These blockchain games tie back into the platform to earn more points
Accumulate Treasure Chests, Gold and other Items quickly with our in-app shop
A built-in wallet that provides real-time data
Improve the gaming experience with items, such as; a Shovel, Magnet or Crypto Key.

Download: https://play.google.com/store/apps/details?id=com.cryptotreasures

Attachments

  • 1.png
    1.png
    1.7 MB · Views: 248
  • 2.png
    2.png
    1.7 MB · Views: 223
  • 3.png
    3.png
    1.6 MB · Views: 311
  • 4.png
    4.png
    1.8 MB · Views: 336
  • 5.png
    5.png
    1.6 MB · Views: 250
  • 6.png
    6.png
    1.5 MB · Views: 228

App not connecting to Internet on certain phones

Hello,

I am very new when it comes to Android development and I'm having some really frustrating issues. I'm basically trying to access MySQL database through my app (developed in Unity) and while pretty much everything works on my computer, when .apk is installed on my phone (Mi A2) or my collegue's Huawei, it seems to be unable to access the Internet. I have searched for threads of similar issues and have already set Internet access to "Require" in Player Settings. Manifest file also seems to contain the required line
<uses-permission android:name="android.permission.INTERNET"/>
. What's even more frustrating is that if I test the app on Bluestacks it manages to establish the connection, and it also works on Samsung S8. As far as I can tell there are no settings which would block internet access on first two phones.

I really can't find what could be the problem so I'm hopeful some of you might have more clue.

I'm not sure if it's common to post .apks here, but on this link: https://www.mediafire.com/file/rusr76y170anc5s/database.apk/file is the .apk of a test application which checks if internet access is available, if anyone wants to try it out. It's not used to access my database but rather to test which phones are unable to connect to Internet.

Problem with Selected value in a Spinner

Hello,

I have a big problem: When I fill a spinner dynamically with data from a table in a database and want to select a value, this value does not remain displayed, it disappears immediately. (and I only have the little arrow of the Spinner that remains displayed!). I use Android Studio 3.4.1
Thank you for your answer that I hope very fast because I am stuck on this point for several days!

(When the spinner is filled by a static list, there is no problem!)

Best wishes

android project organisation

Hi,
I am doing a project with firestore...so my app have model classes.
I need to import data to preload firestore (reference data, test data and so on) so I used admin SDK but the preload code needs models classes too.

My question :

How organize my project :

1) Should I put admin classes (that do import with a main function) in the app module and tell gradle to not put it in the app when building ?

2) Should I put my admin classes in another module (android library, ..) but in this case where should be my models classes ? in the app module, in the library module, .. ?

Please advice
Ty for your help...

Back camera and flash is not working.

Hi can any one help me with camera.
Am trying to create custom camera with three buttons capture, switch camera , and flash .
when i capture image the image should display in Display.class and save to phone.
but when i use back camera blank page is diaplaying and when i use front camera image is displaying in display activity. Please check my code and tell me what is the problem. Logcat is not showing any error.

Custom_camera_activity.java
Code:
  @Override
    protected void onCreate(final Bundle savedInstanceState) {
        super.onCreate( savedInstanceState );
        setContentView( R.layout.activity_custom__camera );

        //Flash
        hasFlash = getApplicationContext().getPackageManager()
                .hasSystemFeature( PackageManager.FEATURE_CAMERA_FLASH);
        if (!hasFlash) {
            // device doesn't support flash
            // Show alert message and close the application
            AlertDialog alert = new AlertDialog.Builder(Custom_CameraActivity.this)
                    .create();
            alert.setTitle("Error");
            alert.setMessage("Sorry, your device doesn't support flash light!");
            alert.setButton("OK", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int which) {
                    // closing the application
                    finish();
                }
            });
            alert.show();
            return;
        }


        getWindow().addFlags( WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON );
        context = this;

        mCamera = Camera.open();
        mCamera.setDisplayOrientation( 90 );
        camerapreview = (LinearLayout) findViewById( R.id.camera_preview );
        mCameraPreview = new CameraPreview( context, mCamera );
        camerapreview.addView( mCameraPreview );

        capture = (ImageButton) findViewById( R.id.button_capture );
        capture.setOnClickListener( new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                    mCamera.takePicture( null, null, mPicture );
            }
        } );

        switchCamera = (ImageButton) findViewById(R.id.btnSwitch);
        switchCamera.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //get the number of cameras
                int camerasNumber = Camera.getNumberOfCameras();
                if (camerasNumber > 1) {
                    //release the old camera instance
                    //switch camera, from the front and the back and vice versa

                    releaseCamera();
                    chooseCamera();
                } else {


                }
            }
        });

        flash= (ImageButton)findViewById( R.id.bulb ) ;
        flash.setOnClickListener( new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(isFlashOn){
                    turnOffFlash();
                }else{
                    turnOnFlash();
                }
            }
        } );

        mCamera.startPreview();
        //initializeCamera();
    }

    private void turnOnFlash() {
        if (isFlashOn) {
            if (mCamera != null || params != null) {
                return;
            }
            params = mCamera.getParameters();
            params.setFlashMode( Camera.Parameters.FLASH_MODE_OFF);
            mCamera.setParameters(params);
            mCamera.stopPreview();
            isFlashOn = false;
        }
    }

    private void turnOffFlash() {

       if(!isFlashOn) {
            if (mCamera == null || params == null) {
                return;
            }
            params = mCamera.getParameters();
            ((Camera.Parameters) params).setFlashMode( Camera.Parameters.FLASH_MODE_TORCH);
           mCamera.setParameters(params);
           mCamera.startPreview();
            isFlashOn = true;

        }

    }

    private void initializeCamera() {
        int cameraId= findBackFacingCamera();
        if(cameraId >= 0){
            mCamera= Camera.open(cameraId);
            mCamera.setDisplayOrientation( 180 );
            mPicture=getPictureCallBack();
            mCameraPreview.refreshCamera( mCamera );
        }
    }


    private int findFrontFacingCamera() {
        int cameraId = -1;
        // Search for the front facing camera
        int numberOfCameras = Camera.getNumberOfCameras();

        for (int i = 0; i < numberOfCameras; i++) {
            Camera.CameraInfo info = new Camera.CameraInfo();
            Camera.getCameraInfo(i, info);
            if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {
                cameraId = i;
                cameraBack = false;
                break;
            }
        }
        return cameraId;

    }

    private int findBackFacingCamera() {
        int cameraId = -1;
        //Search for the back facing camera
        //get the number of cameras
        int numberOfCameras = Camera.getNumberOfCameras();
        //for every camera check
        for (int i = 0; i < numberOfCameras; i++) {
            Camera.CameraInfo info = new Camera.CameraInfo();
            Camera.getCameraInfo(i, info);
            if (info.facing == Camera.CameraInfo.CAMERA_FACING_BACK) {
                cameraId = i;
                cameraBack = true;
                break;

            }

        }
        return cameraId;
    }

    @Override
    protected void onResume() {
        super.onResume();
        if(mCamera== null){
            mCamera = Camera.open();
            mCamera.setDisplayOrientation( 90 );
            mPicture= getPictureCallBack();
            mCameraPreview.refreshCamera(mCamera);
            Log.d("nu","null");
        }else{
            Log.d("nu","no null");
        }
    }

    public void chooseCamera() {
        //if the camera preview is the front
        if (cameraBack) {
            int cameraId = findFrontFacingCamera();
            if (cameraId >= 0) {
                //open the backFacingCamera
                //set a picture callback
                //refresh the preview

                mCamera = Camera.open(cameraId);
                mCamera.setDisplayOrientation(90);
                mPicture = getPictureCallBack();
                mCameraPreview.refreshCamera(mCamera);
            }
        } else {
            int cameraId = findBackFacingCamera();
            if (cameraId >= 0) {
                //open the backFacingCamera
                //set a picture callback
                //refresh the preview
                mCamera = Camera.open(cameraId);
                mCamera.setDisplayOrientation(90);
                mPicture = getPictureCallBack();
                mCameraPreview.refreshCamera(mCamera);
            }
        }
    }

    @Override
    protected void onPause() {
        super.onPause();
        releaseCamera();
    }

    private void releaseCamera() {
        if(mCamera != null){
            mCamera.stopPreview();
            mCamera.setPreviewCallback( null );
            mCamera.release();
            mCamera= null;
        }
    }
    private Camera.PictureCallback getPictureCallBack() {
        Camera.PictureCallback picture = new Camera.PictureCallback() {
            @Override
            public void onPictureTaken(byte[] data, Camera camera) {
                bitmap = BitmapFactory.decodeByteArray( data,0,data.length );
                Intent intent= new Intent(Custom_CameraActivity.this,Display.class);
                startActivity( intent );
            }
        };
        return  picture;
    }

}
CameraPreview.java
Code:
public class CameraPreview extends SurfaceView implements
        SurfaceHolder.Callback {
    private SurfaceHolder mHolder;
    private Camera mCamera;


    // Constructor that obtains context and camera
    @SuppressWarnings("deprecation")
    public CameraPreview(Context context, Camera camera) {
        super(context);
        this.mCamera = camera;
        this.mHolder = this.getHolder();
        this.mHolder.addCallback(this);
        this.mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
    }

    @Override
    public void surfaceCreated(SurfaceHolder holder) {
        try {
            // create the surface and start camera preview
            if (mCamera == null) {
                mCamera.setPreviewDisplay(holder);
                mCamera.startPreview();
            }
        } catch (IOException e) {
            Log.d(VIEW_LOG_TAG, "Error setting camera preview: " + e.getMessage());
        }
    }

    public void refreshCamera(Camera camera){
        if(mHolder.getSurface()== null){
            return;
        }
        try{
            mCamera.stopPreview();
        }catch (Exception e){

        }
        setCamera(camera);
        try{
            mCamera.setPreviewDisplay( mHolder );
            mCamera.startPreview();
        }catch (Exception e){
            Log.d(VIEW_LOG_TAG,"Error Starting camera preview: " +e.getMessage());

        }
    }

    private void setCamera(Camera camera) {
        mCamera = camera;
    }

    @Override
    public void surfaceDestroyed(SurfaceHolder surfaceHolder) {

    }

    @Override
    public void surfaceChanged(SurfaceHolder Holder, int format,
                               int width, int height) {
        // start preview with new settings
       refreshCamera( mCamera );

    }


}

Display.java
Code:
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate( savedInstanceState );
    setContentView( R.layout.activity_display );

    image = findViewById( R.id.imageView );
    scancode=findViewById( R.id.scan );
    scancode.setOnClickListener( this );

    image.setImageBitmap( Custom_CameraActivity.bitmap);
    saveImage(Custom_CameraActivity.bitmap);


private String  saveImage(Bitmap mybitmap) {
    ByteArrayOutputStream bytes = new ByteArrayOutputStream(  );
    mybitmap.compress( Bitmap.CompressFormat.JPEG,90,bytes );
    File file= new File( Environment.getExternalStorageDirectory() + IMAGE_DIRECTORY );
    if(!file.exists() ){
        Log.d("dirrrrrr","" + file.mkdirs());
        file.mkdirs();
    }
    try{
        File f = new File( file, Calendar.getInstance().getTimeInMillis() + ".jpg");
        f.createNewFile();
        FileOutputStream fo = new FileOutputStream( f );
        fo.write( bytes.toByteArray() );
        MediaScannerConnection.scanFile( this,new String[]{f.getPath()} ,
                new String[]{"image/jpeg"},null);
        fo.close();
        Log.d( "TAG","File Saved:: ---- " + f.getAbsolutePath() );
        return f.getAbsolutePath();
    }catch(IOException e1){
        e1.printStackTrace();
    }
    return "";
}

Please check this code and help me to trace the issue.

RR 7.1.2 no finger print reader at all.

Done know why this is. I can install another ROM and get the finger print reader I've purchased another reader and it isn't that. The ROM will not detect it or even give the option to use it. Also the flashlight for this ROM doesn't work. I've found a flashlight fix made by some one else but it works fine. It took me a min but I have this ROM running fine outside the small problems with met Magisk man 7.3.1 and magisk 19.3 really I've done nothing but proper install and I can't figure out if I did something wrong with flashing this ROM so hit me back with some ideas on what is up with this. If these two small details can be fixed this is by far the best ROM. It will be perfect.

RCS messaging available now!

Want RCS messaging now? See post #5 for instructions and, "How to", video


Good news for those that have converted their T-Mobile (USA) phones to the global model.

Google are taking RCS, (Rich Communication Suite), out of the hands of the carriers, some of whom were insisting on their own faux, ersatz, versions of RCS, (no names mentioned... (T-Mobile/AT&T/Verizon/Bell/SK Telecom)), and are rolling it out themselves on their own Universal Profile...

GOOGLE IS FINALLY TAKING CHARGE OF THE RCS ROLLOUT


See, also...

Google will let Android users in the UK and France use RCS regardless of carrier support

New Update is live!

Hey, gang! Added new content and artwork to Wasteland Highway! Do you have the grit and speed it takes to survive the wastelands?

Just a reminder: I'd LOVE to have anyone willing to test Wasteland Highway on their Android device and give feedback. Not looking for reviews, but ways to improve user experience. Testers will be given credit in the game's CREDIT section (with permission). Happy gaming!

Help Smartphone WiFi speed variations on five units

I have three smartphones and two tablets all connected to a BT Home hub 6.

All but one is able to download at approx 48Mbps anywhere in my home with the exception of a Samsung Core Prime that also will download at 48Mbps when in the same room as the router, but move away from the router and the download speed plummets.

I have accessed the BT Home Hub Manager and it would appear that all of the android devices are using 2.4GHZ setting. Why should the Core Prime be different?

Apps Android alarm manager is not triggering in few devices which phones is locked for long time

I want to reset some shared preference values in the app to zero by 12 am midnight. Android alarm manager is not triggering in a few devices (1+, OPPO) which phones are locked for a long time.

My code is this

"alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), (syncInterval), pendingIntent);" // For Sync every hour

"alarmManager.setExact(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), pendingIntent);" // For reset EOD

any help/suggestions are highly appreciated. Thanks in advance.

Some of the BT headset microphone does not work after reboot

Dear Androidforums,

I am working on blugiga with Android Nougat. Some of the BT Headset microphone dose not work after reboot but speaker is working fine.

I checked with different BT headset and some of the headset I found this problem.

I got soc link id is 255 at the time I got data as "SYNTAX ERROR"

Please find the below log,

bt_bluegiga_headset: length:12 Data:SCO OPEN 255

bt_bluegiga_headset: length:12 Data:SYNTAX ERROR




And also Please check the below working log,

bt_bluegiga_headset: length:10 Data:SCO OPEN 2

bt_bluegiga_headset: length:13 Data:CONNECT 4 SCO




Please response, If anyone in experience.



Thanks & Regards,

VinothS.

Trying ADW Launcher 2

Ha ha, it's dead around here so I thought I'd post something! Maybe get some conversation started. :)

I've been using ADW Launcher 1 EX (paid) for many years. I have absolutely no complaints about it--well, except for the status bar and dock transparency thing that started with the May 28th update.

But, on a whim today, I decided to buy ADW Launcher 2. After tinkering with its settings for awhile, I've decided either I'm missing something, or it is! :eek:

I imported a backup from 1 and that took care of some things, but not all. For example, I can't find its setting for 'custom color' for icon backgrounds. There are several other things I haven't found yet, either. I hope I just haven't found them yet, and it's not that they've been removed.

If you're reading this, feel free to jump in and discuss my favorite launcher(s)! :D

  • Poll Poll
[ROM]-v9 GamerROM Eclipse™ Pro v1.50 for the Nexus 6P (angler) Updated: 10/30/19

Do you like GRE Pro?..Why not give us a rating!

  • Votes: 0 0.0%
  • ⭐⭐

    Votes: 0 0.0%
  • ⭐⭐⭐

    Votes: 0 0.0%
  • ⭐⭐⭐⭐

    Votes: 0 0.0%
  • ⭐⭐⭐⭐⭐

    Votes: 3 100.0%

huawei-nexus-6p-tempered-glass-by-cellhelmet_orig.png

Welcome to:

GamerROM Eclipse Pro™
For the Huawei Nexus 6P (angler)

Official Trailer Preview:


RATE THIS OS: If your using the Android Forums application, this thread has a dedicated poll to rate and give feedback based on your vote to help improve the OS overtime, unfortunately due to the application not supporting polls yet, you will need to vote on the website itself!

Features:

• Fast & Secured OS to keep you safe from thief's.

• Full LineageOS ASOP Experience Supported with its uniques features we implemented..

• Fast connectivity for the best connection to our servers.

• Create your own Media Server with our new DLNA Media Server feature.

• Screen Record you screen and show off your amazing gameplay's.

• Manage RAM Management with Task Manager.



• Fully Optimized for the Nexus 6P hardware.

• Experience a Full Pixel Experience OS!

• No FBE (File-Based-Encryption) needed as it doesn't utilize it!

• Better performance then the Nexus 6 (shamu) using the Nexus 6P hardware and much more.

IMPORTANT NOTICE: Before you install this OS keep in mind the following warning...This OS has Google Apps pre-installed and no need to install your own gapps package, if you plan to install a gapps package the OS may fail to boot YOU HAVE BEEN WARNED!

Notice about root: root is only supported by using Magisk in this build we included the app in the build all you need to do is update Magisk via recovery.

Notice about encryption (MUST READ): I encountered a new issue with the newest security update, this can be fixed by performing a full factory reset in your TWRP recovery. Just reset, then reboot into recovery again then perform the same action and reboot system. This only happens if your device was previously encrypted

Bugs:

• you tell me.

OTA (Over-The-Air) Updates Notice: This OS OS longer support over the air updates since we have discontinued the footed version of the OS, we are now moving forward with a stock version but same OS but eithout root apps baked in, you can still root the OS as you please

Download: https://gamerromos.weebly.com/huawei-nexus-6p.html


Join Disscussion On Telegram: https://t.me/GamerROM

Version: v1.50

Android Version: v9

Official OS Release Date: 06/17/2019


Latest Security Patch: October 5, 2019

More Information for this build:


ASOP Source Code: https://gitlab.com/users/winxuser/projects

Apps How hard would this App to code?

Hey,
I want to create a simple app, which reminds you to cancle subscriptions.
So my app should be like this:

You have a "Home" Button in the App where all your Subscriptions and their due dates are listed
(all manual added by you)
And you have a "Add" page where you can add your subscription with the following terms:

Name:
Cancle Date:

Nothing more, and all your added subsriptions should be listed on the "Home" Page.
Now, if its one day before the "cancle-date" of your subscriptions, the app should send you
a Push Notification like this: Don't forget to cancle <NAME> at the <cancle_date>.

Anyone here can tell me how hard this App will be for a complete newbie? And Should I create
this app in HTML/Javascript at my PC or in Android Studios as complete App?

Best Regards,
Lushen4800 <3

Filter

Back
Top Bottom