How to make pull request from android studio? - android

I forked application to android studio and when I try to make a pull request:
I get :
Can't Create Pull Request
Push failed:
failed to push some refs to 'https://github.com/projectname.git'
What is the right way to do that?
Note :
I can commit and update my projects but I can't make pull request to other projects.

This is obviously an authentication problem. There are WAY too many unknowns, so I doubt anyone can give you a definitive answer. Here are the steps to investigate in order to solve it:
Is your GitHub Account authenticated with your Android Studio installation? Check your Android Studio Settings.
In order to authenticate you need to generate an Access Token through your Github account settings and use that token as seen in the picture above. When generating a new token, normally I would advise you to be careful with the permissions you grant to it. For debugging your issue, generate a new one with full access to everything and delete it as soon as you resolve your issue.
Last, if both of the above steps are done correctly and you still can't open a PR. Make sure the repository you trying to open a PR on, allows third party users to perform such actions.
NOTE: You can always commit code in your local repository. That lives in your local environment (a.k.a. your computer) and you have full permission to do whatever you please with it. That doesn't mean the changes you do locally, will be reflected in the remote repository (a.k.a. the one hosted at Github servers).

First you need to install git client and configure with Android studio then you need to enable git into android studio from VCS option. and then you can see on toolbar 2 icon will come for push and pull request.
by these two option you can do pull and push very easly.
please have look this.
http://prntscr.com/hgvbxw
reference-https://javapapers.com/android/android-studio-git-tutorial/

Related

Caching server for Android or some thing similar

Our Android app will be used in a place without internet. We have one server with limited internet there.
Can user download the app from the server instead of google play, the way we can use ios cache server?
If we keep a copy of app in the server and install from it, how can we update the app with latest version?
Thanks.
You can host the apk file on the server and download it to the devices for installation. However, you first need to enable third party source installation for the devices.
Link how to here,
https://www.cnet.com/how-to/how-to-enable-third-party-app-installation-on-most-android-phones/
In terms of the update, you can always update the apk file anytime but you might need a separate system to notify the users/devices about the update. Probably by using SMS.

Use GCM rather than FCM

I still using Eclipse for development. I used to use GCM for push notification and just realised that Google introduced FCM while ago. I have problem to setup FCM jar files on Eclipse. Tried to use Google's Youtube video on Github to import libraries but still have problem with that and I prefer to get back to GCM if it is still available. I searched but didn't find the GCM Console anymore. Just wonder if anyone know what can I do ??
Turns out that you can still use google-console.
Go to this link to create a new project or see projectId of available projects: https://console.developers.google.com/iam-admin/
Then you can add credentials for this project or you can go to this link to see availabe projects and their credentials: https://console.developers.google.com/apis/credentials/
You will see something similar to below image. In yellow box you can choose your project name. You can create a new credential by choosing the blue box.
Also note that you can choose your key to be unrestricted which gives you the liberty to use it in different applications, or you can restrict it to be more secure.
I don't believe you can create new projects with GCM.
I recently setup an app with push notifications but I was unable to use GCM and had to create a new Firebase project to be able to use FCM

How can I put phpmyadmin online using xampp?

I am writing web-services for Android and don't know how to put phpmyadmin online for outside access.
Its help is given on appache friends website.
I also have try this and its working
In the basic configuration of XAMPP, phpMyAdmin is accessible only from the same host that XAMPP is running on, at http://127.0.0.1 or http://localhost.
To enable remote access to phpMyAdmin, follow these steps:
Edit the apache\conf\extra\httpd-xampp.conf file in your XAMPP installation directory.
Within this file, find the line below and update it to remove 'phpmyadmin' from the list of locations.
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Restart the Apache server using the XAMPP control panel.
Hope this will help
PhpMyAdmin will, or should come installed on your web-host server if using a reputable hosting provider. In which case, the PhpMyAdmin panel will be accessible via your hosting panel dashboard once setup.
If you are going to be performing your own hosting you should most likely, download the latest (or required) version from the PHP.net site. And then installed to your server via command prompt or direct install.
Just follow the instructions on the website.
http://php.net/downloads.php

Cannot find the Debug Tab for Azure Notifications Hub (New UI)

I am following this tutorial Getting started with Azure Notifications Hub for Xamarin.Android
I have everything setup for my app and now I need to send a test notification to see if my configuration is correct but the Debug tab seems to have gone missing.
Can anyone point me in the right direction ? Any help is appreciated.
Thanks!
I don't know if you're using Visual Studio but if so, you can also use the Server Explorer. Add you Azure subscription there and navigate to the Notification Hub.
From there you have all the functionality which is also available from the Debug tab on Azure.
Checking out the new portal, I think this functionality is (not) yet available.
There is however an option to go back to the 'full' Azure portal (which also implicates not everything is available yet).
Another option is to use the Service Bus Explorer, although this application has been giving me some trouble for the past few days.
This option, and all others, are described here.
Debug tab is available in old portal (for now I guess) at: manage.windowsazure.com
You can also create a postman or fiddler request containing sas token, sample here: https://milenppavlov.wordpress.com/2015/12/15/get-shared-access-signature-authentication-for-azure-notification-hub-and-create-push-notification-via-rest-call/ that can send the notifications for you.

Local testing for Android App using Cloud Endpoints for Google App Engine

I am developing an Android app that uses Google Cloud Endpoints on Google App Engine (in Python) for its backend. The Android app authorizes the user using Google Play Services on the Android device, and it all works fantastically.
However, now that I have actual users, I'd like to be able to test this all locally before deploying any app engine API changes to production, and I haven't figured out how to have the Android app talk to my local development server anywhere. The testing recommendations suggest that I just do some manual tinkering with API Explorer, but as I'm using the Endpoints Proto Datastore for my API, which makes the Android development easy, it also makes the API Explorer basically useless, since the calls I need to make are far more complicated than what I can generate by hand.
One answer to this question suggests that there is a way to point the Android client at the local server, but while I can use the --host argument to have the dev_appserver's default server listen on something other than localhost, I can't seem to find a way to do the same for the API server. And even if I could do that, it might only be the first step to a full end-to-end local testing setup for my Android app.
Can someone post more details on how I might do this, or short of that, please enlighten me on the best practices for testing Android apps that use Google Cloud Endpoints on App Engine? Thanks in advance for any answers.
Alright, finally got it working, thanks for the tips, Dan! Here are the remaining details that would have saved me a few hours - hopefully this is helpful to someone else.
1) As I expected and mentioned earlier, dev_appserver.py needs to be run with --host=0.0.0.0 so that it can listen on the local network.
2) In order to properly parse the ID token to make the user authentication work, you need to have the PyCrypto library installed - it is not installed by default, so just having it in your app.yaml isn't enough. I found the binaries for Windows here.
3) Then, in my generated Tictactoe.java-equivalent class, I had to change the DEFAULT_ROOT_URL to be http://<my-local-machine>:8080/_ah/api/ (which is where my local machine is running), so that requests went to the local network. Alternatively (and perhaps less invasively), you can use builder.setRootUrl to the same address from wherever you initialize your builder. This way you don't muck with your generated classes.
4) I also had to make the change Dan mentioned described here.
After doing those four things, everything seems to be working now and I can test my app locally - hooray!
In the local environment, the dev_appserver is the API server. If you've configured it so that it's accessible from machines other than localhost (i.e. another machine/device on the network) API requests should be accessible as well.
However, there's currently an issue with the local server and gzipped requests. Until that's fixed you'll need to disable gzipping within the client library in your Android app (see this post).

Categories

Resources