Skip to content

Instantly share code, notes, and snippets.

View DANISSIMO9699's full-sized avatar

Daniele DANISSIMO9699

  • Rome
View GitHub Profile
@DANISSIMO9699
DANISSIMO9699 / chords.java
Last active July 5, 2016 06:56
code for my app that needs to be fixed
//my ChordsListActiviy aka MainActivity
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageButton;
program somma_array;
uses crt, math;
var
a:array[1..5] of integer;
i,s:integer;
begin
clrscr;
for i:=1 to 5 do
begin
randomize;
// Class sending the list
public class ChordsListActivity extends AppCompatActivity implements PopupMenu.OnMenuItemClickListener {
ArrayList<Accordo> chords;
ImageButton cerca;
RecyclerView recyclerView;
public class SearchActivity extends AppCompatActivity {
ArrayList<Accordo> chords;
RecyclerView rv;
SearchView sv;
ArrayList<Accordo> filteredList;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
public class ChordsListActivity extends AppCompatActivity implements PopupMenu.OnMenuItemClickListener {
ArrayList<Accordo> chords;
ImageButton cerca;
RecyclerView recyclerView;
InterstitialAd chordsListAd;
Bundle querySkus = new Bundle();
/** gestisce gli acquisti in app */
public class Premium extends Activity {
Button premium;
private static final String TAG = "chords.inappbilling";
IabHelper mHelper;
static final String PREMIUM_SKU = "chords_premium";
public void onCreate(Bundle b){
super.onCreate(b);
setContentView(R.layout.premium_layout);
premium = (Button) findViewById(R.id.premium);
<resources>
<string name="app_name" translatable="false">Kid GeoLoc</string>
<string name="name_hint">Aggiungi nome</string>
<string name="search_hint">Cerca Indirizzo(Powered by Google)</string>
<string name="title_activity_chat">Chat Familiare</string>
<string name="accessibility_service_description">Gestore USSD</string> <!-- TODO -->
<string name="facebook_app_id" translatable="false">1234802316550262</string>
<string name="app_name" translatable="false">Chords</string>
<string name="developer" translatable="false">Daniele Cambi</string>
<string name="designer" translatable="false">Gnoli Design</string>
<string name="search_hint">Search Chord</string>
<string name="suggerimenti">Hints</string>
<string name="dont_show">Don\'t show anymore</string>
public class Premium extends Activity implements IabBroadcastReceiver.IabBroadcastListener {
Button premium;
//toast
Context context = getBaseContext();
int duration = Toast.LENGTH_SHORT;
//debug tag
static final String TAG = "CHORDS";
public class ChordActivity extends Activity {
ViewPager viewPager;
PagerAdapter adapter;
TextView name, note;
CirclePageIndicator _indicator;
ImageButton sound;
boolean isPremium;
static final String PREFERENCES = "prefs";