Giter Club home page Giter Club logo

Comments (9)

drewahearn avatar drewahearn commented on July 17, 2024 5

The instructions for the CodeLab need to be updated to reflect the need to create/update your own Run Configurations.

The existing CodeLab instructions assume all the pre-defined Run Configurations are in place.

from android-persistence.

ashu879 avatar ashu879 commented on July 17, 2024

I am facing same issue.

from android-persistence.

virat-shukla avatar virat-shukla commented on July 17, 2024

You need to add following line in AndroidManifest file in corresponding to that step you are solving -
<category android:name="android.intent.category.LAUNCHER"/>

Currently no filter has that line.

from android-persistence.

drewahearn avatar drewahearn commented on July 17, 2024

virat-shukla, what do I need to add to the AndroidManifest.xml file? Your answer was not clear.

from android-persistence.

viratshukla avatar viratshukla commented on July 17, 2024

In order to launch an activity from your phone's default launcher, you need to have following lines of code in one of your activity. Only then it will be listed in your list of installed apps.
<intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter>

since there were many activities in this code, they left it to us - which activity we want to open.
You have to put these lines in activity tag which you are currently working `upon.

from android-persistence.

virat-shukla avatar virat-shukla commented on July 17, 2024

If it helps, please close the issue. Thanks

from android-persistence.

thigbie avatar thigbie commented on July 17, 2024

On 12/9 I am having the same problem. PLEASE update codelab

from android-persistence.

thigbie avatar thigbie commented on July 17, 2024

I give up. I got step 1 and 2 to work. But, from 3 on nothing works. I went back to step1 and now it doesn't work. I'm spending so much time figuring out the lessons, I'm not able to focus on the purpose of the lesson. I'll go somewhere else to learn.

from android-persistence.

alketola avatar alketola commented on July 17, 2024

Sad but true, the codelab is not updated to reflect the instructions, and work as such in AndroidStudio 3.3.

Anyway, the (blunt) advice given already above helps to compile... one just need to consider carefully what to copy and paste, understanding the meaning and purpose of AndroidManifest.xml. :

in AndroidManifest.xml , The intents and actions for each Activity are defined. In the codelab, all actions are incomplete, is missing. Just within each <Intent>, within <IntentFilter>, after <action /> tag, please paste
<category android:name="android.intent.category.LAUNCHER"/>
Do it to one activity in the AndroidManifest.xml at a time, and then the activity with the line above gets run as app configuration. I hope this helps to workaround the issue.

from android-persistence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.