How to check if update is available from my installed app? - androidx

I create a list of my installed apps using PackageManager, But I want to know if the app has a new version on it so I can update it from that list.
Any idea?
this is the detail I got from PackageManager
Log.v("/asd/", "AppName:"+modelMyAppsInstalledApps.get(i).getAppname());
Log.v("/asd/", "AppPackageName:"+modelMyAppsInstalledApps.get(i).getApppackagename());
Log.v("/asd/", "AppVersionName:"+modelMyAppsInstalledApps.get(i).getAppversionname());
Log.v("/asd/", "AppVersionCode:"+modelMyAppsInstalledApps.get(i).getAppversioncode());
Log.v("/asd/", "AppIcon:"+modelMyAppsInstalledApps.get(i).getAppicon().toString());

Related

Unable to update Microsoft.Owin.Security.Google from version 2.0.0 to 4.0.0

I am trying to implement external authentication in my Web-api project by following this link https://www.youtube.com/watch?v=WsRyvWvo4EI&t=609s
app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions() {
ClientId = "",
ClientSecret=""
});
The code above could not find GoogleOAuth2AuthenticationOptions class.. searching through the problem it appears that my microsoft.owin.security.google package is not updated. When i try to update it using NuGet, it fails to download the package showing the following error:
NuGet Error while downloading the Microsoft.Owin.Security.Goolge 4.0.0
How do i update the package and make the google authentication work
You need to upgrade your project Target Framework to at least .Net Framework 4.5.1

How to upgrade new Firebase app from exist old app?

There are "create new app" or "import from google project" only in new Firebase console.( https://console.firebase.google.com/ )
How to update exit old app to new one?( https://www.firebase.com/account/#/ )
---Edit
This issue looks like already fixed.
I think the cause is 500 request error on new Firebase console.
However it had fixed already.
If you are already signed in to the new Firebase Console with the same Google account as you used on firebase.com, then you should see your firebase.com project listed under "Projects currently at Firebase.com".
Follow the instructions on the new Firebase upgrade page for Web, Android or iOS.
I've had a somewhat similar problem. I see the import button but when I click it, and select the project I want to load, it only displays the spinner. Ive even tried to import JSON from an old firebase project (before the upgrades) and it just spins. Could it be that the old JSON is not what the new firebase is expecting?
EDIT
OK, seems it doesn't like Chrome. Works in IE 11 but not Chrome 50.0.2
This is how you update a Firebase < 3.0 app to Firebase 3.
Step 1
Install Regular Firebase - pod 'Firebase', '>= 2.5.1'
Or
If considering your old app is already Firebase < 3.0 you should be fine.
Step 2
Update - pod update
*At this point it will take a good couple minutes to update. You should see something like this.
Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing Firebase 3.2.0 (was 3.2.0)
Using FirebaseAnalytics (3.2.0)
Installing FirebaseAuth (3.0.2)
Using FirebaseDatabase (3.0.1)
Using FirebaseInstanceID (1.0.6)
Using GoogleInterchangeUtilities (1.2.1)
Installing GoogleNetworkingUtilities (1.2.1)
Using GoogleSymbolUtilities (1.1.1)
Using GoogleUtilities (1.3.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 4 dependencies from the Podfile and 10
total pods installed.
Step 3
Now you should have Firebase 3. So you can add frameworks like such in your pod file then pod update
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'xMarket' do
end
target 'xMarketTests' do
end
target 'xMarketUITests' do
end
pod 'Firebase', '>= 2.5.1'
pod ‘Firebase/Core’
pod ‘Firebase/Database’
pod ‘Firebase/Auth’
Good luck!
P.S. You will also have to edit your codebase because Firebase 3 is different than Firebase 2. Check the documentation here Firebase 3 Examples
Above answers look great. I'll just add one link that has a lot of the common differences between Firebase 2 and Firebase 3: https://firebase.google.com/support/guides/firebase-ios#get_a_database_reference_numbered
(I didn't see this at first and wasted a few hours yesterday trying to figure it all out.)

"Modules are Outdated" Error

I get this error when I create a new module:
"Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Sangeeta_Octan data: current version - none, required version - 0.0.1";i:1;s:1781:"#0
I searched on google and found no solution other than reinstalling Magento. Such as:
version has been changed from "2.0.0.0" to "2.0.0" during development,
so update tool can't recognize that "2.0.0.0" <= "2.0.0". Please,
re-install your application from scratch to get latest version. `
Do I have any options apart from reinstalling?
Change the setup_version of your module (Sangeeta_Octan) in
app/code/Sangeeta/Octan/etc/module.xml. Try a different version
name like setup_version="2.0.1" or setup_version="3.0.0"
Run bin/magento setup:upgrade
If that doesn't work, disable your module by changing your module name in app/etc/config.phpfrom Sangeeta_Octan => 1 to Sangeeta_Octan => 0. Then run bin/magento setup:upgrade
I hope below solution also solve your problem.
https://magento.stackexchange.com/questions/112293/mysql-error-and-possible-duplicates-running-bin-magento-setupupgrade-after-rena/112299#112299
in mysql find the table setup_module It will have 3 fields. Find the NULL values in data_version & have them match the schema_version
As an alternative, you can access your magento database and look at the table setup_module
You will see a list of all installed modules and you can manually set the schema/data version numbers here.
Delete the offending rows from the setup_module table (if they are there) and run the command bin/magento setup:upgrade from your Magento 2 root directory.
This is happens because of something wrong while running "bin/magento setup:upgrade" and the data_version in Module versions registry is null. It is loaded from DB, We can just proceed by manually changing it in db.
Go db via php myadmin and check "setup_module" table, the
data_version which are mentioned "null".
Login to Mysql database => then update table setup_module of the "data_version" column same as "schema_version"

Meteor 0.9 package publish issue

As per this https://hackpad.com/Migrating-Packages-zN0we9sIjkH I created a new meteor package and currently facing a problem when trying to publish.
PackageName : 'UserId:packageName'
To add package : 'meteor add packageName' (mateor add UserId:packageName did not work).
Package runs locally without any issue.
When I tried to publish,
cd path/to/your:package
meteor publish
Message :
There is no package named 'packageName'. If you are creating a new package, use the --create flag.
Publish failed.
Then I tried "meteor publish --create"
Message :
To confirm that you wish to create a top-level package with no account
prefix, please run this command again with the --top-level option.
(Only administrators can create top-level packages without an account prefix)
I used "UserId: PackageName" when creating the package and already log in to meteor account. Any idea to fix this issue?
Thanks !
Make sure the name field is in package.js:
Package.describe({
name: "user:packagename",
// other fields
});
Then, there will be no need to make sure the package is in a directory with the same name.
See https://github.com/mizzao/meteor-user-status for an example.

FatalErrorException: Error: Class 'ResourceBundle' not found

I installed and configured FOSUserBundle, SonataAdminBundle, SonataUserBundle, SonataMediaBundle correctly as written in here http://tech.dupeu.pl/2013/07/symfony-2-3-sonataadminbundle-sonatamediabundle-sonatauserbundle-and-fosuserbundle-a-good-project-base/ and with some research it's fine and I already can create a user, a superadmin etc..
Also Media ans Groups features works correctly ! I have a problem when tryin to add a user in the Admin Dashbord, I donnow exactly what it is about .. I searched on forums and on stackoverflow and it seems that it has a relation with SonataIntlBundle so I reinstalled it and I activated intl extension in my WampServer (Windows 8) but it's not working anymore ..
This is the error ( FatalErrorException: Error: Class 'ResourceBundle' not found in C:\wamp\www\project\vendor\symfony\symfony\src\Symfony\Component\Intl\ResourceBundle\Reader\BinaryBundleReader.php line 32 )
Solved
I fixed the problem by installing symfony/intl with composer : I added this "symfony/intl": "2.6.*#dev" to requiere section then I lunched the composer update command and now it's working !
You can check this link http://symfony.com/doc/current/components/intl.html for more informations!
ResourceBundle is a dependency of intl extension, so your intl or ICU version are wrong. Search for the right version (Thread Safe or not, 32bit or 64bit).
On WAMP is hard to found the right version. If I remember, when I had this issue, I had to downgrade my WAMP version.

Resources