|
Thanks A Lot, Dude @Richard_MacCutchan
|
|
|
|
|
Is there any API or Library available for developing Facial Makeup application for Android app development?
|
|
|
|
|
That is a subject for some Google research.
|
|
|
|
|
Member 12377376 wrote: Can you explain me how can i develop this project .
Which Library is used for developing Facial Makeup Application in android
Like I said in my previous reply you need to do some research. The first thing being to find out if anyone has written about "Facial Makeup Application", whatever that is.
|
|
|
|
|
Hi ! I just wanted to ask for help for my thesis title ?
I am Computer Science student , Anything even if its idea . Thanks ![Big Grin | :-D](https://www.codeproject.com/script/Forums/Images/smiley_biggrin.gif)
|
|
|
|
|
Computer Science - or is it Art?
|
|
|
|
|
marian alciso wrote: I just wanted to ask for help for my thesis title ? How about something (remotely) related to the thesis content?
marian alciso wrote:
I am Computer Science student , Anything even if its idea Work with your thesis adviser. That's what they are for!
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
|
Member 11103653 wrote: ...and it didn't work That'll go a long way towards solving the problem. Thank you.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I am unable to upload any file via my browser (chrome/uc browser Nd I have used all) . Kindly give me some suggestions?
|
|
|
|
|
Does this have anything to do with Android programming?
|
|
|
|
|
Member 12351611 wrote: Kindly give me some suggestions? Use fresh batteries.
Make sure reservoir is full.
Air up tires to recommended PSI.
Don't eat 30 minutes before uploading.
Those are the obvious ones I can think of at the moment.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
|
Hi, i would like to write text and insert image in edit text to save that as notes, can any one have any idea how to insert image and write text in same edit text.
thanks in advance.....
|
|
|
|
|
|
I am working on Live GPS Tracking Android application.
I am confuse how to store the current location from one mobile device and how to show his location on another mobile device ?
|
|
|
|
|
The first device would need to store it in a cloudbased repository, or send it to the other device via sockets, SMS etc.
|
|
|
|
|
Jay285 wrote: ...and how to show his location on another mobile device ? Are these devices near each other? Richard's cloud suggestion has merit. Give it a go.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I am having a list adapter:
final Listadapter Adapter = new Listadapter(this,packageList1, packageManager);
When trying to create dynamic search filter for the list items, I am unable to use list adapter along with get filter function. please refer below:
<br />
final Listadapter Adapter = new Listadapter(this,packageList1, packageManager);<br />
apps.setAdapter(Adapter);<br />
<br />
<br />
SearchView sv = (SearchView) findViewById(R.id.inputSearch);<br />
sv.setOnQueryTextListener(new SearchView.OnQueryTextListener() {<br />
@Override<br />
public boolean onQueryTextSubmit(String text) {<br />
return false;<br />
}<br />
<br />
@Override<br />
public boolean onQueryTextChange(String text) {<br />
<br />
Adapter.getFilter().filter(text);<br />
return false;<br />
}<br />
});<br />
During further search, I have seen that getfilter() works with Array adapter.
Is there a way to use getfilter() functionality with ListAdapter?
OR Use listAdapter as Array adapter in anyway?
|
|
|
|
|
When I did a project that had a filterable list, the adapter looked like:
public class RecoilAdapter extends ArrayAdapter<TableInfo> implements Filterable
I then created a private class belonging to this adapter like:
private class RecoilFilter extends Filter A RecoilFilter object that belongs to RecoilAdapter is returned in its getFilter() method. Worked like a charm.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Recently I stumbled upon an article, concerning the subject - "Native vs Hybrid app development - which one is better for your business?". What do you think guys? Should we just go native off the bat, or does hybrid option gives some better opportunities?
Just in case, the aforementioned article - http://howwedostartups.com/articles/Native-vs-Hybrid
|
|
|
|
|
I have this code within `onCreate`:
webView.setWebViewClient(new WebViewClient() {
final ProgressDialog progress = new ProgressDialog(MainActivity.this);
.
.
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
view.loadUrl("file:///android_asset/www/error.html");
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
drawer.openDrawer(GravityCompat.START);
progress.dismiss();
}
});
When there is no internet connection it successfully detects the error and loads `error.html`. However, it refuses to open the drawer. Also, it closes the progress dialog whether I comment out that line or not. The drawer opens and closes fine when the back button is pressed:
@Override
public void onBackPressed() {
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
if (drawer.isDrawerOpen(GravityCompat.START)) {
drawer.closeDrawer(GravityCompat.START);
} else {
drawer.openDrawer(GravityCompat.START);
}
}
Why will the drawer not open inside onReceivedError?
|
|
|
|
|
Hi everybody,
I'm trying to get my android app to communicate with the standard ASP.net System.Web.ApplicationServices.AuthenticationService Web Service. For debugging purposes, I'm hosting the service locally and starting it from VS 2013. When I use the WCF Test Client, everything works like a charm, yet when trying to connect from the android emulator, I'm getting a code 400: Bad Request - Invalid Hostname. Since the WCF Test Cline can reach the service an I'm aware that I need to use 10.0.2.2:50816 instead of localhost:50816, I'm totally clueless as to why the host is invalid.
Here's the relevant lines from my web.config:
<system.web.extensions>
<scripting>
<webServices>
<authenticationService enabled="true" requireSSL="false" />
</webServices>
</scripting>
</system.web.extensions>
<system.serviceModel>
<services>
<service behaviorConfiguration="AuthenticationServiceBehaviors" name="System.Web.ApplicationServices.AuthenticationService">
<endpoint address="" contract= "System.Web.ApplicationServices.AuthenticationService"
binding="basicHttpBinding"
bindingConfiguration = "userHttps"
bindingNamespace="http://asp.net/ApplicationServices/v200"/>
</service>
<service behaviorConfiguration="ShinergyAdmin.services.MobileServiceBehavior" name="ShinergyAdmin.services.MobileService">
<endpoint address="" binding="basicHttpBinding" contract="ShinergyAdmin.services.IMobileService">
<identity>
<dns value="host" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="userHttps">
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
This is my client-side invokation:
private static final String NAMESPACE = "http://asp.net/ApplicationServices/v200/";
private static String URL="http://10.0.2.2:50816/services/AuthService.svc?wsdl";
private static final String METHOD_NAME = "Login";
private static final String SOAP_ACTION = "\"http://asp.net/ApplicationServices/v200/AuthService.svc/Login\"";
public String ValidateUser(String username, String password){
SoapSerializationEnvelope envelope = null;
SoapObject request = null;
HttpTransportSE httpTransportSE = null;
try {
request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("username", username);
request.addProperty("password", password);
envelope = new SoapSerializationEnvelope(SoapEnvelope.VER12);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
httpTransportSE = new HttpTransportSE(URL, 27000);
httpTransportSE.debug = true;
httpTransportSE.setXmlVersionTag("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
httpTransportSE.call(SOAP_ACTION, envelope);
SoapPrimitive result = (SoapPrimitive)envelope.getResponse();
String textResult = result.toString();
Log.i("textResult", textResult);
return textResult;
} catch (Exception e) {
e.printStackTrace();
}finally{
Log.i(getClass().getSimpleName(),"requestDump : "+httpTransportSE.requestDump);
Log.i(getClass().getSimpleName(),"responseDump : "+httpTransportSE.responseDump);
}
return "Failure to Login";
}
This is what I send (i.e., my request dump):
="1.0"="utf-8"<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2003/05/soap-encoding" xmlns:v="http://www.w3.org/2003/05/soap-envelope"><v:Header /><v:Body><Login xmlns="http://asp.net/ApplicationServices/v200/" id="o0" c:root="1"><username i:type="d:string">Username</username><password i:type="d:string">Password</password></Login></v:Body></v:Envelope>
and finally, this is the response dump:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid Hostname</h2>
<hr><p>HTTP Error 400. The request hostname is invalid.</p>
</BODY></HTML>
I absolutely can't find out where that error is. Frustration levels are constantly rising here, so any help is highly appreciated!
|
|
|
|
|
My Database Helper Code is Here
public class DataHelper extends SQLiteOpenHelper {
public static final String DB_NAME="myDb";
public static final String Table_Pro="student";
public static final String Create_Pro="Create table if not exists "+Table_Pro+"(id integer primary key autoincrement,pname not null unique,age int,qual text)";
public static final String Delete_Pro="Drop table if exists "+Table_Pro;
public DataHelper(Context context) {
super(context, DB_NAME, null, 1);
}
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(Create_Pro);
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
db.execSQL(Delete_Pro);
onCreate(db);
}
public void insertProvince(String pname,int age,String qual)
{
SQLiteDatabase db=this.getWritableDatabase();
db.beginTransaction();
ContentValues values;
try
{
values=new ContentValues();
values.put("pname",pname);
values.put("age",age);
values.put("qual",qual);
db.insert(Table_Pro, null, values);
db.setTransactionSuccessful();
}catch (Exception e)
{
e.printStackTrace();
}
finally {
db.endTransaction();
db.close();
}
}
public ArrayList<String> getAllProvinces()
{
ArrayList<String> list=new ArrayList<String>();
SQLiteDatabase db=this.getReadableDatabase();
db.beginTransaction();
try
{
String selectQuery = " SELECT * FROM "+ Table_Pro;
Cursor cursor=db.rawQuery(selectQuery,null);
if(cursor.getCount()>0)
{
while (cursor.moveToNext())
{
String pname=cursor.getString(cursor.getColumnIndex("pname"));
list.add(pname);
}
}
db.setTransactionSuccessful();
}catch (Exception e)
{
e.printStackTrace();
}
finally {
db.endTransaction();
db.close();
}
return list;
}
public Cursor getAllData()
{
SQLiteDatabase db = getReadableDatabase();
Cursor res=db.rawQuery("select * from "+Table_Pro,null);
return res;
}
}
Main Activity is here
public class MainActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener {
DataHelper dataHelper=new DataHelper(this);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
dataHelper.insertProvince("John",24,"Btech");
dataHelper.insertProvince("Bob",25,"Mtech");
dataHelper.insertProvince("Rock",30,"MBA");
dataHelper.insertProvince("Alice",45,"MCA");
dataHelper.insertProvince("Strike",40,"Masters");
ArrayList<String> listpro=dataHelper.getAllProvinces();
Spinner sp=(Spinner)findViewById(R.id.spinner_data);
sp.setOnItemSelectedListener(this);
ArrayAdapter<String> adapter=new ArrayAdapter<String>(this,R.layout.spinner_layout,R.id.txt,listpro);
sp.setAdapter(adapter);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
String label = parent.getItemAtPosition(position).toString();
Toast.makeText(parent.getContext(), "Welcome: " + label,
Toast.LENGTH_LONG).show();
Cursor res = dataHelper.getAllData();
if (res.getCount() == 0) {
showMessage("Error", "Nothing Found");
return;
}
StringBuffer buffer = new StringBuffer();
while (res.moveToNext()) {
buffer.append("age: " + res.getString(2) + "\n");
buffer.append("Qualification: " + res.getString(3) + "\n\n");
showMessage("Data", buffer.toString());
}
}
public void showMessage(String title,String Message) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setCancelable(true);
builder.setTitle(title);
builder.setMessage(Message);
builder.show();
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
}
From there i have to get the age and qualification of selected name or person
but this code gives all persons age and qualification
Can You please help me to get out from here
Thank You a lot
modified 9-Feb-16 1:51am.
|
|
|
|
|
Your SELECT statement is requesting all records. If you only want certain ones then add a qualifying clause.
|
|
|
|