Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
1.25.14
Browse files Browse the repository at this point in the history
  • Loading branch information
dvuckovic committed Feb 2, 2014
1 parent a8600ee commit 53d2286
Show file tree
Hide file tree
Showing 70 changed files with 4,120 additions and 389 deletions.
3 changes: 2 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
64 changes: 55 additions & 9 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,36 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dvuckovic.busplus"
android:installLocation="auto"
android:versionCode="43"
android:versionName="1.12.11" >
android:versionCode="90"
android:versionName="1.25.14" >

<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="14" />

<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="net.dinglisch.android.tasker.PERMISSION_RUN_TASKS" />

<uses-feature
android:name="android.hardware.telephony"
android:required="false" />

<uses-feature
android:name="android.hardware.location"
android:required="false" />

<uses-feature
android:name="android.hardware.location.gps"
android:required="false" />

<uses-feature
android:name="android.hardware.location.network"
android:required="false" />

<supports-screens
android:anyDensity="true"
Expand All @@ -23,7 +41,8 @@

<application
android:name=".BusPlus"
android:icon="@drawable/bus_icon"
android:allowBackup="true"
android:icon="@drawable/launcher_icon"
android:label="@string/app_name" >
<activity
android:name=".BusPlusActivity"
Expand All @@ -36,8 +55,13 @@
</activity>
<activity android:name=".StationActivity" />
<activity android:name=".SearchActivity" />
<activity android:name=".LocationMap" />
<activity android:name=".FavoritesActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar">
<activity
android:name=".LocationMap"
android:configChanges="orientation" />
<activity
android:name=".FavoritesActivity"
android:configChanges="orientation|keyboard|keyboardHidden"
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
<intent-filter>
<action android:name="com.dvuckovic.busplus.CALL_USSD_CODE" />
</intent-filter>
Expand All @@ -47,22 +71,44 @@
<activity android:name=".InfoActivity" />
<activity
android:name=".BalanceDialog"
android:theme="@android:style/Theme.Dialog" />
android:theme="@android:style/Theme.Holo.Dialog" />
<activity
android:name=".FareDialog"
android:theme="@android:style/Theme.Holo.Dialog" />
<activity
android:name=".ZoneDialog"
android:theme="@android:style/Theme.Holo.Dialog" />
<activity
android:name=".TaskerActivity"
android:icon="@drawable/widget_type1"
android:label="@string/widget_name"
android:theme="@android:style/Theme.Holo.Dialog" >
<intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING" />
</intent-filter>
</activity>

<receiver
android:name=".BalanceWidget"
android:icon="@drawable/bus_icon"
android:icon="@drawable/launcher_icon"
android:label="@string/widget_name" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="com.dvuckovic.busplus.UPDATE_WIDGET" />
<action android:name="com.dvuckovic.busplus.SETTINGS_CLICK" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget" />
</receiver>
<receiver android:name=".TaskerReceiver" >
<intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING" />
</intent-filter>
</receiver>

<uses-library android:name="com.google.android.maps" />
</application>

</manifest>
</manifest>
32 changes: 22 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
BusPlus
======

<img align="right" src="http://www.dvuckovic.com/sites/default/files/projects/icons/busplus.png"/>BusPlus is a small Android app for mass transit system in Belgrade that shows how far is the next bus from your station.
<img align="right" src="http://www.dvuckovic.com/sites/default/files/projects/icons/busplus.png"/>BusPlus is a small Android app that shows how far is the next bus/tram/trolly from your station. It utilizes info service for Belgrade mass transit system.

<a href="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-1.jpg" target="_blank" title="Screenshot #1"><img src="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-1_thumb.jpg" alt="Screenshot #1" border="0"/></a> <a href="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-2.jpg" target="_blank" title="Screenshot #2"><img src="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-2_thumb.jpg" alt="Screenshot #2" border="0"/></a> <a href="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-3.jpg" target="_blank" title="Screenshot #3"><img src="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-3_thumb.jpg" alt="Screenshot #3" border="0"/></a> <a href="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-4.jpg" target="_blank" title="Screenshot #4"><img src="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-4_thumb.jpg" alt="Screenshot #4" border="0"/></a> <a href="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-5.jpg" target="_blank" title="Screenshot #5"><img src="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-5_thumb.jpg" alt="Screenshot #5" border="0"/></a> <a href="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-6.jpg" target="_blank" title="Screenshot #6"><img src="http://www.dvuckovic.com/sites/default/files/projects/busplus/screenshot-6_thumb.jpg" alt="Screenshot #6" border="0"/></a>

Features
How it works
------

Belgrade BusPlus system provides users with the location of nearby buses through simple USSD (MMI) info service. Of course these locations are coarse and the system can only show how many bus stops is a vehicle away from you (your current bus stop). Every bus stop has a unique code which is used as an input for the service. USSD service is available only on three local mobile networks and is charged for each query since September 16th 2012.
It works by sending USSD (MMI) queries into info service. App streamlines these queries by organizing stations and lines that uses them along the way. Of course, locations of vehicles are coarse and the system can only show how many bus stops is a vehicle away from you (your current bus stop). Every bus stop has a unique code which is used as an input for the service. This service is available only on three local mobile networks in Serbia, and is charged accordingly (1.8 RSD per query since September 16th 2012).

Unfortunately, there is still no USSD API for Android in the works, but I managed to execute them by raising Intent to the system dialer app.

Unfortunately, there is still no USSD API for Android in the works, but I managed to execute them by raising Intent to the system dialer app. BusPlus app has three views and can be used to query the USSD info service in several ways:
Features
------

BusPlus app has three views and can be used to make queries in several ways:

* manual code entry (if you know it :)
* search by station name (not easy, because most of station names are duplicated for both directions)
Expand All @@ -20,7 +25,7 @@ Unfortunately, there is still no USSD API for Android in the works, but I manage

App also supports two locales (Serbian and English), which can be switched in app Settings menu.

Several new features have been squeezed in over time (mostly from comments):
Several new features have been squeezed in over time (mostly from comments on Play Store):

* more complete station database
* more precise locations for most stations
Expand All @@ -38,9 +43,11 @@ Several new features have been squeezed in over time (mostly from comments):
* Tasker integration
* ICS API

App in action (YouTube)
YouTube
------

Take a look at the app in action:

<a href="http://www.youtube.com/watch?feature=player_embedded&v=a_RA8AqtA94" target="_blank"><img src="http://img.youtube.com/vi/a_RA8AqtA94/0.jpg"
alt="BusPlus Video" width="320" border="10" /></a>

Expand All @@ -59,12 +66,12 @@ Donations

This project was open to optional donations, but because of absolute lack of interest it isn't anymore. I will continue to support and update the app in my free time.

License
Source
------
Source code is released under [WTFPL license](http://sam.zoy.org/wtfpl/).

> Note: Since this app use Google Maps MapView, you will need your own API key (change it in `map.xml` layout file).
App has been written in Java for Android, and compiled using official Android SDK.

> Note: Since this app uses Google Maps MapView, you will need your own API key (just change it in `map.xml` layout file).
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Expand All @@ -79,4 +86,9 @@ Source code is released under [WTFPL license](http://sam.zoy.org/wtfpl/).
android:layout_weight="1"
android:apiKey="-----------YOUR_API_KEY_HERE-----------"
android:clickable="true" />
...
...

License
------

Source code is released under [WTFPL license](http://sam.zoy.org/wtfpl/).
Binary file modified assets/busplus.db
Binary file not shown.
Binary file modified res/drawable-hdpi/blank_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-hdpi/bus_icon.png
Binary file not shown.
Binary file added res/drawable-hdpi/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-hdpi/widget_type1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-hdpi/widget_type2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-hdpi/widget_type3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/widget_type4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-ldpi/blank_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-ldpi/bus_icon.png
Binary file not shown.
Binary file added res/drawable-ldpi/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-ldpi/widget_type1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-ldpi/widget_type2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-ldpi/widget_type3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/widget_type4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-mdpi/blank_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/drawable-mdpi/bus_icon.png
Binary file not shown.
Binary file added res/drawable-mdpi/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions res/drawable-mdpi/widget_shape4.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >

<solid android:color="#00000000" />

</shape>
Binary file modified res/drawable-mdpi/widget_type1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-mdpi/widget_type2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-mdpi/widget_type3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/widget_type4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/blank_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/blank_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/launcher_icon.png
Loading

0 comments on commit 53d2286

Please sign in to comment.