Saturday, April 20, 2013

[General] Photo Printing


Does anyone have any advice on the best way to print nice quality photos from your phone? It could be the best printer, or the best place to take your photos to have them printed, either would be fine. Some of my photos were taken in 4:3 and some in 16:9. When I try to print on a friends printer, it has a lot of trouble with the 16:9 photos.
Photo Printing-uploadfromtaptalk1366399192721.jpgPhoto Printing-uploadfromtaptalk1366399269286.jpg

From my HTC One X running ViperXL 3.2



.

forum.xda-developers.com

[General] Need help choosing a tablet


To be honest with you based on the criteria you gave in your post which was great in helping you this is what I would do since you are on the forum.
Go and visit many or all of our forums on tablets and read what others are saying and talking about what they like and don't like.

Read reviews on tablets on our blog side. read outside reviews as well and go to some of the stores like Bestbuy where you can actually get your hands on them and see what YOU like and what works best for you.

Then come back and let us know what you bought and become active in the forums.



.

forum.xda-developers.com

[General] Voice Mail to text


I was wondering if there was an app out there that can change my voice mail into a text for me. As I am one of those people who does not enjoy opening my voice mail and would liek to jus read a text. is there any app that is out ther (free app)



.

forum.xda-developers.com

[General] Turn WiFi setting On goes right back Off


I have a Tivax 7D-1A tablet w Android 4.0. When I slide the WiFi switch to On, it stays there for about five seconds and then goes right back off. I did a Factory data reset a few times. Can't figure this one out.



.

forum.xda-developers.com

[General] Seaking advice about purchasing a Samsung Note 10.1 & SD card configuration


I picked up a Samsung Note GT 10.1 this week at Walmart to test out (15day return policy) before I order one online cheaper and with the amount of storage I need. This being my first tablet experience I noticed right away the app size for some of the available apps is much larger then the apps on my phone so I am not sure if I should stick with the 16 or get the 32... I don't use a ton of apps for the most just everyday stuff, email, some social, music, streaming, couple games. The thing is there will be multiple users, 2 dedicated and 1 guest. The other user is a female and completely fresh to Android and will probably be installing a lot of apps of her liking.

So first question is from your experiences should I go 16gb or 32gb? *Note I also am buying a 64gb SD card.

Second question: I have been hearing a lot about partitioning SD cards, should I and if so could you please point me to a guide?

Yes I have considered the Nexus 10 but I really like the Notes built in IR, S Pen and multi tasking plus I am a Samsung fan.
Thanks...

Sent from my GT-N8013 using Tapatalk 2



.

forum.xda-developers.com

[General] how do i find a new app after it's been installed?


Sometimes apps are labeled differently on the All Apps drawer compared to in the Play Store, so make sure you look at every app icon to make sure it isn't called something like "Touch" rather than "VIM." Also, make sure that you've looked at all of the drawer screens--you can swipe the screen to the left or right. Sorry if I'm being too elementary, but it's always a little hard to gauge a person's tech savvy on these forums.

If you still can't find it, go to the Google Play Store, tap Menu/My Apps and check your Installed list to confirm that the app is there. If it isn't, maybe there was some glitch the first time and it didn't install properly. Just try installing again if that's the case.

If all else fails, reboot the tablet (power down completely and then power up again)--this often helps in these kinds of situations.



.

forum.xda-developers.com

[android help] Get the Json Array data in listview


In your for loop you are looping through all the values in the array and storing it in the same variable which replaces the value each time and contains only the last value.


Solution :



ArrayList> mp3List = new ArrayList>();
for(int i=0; i{
JSONObject obj = responseObject.getJSONObject(i);
String dmessage= obj.getString("dmessage");
String message= obj.getString("message");
String mp3= obj.getString("mp3");
String userMessageID= obj.getString("user_message_id");
String category= obj.getString("category");
String title= obj.getString("title");

//making use of obtained strings by adding it to some ArrayList to display in the ListView

HashMap map = new HashMap();

// adding each child node to HashMap key => value
map.put("dmessage", dmessage);
map.put("message", message);
map.put("mp3", mp3);
map.put("userMessageID", userMessageID);
map.put("category", category);
map.put("title", title);

// adding HashList to ArrayList
mp3List.add(map);
}

//you have all the data in mp3List. Display it in ListView
ListAdapter adapter = new SimpleAdapter(this, mp3List, custom_listitem_layout_id, new String[] { "dmessage", "message", "mp3", "userMessageID", "category", "title"}, new int[] { dmessage_textview_id, message_textview_id, mp3_textview_id, userMessageID_textview_id, category_textview_id,title_textview_id });
listview.setAdapter(adapter);


.

stackoverflow.comm

[android help] Find new control point when endpoint change in cubic bezier curve


I'm implementing cubic bezier curve logic in my one of Android Application.


I've implemented cubic bezier curve code on canvas in onDraw of custom view.



// Path to draw cubic bezier curve
Path cubePath = new Path();

// Move to startPoint(200,200) (P0)
cubePath.moveTo(200,200);

// Cubic to with ControlPoint1(200,100) (C1), ControlPoint2(300,100) (C2) , EndPoint(300,200) (P1)
cubePath.cubicTo(200,100,300,100,300,200);

// Draw on Canvas
canvas.drawPath(cubePath, paint);


I visualize above code in following image.


Output of above code


[Updated]



Logic for selecting first control points, I've taken ,
baseX = 200 , baseY = 200 and curve_size = X of Endpoint - X of Start Point

Start Point : x = baseX and y = baseY
Control Point 1 : x = baseX and y = baseY - curve_size
Control Point 2 : x = baseX + curve_size and y = baseY - curve_size
End Point : x = baseX + curve_size and y = baseY


I want to allow user to change EndPoint of above curve, and based on the new End points, I invalidate the canvas.


But problem is that, Curve maintain by two control points, which needs to be recalculate upon the change in EndPoint.


Like, I just want to find new Control Points when EndPoint change from (300,200) to (250,250)


Like in following image :


New Image


Please help me to calculate two new Control Points based on new End Point that curve shape will maintain same as previous end point.


I refer following reference links during searching:


http://pomax.github.io/bezierinfo/


http://jsfiddle.net/hitesh24by365/jHbVE/3/


http://en.wikipedia.org/wiki/B%C3%A9zier_curve


http://cubic-bezier.com/


Any reference link also appreciated in answer of this question.



.

stackoverflow.comm

[android help] SipDemo android registration falure

sip - SipDemo android registration falure - Stack Overflow








Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















I want to develop an application like Push to Talk. I have used android sample SipDemo. I have registered on getonsip sip server ,


  • Username: santanu3143 Authentication Username: getonsip_santanu3143 SIP address: santanu3143@getonsip.com SIP Password: 2QPD5EYFVL7WsfmH Domain: getonsip.com Outbound Proxy: sip.onsip.com Here is the credentials. But I am unable register. Every time it shows registration failure. I have tested it in the Samsung grand, HTC Explorer. Please help.















Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










default







.

stackoverflow.comm

[android help] Error with Eclipse Juno

java - Error with Eclipse Juno - Stack Overflow








Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















When I try to start Eclipse Juno I have a problem. A notice advice me to I have an error in ../eclipse-path/configuration



!SESSION 2013-04-20 08:40:56.237 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.6.0_29
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=es_ES
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.osgi 4 0 2013-04-20 08:40:58.934
!MESSAGE Application error
!STACK 1
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.core.internal.registry.TableReader.readArray(TableReader.java:360)
at org.eclipse.core.internal.registry.TableReader.basicLoadExtensionPoint(TableReader.java:351)
at org.eclipse.core.internal.registry.TableReader.loadExtensionPoint(TableReader.java:339)
at org.eclipse.core.internal.registry.TableReader.loadExtensionPointTree(TableReader.java:309)
at org.eclipse.core.internal.registry.RegistryObjectManager.load(RegistryObjectManager.java:422)
at org.eclipse.core.internal.registry.RegistryObjectManager.basicGetObject(RegistryObjectManager.java:271)
at org.eclipse.core.internal.registry.RegistryObjectManager.getObject(RegistryObjectManager.java:263)
at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getExtensionPoint(BaseExtensionPointHandle.java:106)
at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getExtension(BaseExtensionPointHandle.java:55)
at org.eclipse.core.internal.registry.ExtensionRegistry.getExtension(ExtensionRegistry.java:376)
at org.eclipse.core.internal.registry.ExtensionRegistry.getConfigurationElementsFor(ExtensionRegistry.java:311)
at org.eclipse.equinox.internal.app.EclipseAppContainer.getBranding(EclipseAppContainer.java:429)
at org.eclipse.core.internal.runtime.InternalPlatform.getProduct(InternalPlatform.java:477)
at org.eclipse.core.runtime.Platform.getProduct(Platform.java:1255)
at org.eclipse.ui.internal.WorkbenchPlugin.getProductInfo(WorkbenchPlugin.java:1070)
at org.eclipse.ui.internal.WorkbenchPlugin.getAppName(WorkbenchPlugin.java:1039)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:651)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)


I don't know what I have to do. Thanks





























Open the eclipse.ini file in Eclipse directory and modify its contents as below:



-launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
-Xms512m
-Xmx1024m


Restart Eclipse.























Try adding more memory to run Eclipse: go into the eclipse installation folder and open in edition the configuration file eclipse.ini. Increase the values -Xms and -Xmx.


Here is my config with 6G of RAM:



-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
-vmargs
-Djava.net.preferIPv4Stack=true
-Xmn128m
-Xms1024m
-Xmx1024m
-Xss2m
-XX:PermSize=128m
-XX:MaxPermSize=256m
-XX:+UseParallelGC
-Xverify:none



















lang-java







.

stackoverflow.comm

[android help] Pop up window over android native incoming call screen like true caller android app


I am developing an broadcast receiver for in coming calls in android and on getting incoming calls I want to inflate an pop up over native incoming call screen.


I have made that code completed. But now problem is that in android jelly bean api level 17 when a phone rings the PHONE_STATE is coming as OFF HOOK and If I am calling an activity, it get called but the code under it doesn't get executed I am giving you the code.


My broadcast reciver



package com.example.popwindowonincomingcallscreen;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
import android.util.Log;

public class IncomingBroadcastReceiver extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {

Log.d("IncomingBroadcastReceiver: onReceive: ", "flag1");

String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);
Log.d("IncomingBroadcastReceiver: onReceive: ", state);
if (state.equals(TelephonyManager.EXTRA_STATE_RINGING)
|| state.equals(TelephonyManager.EXTRA_STATE_OFFHOOK)) {

Log.d("Ringing", "Phone is ringing");

Intent i = new Intent(context, IncomingCallActivity.class);
i.putExtras(intent);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
Wait.oneSec();
context.startActivity(i);

}

}

}


An the activity which I am calling



import android.app.Activity;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.util.Log;
import android.view.View.MeasureSpec;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

public class IncomingCallActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {

try {
Log.d("IncomingCallActivity: onCreate: ", "flag2");

*/After this line code is not executed in jelly bean only/*

// TODO Auto-generated method stub
super.onCreate(savedInstanceState);

getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
getWindow().addFlags(
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL);

Log.d("IncomingCallActivity: onCreate: ", "flagy");

setContentView(R.layout.main);

Log.d("IncomingCallActivity: onCreate: ", "flagz");

String number = getIntent().getStringExtra(
TelephonyManager.EXTRA_INCOMING_NUMBER);
TextView text = (TextView) findViewById(R.id.text);
text.setText("Incoming call from " + number);
} catch (Exception e) {
Log.d("Exception", e.toString());
// TODO Auto-generated catch block
e.printStackTrace();
}

}

}


After



try {
Log.d("IncomingCallActivity: onCreate: ", "flag2");
}


The code is not executing in jelly bean but in other version it is working.


I have tried almost all ways I can do. This code is displaying an translucent activity over native call screen and it doesn't block background controls like picking up the phone. But I want it like true caller. I have attached an snapshot how true caller is displaying an window on incoming call screen.


Please guide me through the way How can I achieve this functionality for android app.


This is how true caller works


enter image description here



.

stackoverflow.comm

[android help] Before onCreateView starts

android - Before onCreateView starts - Stack Overflow








Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















In PageFragment; I inflate a layout in onCreateView. But I want to inflate this layout before onCreateView loads. It could be inflated one time / or for every fragment; not important.


How can I achieve it ?



public class PageFragment extends Fragment {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

View view = inflater.inflate(R.layout.page_quiz, container, false);
tv = (TextView) view.findViewById(R.id.Text);

LinearLayout ll = (LinearLayout) view.findViewById(R.id.questionList);

return view;
}
}















Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










default







.

stackoverflow.comm

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...