-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update readme & change images for intro & release app to store
- Loading branch information
1 parent
4aefc91
commit d5b44a1
Showing
42 changed files
with
158 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
app/src/main/java/education/mahmoud/quranyapp/feature/listening_activity/ListenServie.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
package education.mahmoud.quranyapp.feature.listening_activity; | ||
|
||
import android.app.IntentService; | ||
import android.content.Intent; | ||
import android.content.Context; | ||
|
||
/** | ||
* An {@link IntentService} subclass for handling asynchronous task requests in | ||
* a service on a separate handler thread. | ||
* <p> | ||
* TODO: Customize class - update intent actions, extra parameters and static | ||
* helper methods. | ||
*/ | ||
public class ListenServie extends IntentService { | ||
// TODO: Rename actions, choose action names that describe tasks that this | ||
// IntentService can perform, e.g. ACTION_FETCH_NEW_ITEMS | ||
private static final String ACTION_FOO = "education.mahmoud.quranyapp.feature.listening_activity.action.FOO"; | ||
private static final String ACTION_BAZ = "education.mahmoud.quranyapp.feature.listening_activity.action.BAZ"; | ||
|
||
// TODO: Rename parameters | ||
private static final String EXTRA_PARAM1 = "education.mahmoud.quranyapp.feature.listening_activity.extra.PARAM1"; | ||
private static final String EXTRA_PARAM2 = "education.mahmoud.quranyapp.feature.listening_activity.extra.PARAM2"; | ||
|
||
public ListenServie() { | ||
super("ListenServie"); | ||
} | ||
|
||
/** | ||
* Starts this service to perform action Foo with the given parameters. If | ||
* the service is already performing a task this action will be queued. | ||
* | ||
* @see IntentService | ||
*/ | ||
// TODO: Customize helper method | ||
public static void startActionFoo(Context context, String param1, String param2) { | ||
Intent intent = new Intent(context, ListenServie.class); | ||
intent.setAction(ACTION_FOO); | ||
intent.putExtra(EXTRA_PARAM1, param1); | ||
intent.putExtra(EXTRA_PARAM2, param2); | ||
context.startService(intent); | ||
} | ||
|
||
/** | ||
* Starts this service to perform action Baz with the given parameters. If | ||
* the service is already performing a task this action will be queued. | ||
* | ||
* @see IntentService | ||
*/ | ||
// TODO: Customize helper method | ||
public static void startActionBaz(Context context, String param1, String param2) { | ||
Intent intent = new Intent(context, ListenServie.class); | ||
intent.setAction(ACTION_BAZ); | ||
intent.putExtra(EXTRA_PARAM1, param1); | ||
intent.putExtra(EXTRA_PARAM2, param2); | ||
context.startService(intent); | ||
} | ||
|
||
@Override | ||
protected void onHandleIntent(Intent intent) { | ||
if (intent != null) { | ||
final String action = intent.getAction(); | ||
if (ACTION_FOO.equals(action)) { | ||
final String param1 = intent.getStringExtra(EXTRA_PARAM1); | ||
final String param2 = intent.getStringExtra(EXTRA_PARAM2); | ||
handleActionFoo(param1, param2); | ||
} else if (ACTION_BAZ.equals(action)) { | ||
final String param1 = intent.getStringExtra(EXTRA_PARAM1); | ||
final String param2 = intent.getStringExtra(EXTRA_PARAM2); | ||
handleActionBaz(param1, param2); | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Handle action Foo in the provided background thread with the provided | ||
* parameters. | ||
*/ | ||
private void handleActionFoo(String param1, String param2) { | ||
// TODO: Handle action Foo | ||
throw new UnsupportedOperationException("Not yet implemented"); | ||
} | ||
|
||
/** | ||
* Handle action Baz in the provided background thread with the provided | ||
* parameters. | ||
*/ | ||
private void handleActionBaz(String param1, String param2) { | ||
// TODO: Handle action Baz | ||
throw new UnsupportedOperationException("Not yet implemented"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.