This is a simple Hacker News Android application for listing new stories.
The app is built with Jetpack Compose.
Data source for the project is from Hacker News API.
- Users can read news from the Hacker News application.
- Users can view the highest-ranked articles.
- Users can open the link associated with each article in the browser.
- Open
MyHackerNewsAndroidproject in Android Studio. - Connect an Android device or start an emulator.
- Click the Run button to build and launch the app.
You can run the tests for this project using the command line. Follow the steps below:
-
Open a terminal and navigate to the project directory.
-
To run unit tests, use the following command:
./gradlew test -
To run Android instrumented tests, use the following command:
./gradlew connectedAndroidTest
- MyHackerNews for iOS - https://github.com/binghuan/MyHackerNews
In SwiftUI, you can navigate seamlessly between code and preview: clicking a component in the preview layout takes you directly to the source code, and clicking on a code block highlights the component in the preview. This two-way navigation enhances the development experience.
In Android Compose, however, navigation is one-way—you can only highlight the code block by clicking on the component in the preview.




