Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share Application Intent #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Learn from Map/App/HoloGraphLibrary/bin/holographlibrary.jar
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.
2 changes: 1 addition & 1 deletion Learn from Map/App/HoloGraphLibrary/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-18
target=android-21
android.library=true
10 changes: 5 additions & 5 deletions Learn from Map/App/LearnFromMap/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-19
android.library.reference.1=..\\google-play-services_lib
android.library.reference.2=..\\appcompat_v7
android.library.reference.3=..\\volley_buildmlearn
android.library.reference.4=..\\HoloGraphLibrary
target=android-21
android.library.reference.1=../HoloGraphLibrary
android.library.reference.2=../volley_buildmlearn
android.library.reference.3=../../../../../Android/android-sdk/extras/google/google_play_services/libproject/google-play-services_lib
android.library.reference.4=../appcompat_v7
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="10dp"
android:background="#ffffff" />
android:background="#ffffff"
android:id="@+id/divider" />

<ListView
android:id="@+id/listView_stats"
Expand Down
6 changes: 6 additions & 0 deletions Learn from Map/App/LearnFromMap/res/menu/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
xmlns:tools="http://schemas.android.com/tools"
tools:context="org.buildmlearn.learnfrommap.MainActivity" >

<item
android:id="@+id/action_share"
android:orderInCategory="100"
android:title="@string/action_share"
android:icon="@android:drawable/ic_menu_share"
app:showAsAction="always"/>
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
Expand Down
1 change: 1 addition & 0 deletions Learn from Map/App/LearnFromMap/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<string name="app_name">Learn From Map</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">About</string>
<string name="action_share">Share App</string>

<color android:id="@+id/color1" name="black_alpha">#70000000</color>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public void loadMode(View v)
intent = new Intent(getApplicationContext(), SettingsActivity.class);
startActivity(intent);
break;


default:
break;
Expand Down Expand Up @@ -138,6 +139,13 @@ public boolean onOptionsItemSelected(MenuItem item) {
if (id == R.id.action_settings) {
CustomDialog.AboutDialog(MainActivity.this);
return true;
}else if (id == R.id.action_share) {
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "Hi I am using Learn From Maps - An initiative by BuildmLearn .You must also try https://play.google.com/store/apps/details?id=org.buildmlearn.learnfrommap");
sendIntent.setType("text/plain");
startActivity(sendIntent);
return true;
}
return super.onOptionsItemSelected(item);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
import android.support.v7.app.ActionBarActivity;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.widget.ListView;

Expand Down Expand Up @@ -53,11 +55,13 @@ protected void onCreate(Bundle savedInstanceState) {
mData.set(i, temp);

}

Log.e("total", ""+total);

mStatList = (ListView)findViewById(R.id.listView_stats);
mAdapter = new StatsAdapter(this, R.layout.listview_row_stat, mData);
mStatList.setAdapter(mAdapter);

if(total!=0)
{
PieGraph pg = (PieGraph)findViewById(R.id.graph);
PieSlice slice = new PieSlice();
slice.setColor(Color.parseColor(colors[0]));
Expand Down Expand Up @@ -91,6 +95,14 @@ protected void onCreate(Bundle savedInstanceState) {
pg.setInterpolator(new AccelerateDecelerateInterpolator());//default if unspecified is linear; constant speed
//pg.setAnimationListener(getAnimationListener());//optional
pg.animateToGoalValues();
}
else
{
PieGraph pg = (PieGraph)findViewById(R.id.graph);
View view=(View)findViewById(R.id.divider);
pg.setVisibility(View.GONE);
view.setVisibility(View.GONE);
}
}

@Override
Expand Down
178 changes: 89 additions & 89 deletions Learn from Map/App/appcompat_v7/bin/R.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,33 +110,33 @@ int attr titleTextStyle 0x7f010026
int attr windowActionBar 0x7f010000
int attr windowActionBarOverlay 0x7f010001
int attr windowSplitActionBar 0x7f010002
int bool abc_action_bar_embed_tabs_pre_jb 0x7f060000
int bool abc_action_bar_expanded_action_views_exclusive 0x7f060001
int bool abc_config_actionMenuItemAllCaps 0x7f060005
int bool abc_config_allowActionMenuItemTextWithIcon 0x7f060004
int bool abc_config_showMenuShortcutsWhenKeyboardPresent 0x7f060003
int bool abc_split_action_bar_is_narrow 0x7f060002
int color abc_search_url_text_holo 0x7f070003
int color abc_search_url_text_normal 0x7f070000
int color abc_search_url_text_pressed 0x7f070002
int color abc_search_url_text_selected 0x7f070001
int dimen abc_action_bar_default_height 0x7f080002
int dimen abc_action_bar_icon_vertical_padding 0x7f080003
int dimen abc_action_bar_progress_bar_size 0x7f08000a
int dimen abc_action_bar_stacked_max_height 0x7f080009
int dimen abc_action_bar_stacked_tab_max_width 0x7f080001
int dimen abc_action_bar_subtitle_bottom_margin 0x7f080007
int dimen abc_action_bar_subtitle_text_size 0x7f080005
int dimen abc_action_bar_subtitle_top_margin 0x7f080006
int dimen abc_action_bar_title_text_size 0x7f080004
int dimen abc_action_button_min_width 0x7f080008
int dimen abc_config_prefDialogWidth 0x7f080000
int dimen abc_dropdownitem_icon_width 0x7f080010
int dimen abc_dropdownitem_text_padding_left 0x7f08000e
int dimen abc_dropdownitem_text_padding_right 0x7f08000f
int dimen abc_panel_menu_list_width 0x7f08000b
int dimen abc_search_view_preferred_width 0x7f08000d
int dimen abc_search_view_text_min_width 0x7f08000c
int bool abc_action_bar_embed_tabs_pre_jb 0x7f050000
int bool abc_action_bar_expanded_action_views_exclusive 0x7f050001
int bool abc_config_actionMenuItemAllCaps 0x7f050005
int bool abc_config_allowActionMenuItemTextWithIcon 0x7f050004
int bool abc_config_showMenuShortcutsWhenKeyboardPresent 0x7f050003
int bool abc_split_action_bar_is_narrow 0x7f050002
int color abc_search_url_text_holo 0x7f060003
int color abc_search_url_text_normal 0x7f060000
int color abc_search_url_text_pressed 0x7f060002
int color abc_search_url_text_selected 0x7f060001
int dimen abc_action_bar_default_height 0x7f070002
int dimen abc_action_bar_icon_vertical_padding 0x7f070003
int dimen abc_action_bar_progress_bar_size 0x7f07000a
int dimen abc_action_bar_stacked_max_height 0x7f070009
int dimen abc_action_bar_stacked_tab_max_width 0x7f070001
int dimen abc_action_bar_subtitle_bottom_margin 0x7f070007
int dimen abc_action_bar_subtitle_text_size 0x7f070005
int dimen abc_action_bar_subtitle_top_margin 0x7f070006
int dimen abc_action_bar_title_text_size 0x7f070004
int dimen abc_action_button_min_width 0x7f070008
int dimen abc_config_prefDialogWidth 0x7f070000
int dimen abc_dropdownitem_icon_width 0x7f070010
int dimen abc_dropdownitem_text_padding_left 0x7f07000e
int dimen abc_dropdownitem_text_padding_right 0x7f07000f
int dimen abc_panel_menu_list_width 0x7f07000b
int dimen abc_search_view_preferred_width 0x7f07000d
int dimen abc_search_view_text_min_width 0x7f07000c
int drawable abc_ab_bottom_solid_dark_holo 0x7f020000
int drawable abc_ab_bottom_solid_light_holo 0x7f020001
int drawable abc_ab_bottom_transparent_dark_holo 0x7f020002
Expand Down Expand Up @@ -224,67 +224,67 @@ int drawable abc_textfield_searchview_holo_dark 0x7f020053
int drawable abc_textfield_searchview_holo_light 0x7f020054
int drawable abc_textfield_searchview_right_holo_dark 0x7f020055
int drawable abc_textfield_searchview_right_holo_light 0x7f020056
int id action_bar 0x7f05001c
int id action_bar_activity_content 0x7f050015
int id action_bar_container 0x7f05001b
int id action_bar_overlay_layout 0x7f05001f
int id action_bar_root 0x7f05001a
int id action_bar_subtitle 0x7f050023
int id action_bar_title 0x7f050022
int id action_context_bar 0x7f05001d
int id action_menu_divider 0x7f050016
int id action_menu_presenter 0x7f050017
int id action_mode_close_button 0x7f050024
int id activity_chooser_view_content 0x7f050025
int id always 0x7f05000b
int id beginning 0x7f050011
int id checkbox 0x7f05002d
int id collapseActionView 0x7f05000d
int id default_activity_button 0x7f050028
int id dialog 0x7f05000e
int id disableHome 0x7f050008
int id dropdown 0x7f05000f
int id edit_query 0x7f050030
int id end 0x7f050013
int id expand_activities_button 0x7f050026
int id expanded_menu 0x7f05002c
int id home 0x7f050014
int id homeAsUp 0x7f050005
int id icon 0x7f05002a
int id ifRoom 0x7f05000a
int id image 0x7f050027
int id listMode 0x7f050001
int id list_item 0x7f050029
int id middle 0x7f050012
int id never 0x7f050009
int id none 0x7f050010
int id normal 0x7f050000
int id progress_circular 0x7f050018
int id progress_horizontal 0x7f050019
int id radio 0x7f05002f
int id search_badge 0x7f050032
int id search_bar 0x7f050031
int id search_button 0x7f050033
int id search_close_btn 0x7f050038
int id search_edit_frame 0x7f050034
int id search_go_btn 0x7f05003a
int id search_mag_icon 0x7f050035
int id search_plate 0x7f050036
int id search_src_text 0x7f050037
int id search_voice_btn 0x7f05003b
int id shortcut 0x7f05002e
int id showCustom 0x7f050007
int id showHome 0x7f050004
int id showTitle 0x7f050006
int id split_action_bar 0x7f05001e
int id submit_area 0x7f050039
int id tabMode 0x7f050002
int id title 0x7f05002b
int id top_action_bar 0x7f050020
int id up 0x7f050021
int id useLogo 0x7f050003
int id withText 0x7f05000c
int integer abc_max_action_buttons 0x7f090000
int id action_bar 0x7f09001c
int id action_bar_activity_content 0x7f090001
int id action_bar_container 0x7f09001b
int id action_bar_overlay_layout 0x7f09001f
int id action_bar_root 0x7f09001a
int id action_bar_subtitle 0x7f090023
int id action_bar_title 0x7f090022
int id action_context_bar 0x7f09001d
int id action_menu_divider 0x7f090002
int id action_menu_presenter 0x7f090003
int id action_mode_close_button 0x7f090024
int id activity_chooser_view_content 0x7f090025
int id always 0x7f09000f
int id beginning 0x7f090016
int id checkbox 0x7f09002d
int id collapseActionView 0x7f090010
int id default_activity_button 0x7f090028
int id dialog 0x7f090014
int id disableHome 0x7f090009
int id dropdown 0x7f090015
int id edit_query 0x7f090030
int id end 0x7f090017
int id expand_activities_button 0x7f090026
int id expanded_menu 0x7f09002c
int id home 0x7f090000
int id homeAsUp 0x7f09000a
int id icon 0x7f09002a
int id ifRoom 0x7f090011
int id image 0x7f090027
int id listMode 0x7f090006
int id list_item 0x7f090029
int id middle 0x7f090018
int id never 0x7f090012
int id none 0x7f090019
int id normal 0x7f090007
int id progress_circular 0x7f090004
int id progress_horizontal 0x7f090005
int id radio 0x7f09002f
int id search_badge 0x7f090032
int id search_bar 0x7f090031
int id search_button 0x7f090033
int id search_close_btn 0x7f090038
int id search_edit_frame 0x7f090034
int id search_go_btn 0x7f09003a
int id search_mag_icon 0x7f090035
int id search_plate 0x7f090036
int id search_src_text 0x7f090037
int id search_voice_btn 0x7f09003b
int id shortcut 0x7f09002e
int id showCustom 0x7f09000b
int id showHome 0x7f09000c
int id showTitle 0x7f09000d
int id split_action_bar 0x7f09001e
int id submit_area 0x7f090039
int id tabMode 0x7f090008
int id title 0x7f09002b
int id top_action_bar 0x7f090020
int id up 0x7f090021
int id useLogo 0x7f09000e
int id withText 0x7f090013
int integer abc_max_action_buttons 0x7f080000
int layout abc_action_bar_decor 0x7f030000
int layout abc_action_bar_decor_include 0x7f030001
int layout abc_action_bar_decor_overlay 0x7f030002
Expand Down Expand Up @@ -522,7 +522,7 @@ int styleable MenuItem_android_title 7
int styleable MenuItem_android_titleCondensed 8
int styleable MenuItem_android_visible 4
int styleable MenuItem_showAsAction 13
int[] styleable MenuView { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x01010435 }
int[] styleable MenuView { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x0101052f }
int styleable MenuView_android_headerBackground 4
int styleable MenuView_android_horizontalDivider 2
int styleable MenuView_android_itemBackground 5
Expand Down
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.
3 changes: 3 additions & 0 deletions Learn from Map/App/appcompat_v7/bin/jarlist.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# cache for current jar dependency. DO NOT EDIT.
# format is <lastModified> <length> <SHA-1> <path>
# Encoding is UTF-8
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.
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.
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.
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.
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.
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.
Loading