|
|
|
i need help to run my application in background like a call recorder that run as background and record calls without asking for permission. what method or class i should use..
|
|
|
|
|
|
infinite background in thread..
|
|
|
|
|
I am trying to display a multiplication table with delay. My code is working fine but I am not able to implement the delay.
Here is My code:-
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
public class TestActivity extends Activity{
Button tableButton1;
TextView txtView;
Runnable r;
String s;
int value = 0;
static int count = 0;
Handler handle = new Handler();
StringBuilder sb = new StringBuilder();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.text_display);
txtView = (TextView) findViewById(R.id.outputTXT);
tableButton1 = (Button) findViewById(R.id.seven);
tableButton1.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Toast.makeText(getApplicationContext(), "display" , 222).show();
value= Integer.parseInt(tableButton1.getText().toString());
r = new Runnable() {
@Override
public void run() {
count+=1000;
if(count==10000){
count = 0;
value=0;
handle.removeCallbacks(r);
sb.setLength(0);
Toast.makeText(getApplicationContext(), "display counter" +sb, 222).show();
}else{
sb.append(value + " x " + count/1000 + " = " + count/1000 * value+ "\n");
Toast.makeText(getApplicationContext(), "Hi" +sb, 222).show();
handle.postDelayed(this, 1000);
}
}
};
}
});
}
Any answer is appreciable.
Thank in advance
modified 25-Jan-14 3:32am.
|
|
|
|
|
Hi dudes (and perhaps the odd dudette)
I'm looking for cross platformer who can convert my windows phone app to Android and iOS and get paid for it (but without me forking out a gazillion!)
Oh yeah it involves geolocation (google maps) and web service calls to an azure cloud service currently running
Suggestions welcome
cheers
Bryce
MCAD
---
modified 23-Jan-14 23:18pm.
|
|
|
|
|
Why not just use Xamarin[^], really isn't that expensive if your app isn't too big. Most of your code base would be reusable and all programmable in C#.
|
|
|
|
|
First of all i congratulate Mr. KARTHIK on reaching 10K reputation points on code project..
Sir,
I m making an android project that will enable blind children to give their exams
In this project i am using some modules...
1) braille input conversion to english text
2) text to speech
there are some submodules to the above modules..
but i m not getting wht else can i do in this project?
please give your suggestions....
|
|
|
|
|
Didn't I give you something?[^]
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
but i m stucked up some where...
its not going as wanted.. smthng is missing here
n on top of it i have to give a demo of it in next month's end...
n i really dnt have tht level of knowledge in android programming..
n i want to learn it..
but no resources available...
|
|
|
|
|
Member 10511020 wrote: i have to give a demo of it in next month's end
Member 10511020 wrote: i really dnt have tht level of knowledge in android programming
It seems you committed to something that you have no idea about. How do you expect us to help you?
|
|
|
|
|
Member 10511020 wrote: smthng is missing here Yeah, looks like some of the keys on your keyboard.
Veni, vidi, abiit domum
|
|
|
|
|
You disappointed me
Better suggestion. Collaborate. Join with some other projects(by some guys) & give your contribution.
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
i have done my piece of code.. but get struck at some point.. wen i m done will surely post back here fr reference...
n if i m commiteed to this project.. coz i m doing it fr betterment of society.. i will do it...
thanks evry one for helping out
|
|
|
|
|
I wrote my first game and published it to the Google Play store a couple weeks ago (a word game, but one that I think is a bit different than others out there). Since I'm a solo developer I'm wondering what the best way to get the word out about the app and promote it to drive downloads.
I've submitted it to a few review sites and plan to do some more but it looks like most review sites push for a paid review and it sounds like free submissions to those sites probably won't get reviewed. I've put out the word among my friends and on Facebook, but what are some suggestions for other places where I can promote my app without spamming message boards?
For example, I didn't want to just put up a post on this site promoting my game since I don't see a message board that seems appropriate for that without seeming like I'm spamming the site.
The game is free (trying the ad-supported method first but I'll probably put out a paid no-ad version later) so I don't have a budget for promotions, but I've considered a very small investment (no more than $25) into a Facebook or AdMob campaign just to see what the results would be. If the results for that turned out to be promising I'd consider expanding that.
Any opinions about that or suggestions for sites I could post info about the game or other things I could try?
|
|
|
|
|
I am really close to releasing my app so I understand to a certain extent what you are going through. I have been doing much research in this area reading articles dealing with business models to see how this gets approached.
There are many, many articles out there, but not neccessarily relating to android or mobile applications that could prove insightful to you. This may not answer your question completely, but I hope some of these articles could point you in the proper direction.
Also, if you find some avenues that work for you would you be willing to write about it? I would love to read what worked for you and what didn't.
MSDN: how my simple game got 800k downloads on windows store and windows phone[^]
Gamasutra: chasing the whale[^]
I hope this helps. Good luck! 
|
|
|
|
|
I'm new in developing applications in Java and Android both, and trying to create an application that will communicate to my .net application.
I've been reading on code project, about Eneter messaging framework, and tried to install it for my android application but while installing the application it crashed with the following error:
"failed to load main-class manifest attribute".
Can anyone help me to get rid of this error, or if anyone can suggest me for another messaging framework?
Thanks in advance.
|
|
|
|
|
How whit SELECT statement to select a field from database and show in a TEXTVIEW ??
|
|
|
|
|
|
Hi everybody,
I´m going to start a course related with mobile Application development.
The course is intended to teach from the begining doing android applications (or Objective c)
Said that is it supposed that we will the things already configured
But due the fact that Android is Java related platform I have a serie of questions unanswered:
1- I´ve been doing Java courses, that up to date had covered applets, swing, objects, exceptions handling. It cuold be considered an acceptable or do I need to study other topics (if so wich ones)
2- I have to download the Andorid SDK, but I have already installed Java 1.7 JDK, can both be installed?
3- In a number of articles Í had read, they use the eclipse as a IDE, I have installed NetBeans and JCreator, it is possible to have installed the three? or instead used one of the already installed
Thank you in advance,
And I offer excuses for the long question
|
|
|
|
|
1. Android app is written primarily in Java, so you have the advantage if you have learned Java. Learn the android programming here: android-tutorial[^]
2. You need to have Java SDK before you can install Android SDK.
3. They can co-exist. It is up to you which one to use. You may want to download the ADT bundle that come with eclipse here: android bundle[^]
|
|
|
|
|
Please can you guide me to resolve in my code . I am a beginner in Android development. In my code On Create method is not calling
public class mtsDatabaseHelper extends SQLiteOpenHelper
{
private static final String DATABASE_NAME="fleetdatabase";
private static final String TABLE_NAME="USERS_TABLE";
private static final int DATABASE_VERSION = 1;
private static final String UID = "_id";
private static final String NAME = "Name";
private static final String CREATE_TABLE = "CREATE TABLE "+TABLE_NAME+" ("+UID+" INTEGER PRIMARY KEY AUTOINCREMENT, "+NAME+" VARCHAR(50));";
private static final String DROP_TABLE = "DROP TABLE "+TABLE_NAME+" IF EXISTS";
private Context context;
public mtsDatabaseHelper(Context context)
{
super(context,DATABASE_NAME,null,DATABASE_VERSION);
this.context = context;
Message.message(context, "Constructor called");
}
public void onCreate(SQLiteDatabase db)
{
try
{
db.execSQL(CREATE_TABLE);
Message.message(context, "On Create called");
}
catch(SQLException e)
{
Message.message(context, ""+e);
}
}
public void onUpgrade(SQLiteDatabase db, int oldversion, int newversion)
{
try
{
Message.message(context, "On Upgrade called");
db.execSQL(DROP_TABLE);
onCreate(db);
} catch (SQLException e)
{
Message.message(context, ""+e);
}
}
}
public class MainActivity extends Activity
{
mtsDatabaseHelper mtsdatabasehelper;
<a href="/Members/override">@Override</a>
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mtsdatabasehelper = new mtsDatabaseHelper(this);
SQLiteDatabase sqlitdatabase = mtsdatabasehelper.getWritableDatabase();
}
Please help
modified 17-Jan-14 9:07am.
|
|
|
|
|
I have been evaluating Xamarin for doing Android development in C#. Seems really good, but coming from doing Android dev with Eclipse and Java, I just cannot find any way to justify the $299 for Indie license or the $999 for Business.
Anyone have any thoughts, suggestions, pro's or con's that they could share?
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
My only comment would be, if you are doing this development in order to make money then $299, or even $999, is probably a worthwhile investment.
Veni, vidi, abiit domum
|
|
|
|