http://www.kashipara.com/project/category/latest_Android-project-source-code_5_p-1
www.codeproject.com/KB/android/
http://androidexample.com/Device_To_Device_Messaging_Using_Google_Cloud_Messaging_GCM_-_Android_Example
http://www.dreamincode.net/forums/topic/270319-how-to-create-a-slide-in-menulist-like-in-facebook-app/
Android SQLite Database Tutorial and Project
1) TEXT: to store any value as a text
2) Integer: to store integer type value
3) Real: to store floating type value
But as we said it does not support data type integrity so we can use any data type and we can store any type of value in it. So let's start our project, create new project and here we are using two buttons, first button is used to take value from edit text boxes and save them to SQLite database, The second button is used to retrieve all data from database and display them on text view which is scrollable. The code of android XML file is given below:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#abc"
>
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:maxLines="1"
android:hint="Name"
android:layout_marginTop="28dp"
android:ems="10"
>
<requestFocus
/>
</EditText>
<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/editText1"
android:layout_below="@+id/editText1"
android:hint="Sur
Name"
android:maxLines="1"
android:ems="10"
/>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/editText2"
android:layout_alignRight="@+id/editText2"
android:layout_below="@+id/editText2"
android:text="Insert
Values"
android:onClick="insert"/>
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/button1"
android:layout_alignRight="@+id/button1"
android:layout_below="@+id/button1"
android:onClick="display"
android:text="Display
all Values"
/>
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/button2"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textSize="20sp"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
Now open your Java file and initialize all objects.
-> To create new database or open existed database use: openOrCreataDatabase() and pass name of the database and open it in private mode.
-> To run any query except select query use: execSQL()
-> To select values from database use: rawQuery()
The code of android Java file is given below with explanation:
Now open your Java file and initialize all objects.
-> To create new database or open existed database use: openOrCreataDatabase() and pass name of the database and open it in private mode.
-> To run any query except select query use: execSQL()
-> To select values from database use: rawQuery()
The code of android Java file is given below with explanation:
package
com.example.checkblogapp; //your
package name
import
android.os.Bundle;
import
android.view.View;
import
android.widget.EditText;
import
android.widget.TextView;
import
android.widget.Toast;
import
android.app.Activity;
import
android.database.Cursor;
import
android.database.sqlite.SQLiteDatabase;
public
class
MainActivity extends
Activity {
SQLiteDatabase
db;
TextView
tv;
EditText
et1,et2;
@Override
protected
void
onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//initialize
all view objects
tv=(TextView)findViewById(R.id.textView1);
et1=(EditText)findViewById(R.id.editText1);
et2=(EditText)findViewById(R.id.editText2);
//create
database if not already exist
db=
openOrCreateDatabase("Mydb",
MODE_PRIVATE,
null);
//create
new table if not already exist
db.execSQL("create
table if not exists mytable(name varchar, sur_name varchar)");
}
//This
method will call on when we click on insert button
public
void
insert(View v)
{
String
name=et1.getText().toString();
String
sur_name=et2.getText().toString();
et1.setText("");
et2.setText("");
//insert
data into able
db.execSQL("insert
into mytable values('"+name+"','"+sur_name+"')");
//display
Toast
Toast.makeText(this,
"values
inserted successfully.",
Toast.LENGTH_LONG).show();
}
//This
method will call when we click on display button
public
void
display(View v)
{
//use
cursor to keep all data
//cursor
can keep data of any data type
Cursor
c=db.rawQuery("select
* from mytable",
null);
tv.setText("");
//move
cursor to first position
c.moveToFirst();
//fetch
all data one by one
do
{
//we
can use c.getString(0) here
//or
we can get data using column index
String
name=c.getString(c.getColumnIndex("name"));
String
surname=c.getString(1);
//display
on text view
tv.append("Name:"+name+"
and SurName:"+surname+"\n");
//move
next position until end of the data
}while(c.moveToNext());
}
}
----------------------------------------------------------------------------
source code from an APK file
Procedure for decoding .apk files, step-by-step method:
Step 1:
Make a new folder and put .apk file in it (which you want to decode).
Now rename the extension of this .apk file to .zip (eg.: rename from
filename.apk to filename.zip) and save it. Now you get classes.dex
files, etc. At this stage you are able to see drawable but not xml and
java files, so continue.
Step 2:
Now extract this zip apk file in the same folder (or NEW FOLDER). Now
download dex2jar from this linkhttp://code.google.com/p/dex2jar/ and
extract it to the same folder (or NEW FOLDER). Now open command prompt
and change directory to that folder (or NEW FOLDER). Then write dex2jar
classes.dex and press enter. Now you get classes.dex.dex2jar file in the
same folder. Then download java decompiler from
http://java.decompiler.free.fr/?q=jdgui and now double click on jd-gui
and click on open file. Then open classes.dex.dex2jar file from that
folder. Now you get class files and save all these class files (click on
file then click "save all sources" in jd-gui) by src name. At this
stage you get java source but the xml files are still unreadable, so
continue.
Step 3:
Now open another new folder and put these files
put .apk file which you want to decode
download apktool v1.x AND apktool install window (both can be
downloaded at the same location) and put in the same folder
download framework-res.apk file and put in the same folder (Not all
apk file need framework-res.apk file)
Open a command window
Navigate to the root directory of APKtool and type the following
command: apktool if framework-res.apk
apktool d "fname".apk ("fname" denotes filename which you want to
decode)
now you get a file folder in that folder and now you can easily read xml
files also.
Step 4:
It's not any step just copy contents of both folder(in this case both
new folder)to the single one
and now enjoy with source code..
.............................................................................
I have had the same problem, after an update I got a similar error.
It can be fixed to manually edit the
I guess it can be configured using Android ADT as well, but I could not figure it out and this was quicker
Furthermore, you have to update your manifest as well, make sure you have
..............................................
google api
The workflow uses Google Drive for storing files, PayPal for payments and Gmail for delivering content to the buyer. There’re no limitation on the size of files or the number of products that you can sell. There’re no bandwidth restrictions. There’s no middleman fees except for the usual PayPal charges. And people can purchase your stuff through PayPal or using their debit or credit cards.
First, create a “Buy Now” button in your PayPal account for the product that you wish to sell online and assign a unique Item ID to the item (see screenshot above).
PayPal will now offer you the HTML code for the purchase button that you can embed in your website. Alternatively, you can copy the direct link – see example – to share your product over email or for selling on social media websites.
The next thing you need to do is upload the corresponding file to your Google Drive. When someone makes a purchase, the Google script will pull this file from Drive and send it to the buyer via Gmail as an email attachment. If the file is big, say the size >20 MB, the script will automatically share the file with the buyer and sends the shared link instead of the actual file.
The final step is to run the Google Script that will monitor your Gmail mailbox for any PayPal related transactions and sends the digital files to the buyer.
This is easy. Click here to make a copy of the PayPal script in your Google Drive and include the Item IDs and file names of all products that you are selling through PayPal. Next choose Run -> PayPal and authorize the script.
http://www.labnol.org/internet/google-dfp-tutorial/14099/
Google DFP, or DoubleClick for Publishers, is a perfect solution in either of the above scenarios. DFP is a free ad server from Google that lets you sell ad space on your website more effectively and also helps maximize your advertising revenue.
With DFP, you may run standard banner ads, text ads (JavaScript based) or even rich-media campaigns that use video and Flash creatives. The tool, which was formerly known as Google Ad Manager, requires no downloads or installation and any website publisher can sign-up for the DFP program as long as they have an active Google AdSense account.
Let’s see how we can easily setup such an ad campaign through Google DFP.
Step 1: Create Ad Units
We need to tell DFP about all the advertising spaces on our web pages. For this example, we’ll create three ad units – the 300×250 rectangle, the 160×600 skyscraper and the 468×60 banner. These are standard IAB units though you can define custom ad sizes as well.
Go to DFP –> Inventory –> Ad Units –> New Ad Unit (choose Web or Mobile). Give your ad unit a descriptive name so that you can easily determine where that ad unit will be displayed and also include the size of that unit. You may check the option “Maximize revenue of unsold and remnant inventory with AdSense” in case you wish to display Google Ads when there are no direct ads or when Google is offering better CPM than the direct advertiser.
source code from an APK file
Procedure for decoding .apk files, step-by-step method:
Step 1:
Make a new folder and put .apk file in it (which you want to decode).
Now rename the extension of this .apk file to .zip (eg.: rename from
filename.apk to filename.zip) and save it. Now you get classes.dex
files, etc. At this stage you are able to see drawable but not xml and
java files, so continue.
Step 2:
Now extract this zip apk file in the same folder (or NEW FOLDER). Now
download dex2jar from this linkhttp://code.google.com/p/dex2jar/ and
extract it to the same folder (or NEW FOLDER). Now open command prompt
and change directory to that folder (or NEW FOLDER). Then write dex2jar
classes.dex and press enter. Now you get classes.dex.dex2jar file in the
same folder. Then download java decompiler from
http://java.decompiler.free.fr/?q=jdgui and now double click on jd-gui
and click on open file. Then open classes.dex.dex2jar file from that
folder. Now you get class files and save all these class files (click on
file then click "save all sources" in jd-gui) by src name. At this
stage you get java source but the xml files are still unreadable, so
continue.
Step 3:
Now open another new folder and put these files
put .apk file which you want to decode
download apktool v1.x AND apktool install window (both can be
downloaded at the same location) and put in the same folder
download framework-res.apk file and put in the same folder (Not all
apk file need framework-res.apk file)
Open a command window
Navigate to the root directory of APKtool and type the following
command: apktool if framework-res.apk
apktool d "fname".apk ("fname" denotes filename which you want to
decode)
now you get a file folder in that folder and now you can easily read xml
files also.
Step 4:
It's not any step just copy contents of both folder(in this case both
new folder)to the single one
and now enjoy with source code..
.............................................................................
Unable to resolve target 'android-16,17,18,19'
I have had the same problem, after an update I got a similar error.
It can be fixed to manually edit the
project.properties
file and update the android-16
part to the latest one you have installed. In your current case that is android-17
.I guess it can be configured using Android ADT as well, but I could not figure it out and this was quicker
Furthermore, you have to update your manifest as well, make sure you have
android:targetSdkVersion
set to 17.google api
- Schedule Gmail Emails – You can write the emails now and send them later at any date and time with Apps Script and Google Sheets.
- Sell Digital Products Online – Use a combination of PayPal and Google Drive to setup your own digital shop online.
- Save Google Voicemails as MP3 – The web app will automatically copy the MP3 of your Google voice mail messages from Gmail to Google Drive.
- Gmail Encrypt – You can encrypt your outgoing Gmail messages using the powerful AES encryption and no one will be able to snoop your private conversations.
- 1-click Website Hosting – Use this Google Script to host your websites, images, podcasts and other media files on Google Drive with one click.
- Google Form File Uploads – You can receive files directly in your Google Drive from anyone through HTML forms created with HTMLService.
- Google Web Scraping – Import Google Search results into a Google Spreadsheet with the ImportXML function for analysis or export them in other formats.
- Flipkart & Snapdeal Price Tracker – Monitor and compare prices of items listed on Flipkart and Snapdeal and get price alerts via email.
- Mail Merge with Gmail – Send personalized email messages to your contacts using Gmail. The messages can have attachments and you even write messages in raw HTML.
- Files Permissions Explorer – See who has access to your shared files and folders in Google Drive and whether they view or edit permissions.
- Send to Google Drive – You can save your Gmail attachments directly to Google Drive – just apply a particular label to your Gmail message and the included attachments will be copied to Drive.
- Save Gmail Images – The script monitors your Gmail mailbox and will auto-save any image attachments to your Google Drive.
- Sort Gmail by Size – Is your Gmail mailbox running out of space. The scripts will determine all the bulky messages in your Gmail mailbox.
- Bulk Forward Gmail – The auto-forward feature in Gmail only works on incoming messages but our bulk forward script can forward even older email to your other email addresses.
- Update Google Contacts – See how your friends and family members can directly add or update their own contact information into your Google address book.
- Google Contacts Map – The Google Script will plot the postal address of your Google Contacts on a Google Map. You can also export this data as a KML file for Google Earth.
- Email Form Data – Google Forms are the best tool for creating online polls and surveys. The script will email you the entire form data as soon as someone submits the form.
- Auto Confirmation Emails – Send confirmation emails to the user’s email address after they submit a Google Form.
- Schedule Google Forms – Set an expiration date for your Google Form and they’ll close automatically at a certain date.
- Twitter Bot – Learn how to write your own Twitter bot that auto-responds to tweets. This particular bot queries Wolfram Alpha to answer queries.
- Twitter Out-of-Office – You can create out-of-office automatic replies for people who are trying to reach you via Twitter and they wouldn’t expect a response from you right away.
- SMS Alerts for Gmail – You can receive SMS text alerts for important incoming messages in your Gmail by connecting your mailbox with a private Twitter account.
- Extract Email Addresses – The script scans your mailbox and creates a list of email addresses of people who have previously communicated with you. Useful for building your email marketing lists.
The workflow uses Google Drive for storing files, PayPal for payments and Gmail for delivering content to the buyer. There’re no limitation on the size of files or the number of products that you can sell. There’re no bandwidth restrictions. There’s no middleman fees except for the usual PayPal charges. And people can purchase your stuff through PayPal or using their debit or credit cards.
Sell Digital Downloads with PayPal and Google Drive
First, create a “Buy Now” button in your PayPal account for the product that you wish to sell online and assign a unique Item ID to the item (see screenshot above).
PayPal will now offer you the HTML code for the purchase button that you can embed in your website. Alternatively, you can copy the direct link – see example – to share your product over email or for selling on social media websites.
The next thing you need to do is upload the corresponding file to your Google Drive. When someone makes a purchase, the Google script will pull this file from Drive and send it to the buyer via Gmail as an email attachment. If the file is big, say the size >20 MB, the script will automatically share the file with the buyer and sends the shared link instead of the actual file.
The final step is to run the Google Script that will monitor your Gmail mailbox for any PayPal related transactions and sends the digital files to the buyer.
This is easy. Click here to make a copy of the PayPal script in your Google Drive and include the Item IDs and file names of all products that you are selling through PayPal. Next choose Run -> PayPal and authorize the script.
http://www.labnol.org/internet/google-dfp-tutorial/14099/
Google DFP, or DoubleClick for Publishers, is a perfect solution in either of the above scenarios. DFP is a free ad server from Google that lets you sell ad space on your website more effectively and also helps maximize your advertising revenue.
With DFP, you may run standard banner ads, text ads (JavaScript based) or even rich-media campaigns that use video and Flash creatives. The tool, which was formerly known as Google Ad Manager, requires no downloads or installation and any website publisher can sign-up for the DFP program as long as they have an active Google AdSense account.
Sell Your Advertising Space with Google DFP
Say you have a blog where you cover a variety of topics including technology, sports and entertainment. An advertiser wants to serve banner ad campaigns on all your tech related pages. As part of the deal, he has agreed to pay $20 CPM for all US impressions and you can fill your remnant inventory through Google AdSense ads.Let’s see how we can easily setup such an ad campaign through Google DFP.
Step 1: Create Ad Units
We need to tell DFP about all the advertising spaces on our web pages. For this example, we’ll create three ad units – the 300×250 rectangle, the 160×600 skyscraper and the 468×60 banner. These are standard IAB units though you can define custom ad sizes as well.
Go to DFP –> Inventory –> Ad Units –> New Ad Unit (choose Web or Mobile). Give your ad unit a descriptive name so that you can easily determine where that ad unit will be displayed and also include the size of that unit. You may check the option “Maximize revenue of unsold and remnant inventory with AdSense” in case you wish to display Google Ads when there are no direct ads or when Google is offering better CPM than the direct advertiser.
25 Ways to Make Money on the Internet
- Start a website or a blog and earn revenue through advertising networks like Google AdSense and BuySellAds. You can even sell your own ads directly through Google DFP.
- Launch a curated email newsletter using MailChimp and find sponsors or use a subscription model where people pay a fee to receive your newsletter. HackerNewletter, Now I Know and Launch.co are good examples.
- Create your own YouTube channel and become a YouTube partner to monetize your videos. You may use Oneload to distribute the same video to multiple video sites.
- Make something creative – like handbags, jewelry, paintings, craft items – and sell them on Etsy, ArtFire or eBay.
- Build your own online store with Shopify or SquareSpace and sell both physical goods and digital downloads. Sell everything from furniture to clothes to food.
- Create t-shirt designs and put them on Threadless, Zazzle and CafePress.
- Write a book and publish it on the Kindle store, Google Play and iBooks. You can also sell your ebook to other retailers through services like Smashwoods and BookBaby.
- Become an instructor at Udemy and SkillShare and get paid for teaching your favorite subjects – from guitar to literature to yoga to foreign languages – to a worldwide audience.
- Learn how to code and you can then hunt for software development projects at Guru, eLance or Rent-a-Coder (now Freelancer.com).
- Become a virtual office assistant and offer administrative or technical assistance to clients remotely from your home office. Head over to eLance, TaskRabbit and oDesk for finding work.
- Offer one-on-one help to anyone worldwide over live video using Google Helpouts. You can do live cooking classes, teach maths or even offer fitness and nutrition tips.
- Write scripts, browser extensions, plugins or mobile apps for iOS and Android and sell the source code of your software on CodeCanyon, Chupa or BinPress.
- People are outsourcing petty computer jobs – like data entry work, transcribing text from business cards or performing web research – and you find these jobs at Mechanical Turk, an Amazon service.
- Creative professionals can scan marketplaces like CrowdSpring, 99Designs and DesignCrowd for projects involving logo design, web design, brochures and other marketing material.
- Do you have a good voice? Sign-up as an audio narrator at Umano or become a voice over artist at VoiceBunny and Voice123.
- Record your own music and sell it on music stores like Amazon MP3, iTunes, Pandora or Spotify through DistroKid, Tunecore, loudr.fm and CDBaby. You can also sell your audio files directly on marketplaces like AudioJungle, Pond5 and Bandcamp.
- Become an affiliate for Amazon and various online stores and earn a commission on sales. You can use programs like Vigilink, ShareASale, CJ or LinkShare to know about the various vendors that offer affiliate programs.
- Educators and teachers can help students with homework or offer on-demand teaching class over the Internet. Apply to become an online tutor at Tutor.com, InstaEdu and TutorVista.
- Got an empty room in your apartment? You can list the property on Airbnb, host people and make some money. The other alternative is Couchsurfing but the service forbids from charging guests.
- Sell photographs that you have taken on Creative Market, PhotoDune, iStockPhoto or ImgEmbed. The latter lets you easily license photos you have uploaded on Facebook, Flickr or Instagram for online use.
- Sell the stuff you no longer use – like old books, children’s toys, gadgets, DVDs, furniture, etc. – on sites like eBay, Craigslist or, if you are in India, OLX.
- Apply to become a website tester at UserTesting and get paid to review and test websites from the usability perspective.
- If friend’s look at you for tech support, there’s no reason why you can’t offer similar services on the Internet. Get Skype (for calling) and Chrome Remote Desktop (for screen sharing) and you are all set to offer remote tech help from anywhere.
- Create an account at Fiverr and PeoplePerHour and offer a wide range of services from translation to graphic design to writing to SEO.
- You can make money by flipping websites. Flippa, GoDaddy Auctions and Sedo are popular marketplaces for buying and selling registered domains while LeanDomainSearch is a good tool for finding available domain names.
- -----------------------------------------------------------------------------------
- http://stackoverflow.com/questions/24437564/update-eclipse-with-android-development-tools-v-23
- Help -> Install New Software...
- For "Work with", select the Android source
https://dl-ssl.google.com/android/eclipse
- Tick ADT v23.0 for installation, then click "Next"
- Eclipse will show "Install Remediation Page" since there is conflict with previous version. (If it does not, see below.) Select "Update my installation to be compatible with items being installed" to uninstall the old version and install the new one. After that, proceed with the usual steps
-----------------------------------------------------------------------------------------------
Here we have compiled a comprehensive list of tools and
resources for startups to take advantage of when taking their concept
from idea to fruition.
Ad Promotion
Analytics
CRM
Customer service
Email Marketing
Event Management
Finding and Posting Startup Jobs
Keyword Search
Landing Pages
Personal Storage
Presentation
Project Management
Social Media
Social/Sharing
Surveys
Traffic Research
Startup Costs
Business Cards
Design Resources
Outsourced Design
Wireframes
Domain Registration
.CO
Legal
Website
Development Tools
Email Integration
Hosting
More
Startup Incubators
Incubator
|
Country
|
City
|
Email Address
|
Africa
|
Kampala, Uganda
|
info (at) appfrica.org
|
|
Australia
|
Eveleigh NSW
|
info (at) atp-innovations.com.au
|
|
Canada
|
Vancouver BC
|
No email address found
|
|
Canada
|
Vancouver BC
|
mike (at) volker.org
|
|
Canada & USA
|
Ontario & California
|
info (at) thomvest.com
|
|
China
|
Shanghai
|
info-china (at) hcp.com
|
|
China
|
Beijing
|
susan (at) cvca.org.cn
|
|
Denmark
|
Copenhagen
|
info (at) startupbootcamp.dk
|
|
Denmark & Sweden
|
Hellerup & Stockholm
|
info (at) viaventurepartners.com
|
|
Finland
|
Helsinki
|
firstname.lastname (at) inventure.fi
|
No comments:
Post a Comment